Searched refs:estimate (Results 1 – 12 of 12) sorted by relevance
196 Estimate estimate = provider.getEnhancedBatteryPrediction(context); in getBatteryInfo() local197 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() local212 estimate, elapsedRealtimeUs, shortString); in getBatteryInfo()218 Estimate estimate = new Estimate( in getBatteryInfoOld() local222 return getBatteryInfo(context, batteryBroadcast, batteryUsageStats, estimate, in getBatteryInfoOld()228 @NonNull BatteryUsageStats batteryUsageStats, Estimate estimate, in getBatteryInfo() argument236 info.averageTimeToDischarge = estimate.getAverageDischargeTime(); in getBatteryInfo()[all …]
384 Estimate estimate = getEnhancedEstimate(); in getBatteryInfo() local387 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() local408 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()
66 Estimate estimate = powerUsageFeatureProvider.getEnhancedBatteryPrediction(context); in loadInBackground() local67 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()
143 Estimate estimate = new Estimate(Duration.ofHours(4).toMillis(), in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString() local147 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() local166 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() local186 mBatteryUsageStats, estimate, SystemClock.elapsedRealtime() * 1000, in getBatteryInfo_MoreThanOneDay_suggestionLabelIsCorrectString()195 Estimate estimate = new Estimate(Duration.ofMinutes(10).toMillis(), in testGetBatteryInfo_basedOnUsageTrueBetweenSevenAndFifteenMinutes_usesCorrectString() local199 mBatteryUsageStats, estimate, SystemClock.elapsedRealtime() * 1000, in testGetBatteryInfo_basedOnUsageTrueBetweenSevenAndFifteenMinutes_usesCorrectString()[all …]
512 Estimate estimate = new Estimate(1000, true, 1000); in getEnhancedEstimate_doesNotUpdateCache_ifEstimateFresh() local513 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()
331 let mut estimate: usize = 0; // estimated number of bytes we will be writing in readdir() localVariable333 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()
1285 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, in testSameSizeItems_estimateNextPositionDiffForScrollDistance() local1288 assertEquals(estimate, itemsToScroll); in testSameSizeItems_estimateNextPositionDiffForScrollDistance()1314 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroDistance() local1317 assertEquals(estimate, 0); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroDistance()1344 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroHeight() local1347 assertEquals(estimate, 0); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroHeight()1368 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, 50); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroItems() local1370 assertEquals(estimate, 50); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroItems()
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
1dictionary=main:en,locale=en,description=English,date=1414726273, ...
1dictionary=main:it,locale=it,description=Italiano,date=1414726258, ...