diff options
author | Bobby Georgescu <georgescu@google.com> | 2013-04-26 15:27:14 -0700 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2013-04-26 15:30:09 -0700 |
commit | 1401b2fec43ebc349a3102153bb1b3597f358838 (patch) | |
tree | c41430e0268a6a88830f6970bde1dead03248fe4 /src/com/android/gallery3d/filtershow/presets | |
parent | 4060811aa01c7fc4ed98aa3f1c98b8948fd0a395 (diff) | |
download | android_packages_apps_Gallery2-1401b2fec43ebc349a3102153bb1b3597f358838.tar.gz android_packages_apps_Gallery2-1401b2fec43ebc349a3102153bb1b3597f358838.tar.bz2 android_packages_apps_Gallery2-1401b2fec43ebc349a3102153bb1b3597f358838.zip |
Log name of borders and filters of saved images
Bug: 8712946
Change-Id: Id7b32ceb00b131299c6d8630bca181141dc204fd
Diffstat (limited to 'src/com/android/gallery3d/filtershow/presets')
-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; } |