Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java212WearEstimateRecord originalWearEstimateRecord = new WearEstimateRecord(new WearEstimate(10, 20), in testWearEstimateRecordJson()
219 WearEstimateRecord newWearEstimateRecord = new WearEstimateRecord(jsonObject); in testWearEstimateRecordJson()
225WearEstimateRecord wearEstimateRecord1 = new WearEstimateRecord(WearEstimate.UNKNOWN_ESTIMATE, in testWearEstimateRecordEquality()
227WearEstimateRecord wearEstimateRecord2 = new WearEstimateRecord(WearEstimate.UNKNOWN_ESTIMATE, in testWearEstimateRecordEquality()
229WearEstimateRecord wearEstimateRecord3 = new WearEstimateRecord(WearEstimate.UNKNOWN_ESTIMATE, in testWearEstimateRecordEquality()
239 WearEstimateRecord wearEstimateRecord1 = new WearEstimateRecord( in testWearHistoryJson()
242 WearEstimateRecord wearEstimateRecord2 = new WearEstimateRecord( in testWearHistoryJson()
245 WearEstimateRecord wearEstimateRecord3 = new WearEstimateRecord( in testWearHistoryJson()
261 WearEstimateRecord wearEstimateRecord1 = new WearEstimateRecord( in testWearHistoryEquality()
264 WearEstimateRecord wearEstimateRecord2 = new WearEstimateRecord( in testWearHistoryEquality()
[all …]
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DWearHistory.java45 private final List<WearEstimateRecord> mWearHistory = new ArrayList<>();
53 WearEstimateRecord wearRecord = new WearEstimateRecord(wearRecordJson); in WearHistory()
58 public static WearHistory fromRecords(@NonNull WearEstimateRecord... records) { in fromRecords()
72 for (WearEstimateRecord wearRecord : mWearHistory) { in writeToJson()
79 public boolean add(@NonNull WearEstimateRecord record) { in add()
81 mWearHistory.sort((WearEstimateRecord o1, WearEstimateRecord o2) -> in add()
93 public WearEstimateRecord get(int i) { in get()
97 public WearEstimateRecord getLast() { in getLast()
115 WearEstimateRecord previousRecord = get(i - 1); in toWearEstimateChanges()
116 WearEstimateRecord currentRecord = get(i); in toWearEstimateChanges()
[all …]
DWearEstimateRecord.java35 public class WearEstimateRecord { class
42 public WearEstimateRecord(@NonNull WearEstimate oldWearEstimate, in WearEstimateRecord() method in WearEstimateRecord
52 WearEstimateRecord(@NonNull JSONObject json) throws JSONException { in WearEstimateRecord() method in WearEstimateRecord
92 if (other instanceof WearEstimateRecord) { in equals()
93 WearEstimateRecord wer = (WearEstimateRecord)other; in equals()
169 public WearEstimateRecord build() { in build()
174 return new WearEstimateRecord( in build()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarStorageMonitoringTest.java48 import com.android.car.storagemonitoring.WearEstimateRecord;
193 WearEstimateRecord.Builder.newBuilder()
198 WearEstimateRecord.Builder.newBuilder()
203 WearEstimateRecord.Builder.newBuilder()
213 WearEstimateRecord.Builder.newBuilder()
218 WearEstimateRecord.Builder.newBuilder()
223 WearEstimateRecord.Builder.newBuilder()
233 WearEstimateRecord.Builder.newBuilder()
238 WearEstimateRecord.Builder.newBuilder()
243 WearEstimateRecord.Builder.newBuilder()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java44 import com.android.car.storagemonitoring.WearEstimateRecord;
182 WearEstimateRecord newRecord = new WearEstimateRecord(lastWearEstimate, in addEventIfNeeded()