Home
last modified time | relevance | path

Searched refs:UsageStatsManager (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppIdleHistoryTests.java19 import static android.app.usage.UsageStatsManager.REASON_MAIN_TIMEOUT;
20 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
21 import static android.app.usage.UsageStatsManager.REASON_SUB_USAGE_MOVE_TO_FOREGROUND;
22 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
23 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_FREQUENT;
24 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
25 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_WORKING_SET;
31 import android.app.usage.UsageStatsManager;
DUsageStatsDatabaseTest.java28 import android.app.usage.UsageStatsManager;
359 runWriteReadTest(UsageStatsManager.INTERVAL_DAILY); in testWriteRead()
360 runWriteReadTest(UsageStatsManager.INTERVAL_WEEKLY); in testWriteRead()
361 runWriteReadTest(UsageStatsManager.INTERVAL_MONTHLY); in testWriteRead()
362 runWriteReadTest(UsageStatsManager.INTERVAL_YEARLY); in testWriteRead()
398 prevDB.putUsageStats(UsageStatsManager.INTERVAL_DAILY, mIntervalStats);
408 … List<IntervalStats> stats = newDB.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, 0, mEndTime,
435 runVersionChangeTest(3, 4, UsageStatsManager.INTERVAL_DAILY);
436 runVersionChangeTest(3, 4, UsageStatsManager.INTERVAL_WEEKLY);
437 runVersionChangeTest(3, 4, UsageStatsManager.INTERVAL_MONTHLY);
[all …]
DAppStandbyControllerTests.java25 import static android.app.usage.UsageStatsManager.REASON_MAIN_DEFAULT;
26 import static android.app.usage.UsageStatsManager.REASON_MAIN_FORCED;
27 import static android.app.usage.UsageStatsManager.REASON_MAIN_PREDICTED;
28 import static android.app.usage.UsageStatsManager.REASON_MAIN_TIMEOUT;
29 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
30 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
31 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_EXEMPTED;
32 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_FREQUENT;
33 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_NEVER;
34 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java21 import android.app.usage.UsageStatsManager;
201 mSortedStatFiles[UsageStatsManager.INTERVAL_DAILY]; in checkinDailyFiles()
705 pruneFilesOlderThan(mIntervalDirs[UsageStatsManager.INTERVAL_YEARLY], in prune()
710 pruneFilesOlderThan(mIntervalDirs[UsageStatsManager.INTERVAL_MONTHLY], in prune()
715 pruneFilesOlderThan(mIntervalDirs[UsageStatsManager.INTERVAL_WEEKLY], in prune()
720 pruneFilesOlderThan(mIntervalDirs[UsageStatsManager.INTERVAL_DAILY], in prune()
938 out.writeInt(mSortedStatFiles[UsageStatsManager.INTERVAL_DAILY].size()); in getBackupPayload()
940 for (int i = 0; i < mSortedStatFiles[UsageStatsManager.INTERVAL_DAILY].size(); in getBackupPayload()
943 mSortedStatFiles[UsageStatsManager.INTERVAL_DAILY].valueAt(i), in getBackupPayload()
947 out.writeInt(mSortedStatFiles[UsageStatsManager.INTERVAL_WEEKLY].size()); in getBackupPayload()
[all …]
DAppIdleHistory.java19 import static android.app.usage.UsageStatsManager.REASON_MAIN_DEFAULT;
20 import static android.app.usage.UsageStatsManager.REASON_MAIN_FORCED;
21 import static android.app.usage.UsageStatsManager.REASON_MAIN_MASK;
22 import static android.app.usage.UsageStatsManager.REASON_MAIN_PREDICTED;
23 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
24 import static android.app.usage.UsageStatsManager.REASON_SUB_USAGE_USER_INTERACTION;
25 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
26 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_NEVER;
27 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
28 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_WORKING_SET;
[all …]
DAppStandbyController.java19 import static android.app.usage.UsageStatsManager.REASON_MAIN_DEFAULT;
20 import static android.app.usage.UsageStatsManager.REASON_MAIN_FORCED;
21 import static android.app.usage.UsageStatsManager.REASON_MAIN_MASK;
22 import static android.app.usage.UsageStatsManager.REASON_MAIN_PREDICTED;
23 import static android.app.usage.UsageStatsManager.REASON_MAIN_TIMEOUT;
24 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
25 import static android.app.usage.UsageStatsManager.REASON_SUB_PREDICTED_RESTORED;
26 import static android.app.usage.UsageStatsManager.REASON_SUB_USAGE_ACTIVE_TIMEOUT;
27 import static android.app.usage.UsageStatsManager.REASON_SUB_USAGE_EXEMPTED_SYNC_SCHEDULED_DOZE;
28 import static android.app.usage.UsageStatsManager.REASON_SUB_USAGE_EXEMPTED_SYNC_SCHEDULED_NON_DOZE;
[all …]
DUsageStatsService.java25 import static android.app.usage.UsageStatsManager.USAGE_SOURCE_CURRENT_ACTIVITY;
26 import static android.app.usage.UsageStatsManager.USAGE_SOURCE_TASK_ROOT_ACTIVITY;
42 import android.app.usage.UsageStatsManager;
43 import android.app.usage.UsageStatsManager.StandbyBuckets;
44 import android.app.usage.UsageStatsManager.UsageSource;
198 intent.putExtra(UsageStatsManager.EXTRA_OBSERVER_ID, observerId); in onStart()
199 intent.putExtra(UsageStatsManager.EXTRA_TIME_LIMIT, timeLimit); in onStart()
200 intent.putExtra(UsageStatsManager.EXTRA_TIME_USED, timeElapsed); in onStart()
214 intent.putExtra(UsageStatsManager.EXTRA_OBSERVER_ID, observerId); in onStart()
215 intent.putExtra(UsageStatsManager.EXTRA_TIME_USED, timeElapsed); in onStart()
[all …]
DUserUsageStatsService.java21 import static android.app.usage.UsageStatsManager.INTERVAL_BEST;
22 import static android.app.usage.UsageStatsManager.INTERVAL_COUNT;
23 import static android.app.usage.UsageStatsManager.INTERVAL_DAILY;
24 import static android.app.usage.UsageStatsManager.INTERVAL_MONTHLY;
25 import static android.app.usage.UsageStatsManager.INTERVAL_WEEKLY;
26 import static android.app.usage.UsageStatsManager.INTERVAL_YEARLY;
35 import android.app.usage.UsageStatsManager;
736 pw.printPair("reason", UsageStatsManager.reasonToString(event.getStandbyReason())); in printEvent()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserWrapperActivity.java21 import android.app.usage.UsageStatsManager;
42 private UsageStatsManager mUsm;
50 UsageStatsManager getUsageStatsManager() { in getUsageStatsManager()
52 mUsm = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in getUsageStatsManager()
DResolverWrapperActivity.java21 import android.app.usage.UsageStatsManager;
31 private UsageStatsManager mUsm;
DResolverListControllerTest.java30 import android.app.usage.UsageStatsManager;
69 private UsageStatsManager mUsm;
111 mUsm = new UsageStatsManager(mMockContext, mMockService); in reportChooserSelection()
146 UsageStatsManager usm, String packageName, String action, String annotation) { in getCount()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java20 import android.app.usage.UsageStatsManager;
35 private UsageStatsManager mUsageStatsManager;
43 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
DUsageStatsActivity.java23 import android.app.usage.UsageStatsManager;
54 private UsageStatsManager mUsageStatsManager;
68 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
73 if (extras != null && extras.containsKey(UsageStatsManager.EXTRA_TIME_USED)) { in onCreate()
82 if (extras != null && extras.containsKey(UsageStatsManager.EXTRA_TIME_USED)) { in onNewIntent()
/frameworks/base/core/java/com/android/internal/app/
DAbstractResolverComparator.java19 import android.app.usage.UsageStatsManager;
48 protected final UsageStatsManager mUsm;
99 mUsm = (UsageStatsManager) context.getSystemService(Context.USAGE_STATS_SERVICE); in AbstractResolverComparator()
/frameworks/base/tests/UsageStatsPerfTests/src/com/android/frameworks/perftests/usage/tests/
DUsageStatsDatabasePerfTest.java22 import android.app.usage.UsageStatsManager;
122 UsageStatsManager.INTERVAL_DAILY, 0, 2, sUsageStatsCombiner); in runQueryUsageStatsTest()
/frameworks/base/core/java/android/app/usage/
DAppStandbyInfo.java30 public @UsageStatsManager.StandbyBuckets int mStandbyBucket;
DUsageStatsManagerInternal.java20 import android.app.usage.UsageStatsManager.StandbyBuckets;
DUsageStatsManager.java73 public final class UsageStatsManager { class
277 public UsageStatsManager(Context context, IUsageStatsManager service) { in UsageStatsManager() method in UsageStatsManager
/frameworks/base/tests/UsageReportingTest/src/com/android/tests/usagereporter/
DUsageReporterActivity.java22 import android.app.usage.UsageStatsManager;
49 private UsageStatsManager mUsageStatsManager;
61 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java18 import static android.app.usage.UsageStatsManager.REASON_MAIN_DEFAULT;
19 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE;
46 import android.app.usage.UsageStatsManager;
633 UsageStatsManager.STANDBY_BUCKET_EXEMPTED, REASON_MAIN_DEFAULT); in testExempt()
645 UsageStatsManager.STANDBY_BUCKET_EXEMPTED, REASON_MAIN_DEFAULT); in testExempt()
653 UsageStatsManager.STANDBY_BUCKET_ACTIVE, REASON_MAIN_USAGE); in testExempt()
665 UsageStatsManager.STANDBY_BUCKET_EXEMPTED, REASON_MAIN_DEFAULT); in testExempt()
667 UsageStatsManager.STANDBY_BUCKET_EXEMPTED, REASON_MAIN_DEFAULT); in testExempt()
DAlarmManagerServiceTest.java22 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE;
23 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_FREQUENT;
24 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE;
25 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_WORKING_SET;
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java24 import android.app.usage.UsageStatsManager;
178 mUsageStats.queryUsageStatsForUser(info.id, UsageStatsManager.INTERVAL_BEST, in getUnfulfilledRequests()
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java39 import android.app.usage.UsageStatsManager;
966 registerService(Context.USAGE_STATS_SERVICE, UsageStatsManager.class, in registerService()
967 new CachedServiceFetcher<UsageStatsManager>() { in registerService()
969 … public UsageStatsManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
972 return new UsageStatsManager(ctx.getOuterContext(), service); in registerService()
/frameworks/base/core/java/android/content/pm/
DShortcutManager.java27 import android.app.usage.UsageStatsManager;
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java43 import android.app.usage.UsageStatsManager;
1906 UsageStatsManager.INTERVAL_BEST, nDaysAgo, now, "com.android.shell");
2284 return UsageStatsManager.STANDBY_BUCKET_ACTIVE;
2286 return UsageStatsManager.STANDBY_BUCKET_WORKING_SET;
2288 return UsageStatsManager.STANDBY_BUCKET_FREQUENT;
2290 return UsageStatsManager.STANDBY_BUCKET_RARE;
2292 return UsageStatsManager.STANDBY_BUCKET_NEVER;

12