Home
last modified time | relevance | path

Searched refs:foregroundBytes (Results 1 – 20 of 20) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DInternalPerStateBytesSubject.java64 check("foregroundBytes").that(mActual.foregroundBytes).isEqualTo(expected.foregroundBytes); in isEqualTo()
73 return actual.foregroundBytes == expected.foregroundBytes in isEquals()
83 return builder.append("{Foreground bytes: ").append(perStateBytes.foregroundBytes) in toStringBuilder()
DWatchdogStorageUnitTest.java1071 writtenBytes.foregroundBytes = 100; in createDatabaseAndUpgradeToVersion()
1075 remainingWriteBytes.foregroundBytes = 200; in createDatabaseAndUpgradeToVersion()
1079 forgivenWriteBytes.foregroundBytes = 300; in createDatabaseAndUpgradeToVersion()
1117 writtenBytes.foregroundBytes); in insertIoUsageStats()
1123 remainingWriteBytes.foregroundBytes); in insertIoUsageStats()
1129 forgivenWriteBytes.foregroundBytes); in insertIoUsageStats()
DInternalIoOveruseConfigurationSubject.java144 x.perStateWriteBytes.foregroundBytes, x.perStateWriteBytes.backgroundBytes, in toPerStateThresholdStrings()
DCarWatchdogServiceUnitTest.java1104 perStateBytes.foregroundBytes = fgBytes; in constructPerStateBytes()
1390 return actual.foregroundBytes == expected.foregroundBytes in isInternalPerStateBytesEquals()
DWatchdogPerfHandlerUnitTest.java4840 threshold.perStateWriteBytes.foregroundBytes = fgBytes; in constructPerStateIoOveruseThreshold()
5015 perStateBytes.foregroundBytes = fgBytes; in constructPerStateBytes()
/packages/services/Car/cpp/watchdog/server/src/
DIoOveruseMonitor.cpp99 result.foregroundBytes = sum(lhs.foregroundBytes, rhs.foregroundBytes); in sum()
110 result.foregroundBytes = sub(lhs.foregroundBytes, rhs.foregroundBytes); in diff()
132 return sum(perStateBytes.foregroundBytes, in totalPerStateBytes()
150 int32_t foregroundOveruses = div(writtenBytes.foregroundBytes, threshold.foregroundBytes); in calculateOveruseAndForgivenBytes()
156 forgivenWriteBytes.foregroundBytes = mul(foregroundOveruses, threshold.foregroundBytes); in calculateOveruseAndForgivenBytes()
365 (exceedsWarnThreshold(remainingWriteBytes.foregroundBytes, in onPeriodicCollection()
366 threshold.foregroundBytes) || in onPeriodicCollection()
783 writtenBytes.foregroundBytes = uidIoStats.metrics[WRITE_BYTES][FOREGROUND]; in UserPackageIoUsage()
DIoOveruseConfigs.h59 threshold.perStateWriteBytes.foregroundBytes = std::numeric_limits<int64_t>::max(); in defaultThreshold()
DIoOveruseConfigs.cpp88 thresholds.name.c_str(), thresholds.perStateWriteBytes.foregroundBytes, in toString()
98 if (thresholds.perStateWriteBytes.foregroundBytes <= 0 || in containsValidThresholds()
DPerformanceProfiler.cpp202 ioUsageStats.readBytes.foregroundBytes = ioReadsStatsView.bytes[UidState::FOREGROUND]; in constructUidResourceUsageStats()
204 ioUsageStats.writtenBytes.foregroundBytes = ioWritesStatsView.bytes[UidState::FOREGROUND]; in constructUidResourceUsageStats()
243 totalIoReads.foregroundBytes = in constructSystemSummaryUsageStats()
247 totalIoWrites.foregroundBytes = in constructSystemSummaryUsageStats()
DOveruseConfigurationXmlHelper.cpp248 perStateBytes.foregroundBytes = megaBytes * kOneMegaByte; in readPerStateBytes()
521 perStateBytes.foregroundBytes / kOneMegaByte); in writePerStateBytes()
/packages/services/Car/service/src/com/android/car/watchdog/
DOveruseConfigurationCache.java171 perStateBytes.foregroundBytes); in dumpProto()
187 perStateBytes.foregroundBytes); in dumpProto()
205 perStateBytes.foregroundBytes); in dumpProto()
224 perStateBytes.foregroundBytes); in dumpProto()
490 writer.println("{Foreground bytes: " + perStateBytes.foregroundBytes in dumpPerStateBytes()
497 foregroundBytes = fgBytes; in constructPerStateBytes()
505 foregroundBytes = perStateBytes.foregroundBytes;
DWatchdogStorage.java945 COLUMN_WRITTEN_FOREGROUND_BYTES, ioOveruseStats.writtenBytes.foregroundBytes); in getContentValues()
951 ioOveruseStats.remainingWriteBytes.foregroundBytes); in getContentValues()
958 values.put(COLUMN_FORGIVEN_FOREGROUND_WRITE_BYTES, forgivenWriteBytes.foregroundBytes); in getContentValues()
999 ioOveruseStats.writtenBytes.foregroundBytes = cursor.getLong(5); in queryStats()
1003 ioOveruseStats.remainingWriteBytes.foregroundBytes = cursor.getLong(8); in queryStats()
1007 forgivenWriteBytes.foregroundBytes = cursor.getLong(11); in queryStats()
DWatchdogPerfHandler.java2138 constructCarWatchdogPerStateBytes(threshold.foregroundBytes, in constructCarWatchdogIoOveruseStatsLocked()
2140 constructCarWatchdogPerStateBytes(writtenBytes.foregroundBytes, in constructCarWatchdogIoOveruseStatsLocked()
2515 perStateBytes.foregroundBytes); in dumpPerStateBytes()
2553 return new PerStateBytes(internalPerStateBytes.foregroundBytes, in toPerStateBytes()
2562 return sum.apply(sum.apply(internalPerStateBytes.foregroundBytes, in totalPerStateBytes()
2684 threshold.perStateWriteBytes.foregroundBytes = perStateBytes.getForegroundModeBytes(); in toPerStateIoOveruseThreshold()
2896 long foregroundBytes, long backgroundBytes, long garageModeBytes) { in constructCarWatchdogPerStateBytes() argument
2899 if (foregroundBytes != 0) { in constructCarWatchdogPerStateBytes()
2900 perStateBytesBuilder.setForegroundBytes(foregroundBytes); in constructCarWatchdogPerStateBytes()
3186 return remaining.foregroundBytes == 0 || remaining.backgroundBytes == 0 in exceedsThreshold()
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/
DPerStateBytes.aidl28 long foregroundBytes;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/current/android/automotive/watchdog/
DPerStateBytes.aidl37 long foregroundBytes;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/3/android/automotive/watchdog/
DPerStateBytes.aidl37 long foregroundBytes;
/packages/services/Car/cpp/watchdog/server/tests/
DPerformanceProfilerTest.cpp705 .foregroundBytes = int32Multiplier(1'000), in getResourceStatsForSampledStats()
710 .foregroundBytes = int32Multiplier(300), in getResourceStatsForSampledStats()
737 .foregroundBytes = 0, in getResourceStatsForSampledStats()
742 .foregroundBytes = 0, in getResourceStatsForSampledStats()
775 .foregroundBytes = 0, in getResourceStatsForSampledStats()
780 .foregroundBytes = 0, in getResourceStatsForSampledStats()
807 .foregroundBytes = int32Multiplier(300), in getResourceStatsForSampledStats()
812 .foregroundBytes = int32Multiplier(1'000), in getResourceStatsForSampledStats()
831 .foregroundBytes = 0, in getResourceStatsForSampledStats()
836 .foregroundBytes = 0, in getResourceStatsForSampledStats()
DIoOveruseMonitorTest.cpp85 int32_t foregroundBytes; member
92 perStateBytes.foregroundBytes = fgBytes; in constructPerStateBytes()
1130 EXPECT_NE(actual.writtenBytes.foregroundBytes, 0); in TEST_F()
1144 EXPECT_EQ(actual.writtenBytes.foregroundBytes, 0); in TEST_F()
DOveruseConfigurationTestUtils.cpp110 perStateBytes.foregroundBytes = fgBytes; in toPerStateBytes()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java3579 long foregroundBytes = Objects.requireNonNull(
3581 writer.printf("foregroundModeBytes = %d \n", foregroundBytes);