Searched refs:lastSent (Results 1 – 4 of 4) sorted by relevance
110 if (state.lastSent == 0) { in getSummary()114 context, System.currentTimeMillis() - state.lastSent, true); in getSummary()169 if (event.getTimeStamp() > stats.lastSent) { in getAggregatedUsageEvents()170 stats.lastSent = event.getTimeStamp(); in getAggregatedUsageEvents()202 if (event.getTimeStamp() > stats.lastSent) { in getAggregatedUsageEvents()203 stats.lastSent = event.getTimeStamp(); in getAggregatedUsageEvents()250 return state.lastSent != 0;295 if (state1.lastSent < state2.lastSent) return 1;296 if (state1.lastSent > state2.lastSent) return -1;343 public long lastSent = 0; field in NotificationsSentState
177 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()279 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(7); in testLoadAllExtraInfo_multiplePkgs()284 assertThat(((NotificationsSentState) apps.get(1).extraInfo).lastSent).isEqualTo(1); in testLoadAllExtraInfo_multiplePkgs()335 assertThat(((NotificationsSentState) apps.get(0).extraInfo).lastSent).isEqualTo(7); in testLoadAllExtraInfo_multipleUsers()340 assertThat(((NotificationsSentState) apps.get(1).extraInfo).lastSent).isEqualTo(3); in testLoadAllExtraInfo_multipleUsers()375 assertThat(((NotificationsSentState) entry.extraInfo).lastSent).isEqualTo(12); in testUpdateExtraInfo_multipleEventsAgg()[all …]
510 if (event.getTimeStamp() > stats.lastSent) { in recordAggregatedUsageEvents()511 stats.lastSent = event.getTimeStamp(); in recordAggregatedUsageEvents()512 appRow.sentByApp.lastSent = event.getTimeStamp(); in recordAggregatedUsageEvents()531 if (state.lastSent == 0) { in getSentSummary()535 context, System.currentTimeMillis() - state.lastSent, true); in getSentSummary()681 public long lastSent = 0; field in NotificationBackend.NotificationsSentState
149 assertThat(appRow.sentByChannel.get("channel1").lastSent).isEqualTo(6); in testGetAggregatedUsageEvents_multipleEventsAgg()152 assertThat(appRow.sentByChannel.get("channel2").lastSent).isEqualTo(3); in testGetAggregatedUsageEvents_multipleEventsAgg()155 assertThat(appRow.sentByApp.lastSent).isEqualTo(6); in testGetAggregatedUsageEvents_multipleEventsAgg()