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

/packages/apps/Camera2/src/com/android/camera/ui/
H A DProgressRenderer.java68 * @param percent the progress in percent (0-100).
70 public void setProgress(int percent) { argument
72 percent = Math.min(100, Math.max(percent, 0));
73 mProgressAngleDegrees = (int) ((360f / 100) * percent);
76 if (percent < 100) {
H A DProgressOverlay.java73 * Set the progress state as a percent from 0-100.
75 public void setProgress(int percent) { argument
76 mProgressRenderer.setProgress(percent);
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatterySaverPreference.java64 int percent = Settings.Global.getInt(context.getContentResolver(),
66 int percentFormat = percent > 0 ? R.string.battery_saver_desc_turn_on_auto_pct
69 Utils.formatPercentage(percent))));
H A DPowerUsageSummary.java332 // the largest real entry, and its percent of total is more significant
345 // the largest real entry, and its percent of total is more significant
375 sipper.percent = percentOfTotal;
/packages/apps/TV/src/com/android/tv/util/
H A DImageCache.java40 * Creates a new ImageCache object with a given cache size percent.
42 * @param memCacheSizePercent The cache size as a percent of available app memory.
69 * @param memCacheSizePercent The cache size as a percent of available app memory. Should be in
149 * setting percent to 0.2 would set the memory cache to one fifth of the available memory.
150 * Throws {@link IllegalArgumentException} if percent is < 0.05 or > .8. memCacheSize is stored
156 * @param percent Percent of available app memory to use to size memory cache.
158 public static int calculateMemCacheSize(float percent) { argument
159 if (percent < MIN_CACHE_SIZE_PERCENT || percent > MAX_CACHE_SIZE_PERCENT) {
160 throw new IllegalArgumentException("setMemCacheSizePercent - percent mus
[all...]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageSummaryPreference.java39 public void setPercent(int percent) { argument
40 mPercent = percent;
/packages/apps/Camera2/src/com/android/camera/
H A DCaptureModuleUI.java155 * @param percent amount of process done in percent 0-100.
157 public void setPictureTakingProgress(int percent) { argument
158 mProgressOverlay.setProgress(percent);
/packages/apps/Settings/src/com/android/settings/datausage/
H A DAppDataUsagePreference.java35 public AppDataUsagePreference(Context context, AppItem item, int percent, argument
39 mPercent = percent;
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DTwoPaneLayout.java532 * @return percent dragged (values range from 0 to 1).
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;
H A DTwoPaneController.java397 protected void onDrawerDrag(float percent) { argument
404 flf.onDrawerDrag(percent);
H A DFolderListFragment.java838 public void onDrawerDrag(float percent) { argument
839 mMiniDrawerView.setAlpha(1f - percent);
840 mListView.setAlpha(percent);
/packages/apps/Camera2/src/com/android/camera/session/
H A DCaptureSession.java53 * @param progressPercent The current progress in percent.
126 * Set the progress in percent for the current session. If set to or left at
129 public void setProgress(int percent); argument
132 * Returns the progress of this session in percent.
H A DCaptureSessionImpl.java76 /** The current progress of this session in percent. */
149 public synchronized void setProgress(int percent) { argument
150 if (!mHasPreviouslySetProgress && percent == 0 && mImageLifecycleListener != null) {
154 mProgressPercent = percent;
157 listener.onProgressChanged(percent);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DDragLayer.java598 final float percent = (Float) animation.getAnimatedValue();
602 float alphaPercent = alphaInterpolator == null ? percent :
603 alphaInterpolator.getInterpolation(percent);
604 float motionPercent = motionInterpolator == null ? percent :
605 motionInterpolator.getInterpolation(percent);
609 float scaleX = finalScaleX * percent + initialScaleX * (1 - percent);
610 float scaleY = finalScaleY * percent + initialScaleY * (1 - percent);
700 final float percent
[all...]
H A DFolderIcon.java208 final float percent = (Float) animation.getAnimatedValue();
209 mOuterRingSize = (1 + percent * OUTER_RING_GROWTH_FACTOR) * previewSize;
210 mInnerRingSize = (1 + percent * INNER_RING_GROWTH_FACTOR) * previewSize;
237 final float percent = (Float) animation.getAnimatedValue();
238 mOuterRingSize = (1 + (1 - percent) * OUTER_RING_GROWTH_FACTOR) * previewSize;
239 mInnerRingSize = (1 + (1 - percent) * INNER_RING_GROWTH_FACTOR) * previewSize;
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
H A DDragLayer.java833 final float percent = (Float) animation.getAnimatedValue();
837 float alphaPercent = alphaInterpolator == null ? percent :
838 alphaInterpolator.getInterpolation(percent);
839 float motionPercent = motionInterpolator == null ? percent :
840 motionInterpolator.getInterpolation(percent);
844 float scaleX = finalScaleX * percent + initialScaleX * (1 - percent);
845 float scaleY = finalScaleY * percent + initialScaleY * (1 - percent);
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DAbstractPublicApiTest.java147 final int percent = (int) (100
150 Log.d(LOG_TAG, percent + "% complete");
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppObexClientSession.java396 long percent = 0;
460 percent = position * 100 / fileInfo.mLength;
461 if (percent > prevPercent) {
466 prevPercent = percent;
H A DBluetoothOppObexServerSession.java438 long percent = 0;
464 percent = position * 100 / fileInfo.mLength;
473 if (percent > prevPercent) {
477 prevPercent = percent;
/packages/apps/Camera2/src/com/android/camera/captureintent/
H A DCaptureIntentSession.java99 public synchronized void setProgress(int percent) { argument
/packages/apps/Settings/src/com/android/settings/notification/
H A DSoundSettings.java599 String percent = "";
606 percent = NumberFormat.getPercentInstance().format(
611 mSummaryLoader.setSummary(this, mContext.getString(resId, percent));
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadNotifier.java298 final int percent = (int) ((current * 100) / total);
299 builder.setProgress(100, percent, false);
H A DDownloadStorageProvider.java399 String percent =
401 summary = getContext().getString(R.string.download_running_percent, percent);
/packages/apps/Settings/src/com/android/settings/
H A DCryptKeeper.java648 int percent = 0;
651 percent = isDebugView() ? 50 : Integer.parseInt(state);
655 String progress = Integer.toString(percent);
/packages/apps/TV/usbtuner/libs/
H A Dexoplayer_1.5.6.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/android/ com/google/android/exoplayer/ ...

Completed in 871 milliseconds