Home
last modified time | relevance | path

Searched refs:PerStateBytes (Results 1 – 25 of 36) sorted by relevance

12

/aosp12/packages/services/Car/car-lib/src/android/car/watchdog/
H A DIoOveruseConfiguration.java46 private @NonNull PerStateBytes mComponentLevelThresholds;
58 private @NonNull Map<String, PerStateBytes> mPackageSpecificThresholds;
71 private @NonNull Map<String, PerStateBytes> mAppCategorySpecificThresholds;
97 @NonNull PerStateBytes componentLevelThresholds, in IoOveruseConfiguration()
98 @NonNull Map<String,PerStateBytes> packageSpecificThresholds, in IoOveruseConfiguration()
99 @NonNull Map<String,PerStateBytes> appCategorySpecificThresholds, in IoOveruseConfiguration()
125 public @NonNull PerStateBytes getComponentLevelThresholds() { in getComponentLevelThresholds()
136 public @NonNull Map<String,PerStateBytes> getPackageSpecificThresholds() { in getPackageSpecificThresholds()
203PerStateBytes componentLevelThresholds = (PerStateBytes) in.readTypedObject(PerStateBytes.CREATOR); in IoOveruseConfiguration()
248 private @NonNull PerStateBytes mComponentLevelThresholds;
[all …]
H A DPerStateBytes.java30 public final class PerStateBytes implements Parcelable { class
72 public PerStateBytes( in PerStateBytes() method in PerStateBytes
138 /* package-private */ PerStateBytes(@android.annotation.NonNull android.os.Parcel in) { in PerStateBytes() method in PerStateBytes
154 public static final @android.annotation.NonNull Parcelable.Creator<PerStateBytes> CREATOR
155 = new Parcelable.Creator<PerStateBytes>() {
157 public PerStateBytes[] newArray(int size) {
158 return new PerStateBytes[size];
162 public PerStateBytes createFromParcel(@android.annotation.NonNull android.os.Parcel in) {
163 return new PerStateBytes(in);
H A DIoOveruseStats.java73 private @NonNull PerStateBytes mRemainingWriteBytes = new PerStateBytes(0L, 0L, 0L);
98 @NonNull PerStateBytes remainingWriteBytes) { in IoOveruseStats()
172 public @NonNull PerStateBytes getRemainingWriteBytes() { in getRemainingWriteBytes()
228PerStateBytes remainingWriteBytes = (PerStateBytes) in.readTypedObject(PerStateBytes.CREATOR); in IoOveruseStats()
271 private @NonNull PerStateBytes mRemainingWriteBytes;
368 public @NonNull Builder setRemainingWriteBytes(@NonNull PerStateBytes value) { in setRemainingWriteBytes()
393 mRemainingWriteBytes = new PerStateBytes(0L, 0L, 0L); in build()
H A DPerStateBytes.aidl19 parcelable PerStateBytes;
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
H A DInternalPerStateBytesSubject.java22 import android.automotive.watchdog.PerStateBytes;
31 PerStateBytes> PER_STATE_BYTES_SUBJECT_FACTORY =
35 private final PerStateBytes mActual;
38 public static InternalPerStateBytesSubject assertThat(@Nullable PerStateBytes perStateBytes) { in assertThat()
43 public static Subject.Factory<InternalPerStateBytesSubject, PerStateBytes> perStateBytes() { in perStateBytes()
48 @Nullable PerStateBytes perStateBytes, String format, Object... args) { in assertWithMessage()
54 @Nullable PerStateBytes subject) { in InternalPerStateBytesSubject()
60 public void isEqualTo(PerStateBytes expected) { in isEqualTo()
69 public static boolean isEquals(PerStateBytes actual, PerStateBytes expected) { in isEquals()
79 StringBuilder builder, PerStateBytes perStateBytes) { in toStringBuilder()
H A DPerStateBytesSubject.java22 import android.car.watchdog.PerStateBytes;
30 PerStateBytes> PER_STATE_BYTES_SUBJECT_FACTORY =
33 private final PerStateBytes mActual;
36 public static PerStateBytesSubject assertThat(@Nullable PerStateBytes perStateBytes) { in assertThat()
41 public static Subject.Factory<PerStateBytesSubject, PerStateBytes> perStateBytes() { in perStateBytes()
46 @Nullable PerStateBytes subject) { in PerStateBytesSubject()
52 public void isEqualTo(PerStateBytes expected) { in isEqualTo()
64 public static boolean isEquals(PerStateBytes actual, PerStateBytes expected) { in isEquals()
H A DIoOveruseConfigurationSubject.java24 import android.car.watchdog.PerStateBytes;
45 private static final Equivalence<PerStateBytes> PER_STATE_BYTES_EQUIVALENCE =
46 new Equivalence<PerStateBytes>() {
48 protected boolean doEquivalent(PerStateBytes actual, PerStateBytes expected) {
53 protected int doHash(PerStateBytes perStateBytes) {
106 private static boolean isPerStateBytesEquals(PerStateBytes actual, PerStateBytes expected) { in isPerStateBytesEquals()
H A DCarWatchdogServiceUnitTest.java112 import android.car.watchdog.PerStateBytes;
3559 android.automotive.watchdog.PerStateBytes perStateBytes = in constructPerStateBytes()
3560 new android.automotive.watchdog.PerStateBytes(); in constructPerStateBytes()
3980 android.automotive.watchdog.PerStateBytes zeroRemainingBytes = in sampleIoOveruseStats()
3982 android.automotive.watchdog.PerStateBytes nonZeroRemainingBytes = in sampleIoOveruseStats()
3984 android.automotive.watchdog.PerStateBytes writtenBytes = in sampleIoOveruseStats()
4156 PerStateBytes componentLevelThresholds = new PerStateBytes( in sampleIoOveruseConfigurationBuilder()
4314 android.automotive.watchdog.PerStateBytes actual, in isInternalPerStateBytesEquals()
4315 android.automotive.watchdog.PerStateBytes expected) { in isInternalPerStateBytesEquals()
4323 android.automotive.watchdog.PerStateBytes remainingWriteBytes, in constructInternalIoOveruseStats()
[all …]
/aosp12/packages/services/Car/service/src/com/android/car/watchdog/
H A DOveruseConfigurationCache.java22 import android.automotive.watchdog.PerStateBytes;
49 static final PerStateBytes DEFAULT_THRESHOLD =
68 private final SparseArray<PerStateBytes> mIoThresholdsByAppCategoryType = new SparseArray<>();
165 public PerStateBytes fetchThreshold(String genericPackageName, in fetchThreshold()
168 PerStateBytes threshold = null; in fetchThreshold()
291 ArrayMap<String, PerStateBytes> thresholdsByPackages) { in populateThresholdsByPackagesLocked()
299 private PerStateBytes fetchAppCategorySpecificThresholdLocked(String genericPackageName) { in fetchAppCategorySpecificThresholdLocked()
334 private static void dumpPerStateBytes(PerStateBytes perStateBytes, in dumpPerStateBytes()
346 return new PerStateBytes() {{ in constructPerStateBytes()
353 private static PerStateBytes copyPerStateBytes(PerStateBytes perStateBytes) {
[all …]
H A DWatchdogPerfHandler.java85 import android.car.watchdog.PerStateBytes;
1711 android.automotive.watchdog.PerStateBytes threshold = in constructCarWatchdogIoOveruseStatsLocked()
1713 android.automotive.watchdog.PerStateBytes writtenBytes = in constructCarWatchdogIoOveruseStatsLocked()
2002 private static PerStateBytes toPerStateBytes( in toPerStateBytes()
2119 Map<String, PerStateBytes> thresholds) { in toPerStateIoOveruseThresholds()
2131 PerStateBytes perStateBytes) { in toPerStateIoOveruseThreshold()
2198 PerStateBytes componentLevelThresholds = in toIoOveruseConfiguration()
2200 ArrayMap<String, PerStateBytes> packageSpecificThresholds = in toIoOveruseConfiguration()
2304 PerStateBytes perStateBytes = map.get(oldKey); in replaceKey()
2463 new android.automotive.watchdog.PerStateBytes();
[all …]
/aosp12/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
H A DIoUsageStats.aidl19 import android.automotive.watchdog.PerStateBytes;
28 PerStateBytes writtenBytes;
33 PerStateBytes forgivenWriteBytes;
H A DPerStateIoOveruseThreshold.aidl19 import android.automotive.watchdog.PerStateBytes;
38 PerStateBytes perStateWriteBytes;
H A DPackageIoOveruseStats.aidl20 import android.automotive.watchdog.PerStateBytes;
39 PerStateBytes forgivenWriteBytes;
/aosp12/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/
H A DIoOveruseStats.aidl19 import android.automotive.watchdog.PerStateBytes;
34 PerStateBytes remainingWriteBytes;
49 PerStateBytes writtenBytes;
H A DPerStateBytes.aidl24 parcelable PerStateBytes {
/aosp12/packages/services/Car/cpp/watchdog/server/src/
H A DIoOveruseMonitor.cpp84 PerStateBytes sum(const PerStateBytes& lhs, const PerStateBytes& rhs) { in sum()
88 PerStateBytes result; in sum()
95 PerStateBytes diff(const PerStateBytes& lhs, const PerStateBytes& rhs) { in diff()
99 PerStateBytes result; in diff()
118 int64_t totalPerStateBytes(PerStateBytes perStateBytes) { in totalPerStateBytes()
126 std::tuple<int32_t, PerStateBytes> calculateOveruseAndForgivenBytes(PerStateBytes writtenBytes, in calculateOveruseAndForgivenBytes()
127 PerStateBytes threshold) { in calculateOveruseAndForgivenBytes()
145 PerStateBytes forgivenWriteBytes; in calculateOveruseAndForgivenBytes()
/aosp12/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/3/android/automotive/watchdog/
H A DIoOveruseStats.aidl38 android.automotive.watchdog.PerStateBytes remainingWriteBytes;
41 android.automotive.watchdog.PerStateBytes writtenBytes;
H A DPerStateBytes.aidl36 parcelable PerStateBytes {
/aosp12/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/current/android/automotive/watchdog/
H A DIoOveruseStats.aidl38 android.automotive.watchdog.PerStateBytes remainingWriteBytes;
41 android.automotive.watchdog.PerStateBytes writtenBytes;
H A DPerStateBytes.aidl36 parcelable PerStateBytes {
/aosp12/packages/services/Car/cpp/watchdog/server/tests/
H A DOveruseConfigurationTestUtils.h55 PerStateBytes toPerStateBytes(const int64_t fgBytes, const int64_t bgBytes,
59 const std::string& name, const PerStateBytes& perStateBytes);
67 const PerStateBytes& perStateBytes);
H A DOveruseConfigurationTestUtils.cpp106 PerStateBytes toPerStateBytes(const int64_t fgBytes, const int64_t bgBytes, in toPerStateBytes()
108 PerStateBytes perStateBytes; in toPerStateBytes()
116 const PerStateBytes& perStateBytes) { in toPerStateIoOveruseThreshold()
131 const PerStateBytes& perStateBytes) { in toPerStateIoOveruseThreshold()
H A DIoOveruseConfigsTest.cpp55 const PerStateBytes SYSTEM_COMPONENT_LEVEL_THRESHOLDS = toPerStateBytes(200, 100, 500);
56 const PerStateBytes SYSTEM_PACKAGE_A_THRESHOLDS = toPerStateBytes(600, 400, 1000);
57 const PerStateBytes SYSTEM_PACKAGE_B_THRESHOLDS = toPerStateBytes(1200, 800, 1500);
58 const PerStateBytes VENDOR_COMPONENT_LEVEL_THRESHOLDS = toPerStateBytes(100, 50, 900);
59 const PerStateBytes VENDOR_PACKAGE_A_THRESHOLDS = toPerStateBytes(800, 300, 500);
60 const PerStateBytes VENDOR_PKG_B_THRESHOLDS = toPerStateBytes(1600, 600, 1000);
61 const PerStateBytes MAPS_THRESHOLDS = toPerStateBytes(700, 900, 1300);
62 const PerStateBytes MEDIA_THRESHOLDS = toPerStateBytes(1800, 1900, 2100);
63 const PerStateBytes THIRD_PARTY_COMPONENT_LEVEL_THRESHOLDS = toPerStateBytes(300, 150, 1900);
514 PerStateBytes defaultPerStateBytes = defaultThreshold().perStateWriteBytes; in TEST_F()
H A DMockIoOveruseConfigs.h57 MOCK_METHOD(PerStateBytes, fetchThreshold,
66 PerStateBytes threshold;
H A DIoOveruseMonitorTest.cpp83 PerStateBytes constructPerStateBytes(const int64_t fgBytes, const int64_t bgBytes, in constructPerStateBytes()
85 PerStateBytes perStateBytes; in constructPerStateBytes()
92 IoOveruseStats constructIoOveruseStats(const bool isKillable, const PerStateBytes& remaining, in constructIoOveruseStats()
93 const PerStateBytes& written, const int totalOveruses, in constructIoOveruseStats()
114 const PerStateBytes& remaining, const PerStateBytes& written, const PerStateBytes& forgiven, in constructPackageIoOveruseStats()
128 const PerStateBytes& writtenBytes, in constructUserPackageIoUsageStats()
129 const PerStateBytes& forgivenWriteBytes, in constructUserPackageIoUsageStats()

12