/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PositionController.java | 1373 protected abstract boolean interpolate(float progress); in interpolate() argument 1387 float progress; in advanceAnimation() local 1389 progress = 1; in advanceAnimation() 1392 progress = in advanceAnimation() 1396 if (progress >= 1) { in advanceAnimation() 1397 progress = 1; in advanceAnimation() 1399 progress = applyInterpolationCurve(mAnimationKind, progress); in advanceAnimation() 1402 boolean done = interpolate(progress); in advanceAnimation() 1411 private static float applyInterpolationCurve(int kind, float progress) { in applyInterpolationCurve() argument 1412 float f = 1 - progress; in applyInterpolationCurve() [all …]
|
D | FlingScroller.java | 107 public void computeScrollOffset(float progress) { in computeScrollOffset() argument 108 progress = Math.min(progress, 1); in computeScrollOffset() 109 float f = 1 - progress; in computeScrollOffset() 113 mCurrV = getV(progress); in computeScrollOffset() 136 private double getV(float progress) { in getV() argument 139 Math.pow(1 - progress, DECELERATED_FACTOR - 1) / mDuration; in getV()
|
D | PhotoView.java | 695 float progress = calculateMoveOutProgress(left, right, viewW); in drawTileView() local 696 progress = Utils.clamp(progress, -1f, 1f); in drawTileView() 700 if (progress < 0) { in drawTileView() 701 scale = getScrollScale(progress); in drawTileView() 702 float alpha = getScrollAlpha(progress); in drawTileView() 833 float progress = (float) (w / 2 - r.centerX()) / w; in draw() local 834 progress = Utils.clamp(progress, -1, 1); in draw() 835 float alpha = getScrollAlpha(progress); in draw() 836 float scale = getScrollScale(progress); in draw()
|
/packages/apps/MusicFX/src/com/android/musicfx/seekbar/ |
D | ProgressBar.java | 321 (id == R.id.progress || id == R.id.secondaryProgress)); in tileify() 533 doRefreshProgress(R.id.progress, mProgress, false, false); in setProgressDrawable() 571 RefreshProgressRunnable(int id, int progress, boolean fromUser) { in RefreshProgressRunnable() argument 573 mProgress = progress; in RefreshProgressRunnable() 583 public void setup(int id, int progress, boolean fromUser) { in setup() argument 585 mProgress = progress; in setup() 591 private synchronized void doRefreshProgress(int id, int progress, boolean fromUser, in doRefreshProgress() argument 593 float scale = mMax > 0 ? (float) progress / (float) mMax : 0; in doRefreshProgress() 608 if (callBackToApp && id == R.id.progress) { in doRefreshProgress() 619 private synchronized void refreshProgress(int id, int progress, boolean fromUser) { in refreshProgress() argument [all …]
|
D | AbsSeekBar.java | 468 float progress = 0; 480 progress = mTouchProgressOffset; 484 progress += scale * max; 496 progress = mTouchProgressOffset; 500 progress += scale * max; 503 setProgress((int) progress, true); 540 int progress = getProgress(); 543 if (progress > 0) { 544 setProgress(progress - mKeyProgressIncrement, true); 550 if (progress < getMax()) { [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | PointerSpeedPreference.java | 77 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { in onProgressChanged() argument 79 mIm.tryPointerSpeed(progress + InputManager.MIN_POINTER_SPEED); in onProgressChanged() 127 myState.progress = mSeekBar.getProgress(); in onSaveInstanceState() 146 mSeekBar.setProgress(myState.progress); in onRestoreInstanceState() 147 mIm.tryPointerSpeed(myState.progress + InputManager.MIN_POINTER_SPEED); in onRestoreInstanceState() 151 int progress; field in PointerSpeedPreference.SavedState 156 progress = source.readInt(); in SavedState() 163 dest.writeInt(progress); in writeToParcel()
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
D | StateTransitionAnimation.java | 129 protected void onCalculate(float progress) { in onCalculate() argument 131 + (mTransitionSpec.contentScaleTo - mTransitionSpec.contentScaleFrom) * progress; in onCalculate() 133 + (mTransitionSpec.contentAlphaTo - mTransitionSpec.contentAlphaFrom) * progress; in onCalculate() 136 * progress; in onCalculate() 139 * progress; in onCalculate() 141 + (mTransitionSpec.overlayScaleTo - mTransitionSpec.overlayScaleFrom) * progress; in onCalculate() 143 + (mTransitionSpec.overlayAlphaTo - mTransitionSpec.overlayAlphaFrom) * progress; in onCalculate()
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | EmailBroadcastProcessorService.java | 312 int progress = pref.getOneTimeInitializationProgress(); in performOneTimeInitialization() local 313 final int initialProgress = progress; in performOneTimeInitialization() 315 if (progress < 1) { in performOneTimeInitialization() 317 progress = 1; in performOneTimeInitialization() 321 if (progress < 2) { in performOneTimeInitialization() 323 progress = 2; in performOneTimeInitialization() 332 if (progress != initialProgress) { in performOneTimeInitialization() 333 pref.setOneTimeInitializationProgress(progress); in performOneTimeInitialization()
|
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/ |
D | ProgressService.java | 49 UpdateRunnable(int id, long when, int progress) { in UpdateRunnable() argument 52 mProgress = progress; in UpdateRunnable() 80 int progress = intent.getIntExtra("progress", 0); in onHandleIntent() local 81 handler.postDelayed(new UpdateRunnable(id, when, progress), 1000); in onHandleIntent() 84 public static void startProgressUpdater(Context context, int id, long when, int progress) { in startProgressUpdater() argument 90 progressIntent.putExtra("progress", progress); in startProgressUpdater()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | PanoProgressBar.java | 108 public void setMaxProgress(int progress) { in setMaxProgress() argument 109 mMaxProgress = progress; in setMaxProgress() 132 public void setProgress(int progress) { in setProgress() argument 136 if (progress > 10) { in setProgress() 138 } else if (progress < -10) { in setProgress() 144 mProgress = progress * mWidth / mMaxProgress + mProgressOffset; in setProgress()
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | PanoProgressBar.java | 103 public void setMaxProgress(int progress) { in setMaxProgress() argument 104 mMaxProgress = progress; in setMaxProgress() 127 public void setProgress(int progress) { in setProgress() argument 131 if (progress > 10) { in setProgress() 133 } else if (progress < -10) { in setProgress() 139 mProgress = progress * mWidth / mMaxProgress + mProgressOffset; in setProgress()
|
/packages/apps/Camera/src/com/android/camera/ |
D | PanoProgressBar.java | 106 public void setMaxProgress(int progress) { in setMaxProgress() argument 107 mMaxProgress = progress; in setMaxProgress() 130 public void setProgress(int progress) { in setProgress() argument 134 if (progress > 10) { in setProgress() 136 } else if (progress < -10) { in setProgress() 142 mProgress = progress * mWidth / mMaxProgress + mProgressOffset; in setProgress()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | SeekBarDialogPreference.java | 82 private int getValueFromProgress(final int progress) { in getValueFromProgress() argument 83 return progress + mMinValue; in getValueFromProgress() 94 private int getClippedValueFromProgress(final int progress) { in getClippedValueFromProgress() argument 95 return clipValue(getValueFromProgress(progress)); in getClippedValueFromProgress() 131 public void onProgressChanged(final SeekBar seekBar, final int progress, in onProgressChanged() argument 133 final int value = getClippedValueFromProgress(progress); in onProgressChanged()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | VolumeSeekBarPreference.java | 119 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { in init() 121 mCallback.onStreamValueChanged(mStream, progress); in init() 144 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { in onProgressChanged() argument 145 super.onProgressChanged(seekBar, progress, fromTouch); in onProgressChanged() 146 mCallback.onStreamValueChanged(mStream, progress); in onProgressChanged() 197 void onStreamValueChanged(int stream, int progress); in onStreamValueChanged() argument
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | PackageInstallerCompat.java | 57 public abstract void recordPackageUpdate(String packageName, int state, int progress); in recordPackageUpdate() argument 63 public int progress; field in PackageInstallerCompat.PackageInstallInfo 69 public PackageInstallInfo(String packageName, int state, int progress) { in PackageInstallInfo() argument 72 this.progress = progress; in PackageInstallInfo()
|
D | PackageInstallerCompatV16.java | 105 public synchronized void recordPackageUpdate(String packageName, int state, int progress) { in recordPackageUpdate() argument 108 installInfo.progress = progress; in recordPackageUpdate() 149 info.progress = object.getInt(KEY_PROGRESS); in infoFromJson() 162 .key(KEY_PROGRESS).value(info.progress) in infoToJson()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollAdapterView.java | 383 float progress = 0f; // 0 ~ 1, indication if it's expanding or shrinking field in ScrollAdapterView.ExpandedView 410 boolean growing = p > progress; in setProgress() 411 boolean shrinking = p < progress; in setProgress() 412 progress = p; in setProgress() 2306 float progress = 1; 2308 progress = (float) (nextCenter - mScroll.mainAxis().getScrollCenter()) / 2314 expandedSize = (int) (progress * expandedSize); 2315 thisExpanded.setProgress(progress); 2321 nextExpandedSize = (int) ((1f - progress) * nextExpandedSize); 2322 nextExpanded.setProgress(1f - progress); [all …]
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ActivityMusic.java | 328 public void onProgressChanged(final SeekBar seekBar, final int progress, in onCreate() 332 mAudioSession, ControlPanelEffect.Key.virt_strength, progress); in onCreate() 390 public void onProgressChanged(final SeekBar seekBar, final int progress, in onCreate() 394 mAudioSession, ControlPanelEffect.Key.bb_strength, progress); in onCreate() 690 … public void onProgressChanged(final SeekBar seekbar, final int progress, final boolean fromUser) { in onProgressChanged() argument 695 final short level = (short) (progress + mEqualizerMinBandLevel); in onProgressChanged() 747 final int progress = level - mEqualizerMinBandLevel; in equalizerUpdateDisplay() local 748 mEqualizerSeekBar[band].setProgress(progress); in equalizerUpdateDisplay()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherExtension.java | 284 public void onScrollChange(int progress, boolean rtl) { in onScrollChange() argument 285 mProgress = progress; in onScrollChange() 287 updatePanelOffset(progress); in onScrollChange() 291 private void updatePanelOffset(int progress) { in updatePanelOffset() argument 293 int offset = (int) ((progress / 100f) * panelWidth); in updatePanelOffset()
|
D | FolderIcon.java | 654 float progress = (Float) animation.getAnimatedValue(); in animateFirstItem() 656 progress = 1 - progress; in animateFirstItem() 657 mPreviewBackground.setAlpha(progress); in animateFirstItem() 660 mAnimParams.transX = transX0 + progress * (finalParams.transX - transX0); in animateFirstItem() 661 mAnimParams.transY = transY0 + progress * (finalParams.transY - transY0); in animateFirstItem() 662 mAnimParams.scale = scale0 + progress * (finalParams.scale - scale0); in animateFirstItem()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | FolderIcon.java | 581 float progress = (Float) animation.getAnimatedValue(); in animateFirstItem() 583 progress = 1 - progress; in animateFirstItem() 584 mPreviewBackground.setAlpha(progress); in animateFirstItem() 587 mAnimParams.transX = transX0 + progress * (finalParams.transX - transX0); in animateFirstItem() 588 mAnimParams.transY = transY0 + progress * (finalParams.transY - transY0); in animateFirstItem() 589 mAnimParams.scale = scale0 + progress * (finalParams.scale - scale0); in animateFirstItem()
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | BeamTransferManager.java | 196 public void updateFileProgress(float progress) { in updateFileProgress() argument 201 this.mProgress = progress; in updateFileProgress() 311 float progress = 0; in updateNotification() local 314 progress = (float) mCurrentCount * progressUnit + mProgress * progressUnit; in updateNotification() 316 if (mTotalCount > 0 && progress > 0) { in updateNotification() 317 notBuilder.setProgress(100, (int) (100 * progress), false); in updateNotification()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
D | EmailServiceStatus.java | 110 final int statusType, final long id, final int statusCode, final int progress, in syncStatus() argument 124 statusExtras.putInt(SYNC_STATUS_PROGRESS, progress); in syncStatus() 143 final long mailboxId, final int statusCode, final int progress, int syncResult) { in syncMailboxStatus() argument 144 syncStatus(cr, syncExtras, SYNC_STATUS_TYPE_MAILBOX, mailboxId, statusCode, progress, in syncMailboxStatus()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | CheckSettingsProgressDialogFragment.java | 68 protected void updateProgress(int progress) { in updateProgress() argument 69 mProgressString = AccountCheckSettingsFragment.getProgressString(getActivity(), progress); in updateProgress() 84 final int progress = AccountCheckSettingsFragment.getProgressForMode(checkMode); in onCreateDialog() local 86 progress); in onCreateDialog()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | FilterShowActivity.java | 917 ProgressDialog progress; in showSavingProgress() local 919 progress = mSavingProgressDialog.get(); in showSavingProgress() 920 if (progress != null) { in showSavingProgress() 921 progress.show(); in showSavingProgress() 932 progress = ProgressDialog.show(this, "", progressText, true, false); in showSavingProgress() 933 mSavingProgressDialog = new WeakReference<ProgressDialog>(progress); in showSavingProgress() 938 ProgressDialog progress = mSavingProgressDialog.get(); in hideSavingProgress() local 939 if (progress != null) in hideSavingProgress() 940 progress.dismiss(); in hideSavingProgress()
|