/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | InternalPerStateBytesSubject.java | 65 check("backgroundBytes").that(mActual.backgroundBytes).isEqualTo(expected.backgroundBytes); in isEqualTo() 74 && actual.backgroundBytes == expected.backgroundBytes in isEquals() 84 .append(", Background bytes: ").append(perStateBytes.backgroundBytes) in toStringBuilder()
|
D | WatchdogStorageUnitTest.java | 1072 writtenBytes.backgroundBytes = 100; in createDatabaseAndUpgradeToVersion() 1076 remainingWriteBytes.backgroundBytes = 200; in createDatabaseAndUpgradeToVersion() 1080 forgivenWriteBytes.backgroundBytes = 300; in createDatabaseAndUpgradeToVersion() 1119 writtenBytes.backgroundBytes); in insertIoUsageStats() 1125 remainingWriteBytes.backgroundBytes); in insertIoUsageStats() 1131 forgivenWriteBytes.backgroundBytes); in insertIoUsageStats()
|
D | InternalIoOveruseConfigurationSubject.java | 144 x.perStateWriteBytes.foregroundBytes, x.perStateWriteBytes.backgroundBytes, in toPerStateThresholdStrings()
|
D | CarWatchdogServiceUnitTest.java | 1105 perStateBytes.backgroundBytes = bgBytes; in constructPerStateBytes() 1391 && actual.backgroundBytes == expected.backgroundBytes in isInternalPerStateBytesEquals()
|
D | WatchdogPerfHandlerUnitTest.java | 4841 threshold.perStateWriteBytes.backgroundBytes = bgBytes; in constructPerStateIoOveruseThreshold() 5016 perStateBytes.backgroundBytes = bgBytes; in constructPerStateBytes()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | IoOveruseMonitor.cpp | 100 result.backgroundBytes = sum(lhs.backgroundBytes, rhs.backgroundBytes); in sum() 111 result.backgroundBytes = sub(lhs.backgroundBytes, rhs.backgroundBytes); in diff() 133 sum(perStateBytes.backgroundBytes, perStateBytes.garageModeBytes)); in totalPerStateBytes() 151 int32_t backgroundOveruses = div(writtenBytes.backgroundBytes, threshold.backgroundBytes); in calculateOveruseAndForgivenBytes() 157 forgivenWriteBytes.backgroundBytes = mul(backgroundOveruses, threshold.backgroundBytes); in calculateOveruseAndForgivenBytes() 367 exceedsWarnThreshold(remainingWriteBytes.backgroundBytes, in onPeriodicCollection() 368 threshold.backgroundBytes) || in onPeriodicCollection() 784 writtenBytes.backgroundBytes = uidIoStats.metrics[WRITE_BYTES][BACKGROUND]; in UserPackageIoUsage()
|
D | IoOveruseConfigs.h | 60 threshold.perStateWriteBytes.backgroundBytes = std::numeric_limits<int64_t>::max(); in defaultThreshold()
|
D | IoOveruseConfigs.cpp | 89 thresholds.perStateWriteBytes.backgroundBytes, in toString() 99 thresholds.perStateWriteBytes.backgroundBytes <= 0 || in containsValidThresholds()
|
D | PerformanceProfiler.cpp | 203 ioUsageStats.readBytes.backgroundBytes = ioReadsStatsView.bytes[UidState::BACKGROUND]; in constructUidResourceUsageStats() 205 ioUsageStats.writtenBytes.backgroundBytes = ioWritesStatsView.bytes[UidState::BACKGROUND]; in constructUidResourceUsageStats() 245 totalIoReads.backgroundBytes = in constructSystemSummaryUsageStats() 249 totalIoWrites.backgroundBytes = in constructSystemSummaryUsageStats()
|
D | OveruseConfigurationXmlHelper.cpp | 251 perStateBytes.backgroundBytes = megaBytes * kOneMegaByte; in readPerStateBytes() 527 perStateBytes.backgroundBytes / kOneMegaByte); in writePerStateBytes()
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | OveruseConfigurationCache.java | 173 perStateBytes.backgroundBytes); in dumpProto() 189 perStateBytes.backgroundBytes); in dumpProto() 207 perStateBytes.backgroundBytes); in dumpProto() 226 perStateBytes.backgroundBytes); in dumpProto() 491 + ", Background bytes: " + perStateBytes.backgroundBytes + ", Garage mode bytes: " in dumpPerStateBytes() 498 backgroundBytes = bgBytes; in constructPerStateBytes() 506 backgroundBytes = perStateBytes.backgroundBytes;
|
D | WatchdogStorage.java | 947 COLUMN_WRITTEN_BACKGROUND_BYTES, ioOveruseStats.writtenBytes.backgroundBytes); in getContentValues() 953 ioOveruseStats.remainingWriteBytes.backgroundBytes); in getContentValues() 959 values.put(COLUMN_FORGIVEN_BACKGROUND_WRITE_BYTES, forgivenWriteBytes.backgroundBytes); in getContentValues() 1000 ioOveruseStats.writtenBytes.backgroundBytes = cursor.getLong(6); in queryStats() 1004 ioOveruseStats.remainingWriteBytes.backgroundBytes = cursor.getLong(9); in queryStats() 1008 forgivenWriteBytes.backgroundBytes = cursor.getLong(12); in queryStats()
|
D | WatchdogPerfHandler.java | 2139 threshold.backgroundBytes, threshold.garageModeBytes), in constructCarWatchdogIoOveruseStatsLocked() 2141 writtenBytes.backgroundBytes, writtenBytes.garageModeBytes)); in constructCarWatchdogIoOveruseStatsLocked() 2517 perStateBytes.backgroundBytes); in dumpPerStateBytes() 2554 internalPerStateBytes.backgroundBytes, internalPerStateBytes.garageModeBytes); in toPerStateBytes() 2563 internalPerStateBytes.backgroundBytes), internalPerStateBytes.garageModeBytes); in totalPerStateBytes() 2685 threshold.perStateWriteBytes.backgroundBytes = perStateBytes.getBackgroundModeBytes(); in toPerStateIoOveruseThreshold() 2896 long foregroundBytes, long backgroundBytes, long garageModeBytes) { in constructCarWatchdogPerStateBytes() argument 2902 if (backgroundBytes != 0) { in constructCarWatchdogPerStateBytes() 2903 perStateBytesBuilder.setBackgroundBytes(backgroundBytes); in constructCarWatchdogPerStateBytes() 3186 return remaining.foregroundBytes == 0 || remaining.backgroundBytes == 0 in exceedsThreshold()
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/ |
D | PerStateBytes.aidl | 33 long backgroundBytes;
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/current/android/automotive/watchdog/ |
D | PerStateBytes.aidl | 38 long backgroundBytes;
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/3/android/automotive/watchdog/ |
D | PerStateBytes.aidl | 38 long backgroundBytes;
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | PerformanceProfilerTest.cpp | 706 .backgroundBytes = int32Multiplier(21'600), in getResourceStatsForSampledStats() 711 .backgroundBytes = int32Multiplier(28'300), in getResourceStatsForSampledStats() 738 .backgroundBytes = int32Multiplier(16'000), in getResourceStatsForSampledStats() 743 .backgroundBytes = int32Multiplier(14'000), in getResourceStatsForSampledStats() 776 .backgroundBytes = int32Multiplier(6'700), in getResourceStatsForSampledStats() 781 .backgroundBytes = int32Multiplier(3'400), in getResourceStatsForSampledStats() 808 .backgroundBytes = int32Multiplier(5'600), in getResourceStatsForSampledStats() 813 .backgroundBytes = int32Multiplier(4'200), in getResourceStatsForSampledStats() 832 .backgroundBytes = 0, in getResourceStatsForSampledStats() 837 .backgroundBytes = 0, in getResourceStatsForSampledStats()
|
D | IoOveruseMonitorTest.cpp | 86 int32_t backgroundBytes; member 93 perStateBytes.backgroundBytes = bgBytes; in constructPerStateBytes() 1131 EXPECT_NE(actual.writtenBytes.backgroundBytes, 0); in TEST_F() 1145 EXPECT_EQ(actual.writtenBytes.backgroundBytes, 0); in TEST_F()
|
D | OveruseConfigurationTestUtils.cpp | 111 perStateBytes.backgroundBytes = bgBytes; in toPerStateBytes()
|