diff options
author | Dianne Hackborn <hackbod@google.com> | 2014-05-07 18:06:44 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2014-05-08 13:58:13 -0700 |
commit | e22b3b143240f0f18e3d6d3c06686ad3c23b131b (patch) | |
tree | 5e4da4b288868cd4062bc62295b42d82a36aec3c /core/java/android/content | |
parent | ed32c842c6d0cc31587256bfbfc2693588ee556c (diff) | |
download | frameworks_base-e22b3b143240f0f18e3d6d3c06686ad3c23b131b.zip frameworks_base-e22b3b143240f0f18e3d6d3c06686ad3c23b131b.tar.gz frameworks_base-e22b3b143240f0f18e3d6d3c06686ad3c23b131b.tar.bz2 |
Usage stats!
Start reworking the usage stats service to be able
to have an API we can publish.
The basic information it keeps is still the same, though
that will be changing in the future. The one big addition
here is that we are also now collecting configuration usage
stats.
Also introduce the start of an access model for usage stats,
using app ops. There is an new app op that gives an application
access to usage stats even if it normally wouldn't have it,
disabled by default.
Change-Id: I6ead28e18a7f08eafd057d6ff37dd9cb216358f4
Diffstat (limited to 'core/java/android/content')
-rw-r--r-- | core/java/android/content/Context.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 042ee28..a059e48 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -2683,6 +2683,16 @@ public abstract class Context { public static final String NETWORK_SCORE_SERVICE = "network_score"; /** + * Use with {@link #getSystemService} to retrieve a {@link + * android.app.UsageStatsManager} for interacting with the status bar. + * + * @see #getSystemService + * @see android.app.UsageStatsManager + * @hide + */ + public static final String USAGE_STATS_SERVICE = "usagestats"; + + /** * Determine whether the given permission is allowed for a particular * process and user ID running in the system. * |