Home
last modified time | relevance | path

Searched refs:usageStats (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/one/v2/errorhandling/
DRepeatFailureHandlerComponent.java51 UsageStatistics usageStats, int consecutiveFailureThreshold) { in create() argument
53 commandExecutor, previewStarter, usageStats); in create()
55 (fatalErrorHandler, usageStats); in create()
57 RecoverySuccessCallback recoverySuccessCallback = new RecoverySuccessCallback(usageStats); in create()
DRecoverySuccessCallback.java30 RecoverySuccessCallback(UsageStatistics usageStats) { in RecoverySuccessCallback() argument
31 mUsageStats = usageStats; in RecoverySuccessCallback()
DFatalErrorDialogFailureHandler.java35 UsageStatistics usageStats) { in FatalErrorDialogFailureHandler() argument
37 mUsageStats = usageStats; in FatalErrorDialogFailureHandler()
DFastCameraReset.java47 UsageStatistics usageStats) { in FastCameraReset() argument
52 mUsageStats = usageStats; in FastCameraReset()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridge.java75 UsageStats usageStats = map.get(entry.info.packageName); in loadAllExtraInfo() local
76 entry.extraInfo = new UsageStatsState(getDaysSinceLastUse(usageStats), in loadAllExtraInfo()
85 UsageStats usageStats = map.get(app.info.packageName); in updateExtraInfo() local
86 app.extraInfo = new UsageStatsState(getDaysSinceLastUse(usageStats), in updateExtraInfo()
DAppsAsyncLoader.java120 UsageStats usageStats = map.get(app.packageName); in loadApps() local
137 usageStats, in loadApps()
180 List<UsageStats> usageStats = in getLatestUsageStatsByPackageName() local
184 usageStats.stream().collect(Collectors.groupingBy(UsageStats::getPackageName)); in getLatestUsageStatsByPackageName()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DMetadataEntryParser.java212 final JSONArray usageStats = fieldData.getJSONArray(USAGE_STATS); in parseDataToMetaDataEntry() local
213 for (int j = 0; j < usageStats.length(); j++) { in parseDataToMetaDataEntry()
214 final JSONObject usageStat = usageStats.getJSONObject(j); in parseDataToMetaDataEntry()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoaderTest.java388 UsageStats usageStats = mock(UsageStats.class); in registerLastUse() local
389 when(usageStats.getPackageName()).thenReturn(packageName); in registerLastUse()
390 when(usageStats.getLastTimeUsed()).thenReturn(time); in registerLastUse()
391 mUsageStats.put(packageName, usageStats); in registerLastUse()
DAppStateUsageStatsBridgeTest.java412 UsageStats usageStats = mock(UsageStats.class); in registerLastUse() local
413 when(usageStats.getPackageName()).thenReturn(packageName); in registerLastUse()
414 when(usageStats.getLastTimeUsed()).thenReturn(time); in registerLastUse()
415 mUsageStats.put(packageName, usageStats); in registerLastUse()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppGridActivity.java291 UsageStats usageStats = stats.get(currentIndex); in getMostRecentApps() local
292 String packageName = usageStats.mPackageName; in getMostRecentApps()
307 if (usageStats.getTotalTimeInForeground() == 0) { in getMostRecentApps()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java2950 UsageStats usageStats = new UsageStats(usageTypeString, lastTimeUsed, timesUsed); in testUpdateFromMetadataEntry() local
2952 usageStatsList.add(usageStats); in testUpdateFromMetadataEntry()