/packages/apps/Dialer/java/com/android/dialer/common/ |
D | MathUtil.java | 30 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/ |
D | ProgressRenderer.java | 70 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()
|
D | ProgressOverlay.java | 75 public void setProgress(int percent) { in setProgress() argument 76 mProgressRenderer.setProgress(percent); in setProgress()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | MultiValueUpdateListener.java | 33 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/ |
D | ImageCache.java | 176 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/UnifiedEmail/src/com/android/mail/ui/ |
D | TwoPaneLayout.java | 536 final float percent; 539 percent = (mDrawerWidthDelta - deltaX) / mDrawerWidthDelta; 541 percent = -deltaX / mDrawerWidthDelta; 545 percent = deltaX / mDrawerWidthDelta; 547 percent = (mDrawerWidthDelta + deltaX) / mDrawerWidthDelta; 551 return percent < 0 ? 0 : percent > 1 ? 1 : percent;
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragLayer.java | 377 final float percent = (Float) animation.getAnimatedValue(); in animateView() 381 float alphaPercent = alphaInterpolator == null ? percent : in animateView() 382 alphaInterpolator.getInterpolation(percent); in animateView() 383 float motionPercent = motionInterpolator == null ? percent : in animateView() 384 motionInterpolator.getInterpolation(percent); in animateView() 388 float scaleX = finalScaleX * percent + initialScaleX * (1 - percent); in animateView() 389 float scaleY = finalScaleY * percent + initialScaleY * (1 - percent); in animateView()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatterySaverController.java | 90 final int percent = Settings.Global.getInt(resolver, in getSummary() local 97 if (percent != 0) { in getSummary() 99 Utils.formatPercentage(percent)); in getSummary()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatterySaverController.java | 90 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/ |
D | CaptureSessionImpl.java | 149 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/ |
D | VolumeTestFragment.java | 145 final float percent = (progress - 100) / 100.0f; in onCreateView() 147 mCarAudioManager.setFadeTowardFront(percent); in onCreateView() 149 mCarAudioManager.setBalanceTowardRight(percent); in onCreateView()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/ |
D | GuidedActionsAlignUtil.java | 71 float percent = ta.getFloat( in getKeyLinePercent() local 75 return percent; in getKeyLinePercent()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | GuidanceRelativeLayout.java | 51 float percent = ta.getFloat(R.styleable.LeanbackGuidedStepTheme_guidedStepKeyline, 40); in getKeyLinePercent() local 53 return percent; in getKeyLinePercent()
|
D | MessagePageFrameLayout.java | 53 float percent = ta.getFloat( in getKeyLinePercent() local 57 return percent; in getKeyLinePercent()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | AppDataUsagePreference.java | 35 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/ |
D | AppDataUsagePreference.java | 35 public AppDataUsagePreference(Context context, AppItem item, int percent, in AppDataUsagePreference() argument 39 mPercent = percent; in AppDataUsagePreference()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppObexServerSession.java | 454 long percent; in receiveFile() local 486 percent = position * 100 / fileInfo.mLength; in receiveFile() 497 if (percent > prevPercent in receiveFile() 502 prevPercent = percent; in receiveFile()
|
D | BluetoothOppObexClientSession.java | 451 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()
|
D | BluetoothOppUtility.java | 291 double percent = 0.0; in formatProgressText() local 293 percent = currentBytes / (double) totalBytes; in formatProgressText() 295 return df.format(percent); in formatProgressText()
|
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/ |
D | UpdateLayoutFragment.java | 248 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/Camera2/src/com/android/camera/ |
D | CaptureModuleUI.java | 157 public void setPictureTakingProgress(int percent) { in setPictureTakingProgress() argument 158 mProgressOverlay.setProgress(percent); in setPictureTakingProgress()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | HighUsageDetector.java | 86 final double percent = mBatteryUtils.calculateBatteryPercent( in detect() local 88 if ((percent + 0.5f < 1f) || mBatteryUtils.shouldHideSipper(batterySipper)) { in detect()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | TaskViewUtils.java | 151 public void onUpdate(float percent) { in getRecentsWindowAnimator() 153 params.setProgress(1 - percent); in getRecentsWindowAnimator()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | AbstractPublicApiTest.java | 148 final int percent = (int) (100 in waitForStatus() local 151 Log.d(LOG_TAG, percent + "% complete"); in waitForStatus()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | DonutView.java | 199 public void setPercentage(double percent) { in setPercentage() argument 200 mPercent = percent; in setPercentage()
|