Home
last modified time | relevance | path

Searched refs:sentCount (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java132 stats.avgSentDaily = Math.round((float) stats.sentCount / DAYS_TO_CHECK); in calculateAvgSentCounts()
133 if (stats.sentCount < DAYS_TO_CHECK) { in calculateAvgSentCounts()
134 stats.avgSentWeekly = stats.sentCount; in calculateAvgSentCounts()
167 stats.sentCount++; in getAggregatedUsageEvents()
200 stats.sentCount++; in getAggregatedUsageEvents()
268 return state.sentCount != 0;
314 if (state1.sentCount < state2.sentCount) return 1;
315 if (state1.sentCount > state2.sentCount) return -1;
347 public int sentCount = 0; field in NotificationsSentState
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateNotificationBridge.java130 stats.avgSentDaily = Math.round((float) stats.sentCount / DAYS_TO_CHECK); in calculateAvgSentCounts()
131 if (stats.sentCount < DAYS_TO_CHECK) { in calculateAvgSentCounts()
132 stats.avgSentWeekly = stats.sentCount; in calculateAvgSentCounts()
165 stats.sentCount++; in getAggregatedUsageEvents()
198 stats.sentCount++; in getAggregatedUsageEvents()
266 return state.sentCount != 0;
312 if (state1.sentCount < state2.sentCount) return 1;
313 if (state1.sentCount > state2.sentCount) return -1;
345 public int sentCount = 0; field in NotificationsSentState
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java153 assertThat(map.get(AppStateNotificationBridge.getKey(0, PKG1)).sentCount).isEqualTo(1); in testGetAggregatedUsageEvents_onlyNotificationEvents()
175 assertThat(map.get(AppStateNotificationBridge.getKey(0, PKG1)).sentCount).isEqualTo(2); in testGetAggregatedUsageEvents_multipleEventsAgg()
199 assertThat(map.get(AppStateNotificationBridge.getKey(0, PKG1)).sentCount).isEqualTo(1); in testGetAggregatedUsageEvents_multiplePkgs()
200 assertThat(map.get(AppStateNotificationBridge.getKey(0, PKG2)).sentCount).isEqualTo(1); in testGetAggregatedUsageEvents_multiplePkgs()
237 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(7); in testLoadAllExtraInfo_multipleEventsAgg()
272 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(8); in testLoadAllExtraInfo_multiplePkgs()
277 assertThat(((NotificationsSentState) apps.get(1).extraInfo).sentCount).isEqualTo(1); in testLoadAllExtraInfo_multiplePkgs()
328 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(8); in testLoadAllExtraInfo_multipleUsers()
333 assertThat(((NotificationsSentState) apps.get(1).extraInfo).sentCount).isEqualTo(4); in testLoadAllExtraInfo_multipleUsers()
368 assertThat(((NotificationsSentState) entry.extraInfo).sentCount).isEqualTo(13); in testUpdateExtraInfo_multipleEventsAgg()
[all …]
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/
DTcpSocketTracker.java260 ? (mSentSinceLastRecv + stat.sentCount) : 0; in pollSocketsInfo()
262 mLatestPacketFailPercentage = ((stat.sentCount != 0) in pollSocketsInfo()
263 ? ((stat.retransmitCount + stat.lostCount) * 100 / stat.sentCount) : 0); in pollSocketsInfo()
345 stat.sentCount = current.tcpInfo.mSegsOut; in calculateLatestPacketsStat()
351 stat.sentCount -= previous.tcpInfo.mSegsOut; in calculateLatestPacketsStat()
507 public int sentCount; field in TcpSocketTracker.TcpStat
515 sentCount += stat.sentCount; in accumulate()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSliceTest.java354 private AppRow buildAppRow(int channelCount, int sentCount, boolean banned) { in buildAppRow() argument
361 appRow.sentByApp.sentCount = sentCount; in buildAppRow()
362 appRow.sentByChannel = buildNotificationSentStates(channelCount, sentCount); in buildAppRow()
389 int sentCount) { in buildNotificationSentStates() argument
395 state.sentCount = sentCount; in buildNotificationSentStates()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationBackend.java386 stats.sentCount++; in recordAggregatedUsageEvents()
387 appRow.sentByApp.sentCount++; in recordAggregatedUsageEvents()
418 stats.avgSentDaily = Math.round((float) stats.sentCount / DAYS_TO_CHECK); in calculateAvgSentCounts()
419 if (stats.sentCount < DAYS_TO_CHECK) { in calculateAvgSentCounts()
420 stats.avgSentWeekly = stats.sentCount; in calculateAvgSentCounts()
456 public int sentCount = 0; field in NotificationBackend.NotificationsSentState
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java403 stats.sentCount++; in recordAggregatedUsageEvents()
404 appRow.sentByApp.sentCount++; in recordAggregatedUsageEvents()
437 stats.avgSentDaily = Math.round((float) stats.sentCount / DAYS_TO_CHECK); in calculateAvgSentCounts()
438 if (stats.sentCount < DAYS_TO_CHECK) { in calculateAvgSentCounts()
439 stats.avgSentWeekly = stats.sentCount; in calculateAvgSentCounts()
475 public int sentCount = 0; field in NotificationBackend.NotificationsSentState
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSlice.java397 final int sentCount = appRow.sentByApp.sentCount; in getEligibleNotificationsPackage() local
398 if (sentCount >= MIN_NOTIFICATION_SENT_COUNT && sentCount > maxSentCount) { in getEligibleNotificationsPackage()
399 maxSentCount = sentCount; in getEligibleNotificationsPackage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DNotificationChannelSlice.java396 final int sentCount = appRow.sentByApp.sentCount; in getMaxSentNotificationsPackage() local
397 if (sentCount >= MIN_NOTIFICATION_SENT_COUNT && sentCount > maxSentCount) { in getMaxSentNotificationsPackage()
398 maxSentCount = sentCount; in getMaxSentNotificationsPackage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationBackendTest.java122 assertThat(appRow.sentByChannel.get("channel1").sentCount).isEqualTo(2); in testGetAggregatedUsageEvents_multipleEventsAgg()
125 assertThat(appRow.sentByChannel.get("channel2").sentCount).isEqualTo(1); in testGetAggregatedUsageEvents_multipleEventsAgg()
128 assertThat(appRow.sentByApp.sentCount).isEqualTo(3); in testGetAggregatedUsageEvents_multipleEventsAgg()