/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, false /* initOnly */); in onAnimationUpdate() 50 public abstract void onUpdate(float percent, boolean initOnly); in onUpdate() argument
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragLayer.java | 360 final float percent = (Float) animation.getAnimatedValue(); in animateView() 364 float alphaPercent = alphaInterpolator == null ? percent : in animateView() 365 alphaInterpolator.getInterpolation(percent); in animateView() 366 float motionPercent = motionInterpolator == null ? percent : in animateView() 367 motionInterpolator.getInterpolation(percent); in animateView() 371 float scaleX = finalScaleX * percent + initialScaleX * (1 - percent); in animateView() 372 float scaleY = finalScaleY * percent + initialScaleY * (1 - percent); in animateView()
|
/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/Settings/src/com/android/settings/fuelgauge/ |
D | BatterySaverController.java | 113 final int percent = Settings.Global.getInt(resolver, in getSummary() local 115 return percent != 0 ? in getSummary() 117 Utils.formatPercentage(percent)) : in getSummary()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
D | VolumeTestFragment.java | 144 final float percent = (progress - 100) / 100.0f; in onCreateView() 146 mCarAudioManager.setFadeTowardFront(percent); in onCreateView() 148 mCarAudioManager.setBalanceTowardRight(percent); in onCreateView()
|
/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/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/ |
D | GuidedActionsAlignUtil.java | 72 float percent = ta.getFloat( in getKeyLinePercent() local 76 return percent; in getKeyLinePercent()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | MessagePageFrameLayout.java | 53 float percent = ta.getFloat( in getKeyLinePercent() local 57 return percent; in getKeyLinePercent()
|
D | GuidanceRelativeLayout.java | 52 float percent = ta.getFloat(R.styleable.LeanbackGuidedStepTheme_guidedStepKeyline, 40); in getKeyLinePercent() local 54 return percent; in getKeyLinePercent()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | AppDataUsagePreference.java | 37 public AppDataUsagePreference(Context context, AppItem item, int percent, in AppDataUsagePreference() argument 41 mPercent = percent; in AppDataUsagePreference()
|
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/ |
D | UpdateLayoutFragment.java | 244 public void onStatusUpdate(int status, float percent) { in onStatusUpdate() argument 246 Log.d(TAG, String.format("onStatusUpdate %d, Percent %.2f", status, percent)); in onStatusUpdate() 253 mProgressBar.setProgress((int) (percent * 100)); in onStatusUpdate()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | HighUsageDetector.java | 83 final double percent = mBatteryUtils.calculateBatteryPercent( in detect() local 85 if ((percent + 0.5f < 1f) in detect()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureModuleUI.java | 164 public void setPictureTakingProgress(int percent) { in setPictureTakingProgress() argument 165 mProgressOverlay.setProgress(percent); in setPictureTakingProgress()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | ConnectivitySettingsManager.java | 501 @IntRange(from = 0, to = 100) int percent) { in setDnsResolverSuccessThresholdPercent() 502 if (percent < 0 || percent > 100) { in setDnsResolverSuccessThresholdPercent() 506 context.getContentResolver(), DNS_RESOLVER_SUCCESS_THRESHOLD_PERCENT, percent); in setDnsResolverSuccessThresholdPercent() local
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppObexServerSession.java | 451 long percent; in receiveFile() local 488 percent = position * 100 / fileInfo.mLength; in receiveFile() 499 if (percent > prevPercent in receiveFile() 504 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 | 310 double percent = 0.0; in formatProgressText() local 312 percent = currentBytes / (double) totalBytes; in formatProgressText() 314 return df.format(percent); in formatProgressText()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ConcreteCandidate.java | 272 public ConcreteCandidate setEstimatedPercentInternetAvailability(int percent) { in setEstimatedPercentInternetAvailability() argument 273 mEstimatedPercentInternetAvailability = percent; in setEstimatedPercentInternetAvailability()
|
/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/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryHistEntryTest.java | 60 mockBatteryEntry.percent = 0.3; in testConstructor_contentValues_returnsExpectedResult() 79 /*percentOfTotal=*/ mockBatteryEntry.percent); in testConstructor_contentValues_returnsExpectedResult()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceController.java | 222 AppDataUsagePreference(Context context, AppItem item, int percent, in AppDataUsagePreference() argument 226 mPercent = percent; in AppDataUsagePreference()
|
/packages/apps/Settings/src/com/android/settings/ |
D | CryptKeeper.java | 647 int percent = 0; in updateProgress() local 650 percent = isDebugView() ? 50 : Integer.parseInt(state); in updateProgress() 654 String progress = Integer.toString(percent); in updateProgress()
|