summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/PhotoPage.java
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-03-12 22:45:17 -0700
committerBobby Georgescu <georgescu@google.com>2013-03-12 22:45:17 -0700
commitf37648b877bf6029d7afead31e965b473114c89c (patch)
tree75b21691ba7dfc7caa9e7571c747c823d7f101e4 /src/com/android/gallery3d/app/PhotoPage.java
parente5e61f884c59d5ba15aae6b228c4bcaad58e0642 (diff)
downloadandroid_packages_apps_Gallery2-f37648b877bf6029d7afead31e965b473114c89c.tar.gz
android_packages_apps_Gallery2-f37648b877bf6029d7afead31e965b473114c89c.tar.bz2
android_packages_apps_Gallery2-f37648b877bf6029d7afead31e965b473114c89c.zip
Usage statistics collection for camera module, filmstrip
Change-Id: Ib3e7dfb8948e99541f6d492c7d7bd4bfbad1e53d
Diffstat (limited to 'src/com/android/gallery3d/app/PhotoPage.java')
-rw-r--r--src/com/android/gallery3d/app/PhotoPage.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index 44ff62feb..84030896a 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -69,6 +69,7 @@ import com.android.gallery3d.ui.PhotoView;
import com.android.gallery3d.ui.SelectionManager;
import com.android.gallery3d.ui.SynchronizedHandler;
import com.android.gallery3d.util.GalleryUtils;
+import com.android.gallery3d.util.UsageStatistics;
public abstract class PhotoPage extends ActivityState implements
PhotoView.Listener, AppBridge.Server,
@@ -1338,8 +1339,17 @@ public abstract class PhotoPage extends ActivityState implements
}
if (enabled) {
mHandler.removeMessages(MSG_HIDE_BARS);
+ UsageStatistics.onContentViewChanged(
+ UsageStatistics.COMPONENT_GALLERY, "FilmstripPage");
} else {
refreshHidingMessage();
+ if (mAppBridge == null || mCurrentIndex > 0) {
+ UsageStatistics.onContentViewChanged(
+ UsageStatistics.COMPONENT_GALLERY, "SinglePhotoPage");
+ } else {
+ UsageStatistics.onContentViewChanged(
+ UsageStatistics.COMPONENT_CAMERA, "Unknown"); // TODO
+ }
}
}