Home
last modified time | relevance | path

Searched refs:WearEstimate (Results 1 – 13 of 13) sorted by relevance

/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DWearEstimate.java43 public final class WearEstimate implements Parcelable { class
47 public static final WearEstimate UNKNOWN_ESTIMATE = new WearEstimate(UNKNOWN, UNKNOWN);
49 public static final Parcelable.Creator<WearEstimate> CREATOR =
50 new Parcelable.Creator<WearEstimate>() {
51 public WearEstimate createFromParcel(Parcel in) {
52 return new WearEstimate(in);
54 public WearEstimate[] newArray(int size) {
55 return new WearEstimate[size];
77 public WearEstimate(int typeA, int typeB) { in WearEstimate() method in WearEstimate
82 public WearEstimate(Parcel in) { in WearEstimate() method in WearEstimate
[all …]
DWearEstimateChange.java52 public final @NonNull WearEstimate oldEstimate;
57 public final @NonNull WearEstimate newEstimate;
74 public WearEstimateChange(WearEstimate oldEstimate, in WearEstimateChange()
75 WearEstimate newEstimate, in WearEstimateChange()
90 oldEstimate = in.readParcelable(WearEstimate.class.getClassLoader()); in WearEstimateChange()
91 newEstimate = in.readParcelable(WearEstimate.class.getClassLoader()); in WearEstimateChange()
DICarStorageMonitoring.aidl22 import android.car.storagemonitoring.WearEstimate;
35 WearEstimate getWearEstimate() = 2; in getWearEstimate()
DWearEstimate.aidl19 parcelable WearEstimate;
DCarStorageMonitoringManager.java139 public WearEstimate getWearEstimate() { in getWearEstimate()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java33 import android.car.storagemonitoring.WearEstimate;
152 WearEstimate wearEstimate1 = new WearEstimate(10, 20); in testWearEstimateEquality()
153 WearEstimate wearEstimate2 = new WearEstimate(10, 20); in testWearEstimateEquality()
154 WearEstimate wearEstimate3 = new WearEstimate(20, 30); in testWearEstimateEquality()
162 WearEstimate originalWearEstimate = new WearEstimate(10, 20); in testWearEstimateParcel()
166 WearEstimate newWearEstimate = new WearEstimate(p); in testWearEstimateParcel()
175 new WearEstimate(10, 20), in testWearEstimateChangeEquality()
176 new WearEstimate(20, 30), in testWearEstimateChangeEquality()
181 new WearEstimate(10, 20), in testWearEstimateChangeEquality()
182 new WearEstimate(20, 30), in testWearEstimateChangeEquality()
[all …]
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DWearEstimateRecord.java20 import android.car.storagemonitoring.WearEstimate;
37 private final WearEstimate mOldWearEstimate;
38 private final WearEstimate mNewWearEstimate;
42 public WearEstimateRecord(@NonNull WearEstimate oldWearEstimate, in WearEstimateRecord()
43 @NonNull WearEstimate newWearEstimate, in WearEstimateRecord()
53 mOldWearEstimate = new WearEstimate(json.getJSONObject("oldWearEstimate")); in WearEstimateRecord()
54 mNewWearEstimate = new WearEstimate(json.getJSONObject("newWearEstimate")); in WearEstimateRecord()
69 public WearEstimate getOldWearEstimate() { in getOldWearEstimate()
73 public WearEstimate getNewWearEstimate() { in getNewWearEstimate()
135 private WearEstimate mOldWearEstimate = null;
[all …]
DWearInformation.java20 import android.car.storagemonitoring.WearEstimate;
88 public WearEstimate toWearEstimate() { in toWearEstimate()
89 return new WearEstimate(lifetimeEstimateA, lifetimeEstimateB); in toWearEstimate()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarStorageMonitoringTest.java34 import android.car.storagemonitoring.WearEstimate;
197 .fromWearEstimate(WearEstimate.UNKNOWN_ESTIMATE)
198 .toWearEstimate(new WearEstimate(10, 0))
202 .fromWearEstimate(new WearEstimate(10, 0))
203 .toWearEstimate(new WearEstimate(20, 0))
207 .fromWearEstimate(new WearEstimate(20, 0))
208 .toWearEstimate(new WearEstimate(30, 0))
217 .fromWearEstimate(WearEstimate.UNKNOWN_ESTIMATE)
218 .toWearEstimate(new WearEstimate(10, 0))
222 .fromWearEstimate(new WearEstimate(10, 0))
[all …]
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java28 import android.car.storagemonitoring.WearEstimate;
197 WearEstimate lastWearEstimate; in addEventIfNeededLocked()
198 WearEstimate currentWearEstimate = wearInformation.toWearEstimate(); in addEventIfNeededLocked()
201 lastWearEstimate = WearEstimate.UNKNOWN_ESTIMATE; in addEventIfNeededLocked()
556 public WearEstimate getWearEstimate() { in getWearEstimate()
562 new WearEstimate(wi.lifetimeEstimateA, wi.lifetimeEstimateB)).orElse( in getWearEstimate()
563 WearEstimate.UNKNOWN_ESTIMATE); in getWearEstimate()
/packages/services/Car/tests/DefaultStorageMonitoringCompanionApp/src/com/google/android/car/defaultstoragemonitoringcompanionapp/
DMainActivity.java21 import android.car.storagemonitoring.WearEstimate;
44 if (wearLevel == WearEstimate.UNKNOWN) return "unknown";
/packages/services/Car/car-lib/api/
Dsystem-lint-baseline.txt527 MissingNullability: android.car.storagemonitoring.WearEstimate#CREATOR:
528 … Missing nullability on field `CREATOR` in class `class android.car.storagemonitoring.WearEstimate`
529 MissingNullability: android.car.storagemonitoring.WearEstimate#WearEstimate(android.os.Parcel) para…
530 Missing nullability on parameter `in` in method `WearEstimate`
531 MissingNullability: android.car.storagemonitoring.WearEstimate#writeToParcel(android.os.Parcel, int…
535 …earEstimateChange(android.car.storagemonitoring.WearEstimate, android.car.storagemonitoring.WearEs…
537 …earEstimateChange(android.car.storagemonitoring.WearEstimate, android.car.storagemonitoring.WearEs…
539 …earEstimateChange(android.car.storagemonitoring.WearEstimate, android.car.storagemonitoring.WearEs…
667 ParcelConstructor: android.car.storagemonitoring.WearEstimate#WearEstimate(android.os.Parcel):
668 …ion is exposed through CREATOR, not raw constructors, in android.car.storagemonitoring.WearEstimate
Dsystem-current.txt1151 …r.PERMISSION_STORAGE_MONITORING) public android.car.storagemonitoring.WearEstimate getWearEstimate…
1233 public final class WearEstimate implements android.os.Parcelable {
1234 ctor public WearEstimate(int, int);
1235 ctor public WearEstimate(android.os.Parcel);
1238 …lic static final android.os.Parcelable.Creator<android.car.storagemonitoring.WearEstimate> CREATOR;
1245 …earEstimateChange(android.car.storagemonitoring.WearEstimate, android.car.storagemonitoring.WearEs…
1252 field @NonNull public final android.car.storagemonitoring.WearEstimate newEstimate;
1253 field @NonNull public final android.car.storagemonitoring.WearEstimate oldEstimate;