Searched refs:usageEvents (Results 1 – 8 of 8) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppStateNotificationBridgeTest.java | 115 UsageEvents usageEvents = new UsageEvents(events, new String[] {PKG1, PKG2}); in getUsageEvents() local 118 usageEvents.writeToParcel(parcel, 0); in getUsageEvents() 145 UsageEvents usageEvents = getUsageEvents(events); in testGetAggregatedUsageEvents_onlyNotificationEvents() local 147 .thenReturn(usageEvents); in testGetAggregatedUsageEvents_onlyNotificationEvents() 167 UsageEvents usageEvents = getUsageEvents(events); in testGetAggregatedUsageEvents_multipleEventsAgg() local 169 .thenReturn(usageEvents); in testGetAggregatedUsageEvents_multipleEventsAgg() 190 UsageEvents usageEvents = getUsageEvents(events); in testGetAggregatedUsageEvents_multiplePkgs() local 192 .thenReturn(usageEvents); in testGetAggregatedUsageEvents_multiplePkgs() 230 UsageEvents usageEvents = getUsageEvents(events); in testLoadAllExtraInfo_multipleEventsAgg() local 232 .thenReturn(usageEvents); in testLoadAllExtraInfo_multipleEventsAgg() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/ |
D | RecentNotificationsAppsPreferenceControllerTest.java | 142 UsageEvents usageEvents = getUsageEvents( in areEvents_showValidRecents() local 146 .thenReturn(usageEvents); in areEvents_showValidRecents() 185 UsageEvents usageEvents = getUsageEvents( in areEvents_showMaximumRecents() local 189 .thenReturn(usageEvents); in areEvents_showMaximumRecents() 204 UsageEvents usageEvents = new UsageEvents(events, pkgs); in getUsageEvents() local 207 usageEvents.writeToParcel(parcel, 0); in getUsageEvents()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | DataProcessor.java | 325 final UsageEvents usageEvents = usageEventsMap.get(userId); in generateAppUsageEventListFromUsageEvents() local 326 while (usageEvents.hasNextEvent()) { in generateAppUsageEventListFromUsageEvents() 328 usageEvents.getNextEvent(event); in generateAppUsageEventListFromUsageEvents() 737 final List<AppUsageEvent> usageEvents = usageEventsByInstanceId.valueAt(i); in buildAppUsagePeriodList() local 738 if (usageEvents == null || usageEvents.isEmpty()) { in buildAppUsagePeriodList() 742 final AppUsageEvent firstEvent = usageEvents.get(0); in buildAppUsagePeriodList() 750 usageEvents.addAll(deviceEvents); in buildAppUsagePeriodList() 753 Collections.sort(usageEvents, APP_USAGE_EVENT_TIMESTAMP_COMPARATOR); in buildAppUsagePeriodList() 759 buildAppUsagePeriodListPerInstance(usageEvents, startTime, endTime), in buildAppUsagePeriodList() 782 final List<AppUsageEvent> usageEvents, final long startTime, final long endTime) { in buildAppUsagePeriodListPerInstance() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/spa/notification/ |
D | AppNotificationsListModel.kt | 62 .combine(appListFlow) { usageEvents, appList -> in <lambda>() method 66 sentState = usageEvents[app.packageName], in <lambda>()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/notification/ |
D | AppNotificationRepositoryTest.kt | 147 val usageEvents = repository.getAggregatedUsageEvents(flowOf(USER_ID)).first() in <lambda>() constant 149 assertThat(usageEvents).containsExactly( in <lambda>()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | NotificationBackendTest.java | 195 UsageEvents usageEvents = new UsageEvents(events, new String[] {"pkg"}); in getUsageEvents() local 198 usageEvents.writeToParcel(parcel, 0); in getUsageEvents()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | DataProcessManagerTest.java | 432 UsageEvents usageEvents = new UsageEvents(events, new String[] {"package"}); in getUsageEvents() local 435 usageEvents.writeToParcel(parcel, 0); in getUsageEvents()
|
D | DataProcessorTest.java | 2420 UsageEvents usageEvents = new UsageEvents(events, new String[] {"package"}); in getUsageEvents() local 2423 usageEvents.writeToParcel(parcel, 0); in getUsageEvents()
|