Home
last modified time | relevance | path

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

/aosp12/packages/apps/Settings/src/com/android/settings/applications/
H A DAppStateNotificationBridge.java110 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
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
H A DAppStateNotificationBridgeTest.java220 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()
375 assertThat(((NotificationsSentState) entry.extraInfo).lastSent).isEqualTo(12); in testUpdateExtraInfo_multipleEventsAgg()
387 sent.lastSent = System.currentTimeMillis() - (2 * DAY_IN_MILLIS); in testSummary_recency()
435 allowState.lastSent = 1; in testFilterRecency()
443 denyState.lastSent = 0; in testFilterRecency()
503 earlier.lastSent = 1; in testRecencyComparator()
[all …]
/aosp12/frameworks/av/media/codec2/hidl/1.0/utils/include/codec2/hidl/1.0/
H A Dtypes.h213 std::chrono::steady_clock::time_point lastSent; member
215 std::chrono::steady_clock::time_point lastSent) in Connection()
217 lastSent(lastSent) { in Connection()
/aosp12/frameworks/base/cmds/incidentd/src/
H A DBroadcaster.cpp165 int64_t lastSent = get_last_sent(); in sendBroadcasts() local
231 lastSent = file->getTimestampNs(); in sendBroadcasts()
233 set_last_sent(lastSent); in sendBroadcasts()
244 return mWorkDirectory->hasMore(lastSent) ? BROADCASTS_REPEAT : BROADCASTS_FINISHED; in sendBroadcasts()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/
H A DNotificationBackend.java510 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
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
H A DNotificationBackendTest.java149 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()
/aosp12/system/netd/server/
H A DTcpSocketMonitor.cpp283 int32_t lastSent = TCPINFO_GET(tcpinfo, tcpi_last_data_sent, tcpinfoLen, 0); in updateSocketStats() local
288 .sentAckDiffMs = lastAck - lastSent, in updateSocketStats()
/aosp12/frameworks/av/media/codec2/hidl/1.0/utils/
H A Dtypes.cpp1007 (now - foundConnection->second.lastSent > mRefreshInterval)) { in send()
1054 foundConnection->second.lastSent = now; in send()