Home
last modified time | relevance | path

Searched refs:perStateBytes (Results 1 – 13 of 13) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DInternalPerStateBytesSubject.java38 public static InternalPerStateBytesSubject assertThat(@Nullable PerStateBytes perStateBytes) { in assertThat() argument
39 return assertAbout(PER_STATE_BYTES_SUBJECT_FACTORY).that(perStateBytes); in assertThat()
43 public static Subject.Factory<InternalPerStateBytesSubject, PerStateBytes> perStateBytes() { in perStateBytes() method in InternalPerStateBytesSubject
48 @Nullable PerStateBytes perStateBytes, String format, Object... args) { in assertWithMessage()
50 .that(perStateBytes); in assertWithMessage()
79 StringBuilder builder, PerStateBytes perStateBytes) { in toStringBuilder() argument
80 if (perStateBytes == null) { in toStringBuilder()
83 return builder.append("{Foreground bytes: ").append(perStateBytes.foregroundBytes) in toStringBuilder()
84 .append(", Background bytes: ").append(perStateBytes.backgroundBytes) in toStringBuilder()
85 .append(", Garage mode bytes: ").append(perStateBytes.garageModeBytes) in toStringBuilder()
DIoOveruseConfigurationSubject.java53 protected int doHash(PerStateBytes perStateBytes) {
54 return (int) ((perStateBytes.getForegroundModeBytes() * 10 ^ 4)
55 + (perStateBytes.getBackgroundModeBytes() * 10 ^ 3)
56 + perStateBytes.getGarageModeBytes());
DPerStateBytesSubject.java36 public static PerStateBytesSubject assertThat(@Nullable PerStateBytes perStateBytes) { in assertThat() argument
37 return assertAbout(PER_STATE_BYTES_SUBJECT_FACTORY).that(perStateBytes); in assertThat()
41 public static Subject.Factory<PerStateBytesSubject, PerStateBytes> perStateBytes() { in perStateBytes() method in PerStateBytesSubject
DWatchdogPerfHandlerUnitTest.java4006 PerformanceDump.PerStateBytes perStateBytes = in testDumpProto() local
4008 expectThat(perStateBytes.getForegroundBytes()).isEqualTo(10); in testDumpProto()
4009 expectThat(perStateBytes.getBackgroundBytes()).isEqualTo(20); in testDumpProto()
4010 expectThat(perStateBytes.getGaragemodeBytes()).isEqualTo(30); in testDumpProto()
4015 perStateBytes = ioThresholdByVendorComponent.getThreshold(); in testDumpProto()
4016 expectThat(perStateBytes.getForegroundBytes()).isEqualTo(20); in testDumpProto()
4017 expectThat(perStateBytes.getBackgroundBytes()).isEqualTo(40); in testDumpProto()
4018 expectThat(perStateBytes.getGaragemodeBytes()).isEqualTo(60); in testDumpProto()
4023 perStateBytes = ioThresholdByThirdPartyComponent.getThreshold(); in testDumpProto()
4024 expectThat(perStateBytes.getForegroundBytes()).isEqualTo(30); in testDumpProto()
[all …]
DIoOveruseStatsSubject.java75 .about(PerStateBytesSubject.perStateBytes()).that(mActual.getRemainingWriteBytes()) in isEqualTo()
DCarWatchdogServiceUnitTest.java1102 android.automotive.watchdog.PerStateBytes perStateBytes = in constructPerStateBytes() local
1104 perStateBytes.foregroundBytes = fgBytes; in constructPerStateBytes()
1105 perStateBytes.backgroundBytes = bgBytes; in constructPerStateBytes()
1106 perStateBytes.garageModeBytes = gmBytes; in constructPerStateBytes()
1107 return perStateBytes; in constructPerStateBytes()
/packages/services/Car/service/src/com/android/car/watchdog/
DOveruseConfigurationCache.java169 PerStateBytes perStateBytes = mGenericIoThresholdsByComponent.valueAt(i); in dumpProto() local
171 perStateBytes.foregroundBytes); in dumpProto()
173 perStateBytes.backgroundBytes); in dumpProto()
175 perStateBytes.garageModeBytes); in dumpProto()
185 PerStateBytes perStateBytes = mIoThresholdsBySystemPackages.valueAt(i); in dumpProto() local
187 perStateBytes.foregroundBytes); in dumpProto()
189 perStateBytes.backgroundBytes); in dumpProto()
191 perStateBytes.garageModeBytes); in dumpProto()
203 PerStateBytes perStateBytes = mIoThresholdsByVendorPackages.valueAt(i); in dumpProto() local
205 perStateBytes.foregroundBytes); in dumpProto()
[all …]
DWatchdogPerfHandler.java2511 private static void dumpPerStateBytes(android.automotive.watchdog.PerStateBytes perStateBytes, in dumpPerStateBytes() argument
2515 perStateBytes.foregroundBytes); in dumpPerStateBytes()
2517 perStateBytes.backgroundBytes); in dumpPerStateBytes()
2519 perStateBytes.garageModeBytes); in dumpPerStateBytes()
2680 PerStateBytes perStateBytes) { in toPerStateIoOveruseThreshold() argument
2684 threshold.perStateWriteBytes.foregroundBytes = perStateBytes.getForegroundModeBytes(); in toPerStateIoOveruseThreshold()
2685 threshold.perStateWriteBytes.backgroundBytes = perStateBytes.getBackgroundModeBytes(); in toPerStateIoOveruseThreshold()
2686 threshold.perStateWriteBytes.garageModeBytes = perStateBytes.getGarageModeBytes(); in toPerStateIoOveruseThreshold()
2857 PerStateBytes perStateBytes = map.get(oldKey); in replaceKey() local
2858 if (perStateBytes != null) { in replaceKey()
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DOveruseConfigurationTestUtils.cpp109 PerStateBytes perStateBytes; in toPerStateBytes() local
110 perStateBytes.foregroundBytes = fgBytes; in toPerStateBytes()
111 perStateBytes.backgroundBytes = bgBytes; in toPerStateBytes()
112 perStateBytes.garageModeBytes = garageModeBytes; in toPerStateBytes()
113 return perStateBytes; in toPerStateBytes()
117 const PerStateBytes& perStateBytes) { in toPerStateIoOveruseThreshold() argument
120 threshold.perStateWriteBytes = perStateBytes; in toPerStateIoOveruseThreshold()
132 const PerStateBytes& perStateBytes) { in toPerStateIoOveruseThreshold() argument
133 return toPerStateIoOveruseThreshold(toString(type), perStateBytes); in toPerStateIoOveruseThreshold()
DOveruseConfigurationTestUtils.h65 const aidl::android::automotive::watchdog::PerStateBytes& perStateBytes);
74 const aidl::android::automotive::watchdog::PerStateBytes& perStateBytes);
DIoOveruseMonitorTest.cpp91 PerStateBytes perStateBytes; in constructPerStateBytes() local
92 perStateBytes.foregroundBytes = fgBytes; in constructPerStateBytes()
93 perStateBytes.backgroundBytes = bgBytes; in constructPerStateBytes()
94 perStateBytes.garageModeBytes = gmBytes; in constructPerStateBytes()
95 return perStateBytes; in constructPerStateBytes()
/packages/services/Car/cpp/watchdog/server/src/
DOveruseConfigurationXmlHelper.cpp226 PerStateBytes perStateBytes; in readPerStateBytes() local
248 perStateBytes.foregroundBytes = megaBytes * kOneMegaByte; in readPerStateBytes()
251 perStateBytes.backgroundBytes = megaBytes * kOneMegaByte; in readPerStateBytes()
254 perStateBytes.garageModeBytes = megaBytes * kOneMegaByte; in readPerStateBytes()
263 return perStateBytes; in readPerStateBytes()
510 Result<void> writePerStateBytes(const PerStateBytes& perStateBytes, XMLElement* rootElement) { in writePerStateBytes() argument
521 perStateBytes.foregroundBytes / kOneMegaByte); in writePerStateBytes()
527 perStateBytes.backgroundBytes / kOneMegaByte); in writePerStateBytes()
533 writeStateElement(kStateIdGarageMode, perStateBytes.garageModeBytes / kOneMegaByte); in writePerStateBytes()
DIoOveruseMonitor.cpp128 int64_t totalPerStateBytes(PerStateBytes perStateBytes) { in totalPerStateBytes() argument
132 return sum(perStateBytes.foregroundBytes, in totalPerStateBytes()
133 sum(perStateBytes.backgroundBytes, perStateBytes.garageModeBytes)); in totalPerStateBytes()