Home
last modified time | relevance | path

Searched refs:WearInformation (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarStorageMonitoringTest.java52 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/
DWearInformation.java23 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()
DWearInformationProvider.java22 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()
DEMmcWearInformationProvider.java76 public WearInformation load() { in load()
108 return new WearInformation(convertLifetime(lifetimeA), in load()
DUfsWearInformationProvider.java58 public WearInformation load() { in load()
114 return new WearInformation(convertLifetime(lifetimeA.get()), in load()
DHealthServiceWearInfoProvider.java53 public WearInformation load() { in load()
101 return new WearInformation(convertLifetime(lifetimeA.value), in load()
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java48 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/
DCarStorageMonitoringTest.java85 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()