diff options
| author | Bobby Georgescu <georgescu@google.com> | 2013-04-26 23:19:36 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-04-26 23:19:37 +0000 |
| commit | 45377ce902eb0dce6fb6b1e58925654822e25a19 (patch) | |
| tree | c873c0b41d56a3ac1195c47f0c6b2fd1f40c9eac /src | |
| parent | 8021e39d649be4603e66d5f82cef607ada87d56b (diff) | |
| parent | 1401b2fec43ebc349a3102153bb1b3597f358838 (diff) | |
| download | android_packages_apps_Gallery2-45377ce902eb0dce6fb6b1e58925654822e25a19.tar.gz android_packages_apps_Gallery2-45377ce902eb0dce6fb6b1e58925654822e25a19.tar.bz2 android_packages_apps_Gallery2-45377ce902eb0dce6fb6b1e58925654822e25a19.zip | |
Merge "Log name of borders and filters of saved images" into gb-ub-photos-bryce
Diffstat (limited to 'src')
| -rw-r--r-- | src/com/android/gallery3d/filtershow/presets/ImagePreset.java | 9 |
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; } |
