/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
H A D | InternalPerStateBytesSubject.java | 64 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()
|
H A D | InternalIoOveruseConfigurationSubject.java | 144 x.perStateWriteBytes.foregroundBytes, x.perStateWriteBytes.backgroundBytes, in toPerStateThresholdStrings()
|
H A D | CarWatchdogServiceUnitTest.java | 3561 perStateBytes.foregroundBytes = fgBytes; in constructPerStateBytes() 4254 threshold.perStateWriteBytes.foregroundBytes = fgBytes; in constructPerStateIoOveruseThreshold() 4316 return actual.foregroundBytes == expected.foregroundBytes in isInternalPerStateBytesEquals()
|
/aosp12/packages/services/Car/cpp/watchdog/server/src/ |
H A D | IoOveruseMonitor.cpp | 89 result.foregroundBytes = sum(lhs.foregroundBytes, rhs.foregroundBytes); in sum() 100 result.foregroundBytes = sub(lhs.foregroundBytes, rhs.foregroundBytes); in diff() 122 return sum(perStateBytes.foregroundBytes, in totalPerStateBytes() 140 int32_t foregroundOveruses = div(writtenBytes.foregroundBytes, threshold.foregroundBytes); in calculateOveruseAndForgivenBytes() 146 forgivenWriteBytes.foregroundBytes = mul(foregroundOveruses, threshold.foregroundBytes); in calculateOveruseAndForgivenBytes() 325 (exceedsWarnThreshold(remainingWriteBytes.foregroundBytes, 326 threshold.foregroundBytes) || 677 writtenBytes.foregroundBytes = uidIoStats.metrics[WRITE_BYTES][FOREGROUND]; in UserPackageIoUsage()
|
H A D | IoOveruseConfigs.h | 58 threshold.perStateWriteBytes.foregroundBytes = std::numeric_limits<int64_t>::max(); in defaultThreshold()
|
H A D | IoOveruseConfigs.cpp | 89 thresholds.name.c_str(), thresholds.perStateWriteBytes.foregroundBytes, in toString() 99 if (thresholds.perStateWriteBytes.foregroundBytes <= 0 || in containsValidThresholds()
|
H A D | OveruseConfigurationXmlHelper.cpp | 249 perStateBytes.foregroundBytes = megaBytes * kOneMegaByte; in readPerStateBytes() 522 perStateBytes.foregroundBytes / kOneMegaByte); in writePerStateBytes()
|
/aosp12/packages/services/Car/service/src/com/android/car/watchdog/ |
H A D | OveruseConfigurationCache.java | 340 writer.println("{Foreground bytes: " + perStateBytes.foregroundBytes in dumpPerStateBytes() 347 foregroundBytes = fgBytes; in constructPerStateBytes() 355 foregroundBytes = perStateBytes.foregroundBytes;
|
H A D | WatchdogStorage.java | 798 COLUMN_WRITTEN_FOREGROUND_BYTES, ioOveruseStats.writtenBytes.foregroundBytes); in getContentValues() 804 ioOveruseStats.remainingWriteBytes.foregroundBytes); in getContentValues() 811 values.put(COLUMN_FORGIVEN_FOREGROUND_WRITE_BYTES, forgivenWriteBytes.foregroundBytes); in getContentValues() 852 ioOveruseStats.writtenBytes.foregroundBytes = cursor.getLong(5); in queryStats() 856 ioOveruseStats.remainingWriteBytes.foregroundBytes = cursor.getLong(8); in queryStats() 860 forgivenWriteBytes.foregroundBytes = cursor.getLong(11); in queryStats()
|
H A D | WatchdogPerfHandler.java | 1717 constructCarWatchdogPerStateBytes(threshold.foregroundBytes, in constructCarWatchdogIoOveruseStatsLocked() 1719 constructCarWatchdogPerStateBytes(writtenBytes.foregroundBytes, in constructCarWatchdogIoOveruseStatsLocked() 2004 return new PerStateBytes(internalPerStateBytes.foregroundBytes, in toPerStateBytes() 2013 return sum.apply(sum.apply(internalPerStateBytes.foregroundBytes, in totalPerStateBytes() 2135 threshold.perStateWriteBytes.foregroundBytes = perStateBytes.getForegroundModeBytes(); in toPerStateIoOveruseThreshold() 2343 long foregroundBytes, long backgroundBytes, long garageModeBytes) { in constructCarWatchdogPerStateBytes() argument 2346 if (foregroundBytes != 0) { in constructCarWatchdogPerStateBytes() 2347 perStateBytesBuilder.setForegroundBytes(foregroundBytes); in constructCarWatchdogPerStateBytes() 2569 return remaining.foregroundBytes == 0 || remaining.backgroundBytes == 0 in exceedsThreshold()
|
/aosp12/packages/apps/Settings/src/com/android/settings/datausage/ |
H A D | AppDataUsage.java | 308 final long backgroundBytes, foregroundBytes; in bindData() local 310 backgroundBytes = foregroundBytes = 0; in bindData() 316 foregroundBytes = data.getForegroudUsage(); in bindData() 318 final long totalBytes = backgroundBytes + foregroundBytes; in bindData() 321 mForegroundUsage.setSummary(DataUsageUtils.formatDataUsage(mContext, foregroundBytes)); in bindData()
|
/aosp12/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/3/android/automotive/watchdog/ |
H A D | PerStateBytes.aidl | 37 long foregroundBytes;
|
/aosp12/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/current/android/automotive/watchdog/ |
H A D | PerStateBytes.aidl | 37 long foregroundBytes;
|
/aosp12/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/ |
H A D | PerStateBytes.aidl | 28 long foregroundBytes;
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
H A D | AppDataUsageTest.java | 280 final long foregroundBytes = 5678L; in bindData_hasAppUsageData_shouldShowCycleSpinnerAndUpdateUsageSummary() local 283 .setBackgroundUsage(backgroundBytes).setForegroundUsage(foregroundBytes).build()); in bindData_hasAppUsageData_shouldShowCycleSpinnerAndUpdateUsageSummary() 298 DataUsageUtils.formatDataUsage(context, backgroundBytes + foregroundBytes)); in bindData_hasAppUsageData_shouldShowCycleSpinnerAndUpdateUsageSummary() 300 verify(foregroundPref).setSummary(DataUsageUtils.formatDataUsage(context, foregroundBytes)); in bindData_hasAppUsageData_shouldShowCycleSpinnerAndUpdateUsageSummary()
|
/aosp12/packages/services/Car/cpp/watchdog/server/tests/ |
H A D | IoOveruseMonitorTest.cpp | 79 int32_t foregroundBytes; member 86 perStateBytes.foregroundBytes = fgBytes; in constructPerStateBytes() 1005 EXPECT_NE(actual.writtenBytes.foregroundBytes, 0); in TEST_F() 1019 EXPECT_EQ(actual.writtenBytes.foregroundBytes, 0); in TEST_F()
|
H A D | OveruseConfigurationTestUtils.cpp | 109 perStateBytes.foregroundBytes = fgBytes; in toPerStateBytes()
|
H A D | WatchdogServiceHelperTest.cpp | 60 stats.ioUsageStats.writtenBytes.foregroundBytes = 100; in sampleUserPackageIoUsageStats() 63 stats.ioUsageStats.forgivenWriteBytes.foregroundBytes = 1100; in sampleUserPackageIoUsageStats()
|
/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | CarShellCommand.java | 2259 long foregroundBytes = Objects.requireNonNull( 2261 writer.printf("foregroundModeBytes = %d \n", foregroundBytes);
|