Home
last modified time | relevance | path

Searched refs:percent (Results 1 – 25 of 86) sorted by relevance

1234

/packages/apps/Dialer/java/com/android/dialer/common/
DMathUtil.java30 public static int lerp(int begin, int end, float percent) { in lerp() argument
31 return (int) (begin * (1 - percent) + end * percent); in lerp()
42 public static float lerp(float begin, float end, float percent) { in lerp() argument
43 return begin * (1 - percent) + end * percent; in lerp()
/packages/apps/Camera2/src/com/android/camera/ui/
DProgressRenderer.java70 public void setProgress(int percent) { in setProgress() argument
72 percent = Math.min(100, Math.max(percent, 0)); in setProgress()
73 mProgressAngleDegrees = (int) ((360f / 100) * percent); in setProgress()
76 if (percent < 100) { in setProgress()
DProgressOverlay.java75 public void setProgress(int percent) { in setProgress() argument
76 mProgressRenderer.setProgress(percent); in setProgress()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DMultiValueUpdateListener.java33 final float percent = animator.getAnimatedFraction(); in onAnimationUpdate() local
34 final float currentPlayTime = percent * animator.getDuration(); in onAnimationUpdate()
43 onUpdate(percent); in onAnimationUpdate()
46 public abstract void onUpdate(float percent); in onUpdate() argument
/packages/apps/TV/src/com/android/tv/util/images/
DImageCache.java176 public static int calculateMemCacheSize(float percent) { in calculateMemCacheSize() argument
177 if (percent < MIN_CACHE_SIZE_PERCENT || percent > MAX_CACHE_SIZE_PERCENT) { in calculateMemCacheSize()
184 Math.round(percent * Runtime.getRuntime().maxMemory() / 1024)); in calculateMemCacheSize()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java381 final float percent = (Float) animation.getAnimatedValue(); in animateView()
385 float alphaPercent = alphaInterpolator == null ? percent : in animateView()
386 alphaInterpolator.getInterpolation(percent); in animateView()
387 float motionPercent = motionInterpolator == null ? percent : in animateView()
388 motionInterpolator.getInterpolation(percent); in animateView()
392 float scaleX = finalScaleX * percent + initialScaleX * (1 - percent); in animateView()
393 float scaleY = finalScaleY * percent + initialScaleY * (1 - percent); in animateView()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySaverController.java90 final int percent = Settings.Global.getInt(resolver, in getSummary() local
97 if (percent != 0) { in getSummary()
99 Utils.formatPercentage(percent)); in getSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatterySaverController.java90 final int percent = Settings.Global.getInt(resolver, in getSummary() local
97 if (percent != 0) { in getSummary()
99 Utils.formatPercentage(percent)); in getSummary()
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionImpl.java149 public synchronized void setProgress(int percent) { in setProgress() argument
150 if (!mHasPreviouslySetProgress && percent == 0 && mImageLifecycleListener != null) { in setProgress()
154 mProgressPercent = percent; in setProgress()
157 listener.onProgressChanged(percent); in setProgress()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DVolumeTestFragment.java138 final float percent = (progress - 100) / 100.0f; in onCreateView()
140 mCarAudioManager.setFadeTowardFront(percent); in onCreateView()
142 mCarAudioManager.setBalanceTowardRight(percent); in onCreateView()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DGuidedActionsAlignUtil.java71 float percent = ta.getFloat( in getKeyLinePercent() local
75 return percent; in getKeyLinePercent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DGuidanceRelativeLayout.java51 float percent = ta.getFloat(R.styleable.LeanbackGuidedStepTheme_guidedStepKeyline, 40); in getKeyLinePercent() local
53 return percent; in getKeyLinePercent()
DMessagePageFrameLayout.java53 float percent = ta.getFloat( in getKeyLinePercent() local
57 return percent; in getKeyLinePercent()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsagePreference.java35 public AppDataUsagePreference(Context context, AppItem item, int percent, in AppDataUsagePreference() argument
39 mPercent = percent; in AppDataUsagePreference()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DAppDataUsagePreference.java35 public AppDataUsagePreference(Context context, AppItem item, int percent, in AppDataUsagePreference() argument
39 mPercent = percent; in AppDataUsagePreference()
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DUpdateLayoutFragment.java248 public void onStatusUpdate(int status, float percent) { in onStatusUpdate() argument
250 Log.d(TAG, String.format("onStatusUpdate %d, Percent %.2f", status, percent)); in onStatusUpdate()
257 mProgressBar.setProgress((int) (percent * 100)); in onStatusUpdate()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSession.java451 long percent = 0; in sendFile() local
534 percent = position * 100 / fileInfo.mLength; in sendFile()
535 if (percent > prevPercent in sendFile()
541 prevPercent = percent; in sendFile()
DBluetoothOppObexServerSession.java450 long percent; in receiveFile() local
487 percent = position * 100 / fileInfo.mLength; in receiveFile()
498 if (percent > prevPercent in receiveFile()
503 prevPercent = percent; in receiveFile()
DBluetoothOppUtility.java310 double percent = 0.0; in formatProgressText() local
312 percent = currentBytes / (double) totalBytes; in formatProgressText()
314 return df.format(percent); in formatProgressText()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DHighUsageDetector.java86 final double percent = mBatteryUtils.calculateBatteryPercent( in detect() local
88 if ((percent + 0.5f < 1f) || mBatteryUtils.shouldHideSipper(batterySipper)) { in detect()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModuleUI.java157 public void setPictureTakingProgress(int percent) { in setPictureTakingProgress() argument
158 mProgressOverlay.setProgress(percent); in setPictureTakingProgress()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTaskViewUtils.java151 public void onUpdate(float percent) { in getRecentsWindowAnimator()
153 params.setProgress(1 - percent); in getRecentsWindowAnimator()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractPublicApiTest.java148 final int percent = (int) (100 in waitForStatus() local
151 Log.d(LOG_TAG, percent + "% complete"); in waitForStatus()
/packages/apps/Settings/src/com/android/settings/widget/
DDonutView.java199 public void setPercentage(double percent) { in setPercentage() argument
200 mPercent = percent; in setPercentage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDonutView.java199 public void setPercentage(double percent) { in setPercentage() argument
200 mPercent = percent; in setPercentage()

1234