Home
last modified time | relevance | path

Searched refs:WearEstimateRecord (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/service/src/com/android/car/storagemonitoring/
DWearHistory.java44 private final List<WearEstimateRecord> mWearHistory = new ArrayList<>();
52 WearEstimateRecord wearRecord = new WearEstimateRecord(wearRecordJson); in WearHistory()
57 public static WearHistory fromRecords(@NonNull WearEstimateRecord... records) { in fromRecords()
73 for (WearEstimateRecord wearRecord : mWearHistory) { in writeToJson()
80 public boolean add(@NonNull WearEstimateRecord record) { in add()
82 mWearHistory.sort((WearEstimateRecord o1, WearEstimateRecord o2) -> in add()
94 public WearEstimateRecord get(int i) { in get()
98 public WearEstimateRecord getLast() { in getLast()
116 WearEstimateRecord previousRecord = get(i - 1); in toWearEstimateChanges()
117 WearEstimateRecord currentRecord = get(i); in toWearEstimateChanges()
DWearEstimateRecord.java37 public class WearEstimateRecord { class
44 public WearEstimateRecord(@NonNull WearEstimate oldWearEstimate, in WearEstimateRecord() method in WearEstimateRecord
55 WearEstimateRecord(@NonNull JSONObject json) throws JSONException { in WearEstimateRecord() method in WearEstimateRecord
96 if (other instanceof WearEstimateRecord) { in equals()
97 WearEstimateRecord wer = (WearEstimateRecord)other; in equals()
172 public WearEstimateRecord build() { in build()
177 return new WearEstimateRecord( in build()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java229WearEstimateRecord originalWearEstimateRecord = new WearEstimateRecord(new WearEstimate(10, 20), in testWearEstimateRecordJson()
236 WearEstimateRecord newWearEstimateRecord = new WearEstimateRecord(jsonObject); in testWearEstimateRecordJson()
244WearEstimateRecord wearEstimateRecord1 = new WearEstimateRecord(WearEstimate.UNKNOWN_ESTIMATE, in testWearEstimateRecordEquality()
246WearEstimateRecord wearEstimateRecord2 = new WearEstimateRecord(WearEstimate.UNKNOWN_ESTIMATE, in testWearEstimateRecordEquality()
248WearEstimateRecord wearEstimateRecord3 = new WearEstimateRecord(WearEstimate.UNKNOWN_ESTIMATE, in testWearEstimateRecordEquality()
259 WearEstimateRecord wearEstimateRecord1 = new WearEstimateRecord( in testWearHistoryJson()
262 WearEstimateRecord wearEstimateRecord2 = new WearEstimateRecord( in testWearHistoryJson()
265 WearEstimateRecord wearEstimateRecord3 = new WearEstimateRecord( in testWearHistoryJson()
283 WearEstimateRecord wearEstimateRecord1 = new WearEstimateRecord( in testWearHistoryEquality()
286 WearEstimateRecord wearEstimateRecord2 = new WearEstimateRecord( in testWearHistoryEquality()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarStorageMonitoringTest.java50 import com.android.car.storagemonitoring.WearEstimateRecord;
194 WearEstimateRecord.Builder.newBuilder()
199 WearEstimateRecord.Builder.newBuilder()
204 WearEstimateRecord.Builder.newBuilder()
214 WearEstimateRecord.Builder.newBuilder()
219 WearEstimateRecord.Builder.newBuilder()
224 WearEstimateRecord.Builder.newBuilder()
234 WearEstimateRecord.Builder.newBuilder()
239 WearEstimateRecord.Builder.newBuilder()
244 WearEstimateRecord.Builder.newBuilder()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java50 import com.android.car.storagemonitoring.WearEstimateRecord;
219 WearEstimateRecord newRecord = new WearEstimateRecord(lastWearEstimate, in addEventIfNeededLocked()