summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-04-26 15:27:14 -0700
committerBobby Georgescu <georgescu@google.com>2013-04-26 15:30:09 -0700
commitfb5aa16743f6c66b39cb5550d93ddf13d399c7ee (patch)
treecc2c1c59cc6071f444f499982c488873e7db96e2 /src/com/android
parente8a7716835d6e1f996b18295c9435f83f2c0c7f3 (diff)
downloadandroid_packages_apps_Snap-fb5aa16743f6c66b39cb5550d93ddf13d399c7ee.tar.gz
android_packages_apps_Snap-fb5aa16743f6c66b39cb5550d93ddf13d399c7ee.tar.bz2
android_packages_apps_Snap-fb5aa16743f6c66b39cb5550d93ddf13d399c7ee.zip
Log name of borders and filters of saved images
Bug: 8712946 Change-Id: Id7b32ceb00b131299c6d8630bca181141dc204fd
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/gallery3d/filtershow/presets/ImagePreset.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
index e0ff0b3e6..3530935e1 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
@@ -30,6 +30,7 @@ import com.android.gallery3d.filtershow.imageshow.GeometryMetadata;
import com.android.gallery3d.filtershow.imageshow.MasterImage;
import com.android.gallery3d.filtershow.state.State;
import com.android.gallery3d.filtershow.state.StateAdapter;
+import com.android.gallery3d.util.UsageStatistics;
import java.util.Vector;
@@ -459,6 +460,10 @@ public class ImagePreset {
if (mBorder != null && mDoApplyGeometry) {
mBorder.synchronizeRepresentation();
bitmap = environment.applyRepresentation(mBorder, bitmap);
+ if (environment.getQuality() == QUALITY_FINAL) {
+ UsageStatistics.onEvent(UsageStatistics.COMPONENT_EDITOR,
+ "SaveBorder", mBorder.getName(), 1);
+ }
}
return bitmap;
}
@@ -478,6 +483,10 @@ public class ImagePreset {
representation.synchronizeRepresentation();
}
bitmap = environment.applyRepresentation(representation, bitmap);
+ if (environment.getQuality() == QUALITY_FINAL) {
+ UsageStatistics.onEvent(UsageStatistics.COMPONENT_EDITOR,
+ "SaveFilter", representation.getName(), 1);
+ }
if (environment.needsStop()) {
return bitmap;
}