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() 214 new WearInformation(40, 0, WearInformation.PRE_EOL_INFO_NORMAL), 234 new WearInformation(40, 0, WearInformation.PRE_EOL_INFO_NORMAL), 254 new WearInformation(0, 0, WearInformation.PRE_EOL_INFO_NORMAL), 264 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 | 76 public WearInformation load() { in load() 108 return new WearInformation(convertLifetime(lifetimeA), in load()
|
D | UfsWearInformationProvider.java | 58 public WearInformation load() { in load() 114 return new WearInformation(convertLifetime(lifetimeA.get()), in load()
|
D | HealthServiceWearInfoProvider.java | 53 public WearInformation load() { in load() 101 return new WearInformation(convertLifetime(lifetimeA.value), in load()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarStorageMonitoringService.java | 48 import com.android.car.storagemonitoring.WearInformation; 116 private Optional<WearInformation> mWearInformation = Optional.empty(); 163 private Optional<WearInformation> loadWearInformation() { in loadWearInformation() 165 WearInformation wearInfo = provider.load(); in loadWearInformation() 196 WearInformation wearInformation = mWearInformation.get(); in addEventIfNeededLocked() 251 private static void logOnAdverseWearLevel(WearInformation wearInformation) { in logOnAdverseWearLevel() 252 if (wearInformation.preEolInfo > WearInformation.PRE_EOL_INFO_NORMAL || in logOnAdverseWearLevel() 511 + mWearInformation.map(WearInformation::toString).orElse("missing")); in dump() 551 .orElse(WearInformation.UNKNOWN_PRE_EOL_INFO); in getPreEolIndicatorStatus()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/ |
D | CarStorageMonitoringTest.java | 85 WearInformation wearInformation = wearInfoProvider.load(); in testEMmcWearInformationProvider() 90 .isEqualTo(WearInformation.UNKNOWN_LIFETIME_ESTIMATE); in testEMmcWearInformationProvider() 92 .isEqualTo(WearInformation.PRE_EOL_INFO_NORMAL); in testEMmcWearInformationProvider() 110 WearInformation wearInformation = wearInfoProvider.load(); in testUfsWearInformationProvider() 114 assertThat(wearInformation.preEolInfo).isEqualTo(WearInformation.PRE_EOL_INFO_WARNING); in testUfsWearInformationProvider() 116 .isEqualTo(WearInformation.UNKNOWN_LIFETIME_ESTIMATE); in testUfsWearInformationProvider() 123 storageInfo.eol = WearInformation.PRE_EOL_INFO_NORMAL; in testHealthServiceWearInformationProvider() 125 storageInfo.lifetimeB = WearInformation.UNKNOWN_LIFETIME_ESTIMATE; in testHealthServiceWearInformationProvider() 139 WearInformation wearInformation = wearInfoProvider.load(); in testHealthServiceWearInformationProvider()
|