Searched refs:WearEstimateRecord (Results 1 – 5 of 5) sorted by relevance
212 … WearEstimateRecord originalWearEstimateRecord = new WearEstimateRecord(new WearEstimate(10, 20), in testWearEstimateRecordJson()219 WearEstimateRecord newWearEstimateRecord = new WearEstimateRecord(jsonObject); in testWearEstimateRecordJson()225 … WearEstimateRecord wearEstimateRecord1 = new WearEstimateRecord(WearEstimate.UNKNOWN_ESTIMATE, in testWearEstimateRecordEquality()227 … WearEstimateRecord wearEstimateRecord2 = new WearEstimateRecord(WearEstimate.UNKNOWN_ESTIMATE, in testWearEstimateRecordEquality()229 … WearEstimateRecord 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 …]
45 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 …]
35 public class WearEstimateRecord { class42 public WearEstimateRecord(@NonNull WearEstimate oldWearEstimate, in WearEstimateRecord() method in WearEstimateRecord52 WearEstimateRecord(@NonNull JSONObject json) throws JSONException { in WearEstimateRecord() method in WearEstimateRecord92 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()
48 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 …]
44 import com.android.car.storagemonitoring.WearEstimateRecord;182 WearEstimateRecord newRecord = new WearEstimateRecord(lastWearEstimate, in addEventIfNeeded()