Searched refs:WearInformation (Results 1 – 8 of 8) sorted by relevance
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarStorageMonitoringTest.java | 50 import com.android.car.storagemonitoring.WearInformation; 83 private static final WearInformation DEFAULT_WEAR_INFORMATION = 84 new WearInformation(30, 0, WearInformation.PRE_EOL_INFO_NORMAL); 147 final WearInformation wearInformation; 158 @Nullable WearInformation wearInformation, in TestData() 165 @Nullable WearInformation wearInformation, in TestData() 211 new WearInformation(40, 0, WearInformation.PRE_EOL_INFO_NORMAL), 231 new WearInformation(40, 0, WearInformation.PRE_EOL_INFO_NORMAL), 251 new WearInformation(0, 0, WearInformation.PRE_EOL_INFO_NORMAL), 261 new WearInformation(0, 0, WearInformation.PRE_EOL_INFO_NORMAL), [all …]
|
/packages/services/Car/service/src/com/android/car/storagemonitoring/ |
D | WearInformation.java | 23 public final class WearInformation { class 51 public WearInformation(int lifetimeA, int lifetimeB, int preEol) { in WearInformation() method in WearInformation 64 if (other instanceof WearInformation) { in equals() 65 WearInformation wi = (WearInformation)other; in equals()
|
D | WearInformationProvider.java | 22 WearInformation load(); in load() 25 if ((lifetime <= 0) || (lifetime > 11)) return WearInformation.UNKNOWN_LIFETIME_ESTIMATE; in convertLifetime() 30 if ((eol <= 0) || (eol > 3)) return WearInformation.UNKNOWN_PRE_EOL_INFO; in adjustEol()
|
D | EMmcWearInformationProvider.java | 74 public WearInformation load() { in load() 102 return new WearInformation(convertLifetime(lifetimeA), in load()
|
D | UfsWearInformationProvider.java | 56 public WearInformation load() { in load() 108 return new WearInformation(convertLifetime(lifetimeA.get()), in load()
|
D | HealthServiceWearInfoProvider.java | 53 public WearInformation load() { in load() 101 return new WearInformation(lifetimeA.value, lifetimeB.value, in load()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarStorageMonitoringService.java | 46 import com.android.car.storagemonitoring.WearInformation; 104 private Optional<WearInformation> mWearInformation = Optional.empty(); 138 private Optional<WearInformation> loadWearInformation() { in loadWearInformation() 140 WearInformation wearInfo = provider.load(); in loadWearInformation() 170 WearInformation wearInformation = mWearInformation.get(); in addEventIfNeeded() 225 private static void logOnAdverseWearLevel(WearInformation wearInformation) { in logOnAdverseWearLevel() 226 if (wearInformation.preEolInfo > WearInformation.PRE_EOL_INFO_NORMAL || in logOnAdverseWearLevel() 481 mWearInformation.map(WearInformation::toString).orElse("missing")); in dump() 521 .orElse(WearInformation.UNKNOWN_PRE_EOL_INFO); in getPreEolIndicatorStatus()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/ |
D | CarStorageMonitoringTest.java | 81 WearInformation wearInformation = wearInfoProvider.load(); in testEMmcWearInformationProvider() 85 assertEquals(WearInformation.UNKNOWN_LIFETIME_ESTIMATE, in testEMmcWearInformationProvider() 88 assertEquals(WearInformation.PRE_EOL_INFO_NORMAL, wearInformation.preEolInfo); in testEMmcWearInformationProvider() 105 WearInformation wearInformation = wearInfoProvider.load(); in testUfsWearInformationProvider() 109 assertEquals(WearInformation.PRE_EOL_INFO_WARNING, wearInformation.preEolInfo); in testUfsWearInformationProvider() 110 assertEquals(WearInformation.UNKNOWN_LIFETIME_ESTIMATE, in testUfsWearInformationProvider() 117 storageInfo.eol = WearInformation.PRE_EOL_INFO_NORMAL; in testHealthServiceWearInformationProvider() 119 storageInfo.lifetimeB = WearInformation.UNKNOWN_LIFETIME_ESTIMATE; in testHealthServiceWearInformationProvider() 133 WearInformation wearInformation = wearInfoProvider.load(); in testHealthServiceWearInformationProvider()
|