Home
last modified time | relevance | path

Searched refs:lastSent (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java108 if (state.lastSent == 0) { in getSummary()
112 context, System.currentTimeMillis() - state.lastSent, true); in getSummary()
167 if (event.getTimeStamp() > stats.lastSent) { in getAggregatedUsageEvents()
168 stats.lastSent = event.getTimeStamp(); in getAggregatedUsageEvents()
200 if (event.getTimeStamp() > stats.lastSent) { in getAggregatedUsageEvents()
201 stats.lastSent = event.getTimeStamp(); in getAggregatedUsageEvents()
256 return state.lastSent != 0;
301 if (state1.lastSent < state2.lastSent) return 1;
302 if (state1.lastSent > state2.lastSent) return -1;
349 public long lastSent = 0; field in NotificationsSentState
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateNotificationBridge.java105 if (state.lastSent == 0) { in getSummary()
109 context, System.currentTimeMillis() - state.lastSent, true); in getSummary()
162 if (event.getTimeStamp() > stats.lastSent) { in getAggregatedUsageEvents()
163 stats.lastSent = event.getTimeStamp(); in getAggregatedUsageEvents()
195 if (event.getTimeStamp() > stats.lastSent) { in getAggregatedUsageEvents()
196 stats.lastSent = event.getTimeStamp(); in getAggregatedUsageEvents()
251 return state.lastSent != 0;
296 if (state1.lastSent < state2.lastSent) return 1;
297 if (state1.lastSent > state2.lastSent) return -1;
344 public long lastSent = 0; field in NotificationsSentState
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java176 assertThat(map.get(AppStateNotificationBridge.getKey(0, PKG1)).lastSent).isEqualTo(6); in testGetAggregatedUsageEvents_multipleEventsAgg()
201 assertThat(map.get(AppStateNotificationBridge.getKey(0, PKG1)).lastSent).isEqualTo(6); in testGetAggregatedUsageEvents_multiplePkgs()
202 assertThat(map.get(AppStateNotificationBridge.getKey(0, PKG2)).lastSent).isEqualTo(1); in testGetAggregatedUsageEvents_multiplePkgs()
219 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(0); in testLoadAllExtraInfo_noEvents()
243 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(6); in testLoadAllExtraInfo_multipleEventsAgg()
278 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(7); in testLoadAllExtraInfo_multiplePkgs()
283 assertThat(((NotificationsSentState) apps.get(1).extraInfo).lastSent).isEqualTo(1); in testLoadAllExtraInfo_multiplePkgs()
334 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(7); in testLoadAllExtraInfo_multipleUsers()
339 assertThat(((NotificationsSentState) apps.get(1).extraInfo).lastSent).isEqualTo(3); in testLoadAllExtraInfo_multipleUsers()
374 assertThat(((NotificationsSentState) entry.extraInfo).lastSent).isEqualTo(12); in testUpdateExtraInfo_multipleEventsAgg()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationBackend.java396 if (event.getTimeStamp() > stats.lastSent) { in recordAggregatedUsageEvents()
397 stats.lastSent = event.getTimeStamp(); in recordAggregatedUsageEvents()
398 appRow.sentByApp.lastSent = event.getTimeStamp(); in recordAggregatedUsageEvents()
417 if (state.lastSent == 0) { in getSentSummary()
421 context, System.currentTimeMillis() - state.lastSent, true); in getSentSummary()
469 public long lastSent = 0; field in NotificationBackend.NotificationsSentState
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java476 if (event.getTimeStamp() > stats.lastSent) { in recordAggregatedUsageEvents()
477 stats.lastSent = event.getTimeStamp(); in recordAggregatedUsageEvents()
478 appRow.sentByApp.lastSent = event.getTimeStamp(); in recordAggregatedUsageEvents()
497 if (state.lastSent == 0) { in getSentSummary()
501 context, System.currentTimeMillis() - state.lastSent, true); in getSentSummary()
586 public long lastSent = 0; field in NotificationBackend.NotificationsSentState
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationBackendTest.java123 assertThat(appRow.sentByChannel.get("channel1").lastSent).isEqualTo(6); in testGetAggregatedUsageEvents_multipleEventsAgg()
126 assertThat(appRow.sentByChannel.get("channel2").lastSent).isEqualTo(3); in testGetAggregatedUsageEvents_multipleEventsAgg()
129 assertThat(appRow.sentByApp.lastSent).isEqualTo(6); in testGetAggregatedUsageEvents_multipleEventsAgg()