Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DEstimate.kt68 fun storeCachedEstimate(context: Context, estimate: Estimate) { in storeCachedEstimate()
72 estimate.estimateMillis) in storeCachedEstimate()
74 if (estimate.isBasedOnUsage) 1 else 0) in storeCachedEstimate()
76 estimate.averageDischargeTime) in storeCachedEstimate()
/frameworks/base/core/java/android/view/
DVelocityTracker.java466 return estimate(time, xCoeff); in estimateX()
475 return estimate(time, yCoeff); in estimateY()
496 private float estimate(float time, float[] c) { in estimate() method in VelocityTracker.Estimator
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java368 Estimate estimate = refreshEstimateIfNeeded(); in maybeShowBatteryWarningV2() local
371 mLowBatteryReminderLevels[0], estimate.getEstimateMillis(), in maybeShowBatteryWarningV2()
372 estimate.getAverageDischargeTime(), in maybeShowBatteryWarningV2()
374 mEnhancedEstimates.getLowWarningThreshold(), estimate.isBasedOnUsage(), in maybeShowBatteryWarningV2()
395 final Estimate estimate = mEnhancedEstimates.getEstimate(); in refreshEstimateIfNeeded() local
397 Slog.d(TAG, "updated estimate: " + estimate.getEstimateMillis()); in refreshEstimateIfNeeded()
399 return estimate; in refreshEstimateIfNeeded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DBatteryMeterView.java268 (String estimate) -> { in updatePercentText() argument
272 if (estimate != null && mShowPercentMode == MODE_ESTIMATE) { in updatePercentText()
273 mEstimateText = estimate; in updatePercentText()
274 mBatteryPercentView.setText(estimate); in updatePercentText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBatteryController.java181 void onBatteryRemainingEstimateRetrieved(@Nullable String estimate); in onBatteryRemainingEstimateRetrieved() argument
DBatteryControllerImpl.java361 String estimate = generateTimeRemainingString(); in notifyEstimateFetchCallbacks() local
363 completion.onBatteryRemainingEstimateRetrieved(estimate); in notifyEstimateFetchCallbacks()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java524 Estimate estimate = new Estimate(BELOW_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull() local
528 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
541 estimate = new Estimate(BELOW_SEVERE_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
542 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
551 estimate = new Estimate(BELOW_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
552 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java196 (String estimate) -> { in testBatteryEstimateFetch_doesNotThrow() argument
/frameworks/av/media/libstagefright/httplive/
DLiveSession.cpp184 int32_t estimate = *it; in estimateBandwidth() local
185 if (minEstimate < 0 || minEstimate > estimate) { in estimateBandwidth()
186 minEstimate = estimate; in estimateBandwidth()
188 if (maxEstimate < 0 || maxEstimate < estimate) { in estimateBandwidth()
189 maxEstimate = estimate; in estimateBandwidth()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java1636 AppLaunchEstimateInfo estimate = launchEstimates.get(i); in setEstimatedLaunchTimes() local
1637 if (estimate.estimatedLaunchTime <= now) { in setEstimatedLaunchTimes()
1640 + userId + ":" + estimate.packageName + " because it's old"); in setEstimatedLaunchTimes()
1645 mAppStandby.getEstimatedLaunchTime(estimate.packageName, userId); in setEstimatedLaunchTimes()
1646 if (estimate.estimatedLaunchTime != oldEstimatedLaunchTime) { in setEstimatedLaunchTimes()
1648 estimate.packageName, userId, estimate.estimatedLaunchTime); in setEstimatedLaunchTimes()
1649 changedTimes |= stageChangedEstimatedLaunchTime(userId, estimate.packageName); in setEstimatedLaunchTimes()
/frameworks/base/core/proto/android/server/
Dpowerstatsservice.proto204 * An estimate of energy consumption since boot for the subsystem identified
Dpowermanagerservice.proto181 // is provided as an enhanced estimate and only valid if
184 // Timestamp (in the elapsed realtime timebase) of last update to enhanced battery estimate
/frameworks/native/opengl/specs/
DEGL_ANDROID_get_frame_timestamps.txt144 composition. This can be used to estimate the latency of the
/frameworks/av/media/tests/benchmark/
DREADME.md220 1. **currentTime** : The time recorded at the creation of the stats. This may be used to estimate t…
/frameworks/base/core/proto/android/os/
Dbatterystats.proto150 // calculate an estimate, or if the battery is currently discharging.
154 // calculate an estimate, or if the battery is currently charging.
/frameworks/proto_logging/stats/enums/app/
Dtvsettings_enums.proto261 // Use Wi-Fi to estimate location
/frameworks/proto_logging/stats/
Datoms.proto7675 // Power estimate: time * average power for frequency / 1000.
13992 // An estimate on the cause of the response. This will only be populated for
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt63175 Landroid/view/VelocityTracker$Estimator;->estimate(F[F)F