Home
last modified time | relevance | path

Searched refs:UsageStats (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/core/java/android/app/usage/
DUsageStats.java28 public final class UsageStats implements Parcelable { class
74 public UsageStats() { in UsageStats() method in UsageStats
77 public UsageStats(UsageStats stats) { in UsageStats() method in UsageStats
91 public UsageStats getObfuscatedForInstantApp() { in getObfuscatedForInstantApp()
92 final UsageStats ret = new UsageStats(this); in getObfuscatedForInstantApp()
146 public void add(UsageStats right) { in add()
217 public static final Creator<UsageStats> CREATOR = new Creator<UsageStats>() {
219 public UsageStats createFromParcel(Parcel in) {
220 UsageStats stats = new UsageStats();
251 public UsageStats[] newArray(int size) {
[all …]
DUsageStatsManager.java133 public List<UsageStats> queryUsageStats(int intervalType, long beginTime, long endTime) { in queryUsageStats()
136 ParceledListSlice<UsageStats> slice = mService.queryUsageStats(intervalType, beginTime, in queryUsageStats()
206 public Map<String, UsageStats> queryAndAggregateUsageStats(long beginTime, long endTime) { in queryAndAggregateUsageStats()
207 List<UsageStats> stats = queryUsageStats(INTERVAL_BEST, beginTime, endTime); in queryAndAggregateUsageStats()
212 ArrayMap<String, UsageStats> aggregatedStats = new ArrayMap<>(); in queryAndAggregateUsageStats()
215 UsageStats newStat = stats.get(i); in queryAndAggregateUsageStats()
216 UsageStats existingStat = aggregatedStats.get(newStat.getPackageName()); in queryAndAggregateUsageStats()
DCacheQuotaHint.java40 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()))
DUsageStatsManagerInternal.java136 public abstract List<UsageStats> queryUsageStatsForUser( in queryUsageStatsForUser()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverListControllerTest.java39 import android.app.usage.UsageStats;
97 UsageStats packageStats = initStats(packageName, action, annotation, initialCount); in reportChooserSelection()
98 UsageStats oneClickStats = initStats(packageName, action, annotation, 1); in reportChooserSelection()
99 final List<UsageStats> slices = new ArrayList<>(); in reportChooserSelection()
101 ParceledListSlice<UsageStats> stats = new ParceledListSlice<>(slices); in reportChooserSelection()
125 private UsageStats initStats(String packageName, String action, in initStats()
131 UsageStats packageStats = new UsageStats(); in initStats()
153 Map<String, UsageStats> stats = in getCount()
155 UsageStats packageStats = stats.get(packageName); in getCount()
DResolverActivityTest.java28 import android.app.usage.UsageStats;
DChooserActivityTest.java28 import android.app.usage.UsageStats;
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageStatsActivity.java21 import android.app.usage.UsageStats;
49 private Comparator<UsageStats> mComparator = new Comparator<UsageStats>() {
51 public int compare(UsageStats o1, UsageStats o2) {
130 Map<String, UsageStats> stats = mUsageStatsManager.queryAndAggregateUsageStats( in updateAdapter()
136 private ArrayList<UsageStats> mStats = new ArrayList<>();
138 public void update(Map<String, UsageStats> stats) { in update()
/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java21 import android.app.usage.UsageStats;
30 public final ArrayMap<String, UsageStats> packageStats = new ArrayMap<>();
44 UsageStats getOrCreateUsageStats(String packageName) { in getOrCreateUsageStats()
45 UsageStats usageStats = packageStats.get(packageName); in getOrCreateUsageStats()
47 usageStats = new UsageStats(); in getOrCreateUsageStats()
96 UsageStats usageStats = getOrCreateUsageStats(packageName); in update()
125 UsageStats usageStats = getOrCreateUsageStats(packageName); in updateChooserCounts()
DUserUsageStatsService.java22 import android.app.usage.UsageStats;
127 UsageStats pkgStats = stat.packageStats.valueAt(i); in init()
199 private static final StatCombiner<UsageStats> sUsageStatsCombiner =
200 new StatCombiner<UsageStats>() {
203 List<UsageStats> accResult) {
211 accResult.add(new UsageStats(stats.packageStats.valueAt(i)));
304 List<UsageStats> queryUsageStats(int bucketType, long beginTime, long endTime) { in queryUsageStats()
383 UsageStats pkgStats = stat.packageStats.valueAt(i); in rolloverStats()
520 final ArrayMap<String, UsageStats> pkgStats = stats.packageStats; in printIntervalStats()
523 final UsageStats usageStats = pkgStats.valueAt(i); in printIntervalStats()
[all …]
DUsageStatsXmlV1.java27 import android.app.usage.UsageStats;
79 final UsageStats stats = statsOut.getOrCreateUsageStats(pkg); in loadUsageStats()
103 XmlPullParser parser, UsageStats usageStats, String action) in loadChooserCounts()
185 final UsageStats usageStats) throws IOException { in writeUsageStats()
199 private static void writeChooserCounts(XmlSerializer xml, final UsageStats usageStats) in writeChooserCounts()
DUsageStatsService.java29 import android.app.usage.UsageStats;
823 List<UsageStats> queryUsageStats(int userId, int bucketType, long beginTime, long endTime, in queryUsageStats()
833 List<UsageStats> list = service.queryUsageStats(bucketType, beginTime, endTime); in queryUsageStats()
842 final UsageStats stats = list.get(i); in queryUsageStats()
1386 public ParceledListSlice<UsageStats> queryUsageStats(int bucketType, long beginTime, in queryUsageStats()
1398 final List<UsageStats> results = UsageStatsService.this.queryUsageStats( in queryUsageStats()
1694 public List<UsageStats> queryUsageStatsForUser( in queryUsageStatsForUser()
DUsageStatsDatabase.java20 import android.app.usage.UsageStats;
568 UsageStats pkgStats = stats.packageStats.valueAt(i); in pruneChooserCountsOlderThan()
/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java31 private UsageStats left;
32 private UsageStats right;
36 left = new UsageStats(); in setUp()
37 right = new UsageStats(); in setUp()
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/storage/
DCacheQuotaServiceImplTest.java24 import android.app.usage.UsageStats;
144 UsageStats stats = new UsageStats(); in makeNewRequest()
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java23 import android.app.usage.UsageStats;
178 List<UsageStats> stats = in getUnfulfilledRequests()
185 for (UsageStats stat : stats) { in getUnfulfilledRequests()
/frameworks/base/core/java/com/android/internal/app/
DResolverComparator.java20 import android.app.usage.UsageStats;
92 private final Map<String, UsageStats> mStats;
209 final UsageStats pkStats = mStats.get(target.name.getPackageName()); in compute()
/frameworks/base/services/
Dprofile-classes396 Landroid/app/usage/UsageStats;
397 Landroid/app/usage/UsageStats$1;
/frameworks/base/
Dcompiled-classes-phone672 android.app.usage.UsageStats
673 android.app.usage.UsageStats$1
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt5638 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);
/frameworks/base/api/
Dsystem-current.txt7338 method public android.app.usage.UsageStats getUsageStats();
7351 …method public android.app.usage.CacheQuotaHint.Builder setUsageStats(android.app.usage.UsageStats);
7479 public final class UsageStats implements android.os.Parcelable {
7480 ctor public UsageStats(android.app.usage.UsageStats);
7481 method public void add(android.app.usage.UsageStats);
7489 field public static final android.os.Parcelable.Creator<android.app.usage.UsageStats> CREATOR;
7494 …method public java.util.Map<java.lang.String, android.app.usage.UsageStats> queryAndAggregateUsage…
7497 method public java.util.List<android.app.usage.UsageStats> queryUsageStats(int, long, long);
Dcurrent.txt7009 public final class UsageStats implements android.os.Parcelable {
7010 ctor public UsageStats(android.app.usage.UsageStats);
7011 method public void add(android.app.usage.UsageStats);
7019 field public static final android.os.Parcelable.Creator<android.app.usage.UsageStats> CREATOR;
7024 …method public java.util.Map<java.lang.String, android.app.usage.UsageStats> queryAndAggregateUsage…
7027 method public java.util.List<android.app.usage.UsageStats> queryUsageStats(int, long, long);