Searched refs:perStateBytes (Results 1 – 10 of 10) sorted by relevance
108 PerStateBytes perStateBytes; in toPerStateBytes() local109 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() argument119 threshold.perStateWriteBytes = perStateBytes; in toPerStateIoOveruseThreshold()131 const PerStateBytes& perStateBytes) { in toPerStateIoOveruseThreshold() argument132 return toPerStateIoOveruseThreshold(toString(type), perStateBytes); in toPerStateIoOveruseThreshold()
59 const std::string& name, const PerStateBytes& perStateBytes);67 const PerStateBytes& perStateBytes);
88 PerStateBytes perStateBytes; in constructPerStateBytes() local89 perStateBytes.foregroundBytes = fgBytes; in constructPerStateBytes()90 perStateBytes.backgroundBytes = bgBytes; in constructPerStateBytes()91 perStateBytes.garageModeBytes = gmBytes; in constructPerStateBytes()92 return perStateBytes; in constructPerStateBytes()
53 protected int doHash(PerStateBytes perStateBytes) {54 return (int) ((perStateBytes.getForegroundModeBytes() * 10 ^ 4)55 + (perStateBytes.getBackgroundModeBytes() * 10 ^ 3)56 + perStateBytes.getGarageModeBytes());
36 public static PerStateBytesSubject assertThat(@Nullable PerStateBytes perStateBytes) { in assertThat() argument37 return assertAbout(PER_STATE_BYTES_SUBJECT_FACTORY).that(perStateBytes); in assertThat()41 public static Subject.Factory<PerStateBytesSubject, PerStateBytes> perStateBytes() { in perStateBytes() method in PerStateBytesSubject
68 assertWithMessage("getRemainingWriteBytes()").about(PerStateBytesSubject.perStateBytes()) in isEqualTo()
1606 android.automotive.watchdog.PerStateBytes perStateBytes = in constructPerStateBytes() local1608 perStateBytes.foregroundBytes = fgBytes; in constructPerStateBytes()1609 perStateBytes.backgroundBytes = bgBytes; in constructPerStateBytes()1610 perStateBytes.garageModeBytes = gmBytes; in constructPerStateBytes()1611 return perStateBytes; in constructPerStateBytes()
227 PerStateBytes perStateBytes; in readPerStateBytes() local249 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() argument522 perStateBytes.foregroundBytes / kOneMegaByte); in writePerStateBytes()528 perStateBytes.backgroundBytes / kOneMegaByte); in writePerStateBytes()534 writeStateElement(kStateIdGarageMode, perStateBytes.garageModeBytes / kOneMegaByte); in writePerStateBytes()
98 int64_t totalPerStateBytes(PerStateBytes perStateBytes) { in totalPerStateBytes() argument103 return sum(perStateBytes.foregroundBytes, in totalPerStateBytes()104 sum(perStateBytes.backgroundBytes, perStateBytes.garageModeBytes)); in totalPerStateBytes()
1032 PerStateBytes perStateBytes) { in toPerStateIoOveruseThreshold() argument1036 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() local1139 if (perStateBytes != null) { in replaceKey()1140 map.put(newKey, perStateBytes); in replaceKey()