Home
last modified time | relevance | path

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

/packages/services/Car/cpp/watchdog/server/tests/
DOveruseConfigurationTestUtils.cpp108 PerStateBytes perStateBytes; in toPerStateBytes() local
109 perStateBytes.foregroundBytes = fgBytes; in toPerStateBytes()
110 perStateBytes.backgroundBytes = bgBytes; in toPerStateBytes()
111 perStateBytes.garageModeBytes = garageModeBytes; in toPerStateBytes()
112 return perStateBytes; in toPerStateBytes()
116 const PerStateBytes& perStateBytes) { in toPerStateIoOveruseThreshold() argument
119 threshold.perStateWriteBytes = perStateBytes; in toPerStateIoOveruseThreshold()
131 const PerStateBytes& perStateBytes) { in toPerStateIoOveruseThreshold() argument
132 return toPerStateIoOveruseThreshold(toString(type), perStateBytes); in toPerStateIoOveruseThreshold()
DOveruseConfigurationTestUtils.h59 const std::string& name, const PerStateBytes& perStateBytes);
67 const PerStateBytes& perStateBytes);
DIoOveruseMonitorTest.cpp88 PerStateBytes perStateBytes; in constructPerStateBytes() local
89 perStateBytes.foregroundBytes = fgBytes; in constructPerStateBytes()
90 perStateBytes.backgroundBytes = bgBytes; in constructPerStateBytes()
91 perStateBytes.garageModeBytes = gmBytes; in constructPerStateBytes()
92 return perStateBytes; in constructPerStateBytes()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
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
DIoOveruseStatsSubject.java68 assertWithMessage("getRemainingWriteBytes()").about(PerStateBytesSubject.perStateBytes()) in isEqualTo()
DCarWatchdogServiceUnitTest.java1606 android.automotive.watchdog.PerStateBytes perStateBytes = in constructPerStateBytes() local
1608 perStateBytes.foregroundBytes = fgBytes; in constructPerStateBytes()
1609 perStateBytes.backgroundBytes = bgBytes; in constructPerStateBytes()
1610 perStateBytes.garageModeBytes = gmBytes; in constructPerStateBytes()
1611 return perStateBytes; in constructPerStateBytes()
/packages/services/Car/cpp/watchdog/server/src/
DOveruseConfigurationXmlHelper.cpp227 PerStateBytes perStateBytes; in readPerStateBytes() local
249 perStateBytes.foregroundBytes = megaBytes * kOneMegaByte; in readPerStateBytes()
252 perStateBytes.backgroundBytes = megaBytes * kOneMegaByte; in readPerStateBytes()
255 perStateBytes.garageModeBytes = megaBytes * kOneMegaByte; in readPerStateBytes()
264 return perStateBytes; in readPerStateBytes()
511 Result<void> writePerStateBytes(const PerStateBytes& perStateBytes, XMLElement* rootElement) { in writePerStateBytes() argument
522 perStateBytes.foregroundBytes / kOneMegaByte); in writePerStateBytes()
528 perStateBytes.backgroundBytes / kOneMegaByte); in writePerStateBytes()
534 writeStateElement(kStateIdGarageMode, perStateBytes.garageModeBytes / kOneMegaByte); in writePerStateBytes()
DIoOveruseMonitor.cpp98 int64_t totalPerStateBytes(PerStateBytes perStateBytes) { in totalPerStateBytes() argument
103 return sum(perStateBytes.foregroundBytes, in totalPerStateBytes()
104 sum(perStateBytes.backgroundBytes, perStateBytes.garageModeBytes)); in totalPerStateBytes()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogPerfHandler.java1032 PerStateBytes perStateBytes) { in toPerStateIoOveruseThreshold() argument
1036 threshold.perStateWriteBytes.foregroundBytes = perStateBytes.getForegroundModeBytes(); in toPerStateIoOveruseThreshold()
1037 threshold.perStateWriteBytes.backgroundBytes = perStateBytes.getBackgroundModeBytes(); in toPerStateIoOveruseThreshold()
1038 threshold.perStateWriteBytes.garageModeBytes = perStateBytes.getGarageModeBytes(); in toPerStateIoOveruseThreshold()
1138 PerStateBytes perStateBytes = map.get(oldKey); in replaceKey() local
1139 if (perStateBytes != null) { in replaceKey()
1140 map.put(newKey, perStateBytes); in replaceKey()