summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2015-03-02 11:37:24 -0800
committerAdam Lesinski <adamlesinski@google.com>2015-03-02 12:54:14 -0800
commit978a1ed5aa2752cd36ff51df91d2d2d8be2171d9 (patch)
tree4c383bf6ee66fd90b721fc670bb24a2d94fd15bd /tests
parent5414d155e5ce3147f9db1b2ec6fb2dcd6473e089 (diff)
downloadframeworks_base-978a1ed5aa2752cd36ff51df91d2d2d8be2171d9.zip
frameworks_base-978a1ed5aa2752cd36ff51df91d2d2d8be2171d9.tar.gz
frameworks_base-978a1ed5aa2752cd36ff51df91d2d2d8be2171d9.tar.bz2
Add generic "INTERACTION" event type to UsageStatsManager
This will allow for updating a package's last time used property for packages that are interacted in ways other than launching their activities (interacting with notifications, etc.) Change-Id: Ic6f9519f46fa04abd37ea6fc9475bcd9ea721003
Diffstat (limited to 'tests')
-rw-r--r--tests/UsageStatsTest/src/com/android/tests/usagestats/UsageLogActivity.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/UsageStatsTest/src/com/android/tests/usagestats/UsageLogActivity.java b/tests/UsageStatsTest/src/com/android/tests/usagestats/UsageLogActivity.java
index d9a3b61..8e6daea 100644
--- a/tests/UsageStatsTest/src/com/android/tests/usagestats/UsageLogActivity.java
+++ b/tests/UsageStatsTest/src/com/android/tests/usagestats/UsageLogActivity.java
@@ -166,6 +166,9 @@ public class UsageLogActivity extends ListActivity implements Runnable {
case UsageEvents.Event.CONFIGURATION_CHANGE:
return "Config change";
+ case UsageEvents.Event.INTERACTION:
+ return "Interaction";
+
default:
return "Unknown: " + eventType;
}