/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateNotificationBridge.java | 135 stats.avgSentDaily = Math.round((float) stats.sentCount / DAYS_TO_CHECK); in calculateAvgSentCounts() 136 if (stats.sentCount < DAYS_TO_CHECK) { in calculateAvgSentCounts() 137 stats.avgSentWeekly = stats.sentCount; in calculateAvgSentCounts() 170 stats.sentCount++; in getAggregatedUsageEvents() 203 stats.sentCount++; in getAggregatedUsageEvents() 271 return state.sentCount != 0; 317 if (state1.sentCount < state2.sentCount) return 1; 318 if (state1.sentCount > state2.sentCount) return -1; 350 public int sentCount = 0; field in NotificationsSentState
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateNotificationBridge.java | 130 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/ |
D | AppStateNotificationBridgeTest.java | 153 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() 242 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(7); in testLoadAllExtraInfo_multipleEventsAgg() 277 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(8); in testLoadAllExtraInfo_multiplePkgs() 282 assertThat(((NotificationsSentState) apps.get(1).extraInfo).sentCount).isEqualTo(1); in testLoadAllExtraInfo_multiplePkgs() 333 assertThat(((NotificationsSentState) apps.get(0).extraInfo).sentCount).isEqualTo(8); in testLoadAllExtraInfo_multipleUsers() 338 assertThat(((NotificationsSentState) apps.get(1).extraInfo).sentCount).isEqualTo(4); in testLoadAllExtraInfo_multipleUsers() 373 assertThat(((NotificationsSentState) entry.extraInfo).sentCount).isEqualTo(13); in testUpdateExtraInfo_multipleEventsAgg() [all …]
|
/packages/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpSocketTracker.java | 260 ? (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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | NotificationBackend.java | 400 stats.sentCount++; in recordAggregatedUsageEvents() 401 appRow.sentByApp.sentCount++; in recordAggregatedUsageEvents() 432 stats.avgSentDaily = Math.round((float) stats.sentCount / DAYS_TO_CHECK); in calculateAvgSentCounts() 433 if (stats.sentCount < DAYS_TO_CHECK) { in calculateAvgSentCounts() 434 stats.avgSentWeekly = stats.sentCount; in calculateAvgSentCounts() 470 public int sentCount = 0; field in NotificationBackend.NotificationsSentState
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationBackend.java | 480 stats.sentCount++; in recordAggregatedUsageEvents() 481 appRow.sentByApp.sentCount++; in recordAggregatedUsageEvents() 514 stats.avgSentDaily = Math.round((float) stats.sentCount / DAYS_TO_CHECK); in calculateAvgSentCounts() 515 if (stats.sentCount < DAYS_TO_CHECK) { in calculateAvgSentCounts() 516 stats.avgSentWeekly = stats.sentCount; in calculateAvgSentCounts() 587 public int sentCount = 0; field in NotificationBackend.NotificationsSentState
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/ |
D | NotificationChannelSlice.java | 396 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/ |
D | NotificationBackendTest.java | 122 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()
|