diff options
author | Adam Lesinski <adamlesinski@google.com> | 2014-08-08 22:36:37 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-08 18:15:47 +0000 |
commit | 81f6d857c1baef5e159bb34dad540baf77572782 (patch) | |
tree | f91da7b2fa2192cc6715124dbbd297e67c846aeb /api | |
parent | 770a53288643197a903999fac5469e4f1e6e4b2c (diff) | |
parent | 3516800b611a79339a3c188332d13a26e9086b09 (diff) | |
download | frameworks_base-81f6d857c1baef5e159bb34dad540baf77572782.zip frameworks_base-81f6d857c1baef5e159bb34dad540baf77572782.tar.gz frameworks_base-81f6d857c1baef5e159bb34dad540baf77572782.tar.bz2 |
Merge "Second iteration of the UsageStats API" into lmp-dev
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/api/current.txt b/api/current.txt index 75d6e57..87fd7df 100644 --- a/api/current.txt +++ b/api/current.txt @@ -5691,46 +5691,47 @@ package android.app.job { package android.app.usage { - public final class PackageUsageStats implements android.os.Parcelable { + public final class UsageEvents implements android.os.Parcelable { method public int describeContents(); - method public long getLastTimeUsed(); - method public java.lang.String getPackageName(); - method public long getTotalTimeSpent(); + method public boolean getNextEvent(android.app.usage.UsageEvents.Event); + method public boolean hasNextEvent(); + method public void resetToStart(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator CREATOR; } + public static final class UsageEvents.Event { + ctor public UsageEvents.Event(); + method public android.content.ComponentName getComponent(); + method public int getEventType(); + method public long getTimeStamp(); + field public static final int MOVE_TO_BACKGROUND = 2; // 0x2 + field public static final int MOVE_TO_FOREGROUND = 1; // 0x1 + field public static final int NONE = 0; // 0x0 + } + public final class UsageStats implements android.os.Parcelable { ctor public UsageStats(android.app.usage.UsageStats); + method public void add(android.app.usage.UsageStats); method public int describeContents(); method public long getFirstTimeStamp(); method public long getLastTimeStamp(); - method public android.app.usage.PackageUsageStats getPackage(int); - method public android.app.usage.PackageUsageStats getPackage(java.lang.String); - method public int getPackageCount(); - method public void writeToParcel(android.os.Parcel, int); - field public static final android.os.Parcelable.Creator CREATOR; - } - - public static class UsageStats.Event implements android.os.Parcelable { - ctor public UsageStats.Event(); - method public int describeContents(); + method public long getLastTimeUsed(); + method public java.lang.String getPackageName(); + method public long getTotalTimeInForeground(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator CREATOR; - field public static final int MOVE_TO_BACKGROUND = 2; // 0x2 - field public static final int MOVE_TO_FOREGROUND = 1; // 0x1 - field public static final int NONE = 0; // 0x0 - field public int eventType; - field public java.lang.String packageName; - field public long timeStamp; } public final class UsageStatsManager { - method public android.app.usage.UsageStats[] getDailyStatsSince(long); - method public android.app.usage.UsageStats[] getMonthlyStatsSince(long); - method public android.app.usage.UsageStats getRecentStatsSince(long); - method public android.app.usage.UsageStats[] getWeeklyStatsSince(long); - method public android.app.usage.UsageStats[] getYearlyStatsSince(long); + method public android.util.ArrayMap<java.lang.String, android.app.usage.UsageStats> queryAndAggregateUsageStats(long, long); + method public android.app.usage.UsageEvents queryEvents(long, long); + method public java.util.List<android.app.usage.UsageStats> queryUsageStats(int, long, long); + field public static final int INTERVAL_BEST = 4; // 0x4 + field public static final int INTERVAL_DAILY = 0; // 0x0 + field public static final int INTERVAL_MONTHLY = 2; // 0x2 + field public static final int INTERVAL_WEEKLY = 1; // 0x1 + field public static final int INTERVAL_YEARLY = 3; // 0x3 } } |