/aosp12/packages/services/Car/car-lib/src/android/car/watchdog/ |
H A D | IoOveruseConfiguration.java | 46 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() 203 …PerStateBytes componentLevelThresholds = (PerStateBytes) in.readTypedObject(PerStateBytes.CREATOR); in IoOveruseConfiguration() 248 private @NonNull PerStateBytes mComponentLevelThresholds; [all …]
|
H A D | PerStateBytes.java | 30 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 D | IoOveruseStats.java | 73 private @NonNull PerStateBytes mRemainingWriteBytes = new PerStateBytes(0L, 0L, 0L); 98 @NonNull PerStateBytes remainingWriteBytes) { in IoOveruseStats() 172 public @NonNull PerStateBytes getRemainingWriteBytes() { in getRemainingWriteBytes() 228 … PerStateBytes 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 D | PerStateBytes.aidl | 19 parcelable PerStateBytes;
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
H A D | InternalPerStateBytesSubject.java | 22 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 D | PerStateBytesSubject.java | 22 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 D | IoOveruseConfigurationSubject.java | 24 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 D | CarWatchdogServiceUnitTest.java | 112 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 D | OveruseConfigurationCache.java | 22 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 D | WatchdogPerfHandler.java | 85 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 D | IoUsageStats.aidl | 19 import android.automotive.watchdog.PerStateBytes; 28 PerStateBytes writtenBytes; 33 PerStateBytes forgivenWriteBytes;
|
H A D | PerStateIoOveruseThreshold.aidl | 19 import android.automotive.watchdog.PerStateBytes; 38 PerStateBytes perStateWriteBytes;
|
H A D | PackageIoOveruseStats.aidl | 20 import android.automotive.watchdog.PerStateBytes; 39 PerStateBytes forgivenWriteBytes;
|
/aosp12/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/ |
H A D | IoOveruseStats.aidl | 19 import android.automotive.watchdog.PerStateBytes; 34 PerStateBytes remainingWriteBytes; 49 PerStateBytes writtenBytes;
|
H A D | PerStateBytes.aidl | 24 parcelable PerStateBytes {
|
/aosp12/packages/services/Car/cpp/watchdog/server/src/ |
H A D | IoOveruseMonitor.cpp | 84 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 D | IoOveruseStats.aidl | 38 android.automotive.watchdog.PerStateBytes remainingWriteBytes; 41 android.automotive.watchdog.PerStateBytes writtenBytes;
|
H A D | PerStateBytes.aidl | 36 parcelable PerStateBytes {
|
/aosp12/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/current/android/automotive/watchdog/ |
H A D | IoOveruseStats.aidl | 38 android.automotive.watchdog.PerStateBytes remainingWriteBytes; 41 android.automotive.watchdog.PerStateBytes writtenBytes;
|
H A D | PerStateBytes.aidl | 36 parcelable PerStateBytes {
|
/aosp12/packages/services/Car/cpp/watchdog/server/tests/ |
H A D | OveruseConfigurationTestUtils.h | 55 PerStateBytes toPerStateBytes(const int64_t fgBytes, const int64_t bgBytes, 59 const std::string& name, const PerStateBytes& perStateBytes); 67 const PerStateBytes& perStateBytes);
|
H A D | OveruseConfigurationTestUtils.cpp | 106 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 D | IoOveruseConfigsTest.cpp | 55 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 D | MockIoOveruseConfigs.h | 57 MOCK_METHOD(PerStateBytes, fetchThreshold, 66 PerStateBytes threshold;
|
H A D | IoOveruseMonitorTest.cpp | 83 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()
|