/aosp12/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
H A D | BatteryInfo.java | 205 Estimate estimate = provider.getEnhancedBatteryPrediction(context); in getBatteryInfo() local 206 if (estimate != null) { in getBatteryInfo() 207 Estimate.storeCachedEstimate(context, estimate); in getBatteryInfo() 211 estimate, elapsedRealtimeUs, shortString); in getBatteryInfo() 215 final Estimate estimate = new Estimate( in getBatteryInfo() local 221 estimate, elapsedRealtimeUs, shortString); in getBatteryInfo() 227 Estimate estimate = new Estimate( in getBatteryInfoOld() local 237 @NonNull BatteryUsageStats batteryUsageStats, Estimate estimate, in getBatteryInfo() argument 245 info.averageTimeToDischarge = estimate.getAverageDischargeTime(); in getBatteryInfo() 297 Estimate estimate, BatteryInfo info) { in updateBatteryInfoDischarging() argument [all …]
|
H A D | DebugEstimatesLoader.java | 66 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()
|
H A D | BatteryUtils.java | 393 Estimate estimate = getEnhancedEstimate(); in getBatteryInfo() local 396 if (estimate == null) { in getBatteryInfo() 397 estimate = new Estimate( in getBatteryInfo() 405 batteryUsageStats, estimate, elapsedRealtimeUs, false /* shortString */); in getBatteryInfo() 413 Estimate estimate = null; in getEnhancedEstimate() local 417 estimate = Estimate.getCachedEstimateIfAvailable(mContext); in getEnhancedEstimate() 420 estimate = mPowerUsageFeatureProvider.getEnhancedBatteryPrediction(mContext); in getEnhancedEstimate() 421 if (estimate != null) { in getEnhancedEstimate() 422 Estimate.storeCachedEstimate(mContext, estimate); in getEnhancedEstimate() 425 return estimate; in getEnhancedEstimate()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
H A D | BatteryInfoTest.java | 143 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 339 if (charging && estimate) { in getBatteryInfo() [all …]
|
H A D | BatteryUtilsTest.java | 512 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()
|
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
H A D | Estimate.kt | 68 fun storeCachedEstimate(context: Context, estimate: Estimate) { 72 estimate.estimateMillis) 74 if (estimate.isBasedOnUsage) 1 else 0) 76 estimate.averageDischargeTime)
|
/aosp12/hardware/interfaces/gnss/1.0/ |
H A D | IGnssDebug.hal | 102 * Provides the current best known UTC time estimate. 109 /** UTC time estimate. */ 111 /** 68% error estimate in time. */ 114 * 68% error estimate in local clock drift, 169 /** Current best know time estimate */ 184 * known position, best known time estimate and a complete list of
|
H A D | IGnssMeasurementCallback.hal | 176 * Represents an estimate of the GNSS clock time. 209 * hwClockDiscontinuityCount field). The receiver's estimate of GNSS time 213 * This GNSS time must be the best estimate of current GNSS time 239 * local estimate of GPS time = timeNs - (fullBiasNs + biasNs) 244 * The error estimate for the sum of this and the biasNs is the biasUncertaintyNs. 255 * The error estimate for the sum of this and the fullBiasNs is the 265 * 1-Sigma uncertainty associated with the local estimate of GNSS time (clock
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | VelocityTracker.java | 467 return estimate(time, xCoeff); in estimateX() 476 return estimate(time, yCoeff); in estimateY() 497 private float estimate(float time, float[] c) { in estimate() method in VelocityTracker.Estimator
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
H A D | PowerUI.java | 345 Estimate estimate = refreshEstimateIfNeeded(); in maybeShowBatteryWarningV2() local 348 mLowBatteryReminderLevels[0], estimate.getEstimateMillis(), in maybeShowBatteryWarningV2() 349 estimate.getAverageDischargeTime(), in maybeShowBatteryWarningV2() 351 mEnhancedEstimates.getLowWarningThreshold(), estimate.isBasedOnUsage(), in maybeShowBatteryWarningV2() 376 final Estimate estimate = mEnhancedEstimates.getEstimate(); in refreshEstimateIfNeeded() local 378 Slog.d(TAG, "updated estimate: " + estimate.getEstimateMillis()); in refreshEstimateIfNeeded() 380 return estimate; in refreshEstimateIfNeeded()
|
/aosp12/art/runtime/ |
H A D | oat.cc | 36 size_t estimate = 0U; in ComputeOatHeaderSize() local 41 estimate += it->first.length() + 1; in ComputeOatHeaderSize() 42 estimate += it->second.length() + 1; in ComputeOatHeaderSize() 45 return sizeof(OatHeader) + estimate; in ComputeOatHeaderSize()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/ |
H A D | BatteryMeterView.java | 236 (String estimate) -> { in updatePercentText() 240 if (estimate != null && mShowPercentMode == MODE_ESTIMATE) { in updatePercentText() 241 mBatteryPercentView.setText(estimate); in updatePercentText() 244 mLevel, estimate)); in updatePercentText()
|
/aosp12/hardware/interfaces/gnss/2.0/ |
H A D | IGnssDebug.hal | 47 /** Current best know time estimate. */ 62 * position, best known time estimate and a complete list of constellations that the device can
|
H A D | types.hal | 36 * Represents an estimate of elapsed time since boot of Android for a given event.
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
H A D | PowerUITest.java | 531 Estimate estimate = new Estimate(BELOW_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull() local 535 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull() 548 estimate = new Estimate(BELOW_SEVERE_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull() 549 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull() 558 estimate = new Estimate(BELOW_HYBRID_THRESHOLD, true, 0); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull() 559 when(mEnhancedEstimates.getEstimate()).thenReturn(estimate); in testRefreshEstimateIfNeeded_onlyQueriesEstimateOnBatteryLevelChangeOrNull()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BatteryController.java | 138 void onBatteryRemainingEstimateRetrieved(@Nullable String estimate); in onBatteryRemainingEstimateRetrieved() argument
|
H A D | BatteryControllerImpl.java | 314 String estimate = generateTimeRemainingString(); in notifyEstimateFetchCallbacks() local 316 completion.onBatteryRemainingEstimateRetrieved(estimate); in notifyEstimateFetchCallbacks()
|
/aosp12/hardware/interfaces/gnss/measurement_corrections/1.0/ |
H A D | types.hal | 63 /** Error estimate (1-sigma) for the Excess path length estimate */
|
/aosp12/hardware/interfaces/sensors/2.1/ |
H A D | types.hal | 101 /** rough estimate of this sensor's power consumption in mA */ 145 * It can be used by the framework or applications to estimate when the
|
/aosp12/packages/modules/Virtualization/zipfuse/src/ |
H A D | main.rs | 331 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()
|
/aosp12/hardware/interfaces/radio/1.2/ |
H A D | IRadioIndication.hal | 42 * Indicates current link capacity estimate.
|
/aosp12/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveSession.cpp | 184 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()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/recyclerview/ |
H A D | CarUiRecyclerViewTest.java | 1565 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, in testSameSizeItems_estimateNextPositionDiffForScrollDistance() local 1568 assertEquals(estimate, itemsToScroll); in testSameSizeItems_estimateNextPositionDiffForScrollDistance() 1597 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroDistance() local 1600 assertEquals(estimate, 0); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroDistance() 1629 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroHeight() local 1632 assertEquals(estimate, 0); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroHeight() 1655 int estimate = snapHelper.estimateNextPositionDiffForScrollDistance(orientationHelper, 50); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroItems() local 1657 assertEquals(estimate, 50); in testSameSizeItems_estimateNextPositionDiffForScrollDistance_zeroItems()
|
/aosp12/hardware/interfaces/radio/1.6/ |
H A D | IRadioIndication.hal | 66 * Indicates current link capacity estimate.
|
H A D | types.hal | 407 * this includes capacity of both primary and secondary. This bandwidth estimate shall be 417 * this includes capacity of both primary and secondary. This bandwidth estimate shall be the 427 * This bandwidth estimate shall be the estimated maximum sustainable link bandwidth 437 * This bandwidth estimate shall be the estimated
|