Home
last modified time | relevance | path

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

12

/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java21 import android.app.usage.UsageStatsManager;
137 mSortedStatFiles[UsageStatsManager.INTERVAL_DAILY]; in checkinDailyFiles()
492 pruneFilesOlderThan(mIntervalDirs[UsageStatsManager.INTERVAL_YEARLY], in prune()
497 pruneFilesOlderThan(mIntervalDirs[UsageStatsManager.INTERVAL_MONTHLY], in prune()
502 pruneFilesOlderThan(mIntervalDirs[UsageStatsManager.INTERVAL_WEEKLY], in prune()
507 pruneFilesOlderThan(mIntervalDirs[UsageStatsManager.INTERVAL_DAILY], in prune()
615 out.writeInt(mSortedStatFiles[UsageStatsManager.INTERVAL_DAILY].size()); in getBackupPayload()
616 for (int i = 0; i < mSortedStatFiles[UsageStatsManager.INTERVAL_DAILY].size(); in getBackupPayload()
619 mSortedStatFiles[UsageStatsManager.INTERVAL_DAILY].valueAt(i)); in getBackupPayload()
622 out.writeInt(mSortedStatFiles[UsageStatsManager.INTERVAL_WEEKLY].size()); in getBackupPayload()
[all …]
DUserUsageStatsService.java23 import android.app.usage.UsageStatsManager;
85 mCurrentStats = new IntervalStats[UsageStatsManager.INTERVAL_COUNT]; in UserUsageStatsService()
162 final IntervalStats currentDailyStats = mCurrentStats[UsageStatsManager.INTERVAL_DAILY]; in reportEvent()
240 if (intervalType == UsageStatsManager.INTERVAL_BEST) { in queryStats()
245 intervalType = UsageStatsManager.INTERVAL_DAILY; in queryStats()
315 List<UsageEvents.Event> results = queryStats(UsageStatsManager.INTERVAL_DAILY, in queryEvents()
378 mCurrentStats[UsageStatsManager.INTERVAL_DAILY].activeConfiguration; in rolloverStats()
403 final long beginTime = mCurrentStats[UsageStatsManager.INTERVAL_DAILY].beginTime; in rolloverStats()
462 mCurrentStats[UsageStatsManager.INTERVAL_DAILY].beginTime); in updateRolloverDeadline()
599 case UsageStatsManager.INTERVAL_DAILY: in intervalToString()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserWrapperActivity.java19 import android.app.usage.UsageStatsManager;
32 private UsageStatsManager mUsm;
40 UsageStatsManager getUsageStatsManager() { in getUsageStatsManager()
42 mUsm = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in getUsageStatsManager()
DResolverWrapperActivity.java19 import android.app.usage.UsageStatsManager;
36 private UsageStatsManager mUsm;
DResolverListControllerTest.java40 import android.app.usage.UsageStatsManager;
72 private UsageStatsManager mUsm;
114 mUsm = new UsageStatsManager(mMockContext, mMockService); in reportChooserSelection()
149 UsageStatsManager usm, String packageName, String action, String annotation) { in getCount()
DChooserActivityTest.java29 import android.app.usage.UsageStatsManager;
138 UsageStatsManager usm = activity.getUsageStatsManager(); in updateChooserCountsAndModelAfterUserSelection()
DResolverActivityTest.java29 import android.app.usage.UsageStatsManager;
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java20 import android.app.usage.UsageStatsManager;
34 private UsageStatsManager mUsageStatsManager;
42 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
DUsageStatsActivity.java22 import android.app.usage.UsageStatsManager;
47 private UsageStatsManager mUsageStatsManager;
59 mUsageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE); in onCreate()
/frameworks/base/core/java/android/app/usage/
DUsageStatsManager.java57 public final class UsageStatsManager { class
100 public UsageStatsManager(Context context, IUsageStatsManager service) { in UsageStatsManager() method in UsageStatsManager
/frameworks/base/core/java/com/android/internal/app/
DResolverComparator.java21 import android.app.usage.UsageStatsManager;
91 private final UsageStatsManager mUsm;
165 mUsm = (UsageStatsManager) context.getSystemService(Context.USAGE_STATS_SERVICE); in ResolverComparator()
DChooserActivity.java24 import android.app.usage.UsageStatsManager;
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java24 import android.app.usage.UsageStatsManager;
179 mUsageStats.queryUsageStatsForUser(info.id, UsageStatsManager.INTERVAL_BEST, in getUnfulfilledRequests()
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java30 import android.app.usage.UsageStatsManager;
717 registerService(Context.USAGE_STATS_SERVICE, UsageStatsManager.class, in registerService()
718 new CachedServiceFetcher<UsageStatsManager>() { in registerService()
720 … public UsageStatsManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
723 return new UsageStatsManager(ctx.getOuterContext(), service); in registerService()
DAppOpsManager.java23 import android.app.usage.UsageStatsManager;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DUiccCard.java20 import android.app.usage.UsageStatsManager;
455 UsageStatsManager usm = (UsageStatsManager) mContext.getSystemService( in onCarrierPriviligesLoadedMessage()
/frameworks/base/core/java/android/content/pm/
DShortcutManager.java24 import android.app.usage.UsageStatsManager;
/frameworks/base/cmds/am/src/com/android/commands/am/
DAm.java36 import android.app.usage.UsageStatsManager;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java31 import android.app.usage.UsageStatsManager;
492 private final UsageStatsManager mUsageStatManager = null;
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java30 import android.app.usage.UsageStatsManager;
1548 UsageStatsManager.INTERVAL_BEST, nDaysAgo, now, "com.android.shell");
/frameworks/base/
Dpreloaded-classes679 android.app.usage.UsageStatsManager
Dcompiled-classes-phone674 android.app.usage.UsageStatsManager
/frameworks/base/services/
Dprofile-classes398 Landroid/app/usage/UsageStatsManager;
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt5651 public final class UsageStatsManager {
/frameworks/base/api/
Dcurrent.txt7022 public final class UsageStatsManager {

12