Home
last modified time | relevance | path

Searched refs:percent (Results 1 – 25 of 95) 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, false /* initOnly */); in onAnimationUpdate()
50 public abstract void onUpdate(float percent, boolean initOnly); in onUpdate() argument
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java360 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/
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/Settings/src/com/android/settings/fuelgauge/
DBatterySaverController.java113 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/
DVolumeTestFragment.java144 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/
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/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DGuidedActionsAlignUtil.java72 float percent = ta.getFloat( in getKeyLinePercent() local
76 return percent; in getKeyLinePercent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DMessagePageFrameLayout.java53 float percent = ta.getFloat( in getKeyLinePercent() local
57 return percent; in getKeyLinePercent()
DGuidanceRelativeLayout.java52 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/
DAppDataUsagePreference.java37 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/
DUpdateLayoutFragment.java244 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/
DHighUsageDetector.java83 final double percent = mBatteryUtils.calculateBatteryPercent( in detect() local
85 if ((percent + 0.5f < 1f) in detect()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModuleUI.java164 public void setPictureTakingProgress(int percent) { in setPictureTakingProgress() argument
165 mProgressOverlay.setProgress(percent); in setPictureTakingProgress()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivitySettingsManager.java501 @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/
DBluetoothOppObexServerSession.java451 long percent; in receiveFile() local
488 percent = position * 100 / fileInfo.mLength; in receiveFile()
499 if (percent > prevPercent in receiveFile()
504 prevPercent = percent; in receiveFile()
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()
DBluetoothOppUtility.java310 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/
DConcreteCandidate.java272 public ConcreteCandidate setEstimatedPercentInternetAvailability(int percent) { in setEstimatedPercentInternetAvailability() argument
273 mEstimatedPercentInternetAvailability = percent; in setEstimatedPercentInternetAvailability()
/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/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryHistEntryTest.java60 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/
DAppDataUsagePreferenceController.java222 AppDataUsagePreference(Context context, AppItem item, int percent, in AppDataUsagePreference() argument
226 mPercent = percent; in AppDataUsagePreference()
/packages/apps/Settings/src/com/android/settings/
DCryptKeeper.java647 int percent = 0; in updateProgress() local
650 percent = isDebugView() ? 50 : Integer.parseInt(state); in updateProgress()
654 String progress = Integer.toString(percent); in updateProgress()

1234