/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsProto.java | 20 import android.app.usage.UsageStats; 68 UsageStats stats; in loadUsageStats() 69 if (proto.isNextField(IntervalStatsProto.UsageStats.PACKAGE_INDEX)) { in loadUsageStats() 73 stringPool.get(proto.readInt(IntervalStatsProto.UsageStats.PACKAGE_INDEX) - 1)); in loadUsageStats() 74 } else if (proto.isNextField(IntervalStatsProto.UsageStats.PACKAGE)) { in loadUsageStats() 77 proto.readString(IntervalStatsProto.UsageStats.PACKAGE)); in loadUsageStats() 80 stats = new UsageStats(); in loadUsageStats() 85 case (int) IntervalStatsProto.UsageStats.PACKAGE: in loadUsageStats() 87 UsageStats tempPackage = statsOut.getOrCreateUsageStats( in loadUsageStats() 88 proto.readString(IntervalStatsProto.UsageStats.PACKAGE)); in loadUsageStats() [all …]
|
D | IntervalStats.java | 43 import android.app.usage.UsageStats; 66 public final ArrayMap<String, UsageStats> packageStats = new ArrayMap<>(); 121 UsageStats getOrCreateUsageStats(String packageName) { in getOrCreateUsageStats() 122 UsageStats usageStats = packageStats.get(packageName); in getOrCreateUsageStats() 124 usageStats = new UsageStats(); in getOrCreateUsageStats() 301 UsageStats usageStats = packageStats.valueAt(i); in update() 305 UsageStats usageStats = getOrCreateUsageStats(packageName); in update() 339 UsageStats usageStats = getOrCreateUsageStats(packageName); in updateChooserCounts() 374 UsageStats usageStats = getOrCreateUsageStats(packageName); in incrementAppLaunchCount()
|
D | UserUsageStatsService.java | 34 import android.app.usage.UsageStats; 248 private static final StatCombiner<UsageStats> sUsageStatsCombiner = 249 new StatCombiner<UsageStats>() { 252 List<UsageStats> accResult) { 260 accResult.add(new UsageStats(stats.packageStats.valueAt(i))); 362 List<UsageStats> queryUsageStats(int bucketType, long beginTime, long endTime) { in queryUsageStats() 489 final UsageStats pkgStats = stat.packageStats.valueAt(i); in rolloverStats() 833 final ArrayMap<String, UsageStats> pkgStats = stats.packageStats; in printIntervalStats() 836 final UsageStats usageStats = pkgStats.valueAt(i); in printIntervalStats() 860 for (UsageStats usageStats : pkgStats.values()) { in printIntervalStats()
|
D | UsageStatsXmlV1.java | 20 import android.app.usage.UsageStats; 91 final UsageStats stats = statsOut.getOrCreateUsageStats(pkg); in loadUsageStats() 154 XmlPullParser parser, UsageStats usageStats, String action) in loadChooserCounts() 247 final UsageStats usageStats) throws IOException { in writeUsageStats() 278 private static void writeChooserCounts(XmlSerializer xml, final UsageStats usageStats) in writeChooserCounts()
|
D | UsageStatsService.java | 41 import android.app.usage.UsageStats; 621 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime, in queryUsageStats() 631 List<UsageStats> list = service.queryUsageStats(bucketType, beginTime, endTime); in queryUsageStats() 640 final UsageStats stats = list.get(i); in queryUsageStats() 990 public ParceledListSlice<UsageStats> queryUsageStats(int bucketType, long beginTime, in queryUsageStats() 1002 final List<UsageStats> results = UsageStatsService.this.queryUsageStats( in queryUsageStats() 1773 public List<UsageStats> queryUsageStatsForUser( in queryUsageStatsForUser()
|
D | UsageStatsDatabase.java | 20 import android.app.usage.UsageStats; 771 UsageStats pkgStats = stats.packageStats.valueAt(i); in pruneChooserCountsOlderThan()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverListControllerTest.java | 29 import android.app.usage.UsageStats; 94 UsageStats packageStats = initStats(packageName, action, annotation, initialCount); in reportChooserSelection() 95 UsageStats oneClickStats = initStats(packageName, action, annotation, 1); in reportChooserSelection() 96 final List<UsageStats> slices = new ArrayList<>(); in reportChooserSelection() 98 ParceledListSlice<UsageStats> stats = new ParceledListSlice<>(slices); in reportChooserSelection() 122 private UsageStats initStats(String packageName, String action, in initStats() 128 UsageStats packageStats = new UsageStats(); in initStats() 150 Map<String, UsageStats> stats = in getCount() 152 UsageStats packageStats = stats.get(packageName); in getCount()
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStats.java | 44 public final class UsageStats implements Parcelable { class 146 public UsageStats() { in UsageStats() method in UsageStats 149 public UsageStats(UsageStats stats) { in UsageStats() method in UsageStats 170 public UsageStats getObfuscatedForInstantApp() { in getObfuscatedForInstantApp() 171 final UsageStats ret = new UsageStats(this); in getObfuscatedForInstantApp() 294 public void add(UsageStats right) { in add() 639 …blic static final @android.annotation.NonNull Creator<UsageStats> CREATOR = new Creator<UsageStats… 641 public UsageStats createFromParcel(Parcel in) { 642 UsageStats stats = new UsageStats(); 698 public UsageStats[] newArray(int size) { [all …]
|
D | CacheQuotaHint.java | 40 private final UsageStats mUsageStats; 66 public UsageStats getUsageStats() { in getUsageStats() 103 private UsageStats mUsageStats; 127 public @NonNull Builder setUsageStats(@Nullable UsageStats stats) { in setUsageStats() 151 .setUsageStats(in.readParcelable(UsageStats.class.getClassLoader()))
|
D | UsageStatsManager.java | 308 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) { in queryUsageStats() 311 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats() 457 public Map<String, UsageStats> queryAndAggregateUsageStats(long beginTime, long endTime) { in queryAndAggregateUsageStats() 458 List<UsageStats> stats = queryUsageStats(INTERVAL_BEST, beginTime, endTime); in queryAndAggregateUsageStats() 463 ArrayMap<String, UsageStats> aggregatedStats = new ArrayMap<>(); in queryAndAggregateUsageStats() 466 UsageStats newStat = stats.get(i); in queryAndAggregateUsageStats() 467 UsageStats existingStat = aggregatedStats.get(newStat.getPackageName()); in queryAndAggregateUsageStats()
|
D | UsageStatsManagerInternal.java | 220 public abstract List<UsageStats> queryUsageStatsForUser(@UserIdInt int userId, int interval, in queryUsageStatsForUser()
|
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
D | UsageStatsActivity.java | 22 import android.app.usage.UsageStats; 58 private Comparator<UsageStats> mComparator = new Comparator<UsageStats>() { 60 public int compare(UsageStats o1, UsageStats o2) { 226 Map<String, UsageStats> stats = mUsageStatsManager.queryAndAggregateUsageStats( in updateAdapter() 232 private ArrayList<UsageStats> mStats = new ArrayList<>(); 234 public void update(Map<String, UsageStats> stats) { in update()
|
/frameworks/base/core/proto/android/server/ |
D | usagestatsservice.proto | 35 // Stores the relevant information from a UsageStats 36 message UsageStats { message 101 // stringpool contains all the package and class names used by UsageStats and Event 114 repeated UsageStats packages = 20;
|
/frameworks/base/core/tests/coretests/src/android/app/usage/ |
D | UsageStatsTest.java | 48 private UsageStats left; 49 private UsageStats right; 53 left = new UsageStats(); in setUp() 54 right = new UsageStats(); in setUp() 137 right = UsageStats.CREATOR.createFromParcel(p); in testParcelable() 572 void compareUsageStats(UsageStats us1, UsageStats us2) {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | UsageStatsDatabaseTest.java | 27 import android.app.usage.UsageStats; 245 void compareUsageStats(UsageStats us1, UsageStats us2) { in compareUsageStats() 310 UsageStats usageStats1 = stats1.packageStats.get(usageKey1[i]); in compareIntervalStats() 311 UsageStats usageStats2 = stats2.packageStats.get(usageKey2[i]); in compareIntervalStats()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | CacheQuotaStrategy.java | 23 import android.app.usage.UsageStats; 177 List<UsageStats> stats = in getUnfulfilledRequests() 184 for (UsageStats stat : stats) { in getUnfulfilledRequests()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverRankerServiceResolverComparator.java | 20 import android.app.usage.UsageStats; 71 private final Map<String, UsageStats> mStats; 144 final UsageStats pkStats = mStats.get(target.name.getPackageName()); in doCompute()
|
/frameworks/base/services/core/java/com/android/server/biometrics/face/ |
D | FaceService.java | 140 private class UsageStats { class in FaceService 154 UsageStats(Context context) { in UsageStats() method in FaceService.UsageStats 839 private UsageStats mUsageStats; 1052 mUsageStats = new UsageStats(context); in FaceService()
|
/frameworks/base/config/ |
D | preloaded-classes | 656 android.app.usage.UsageStats$1 657 android.app.usage.UsageStats
|
D | boot-image-profile.txt | 3060 HSPLandroid/app/usage/CacheQuotaHint;->getUsageStats()Landroid/app/usage/UsageStats; 3118 HSPLandroid/app/usage/UsageStats$1;-><init>()V 3119 HSPLandroid/app/usage/UsageStats$1;->createFromParcel(Landroid/os/Parcel;)Landroid/app/usage/UsageS… 3120 HSPLandroid/app/usage/UsageStats$1;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object; 3121 HSPLandroid/app/usage/UsageStats$1;->readBundleToEventMap(Landroid/os/Bundle;Landroid/util/ArrayMap… 3122 HSPLandroid/app/usage/UsageStats;-><init>()V 3123 HSPLandroid/app/usage/UsageStats;-><init>(Landroid/app/usage/UsageStats;)V 3124 HSPLandroid/app/usage/UsageStats;->eventMapToBundle(Landroid/util/ArrayMap;)Landroid/os/Bundle; 3125 HSPLandroid/app/usage/UsageStats;->getLastTimeUsed()J 3126 HSPLandroid/app/usage/UsageStats;->getPackageName()Ljava/lang/String; [all …]
|
/frameworks/base/api/ |
D | system-current.txt | 1204 method public android.app.usage.UsageStats getUsageStats(); 1217 …lic android.app.usage.CacheQuotaHint.Builder setUsageStats(@Nullable android.app.usage.UsageStats); 1246 public final class UsageStats implements android.os.Parcelable {
|
/frameworks/base/non-updatable-api/ |
D | system-current.txt | 1204 method public android.app.usage.UsageStats getUsageStats(); 1217 …lic android.app.usage.CacheQuotaHint.Builder setUsageStats(@Nullable android.app.usage.UsageStats); 1246 public final class UsageStats implements android.os.Parcelable {
|
D | current.txt | 7767 public final class UsageStats implements android.os.Parcelable { 7768 ctor public UsageStats(android.app.usage.UsageStats); 7769 method public void add(android.app.usage.UsageStats); 7781 …field @NonNull public static final android.os.Parcelable.Creator<android.app.usage.UsageStats> CRE… 7787 …method public java.util.Map<java.lang.String,android.app.usage.UsageStats> queryAndAggregateUsageS… 7792 method public java.util.List<android.app.usage.UsageStats> queryUsageStats(int, long, long);
|
/frameworks/base/services/ |
D | art-profile | 13705 …erver/usage/IntervalStats;->getOrCreateUsageStats(Ljava/lang/String;)Landroid/app/usage/UsageStats; 13767 …tatsProto;->loadChooserCounts(Landroid/util/proto/ProtoInputStream;Landroid/app/usage/UsageStats;)V 13775 …tsProto;->writeChooserCounts(Landroid/util/proto/ProtoOutputStream;Landroid/app/usage/UsageStats;)V 13780 …l/proto/ProtoOutputStream;JLcom/android/server/usage/IntervalStats;Landroid/app/usage/UsageStats;)V
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 5638 public final class UsageStats implements android.os.Parcelable { 5639 ctor public UsageStats(android.app.usage.UsageStats); 5640 method public void add(android.app.usage.UsageStats); 5648 field public static final android.os.Parcelable.Creator<android.app.usage.UsageStats> CREATOR; 5652 …method public java.util.Map<java.lang.String, android.app.usage.UsageStats> queryAndAggregateUsage… 5655 method public java.util.List<android.app.usage.UsageStats> queryUsageStats(int, long, long);
|