Home
last modified time | relevance | path

Searched refs:wearInformation (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java86 WearInformation wearInformation = wearInfoProvider.load(); in testEMmcWearInformationProvider() local
88 assertThat(wearInformation).isNotNull(); in testEMmcWearInformationProvider()
89 assertThat(wearInformation.lifetimeEstimateA).isEqualTo(40); in testEMmcWearInformationProvider()
90 assertThat(wearInformation.lifetimeEstimateB) in testEMmcWearInformationProvider()
92 assertThat(wearInformation.preEolInfo) in testEMmcWearInformationProvider()
111 WearInformation wearInformation = wearInfoProvider.load(); in testUfsWearInformationProvider() local
113 assertThat(wearInformation).isNotNull(); in testUfsWearInformationProvider()
114 assertThat(wearInformation.lifetimeEstimateB).isEqualTo(90); in testUfsWearInformationProvider()
115 assertThat(wearInformation.preEolInfo).isEqualTo(WearInformation.PRE_EOL_INFO_WARNING); in testUfsWearInformationProvider()
116 assertThat(wearInformation.lifetimeEstimateA) in testUfsWearInformationProvider()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarStorageMonitoringTest.java150 final WearInformation wearInformation; field in CarStorageMonitoringTest.TestData
161 @Nullable WearInformation wearInformation, in TestData() argument
164 this(uptime, wearInformation, wearHistory, ioStats, null, null); in TestData()
168 @Nullable WearInformation wearInformation, in TestData() argument
173 if (wearInformation == null) wearInformation = DEFAULT_WEAR_INFORMATION; in TestData()
182 this.wearInformation = wearInformation; in TestData()
330 mMockStorageMonitoringInterface.setWearInformation(wearData.wearInformation); in configureFakeSystemInterface()
435 final WearInformation expectedCurrentWear = wearData.wearInformation; in checkLastWearEvent()
815 void setWearInformation(WearInformation wearInformation) { in setWearInformation() argument
816 mWearInformation = wearInformation; in setWearInformation()
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java207 WearInformation wearInformation = mWearInformation.get(); in addEventIfNeededLocked()
209 WearEstimate currentWearEstimate = wearInformation.toWearEstimate(); in addEventIfNeededLocked()
263 private static void logOnAdverseWearLevel(WearInformation wearInformation) { in logOnAdverseWearLevel() argument
264 if (wearInformation.preEolInfo > WearInformation.PRE_EOL_INFO_NORMAL || in logOnAdverseWearLevel()
265 Math.max(wearInformation.lifetimeEstimateA, in logOnAdverseWearLevel()
266 wearInformation.lifetimeEstimateB) >= MIN_WEAR_ESTIMATE_OF_CONCERN) { in logOnAdverseWearLevel()
268 + wearInformation); in logOnAdverseWearLevel()