summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-04-26 23:19:36 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-26 23:19:37 +0000
commitba9862f353476fcb7ab77d5b7e601adca8a6d136 (patch)
treed031e78c165803114b533a70b22ea17ad60a715e /src/com
parent1efdb8f8cbb5e23209b933efa6e71876dabb8220 (diff)
parent5201d6da9f5c6d08a80cab1dab4bf7f1913455c4 (diff)
downloadandroid_packages_apps_Snap-ba9862f353476fcb7ab77d5b7e601adca8a6d136.tar.gz
android_packages_apps_Snap-ba9862f353476fcb7ab77d5b7e601adca8a6d136.tar.bz2
android_packages_apps_Snap-ba9862f353476fcb7ab77d5b7e601adca8a6d136.zip
Merge "Log name of borders and filters of saved images" into gb-ub-photos-bryce
Diffstat (limited to 'src/com')
-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;
}