Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java106 if (state.lastSent == 0) { in getSummary()
110 context, System.currentTimeMillis() - state.lastSent, true); in getSummary()
164 if (event.getTimeStamp() > stats.lastSent) { in getAggregatedUsageEvents()
165 stats.lastSent = event.getTimeStamp(); in getAggregatedUsageEvents()
197 if (event.getTimeStamp() > stats.lastSent) { in getAggregatedUsageEvents()
198 stats.lastSent = event.getTimeStamp(); in getAggregatedUsageEvents()
247 return state.lastSent != 0;
292 if (state1.lastSent < state2.lastSent) return 1;
293 if (state1.lastSent > state2.lastSent) return -1;
339 public long lastSent = 0; field in NotificationsSentState
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java177 assertThat(map.get(AppStateNotificationBridge.getKey(0, PKG1)).lastSent).isEqualTo(6); in testGetAggregatedUsageEvents_multipleEventsAgg()
202 assertThat(map.get(AppStateNotificationBridge.getKey(0, PKG1)).lastSent).isEqualTo(6); in testGetAggregatedUsageEvents_multiplePkgs()
203 assertThat(map.get(AppStateNotificationBridge.getKey(0, PKG2)).lastSent).isEqualTo(1); in testGetAggregatedUsageEvents_multiplePkgs()
220 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(0); in testLoadAllExtraInfo_noEvents()
244 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/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java493 if (event.getTimeStamp() > stats.lastSent) { in recordAggregatedUsageEvents()
494 stats.lastSent = event.getTimeStamp(); in recordAggregatedUsageEvents()
495 appRow.sentByApp.lastSent = event.getTimeStamp(); in recordAggregatedUsageEvents()
514 if (state.lastSent == 0) { in getSentSummary()
518 context, System.currentTimeMillis() - state.lastSent, true); in getSentSummary()
669 public long lastSent = 0; field in NotificationBackend.NotificationsSentState
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationBackendTest.java184 assertThat(appRow.sentByChannel.get("channel1").lastSent).isEqualTo(6); in testGetAggregatedUsageEvents_multipleEventsAgg()
187 assertThat(appRow.sentByChannel.get("channel2").lastSent).isEqualTo(3); in testGetAggregatedUsageEvents_multipleEventsAgg()
190 assertThat(appRow.sentByApp.lastSent).isEqualTo(6); in testGetAggregatedUsageEvents_multipleEventsAgg()