Home
last modified time | relevance | path

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

123

/packages/services/Car/car-lib/src/android/car/watchdog/
DIoOveruseConfiguration.java47 private @NonNull PerStateBytes mComponentLevelThresholds;
59 private @NonNull Map<String, PerStateBytes> mPackageSpecificThresholds;
72 private @NonNull Map<String, PerStateBytes> mAppCategorySpecificThresholds;
99 @NonNull PerStateBytes componentLevelThresholds, in IoOveruseConfiguration()
100 @NonNull Map<String,PerStateBytes> packageSpecificThresholds, in IoOveruseConfiguration()
101 @NonNull Map<String,PerStateBytes> appCategorySpecificThresholds, in IoOveruseConfiguration()
127 public @NonNull PerStateBytes getComponentLevelThresholds() { in getComponentLevelThresholds()
142 public @NonNull Map<String,PerStateBytes> getPackageSpecificThresholds() { in getPackageSpecificThresholds()
158 public @NonNull Map<String,PerStateBytes> getAppCategorySpecificThresholds() { in getAppCategorySpecificThresholds()
210PerStateBytes componentLevelThresholds = (PerStateBytes) in.readTypedObject(PerStateBytes.CREATOR); in IoOveruseConfiguration()
[all …]
DPerStateBytes.java30 public final class PerStateBytes implements Parcelable { class
73 public PerStateBytes( in PerStateBytes() method in PerStateBytes
140 /* package-private */ PerStateBytes(@android.annotation.NonNull android.os.Parcel in) { in PerStateBytes() method in PerStateBytes
156 public static final @android.annotation.NonNull Parcelable.Creator<PerStateBytes> CREATOR
157 = new Parcelable.Creator<PerStateBytes>() {
159 public PerStateBytes[] newArray(int size) {
160 return new PerStateBytes[size];
164 public PerStateBytes createFromParcel(@android.annotation.NonNull android.os.Parcel in) {
165 return new PerStateBytes(in);
DIoOveruseStats.java74 private @NonNull PerStateBytes mRemainingWriteBytes = new PerStateBytes(0L, 0L, 0L);
100 @NonNull PerStateBytes remainingWriteBytes) { in IoOveruseStats()
174 public @NonNull PerStateBytes getRemainingWriteBytes() { in getRemainingWriteBytes()
231PerStateBytes remainingWriteBytes = (PerStateBytes) in.readTypedObject(PerStateBytes.CREATOR); in IoOveruseStats()
274 private @NonNull PerStateBytes mRemainingWriteBytes;
371 public @NonNull Builder setRemainingWriteBytes(@NonNull PerStateBytes value) { in setRemainingWriteBytes()
396 mRemainingWriteBytes = new PerStateBytes(0L, 0L, 0L); in build()
/packages/services/Car/service/src/com/android/car/watchdog/
DOveruseConfigurationCache.java22 import android.automotive.watchdog.PerStateBytes;
57 static final PerStateBytes DEFAULT_THRESHOLD =
70 private final SparseArray<PerStateBytes> mGenericIoThresholdsByComponent = new SparseArray<>();
72 private final ArrayMap<String, PerStateBytes> mIoThresholdsBySystemPackages = new ArrayMap<>();
74 private final ArrayMap<String, PerStateBytes> mIoThresholdsByVendorPackages = new ArrayMap<>();
76 private final SparseArray<PerStateBytes> mIoThresholdsByAppCategoryType = new SparseArray<>();
169 PerStateBytes perStateBytes = mGenericIoThresholdsByComponent.valueAt(i); in dumpProto()
170 proto.write(PerformanceDump.PerStateBytes.FOREGROUND_BYTES, in dumpProto()
172 proto.write(PerformanceDump.PerStateBytes.BACKGROUND_BYTES, in dumpProto()
174 proto.write(PerformanceDump.PerStateBytes.GARAGEMODE_BYTES, in dumpProto()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
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()
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()
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()
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DUidIoUsageStats.aidl19 import android.automotive.watchdog.PerStateBytes;
28 PerStateBytes writtenBytes;
33 PerStateBytes readBytes;
DIoUsageStats.aidl19 import android.automotive.watchdog.PerStateBytes;
28 PerStateBytes writtenBytes;
33 PerStateBytes forgivenWriteBytes;
DSystemSummaryUsageStats.aidl19 import android.automotive.watchdog.PerStateBytes;
63 PerStateBytes totalIoReads;
68 PerStateBytes totalIoWrites;
DPerStateIoOveruseThreshold.aidl19 import android.automotive.watchdog.PerStateBytes;
38 PerStateBytes perStateWriteBytes;
DPackageIoOveruseStats.aidl20 import android.automotive.watchdog.PerStateBytes;
39 PerStateBytes forgivenWriteBytes;
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/
DIoOveruseStats.aidl19 import android.automotive.watchdog.PerStateBytes;
34 PerStateBytes remainingWriteBytes;
49 PerStateBytes writtenBytes;
/packages/services/Car/cpp/watchdog/server/src/
DIoOveruseMonitor.cpp50 using ::aidl::android::automotive::watchdog::PerStateBytes;
94 PerStateBytes sum(const PerStateBytes& lhs, const PerStateBytes& rhs) { in sum()
98 PerStateBytes result; in sum()
105 PerStateBytes diff(const PerStateBytes& lhs, const PerStateBytes& rhs) { in diff()
109 PerStateBytes result; in diff()
128 int64_t totalPerStateBytes(PerStateBytes perStateBytes) { in totalPerStateBytes()
136 std::tuple<int32_t, PerStateBytes> calculateOveruseAndForgivenBytes(PerStateBytes writtenBytes, in calculateOveruseAndForgivenBytes()
137 PerStateBytes threshold) { in calculateOveruseAndForgivenBytes()
155 PerStateBytes forgivenWriteBytes; in calculateOveruseAndForgivenBytes()
/packages/services/Car/cpp/watchdog/server/tests/
DOveruseConfigurationTestUtils.cpp23 using ::aidl::android::automotive::watchdog::PerStateBytes;
107 PerStateBytes toPerStateBytes(const int64_t fgBytes, const int64_t bgBytes, in toPerStateBytes()
109 PerStateBytes perStateBytes; in toPerStateBytes()
117 const PerStateBytes& perStateBytes) { in toPerStateIoOveruseThreshold()
132 const PerStateBytes& perStateBytes) { in toPerStateIoOveruseThreshold()
/packages/services/Car/service/proto/android/car/watchdog/
Dwatchdogservice_dump.proto95 optional PerStateBytes threshold = 2;
100 optional PerStateBytes threshold = 2;
106 optional PerStateBytes threshold = 2;
117 optional PerStateBytes forgiven_write_bytes = 2;
125 optional PerStateBytes remaining_write_bytes = 2;
128 optional PerStateBytes written_bytes = 5;
132 message PerStateBytes { message
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/
DUidIoUsageStats.aidl36 android.automotive.watchdog.PerStateBytes writtenBytes;
37 android.automotive.watchdog.PerStateBytes readBytes;
DIoUsageStats.aidl36 android.automotive.watchdog.PerStateBytes writtenBytes;
37 android.automotive.watchdog.PerStateBytes forgivenWriteBytes;
DSystemSummaryUsageStats.aidl43 android.automotive.watchdog.PerStateBytes totalIoReads;
44 android.automotive.watchdog.PerStateBytes totalIoWrites;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/
DUidIoUsageStats.aidl36 android.automotive.watchdog.PerStateBytes writtenBytes;
37 android.automotive.watchdog.PerStateBytes readBytes;
DIoUsageStats.aidl36 android.automotive.watchdog.PerStateBytes writtenBytes;
37 android.automotive.watchdog.PerStateBytes forgivenWriteBytes;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/
DIoUsageStats.aidl36 android.automotive.watchdog.PerStateBytes writtenBytes;
37 android.automotive.watchdog.PerStateBytes forgivenWriteBytes;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/1/android/automotive/watchdog/internal/
DIoUsageStats.aidl36 android.automotive.watchdog.PerStateBytes writtenBytes;
37 android.automotive.watchdog.PerStateBytes forgivenWriteBytes;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/3/android/automotive/watchdog/
DIoOveruseStats.aidl38 android.automotive.watchdog.PerStateBytes remainingWriteBytes;
41 android.automotive.watchdog.PerStateBytes writtenBytes;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/current/android/automotive/watchdog/
DIoOveruseStats.aidl38 android.automotive.watchdog.PerStateBytes remainingWriteBytes;
41 android.automotive.watchdog.PerStateBytes writtenBytes;

123