Home
last modified time | relevance | path

Searched refs:estimate (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryInfo.java196 Estimate estimate = provider.getEnhancedBatteryPrediction(context); in getBatteryInfo() local
197 if (estimate != null) { in getBatteryInfo()
198 Estimate.storeCachedEstimate(context, estimate); in getBatteryInfo()
202 estimate, elapsedRealtimeUs, shortString); in getBatteryInfo()
206 final Estimate estimate = new Estimate( in getBatteryInfo() local
212 estimate, elapsedRealtimeUs, shortString); in getBatteryInfo()
218 Estimate estimate = new Estimate( in getBatteryInfoOld() local
222 return getBatteryInfo(context, batteryBroadcast, batteryUsageStats, estimate, in getBatteryInfoOld()
228 @NonNull BatteryUsageStats batteryUsageStats, Estimate estimate, in getBatteryInfo() argument
236 info.averageTimeToDischarge = estimate.getAverageDischargeTime(); in getBatteryInfo()
[all …]
DBatteryUtils.java384 Estimate estimate = getEnhancedEstimate(); in getBatteryInfo() local
387 if (estimate == null) { in getBatteryInfo()
388 estimate = new Estimate( in getBatteryInfo()
396 batteryUsageStats, estimate, elapsedRealtimeUs, false /* shortString */); in getBatteryInfo()
404 Estimate estimate = null; in getEnhancedEstimate() local
408 estimate = Estimate.getCachedEstimateIfAvailable(mContext); in getEnhancedEstimate()
411 estimate = mPowerUsageFeatureProvider.getEnhancedBatteryPrediction(mContext); in getEnhancedEstimate()
412 if (estimate != null) { in getEnhancedEstimate()
413 Estimate.storeCachedEstimate(mContext, estimate); in getEnhancedEstimate()
416 return estimate; in getEnhancedEstimate()
DDebugEstimatesLoader.java66 Estimate estimate = powerUsageFeatureProvider.getEnhancedBatteryPrediction(context); in loadInBackground() local
67 if (estimate == null) { in loadInBackground()
68 estimate = new Estimate(0, false, EstimateKt.AVERAGE_TIME_TO_DISCHARGE_UNKNOWN); in loadInBackground()
72 estimate, elapsedRealtimeUs, false); in loadInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoTest.java143 Estimate estimate = new Estimate(Duration.ofHours(4).toMillis(), in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString() local
147 mBatteryUsageStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString()
150 mBatteryUsageStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString()
162 Estimate estimate = new Estimate(Duration.ofMinutes(7).toMillis(), in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString() local
166 mBatteryUsageStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString()
169 mBatteryUsageStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString()
182 Estimate estimate = new Estimate(Duration.ofDays(3).toMillis(), in getBatteryInfo_MoreThanOneDay_suggestionLabelIsCorrectString() local
186 mBatteryUsageStats, estimate, SystemClock.elapsedRealtime() * 1000, in getBatteryInfo_MoreThanOneDay_suggestionLabelIsCorrectString()
195 Estimate estimate = new Estimate(Duration.ofMinutes(10).toMillis(), in testGetBatteryInfo_basedOnUsageTrueBetweenSevenAndFifteenMinutes_usesCorrectString() local
199 mBatteryUsageStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueBetweenSevenAndFifteenMinutes_usesCorrectString()
[all …]
DBatteryUtilsTest.java512 Estimate estimate = new Estimate(1000, true, 1000); in getEnhancedEstimate_doesNotUpdateCache_ifEstimateFresh() local
513 Estimate.storeCachedEstimate(mContext, estimate); in getEnhancedEstimate_doesNotUpdateCache_ifEstimateFresh()
515 estimate = mBatteryUtils.getEnhancedEstimate(); in getEnhancedEstimate_doesNotUpdateCache_ifEstimateFresh()
518 assertThat(estimate).isNotNull(); in getEnhancedEstimate_doesNotUpdateCache_ifEstimateFresh()
519 assertThat(estimate.isBasedOnUsage()).isTrue(); in getEnhancedEstimate_doesNotUpdateCache_ifEstimateFresh()
520 assertThat(estimate.getAverageDischargeTime()).isEqualTo(1000); in getEnhancedEstimate_doesNotUpdateCache_ifEstimateFresh()
/packages/modules/Virtualization/zipfuse/src/
Dmain.rs331 let mut estimate: usize = 0; // estimated number of bytes we will be writing in readdir() localVariable
333 while estimate < size as usize && end < buf.len() { in readdir()
336 estimate += (dirent_size + name_size + 7) & !7; // round to 8 byte boundary in readdir()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/
DCarUiRecyclerViewTest.java1285 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, in testSameSizeItems_estimateNextPositionDiffForScrollDistance() local
1288 assertEquals(estimate, itemsToScroll); in testSameSizeItems_estimateNextPositionDiffForScrollDistance()
1314 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroDistance() local
1317 assertEquals(estimate, 0); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroDistance()
1344 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroHeight() local
1347 assertEquals(estimate, 0); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroHeight()
1368 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, 50); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroItems() local
1370 assertEquals(estimate, 50); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroItems()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...
Dit_wordlist.combined.gz1dictionary=main:it,locale=it,description=Italiano,date=1414726258, ...
Dro_wordlist.combined.gz