From 978a1ed5aa2752cd36ff51df91d2d2d8be2171d9 Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Mon, 2 Mar 2015 11:37:24 -0800 Subject: 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 --- .../src/com/android/tests/usagestats/UsageLogActivity.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/UsageStatsTest/src') 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; } -- cgit v1.1