summaryrefslogtreecommitdiff
path: root/tests/UsageStatsTest
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2018-03-20 19:37:46 -0700
committerAmith Yamasani <yamasani@google.com>2018-03-22 13:51:57 -0700
commitbc813eb26e3027856114a26312e36e4bad86bd86 (patch)
treea19f4c10792816809309bf64bba518ea676f7372 /tests/UsageStatsTest
parent9531b70cae96e8e59d38bd91d636cbe084574f3a (diff)
Provide app launch count in UsageStats
This counts the number of times the app was launched from outside the app and ignores intra-app activity transitions. Introduce a new permission for registering to observe app usage. Fixes a bug where Settings couldn't force the app into another bucket if it was recently launched. Bug: 74335821 Fixes: 76100712 Test: Manual test using Settings Test: UsageStatsTest to verify permission change Change-Id: Ibd343c1cfa37089a3ac6fc30ba3194e21a9be499
Diffstat (limited to 'tests/UsageStatsTest')
-rw-r--r--tests/UsageStatsTest/AndroidManifest.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/UsageStatsTest/AndroidManifest.xml b/tests/UsageStatsTest/AndroidManifest.xml
index 66af45424fba..4b1c1bd69920 100644
--- a/tests/UsageStatsTest/AndroidManifest.xml
+++ b/tests/UsageStatsTest/AndroidManifest.xml
@@ -10,6 +10,7 @@
>
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
+ <uses-permission android:name="android.permission.OBSERVE_APP_USAGE" />
<application android:label="Usage Access Test">
<activity android:name=".UsageStatsActivity"