summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/presets
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-04-26 16:20:54 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-26 16:20:54 -0700
commit250f3b9439d70c68fed9ce5bc01eafe50d2d2296 (patch)
tree94ed15e5a1d65c5ce11b7fd4c8fb38136f0ab63d /src/com/android/gallery3d/filtershow/presets
parent83884a45c397484ceeaa80e9d3f2e3a4ccd78b0a (diff)
parent45377ce902eb0dce6fb6b1e58925654822e25a19 (diff)
downloadandroid_packages_apps_Gallery2-250f3b9439d70c68fed9ce5bc01eafe50d2d2296.tar.gz
android_packages_apps_Gallery2-250f3b9439d70c68fed9ce5bc01eafe50d2d2296.tar.bz2
android_packages_apps_Gallery2-250f3b9439d70c68fed9ce5bc01eafe50d2d2296.zip
am 45377ce9: Merge "Log name of borders and filters of saved images" into gb-ub-photos-bryce
* commit '45377ce902eb0dce6fb6b1e58925654822e25a19': Log name of borders and filters of saved images
Diffstat (limited to 'src/com/android/gallery3d/filtershow/presets')
-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 f6e9113ee..1b7a425e7 100644
--- a/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
+++ b/src/com/android/gallery3d/filtershow/presets/ImagePreset.java
@@ -37,6 +37,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.io.IOException;
import java.io.StringReader;
@@ -471,6 +472,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;
}
@@ -494,6 +499,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;
}