/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsHistoryTest.java | 69 private NetworkStatsHistory stats; field in NetworkStatsHistoryTest 73 if (stats != null) { in tearDown() 74 assertConsistent(stats); in tearDown() 109 stats = new NetworkStatsHistory(BUCKET_SIZE); in testRecordSingleBucket() 112 stats.recordData(TEST_START, TEST_START + SECOND_IN_MILLIS, in testRecordSingleBucket() 115 assertEquals(1, stats.size()); in testRecordSingleBucket() 116 assertValues(stats, 0, SECOND_IN_MILLIS, 1024L, 10L, 2048L, 20L, 2L); in testRecordSingleBucket() 122 stats = new NetworkStatsHistory(bucketDuration); in testRecordEqualBuckets() 126 stats.recordData(recordStart, recordStart + bucketDuration, in testRecordEqualBuckets() 129 assertEquals(2, stats.size()); in testRecordEqualBuckets() [all …]
|
D | NetworkStatsTest.java | 71 final NetworkStats stats = new NetworkStats(TEST_START, 5) in testFindIndex() local 83 assertEquals(4, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex() 85 assertEquals(3, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex() 87 assertEquals(2, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex() 89 assertEquals(1, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex() 91 assertEquals(0, stats.findIndex(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex() 93 assertEquals(-1, stats.findIndex(TEST_IFACE, 6, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex() 95 assertEquals(-1, stats.findIndex(TEST_IFACE, 100, SET_DEFAULT, TAG_NONE, METERED_NO, in testFindIndex() 101 final NetworkStats stats = new NetworkStats(TEST_START, 3) in testFindIndexHinted() local 120 for (int hint = 0; hint < stats.size(); hint++) { in testFindIndexHinted() [all …]
|
/packages/modules/StatsD/statsd/tests/guardrail/ |
D | StatsdStats_test.cpp | 31 StatsdStats stats; in TEST() local 37 stats.noteConfigReceived(key, metricsCount, conditionsCount, matchersCount, alertsCount, {}, in TEST() 40 stats.dumpStats(&output, false /*reset stats*/); in TEST() 58 StatsdStats stats; in TEST() local 64 stats.noteConfigReceived(key, metricsCount, conditionsCount, matchersCount, alertsCount, {}, in TEST() 67 stats.dumpStats(&output, false); in TEST() 79 StatsdStats stats; in TEST() local 85 stats.noteConfigReceived(key, metricsCount, conditionsCount, matchersCount, alertsCount, {}, in TEST() 88 stats.dumpStats(&output, false); in TEST() 96 stats.noteConfigRemoved(key); in TEST() [all …]
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | ProcDiskStatsTest.cpp | 36 std::string getDiskStatsLine(const DiskStats& stats) { in getDiskStatsLine() argument 43 StringAppendF(&buffer, " %d %d %s", stats.major, stats.minor, stats.deviceName.c_str()); in getDiskStatsLine() 44 StringAppendF(&buffer, " %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64, stats.numReadsCompleted, in getDiskStatsLine() 45 stats.numReadsMerged, stats.numKibRead * 2, stats.readTimeInMs); in getDiskStatsLine() 47 stats.numWritesCompleted, stats.numWritesMerged, stats.numKibWritten * 2, in getDiskStatsLine() 48 stats.writeTimeInMs); in getDiskStatsLine() 50 stats.totalIoTimeInMs, stats.weightedTotalIoTimeInMs, stats.numFlushCompleted, in getDiskStatsLine() 51 stats.flushTimeInMs); in getDiskStatsLine() 57 for (const auto& stats : allStats) { in getDiskStatsFile() local 58 StringAppendF(&buffer, "%s", getDiskStatsLine(stats).c_str()); in getDiskStatsFile() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pMetricsTest.java | 59 WifiP2pStats stats; in startAndEndConnectionEventSucceeds() local 64 stats = mWifiP2pMetrics.consolidateProto(); in startAndEndConnectionEventSucceeds() 65 assertEquals(1, stats.connectionEvent.length); in startAndEndConnectionEventSucceeds() 70 stats = mWifiP2pMetrics.consolidateProto(); in startAndEndConnectionEventSucceeds() 71 assertEquals(2, stats.connectionEvent.length); in startAndEndConnectionEventSucceeds() 76 stats = mWifiP2pMetrics.consolidateProto(); in startAndEndConnectionEventSucceeds() 77 assertEquals(3, stats.connectionEvent.length); in startAndEndConnectionEventSucceeds() 82 stats = mWifiP2pMetrics.consolidateProto(); in startAndEndConnectionEventSucceeds() 83 assertEquals(3, stats.connectionEvent.length); in startAndEndConnectionEventSucceeds() 88 stats = mWifiP2pMetrics.consolidateProto(); in startAndEndConnectionEventSucceeds() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateNotificationBridge.java | 87 NotificationsSentState stats = in loadAllExtraInfo() local 89 if (stats == null) { in loadAllExtraInfo() 90 stats = new NotificationsSentState(); in loadAllExtraInfo() 92 calculateAvgSentCounts(stats); in loadAllExtraInfo() 93 addBlockStatus(entry, stats); in loadAllExtraInfo() 94 entry.extraInfo = stats; in loadAllExtraInfo() 100 NotificationsSentState stats = getAggregatedUsageEvents( in updateExtraInfo() local 102 calculateAvgSentCounts(stats); in updateExtraInfo() 103 addBlockStatus(entry, stats); in updateExtraInfo() 104 entry.extraInfo = stats; in updateExtraInfo() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsFactoryTest.java | 93 final NetworkStats stats = parseDetailedStats(R.raw.xt_qtaguid_typical); in testNetworkStatsDetail() local 95 assertEquals(70, stats.size()); in testNetworkStatsDetail() 96 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 18621L, 2898L); in testNetworkStatsDetail() 97 assertStatsEntry(stats, "wlan0", 10011, SET_DEFAULT, 0x0, 35777L, 5718L); in testNetworkStatsDetail() 98 assertStatsEntry(stats, "wlan0", 10021, SET_DEFAULT, 0x7fffff01, 562386L, 49228L); in testNetworkStatsDetail() 99 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 227423L); in testNetworkStatsDetail() 100 assertStatsEntry(stats, "rmnet2", 10001, SET_DEFAULT, 0x0, 1125899906842624L, 984L); in testNetworkStatsDetail() 399 final NetworkStats stats = parseDetailedStats(R.raw.xt_qtaguid_typical); in testNetworkStatsWithSet() local 400 assertEquals(70, stats.size()); in testNetworkStatsWithSet() 401 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 578L, 227423L, in testNetworkStatsWithSet() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/ |
D | StorageApplicationActionButtonsPreferenceControllerTest.java | 190 StorageStats stats = new StorageStats(); in handleClearCacheClick_disallowedBySystem_shouldNotDeleteApplicationCache() local 191 stats.codeBytes = 100; in handleClearCacheClick_disallowedBySystem_shouldNotDeleteApplicationCache() 192 stats.dataBytes = 50; in handleClearCacheClick_disallowedBySystem_shouldNotDeleteApplicationCache() 193 stats.cacheBytes = 0; in handleClearCacheClick_disallowedBySystem_shouldNotDeleteApplicationCache() 195 new StorageStatsSource.AppStorageStatsImpl(stats); in handleClearCacheClick_disallowedBySystem_shouldNotDeleteApplicationCache() 214 StorageStats stats = new StorageStats(); in handleClearCacheClick_allowedBySystem_shouldNotDeleteApplicationCache() local 215 stats.codeBytes = 100; in handleClearCacheClick_allowedBySystem_shouldNotDeleteApplicationCache() 216 stats.dataBytes = 50; in handleClearCacheClick_allowedBySystem_shouldNotDeleteApplicationCache() 217 stats.cacheBytes = 0; in handleClearCacheClick_allowedBySystem_shouldNotDeleteApplicationCache() 219 new StorageStatsSource.AppStorageStatsImpl(stats); in handleClearCacheClick_allowedBySystem_shouldNotDeleteApplicationCache() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/metrics/ |
D | StorageAccessMetricsTest.java | 57 PackageStorageAccessStats stats = statsList.get(0); in testLogMimeType() local 58 assertThat(stats.getUid()).isEqualTo(3); in testLogMimeType() 59 assertThat(stats.mTotalAccesses).isEqualTo(0); in testLogMimeType() 60 assertThat(stats.mFilePathAccesses).isEqualTo(0); in testLogMimeType() 61 assertThat(stats.mSecondaryStorageAccesses).isEqualTo(0); in testLogMimeType() 62 assertThat(stats.mMimeTypes.stream().toArray()) in testLogMimeType() 75 PackageStorageAccessStats stats = statsList.get(0); in testIncrementAccessViaFuse() local 76 assertThat(stats.getUid()).isEqualTo(3); in testIncrementAccessViaFuse() 77 assertThat(stats.mTotalAccesses).isEqualTo(0); in testIncrementAccessViaFuse() 78 assertThat(stats.mFilePathAccesses).isEqualTo(1); in testIncrementAccessViaFuse() [all …]
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppStateUsageStatsBridgeTest.java | 103 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_appInstalledSameDayNeverUsed_isInvalid() local 106 assertThat(stats.daysSinceFirstInstall).isEqualTo(0); in test_appInstalledSameDayNeverUsed_isInvalid() 107 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.NEVER_USED); in test_appInstalledSameDayNeverUsed_isInvalid() 117 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() local 120 assertThat(stats.daysSinceFirstInstall).isEqualTo(0); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() 121 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.NEVER_USED); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() 131 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_unusedApp_isValid() local 134 assertThat(stats.daysSinceFirstInstall).isEqualTo(90); in test_unusedApp_isValid() 135 assertThat(stats.daysSinceLastUse).isEqualTo(AppStateUsageStatsBridge.NEVER_USED); in test_unusedApp_isValid() 145 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_noThresholdFilter_unusedApp_isValid() local [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiPowerMetrics.java | 52 WifiBatteryStats stats = getStats(); in buildProto() local 53 if (stats != null) { in buildProto() 54 m.loggingDurationMs = stats.getLoggingDurationMillis(); in buildProto() 55 m.energyConsumedMah = stats.getEnergyConsumedMaMillis() in buildProto() 57 m.idleTimeMs = stats.getIdleTimeMillis(); in buildProto() 58 m.rxTimeMs = stats.getRxTimeMillis(); in buildProto() 59 m.txTimeMs = stats.getTxTimeMillis(); in buildProto() 60 m.wifiKernelActiveTimeMs = stats.getKernelActiveTimeMillis(); in buildProto() 61 m.numPacketsTx = stats.getNumPacketsTx(); in buildProto() 62 m.numBytesTx = stats.getNumBytesTx(); in buildProto() [all …]
|
D | ExtendedWifiInfo.java | 59 public void updatePacketRates(@NonNull WifiLinkLayerStats stats, long timeStamp) { in updatePacketRates() argument 60 long txgood = stats.txmpdu_be + stats.txmpdu_bk + stats.txmpdu_vi + stats.txmpdu_vo; in updatePacketRates() 61 long txretries = stats.retries_be + stats.retries_bk + stats.retries_vi + stats.retries_vo; in updatePacketRates() 62 long txbad = stats.lostmpdu_be + stats.lostmpdu_bk + stats.lostmpdu_vi + stats.lostmpdu_vo; in updatePacketRates() 63 long rxgood = stats.rxmpdu_be + stats.rxmpdu_bk + stats.rxmpdu_vi + stats.rxmpdu_vo; in updatePacketRates()
|
D | WifiVendorHal.java | 1144 iface.getLinkLayerStats((status, stats) -> { in getWifiLinkLayerStats_internal() argument 1146 answer.value = stats; in getWifiLinkLayerStats_internal() 1153 WifiLinkLayerStats stats = frameworkFromHalLinkLayerStats(answer.value); in getWifiLinkLayerStats_internal() local 1154 return stats; in getWifiLinkLayerStats_internal() 1167 iface.getLinkLayerStats_1_3((status, stats) -> { in getWifiLinkLayerStats_1_3_Internal() argument 1169 answer.value = stats; in getWifiLinkLayerStats_1_3_Internal() 1176 WifiLinkLayerStats stats = frameworkFromHalLinkLayerStats_1_3(answer.value); in getWifiLinkLayerStats_1_3_Internal() local 1177 return stats; in getWifiLinkLayerStats_1_3_Internal() 1190 iface.getLinkLayerStats_1_5((status, stats) -> { in getWifiLinkLayerStats_1_5_Internal() argument 1192 answer.value = stats; in getWifiLinkLayerStats_1_5_Internal() [all …]
|
/packages/modules/DnsResolver/ |
D | res_stats.cpp | 43 void _res_stats_clear_samples(res_stats* stats) { in _res_stats_clear_samples() argument 44 stats->sample_count = stats->sample_next = 0; in _res_stats_clear_samples() 48 void android_net_res_stats_aggregate(res_stats* stats, int* successes, int* errors, int* timeouts, in android_net_res_stats_aggregate() argument 57 for (int i = 0; i < stats->sample_count; ++i) { in android_net_res_stats_aggregate() 65 switch (stats->samples[i].rcode) { in android_net_res_stats_aggregate() 70 rtt_sum += stats->samples[i].rtt; in android_net_res_stats_aggregate() 98 if (stats->sample_count > 0) { in android_net_res_stats_aggregate() 99 if (stats->sample_next > 0) { in android_net_res_stats_aggregate() 100 last = stats->samples[stats->sample_next - 1].at; in android_net_res_stats_aggregate() 102 last = stats->samples[stats->sample_count - 1].at; in android_net_res_stats_aggregate() [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/metadata/ |
D | MetadataTests.java | 60 for (ConfigStats stats: report.getConfigStatsList()) { in testConfigTtl() 61 if (stats.getId() == CONFIG_ID && stats.getUid() == getHostUid()) { in testConfigTtl() 62 if(!stats.hasDeletionTimeSec()) { in testConfigTtl() 66 creationTime = stats.getCreationTimeSec(); in testConfigTtl() 81 for (ConfigStats stats: report.getConfigStatsList()) { in testConfigTtl() 82 if (stats.getId() == CONFIG_ID && stats.getUid() == getHostUid()) { in testConfigTtl() 84 if (stats.getCreationTimeSec() == creationTime) { in testConfigTtl() 86 .that(stats.hasDeletionTimeSec()).isTrue(); in testConfigTtl() 89 ).that(Math.abs(stats.getDeletionTimeSec() - expectedTime)).isAtMost(2); in testConfigTtl() 92 if(!stats.hasDeletionTimeSec()) { in testConfigTtl() [all …]
|
/packages/services/Car/car-lib/src/android/car/storagemonitoring/ |
D | IoStats.java | 56 public IoStats(List<IoStatsEntry> stats, long timestamp) { in IoStats() argument 57 mStats = stats; in IoStats() 122 for (IoStatsEntry stats : getStats()) { in getUserIdStats() 123 if (stats.uid == uid) { in getUserIdStats() 124 return stats; in getUserIdStats() 142 for (IoStatsEntry stats : getStats()) { in getForegroundTotals() 143 bytesRead += stats.foreground.bytesRead; in getForegroundTotals() 144 bytesWritten += stats.foreground.bytesWritten; in getForegroundTotals() 145 bytesReadFromStorage += stats.foreground.bytesReadFromStorage; in getForegroundTotals() 146 bytesWrittenToStorage += stats.foreground.bytesWrittenToStorage; in getForegroundTotals() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | RecentAppStatsMixinTest.java | 94 final List<UsageStats> stats = new ArrayList<>(); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() local 98 stats.add(stat1); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 105 .thenReturn(stats); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 115 final List<UsageStats> stats = new ArrayList<>(); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() local 121 stats.add(stat1); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 125 stats.add(stat2); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 129 stats.add(stat3); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 140 .thenReturn(stats); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 150 final List<UsageStats> stats = new ArrayList<>(); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() local 156 stats.add(stat1); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiUsabilityStatsEntry.java | 190 ContentionTimeStats stats = new ContentionTimeStats(); 191 stats.mContentionTimeMinMicros = in.readLong(); 192 stats.mContentionTimeMaxMicros = in.readLong(); 193 stats.mContentionTimeAvgMicros = in.readLong(); 194 stats.mContentionNumSamples = in.readLong(); 195 return stats; 369 RateStats stats = new RateStats(); 370 stats.mPreamble = in.readInt(); 371 stats.mNss = in.readInt(); 372 stats.mBw = in.readInt(); [all …]
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/ |
D | RecentAppsPreferenceControllerTest.java | 140 final List<UsageStats> stats = new ArrayList<>(); in display_showRecents() local 146 stats.add(stat1); in display_showRecents() 150 stats.add(stat2); in display_showRecents() 154 stats.add(stat3); in display_showRecents() 166 .thenReturn(stats); in display_showRecents() 179 final List<UsageStats> stats = new ArrayList<>(); in display_showRecentsWithInstantApp() local 183 stats.add(stat1); in display_showRecentsWithInstantApp() 189 stats.add(stat2); in display_showRecentsWithInstantApp() 204 .thenReturn(stats); in display_showRecentsWithInstantApp() 221 final List<UsageStats> stats = new ArrayList<>(); in display_showRecentsWithNullAppEntryOrInfo() local [all …]
|
/packages/modules/NetworkStack/src/com/android/networkstack/metrics/ |
D | DataStallStatsUtils.java | 64 public static void write(@NonNull final DataStallDetectionStats stats, in write() argument 68 Log.d(TAG, "write: " + stats + " with result: " + validationResult in write() 69 + ", dns: " + HexDump.toHexString(stats.mDns)); in write() 72 stats.mEvaluationType, in write() 74 stats.mNetworkType, in write() 75 stats.mWifiInfo, in write() 76 stats.mCellularInfo, in write() 77 stats.mDns, in write() 78 stats.mTcpFailRate, in write() 79 stats.mTcpSentSinceLastRecv); in write()
|
D | stats.proto | 22 import "frameworks/proto_logging/stats/enums/stats/connectivity/network_stack.proto"; 40 optional .android.stats.connectivity.ProbeType probe_type = 1; 46 optional .android.stats.connectivity.ProbeResult probe_result = 3; 64 repeated .android.stats.connectivity.DhcpFeature used_features = 1; 78 repeated .android.stats.connectivity.DhcpErrorCode error_code = 5; 81 optional .android.stats.connectivity.HostnameTransResult ht_result = 6; 91 optional .android.stats.connectivity.TransportType transport_type = 1; 103 optional .android.stats.connectivity.DisconnectCode disconnect_code = 5; 119 optional .android.stats.connectivity.TransportType transport_type = 1; 128 optional .android.stats.connectivity.DhcpErrorCode error_code = 4; [all …]
|
D | NetworkValidationMetrics.java | 34 import android.stats.connectivity.ProbeResult; 35 import android.stats.connectivity.ProbeType; 36 import android.stats.connectivity.TransportType; 37 import android.stats.connectivity.ValidationResult; 241 final NetworkValidationReported stats = mStatsBuilder.build(); in maybeStopCollectionAndSend() local 242 final byte[] probeEvents = stats.getProbeEvents().toByteArray(); in maybeStopCollectionAndSend() 245 stats.getTransportType().getNumber(), in maybeStopCollectionAndSend() 247 stats.getValidationResult().getNumber(), in maybeStopCollectionAndSend() 248 stats.getLatencyMicros(), in maybeStopCollectionAndSend() 249 stats.getValidationIndex(), in maybeStopCollectionAndSend() [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | IoPerfCollection.cpp | 72 for (const auto& stats : processStats) { in getUidProcessStats() local 73 if (stats.uid < 0) { in getUidProcessStats() 76 uid_t uid = static_cast<uid_t>(stats.uid); in getUidProcessStats() 91 curUidProcessStats.majorFaults += stats.process.majorFaults; in getUidProcessStats() 92 curUidProcessStats.totalTasksCnt += stats.threads.size(); in getUidProcessStats() 96 for (const auto& threadStat : stats.threads) { in getUidProcessStats() 106 .comm = stats.process.comm, in getUidProcessStats() 115 if (it->count < stats.process.majorFaults) { in getUidProcessStats() 119 .comm = stats.process.comm, in getUidProcessStats() 120 .count = stats.process.majorFaults, in getUidProcessStats() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiScoreCardTest.java | 1128 private void checkShortConnectionExample(NetworkConnectionStats stats, int scale) { in checkShortConnectionExample() argument 1129 assertEquals(1 * scale, stats.getCount(CNT_CONNECTION_ATTEMPT)); in checkShortConnectionExample() 1130 assertEquals(0, stats.getCount(CNT_CONNECTION_FAILURE)); in checkShortConnectionExample() 1131 assertEquals(0, stats.getCount(CNT_DISCONNECTION_NONLOCAL_CONNECTING)); in checkShortConnectionExample() 1132 assertEquals(9 * scale, stats.getCount(CNT_CONNECTION_DURATION_SEC)); in checkShortConnectionExample() 1133 assertEquals(0, stats.getCount(CNT_ASSOCIATION_REJECTION)); in checkShortConnectionExample() 1134 assertEquals(0, stats.getCount(CNT_ASSOCIATION_TIMEOUT)); in checkShortConnectionExample() 1135 assertEquals(0, stats.getCount(CNT_AUTHENTICATION_FAILURE)); in checkShortConnectionExample() 1136 assertEquals(1 * scale, stats.getCount(CNT_SHORT_CONNECTION_NONLOCAL)); in checkShortConnectionExample() 1137 assertEquals(1 * scale, stats.getCount(CNT_DISCONNECTION_NONLOCAL)); in checkShortConnectionExample() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | IpConnectivityEventBuilderTest.java | 494 WakeupStats stats = new WakeupStats("wlan0"); in testWakeupStatsSerialization() local 495 stats.totalWakeups = 14; in testWakeupStatsSerialization() 496 stats.applicationWakeups = 5; in testWakeupStatsSerialization() 497 stats.nonApplicationWakeups = 1; in testWakeupStatsSerialization() 498 stats.rootWakeups = 2; in testWakeupStatsSerialization() 499 stats.systemWakeups = 3; in testWakeupStatsSerialization() 500 stats.noUidWakeups = 3; in testWakeupStatsSerialization() 501 stats.l2UnicastCount = 5; in testWakeupStatsSerialization() 502 stats.l2MulticastCount = 1; in testWakeupStatsSerialization() 503 stats.l2BroadcastCount = 2; in testWakeupStatsSerialization() [all …]
|