Searched refs:WearInformation (Results 1 – 8 of 8) sorted by relevance
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarStorageMonitoringTest.java | 52 import com.android.car.storagemonitoring.WearInformation; 86 private static final WearInformation DEFAULT_WEAR_INFORMATION = 87 new WearInformation(30, 0, WearInformation.PRE_EOL_INFO_NORMAL); 150 final WearInformation wearInformation; 161 @Nullable WearInformation wearInformation, in TestData() 168 @Nullable WearInformation wearInformation, in TestData() 212 new WearInformation(40, 0, WearInformation.PRE_EOL_INFO_NORMAL), 232 new WearInformation(40, 0, WearInformation.PRE_EOL_INFO_NORMAL), 252 new WearInformation(0, 0, WearInformation.PRE_EOL_INFO_NORMAL), 262 new WearInformation(0, 0, WearInformation.PRE_EOL_INFO_NORMAL), [all …]
|
/packages/services/Car/service/src/com/android/car/storagemonitoring/ |
D | WearInformation.java | 22 public final class WearInformation { class 50 public WearInformation(int lifetimeA, int lifetimeB, int preEol) { in WearInformation() method in WearInformation 63 if (other instanceof WearInformation) { in equals() 64 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 | 72 public WearInformation load() { in load() 104 return new WearInformation(convertLifetime(lifetimeA), in load()
|
D | UfsWearInformationProvider.java | 58 public WearInformation load() { in load() 117 return new WearInformation(convertLifetime(lifetimeA.get()), in load()
|
D | HealthServiceWearInfoProvider.java | 53 public WearInformation load() { in load() 102 return new WearInformation(convertLifetime(lifetimeA.value), in load()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarStorageMonitoringService.java | 52 import com.android.car.storagemonitoring.WearInformation; 125 private Optional<WearInformation> mWearInformation = Optional.empty(); 174 private Optional<WearInformation> loadWearInformation() { in loadWearInformation() 176 WearInformation wearInfo = provider.load(); in loadWearInformation() 207 WearInformation wearInformation = mWearInformation.get(); in addEventIfNeededLocked() 263 private static void logOnAdverseWearLevel(WearInformation wearInformation) { in logOnAdverseWearLevel() 264 if (wearInformation.preEolInfo > WearInformation.PRE_EOL_INFO_NORMAL || in logOnAdverseWearLevel() 526 + mWearInformation.map(WearInformation::toString).orElse("missing")); in dump() 571 .orElse(WearInformation.UNKNOWN_PRE_EOL_INFO); in getPreEolIndicatorStatus()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/ |
D | CarStorageMonitoringTest.java | 86 WearInformation wearInformation = wearInfoProvider.load(); in testEMmcWearInformationProvider() 91 .isEqualTo(WearInformation.UNKNOWN_LIFETIME_ESTIMATE); in testEMmcWearInformationProvider() 93 .isEqualTo(WearInformation.PRE_EOL_INFO_NORMAL); in testEMmcWearInformationProvider() 111 WearInformation wearInformation = wearInfoProvider.load(); in testUfsWearInformationProvider() 115 assertThat(wearInformation.preEolInfo).isEqualTo(WearInformation.PRE_EOL_INFO_WARNING); in testUfsWearInformationProvider() 117 .isEqualTo(WearInformation.UNKNOWN_LIFETIME_ESTIMATE); in testUfsWearInformationProvider() 124 storageInfo.eol = WearInformation.PRE_EOL_INFO_NORMAL; in testHealthServiceWearInformationProvider() 126 storageInfo.lifetimeB = WearInformation.UNKNOWN_LIFETIME_ESTIMATE; in testHealthServiceWearInformationProvider() 140 WearInformation wearInformation = wearInfoProvider.load(); in testHealthServiceWearInformationProvider()
|