/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | SwipePipToHomeAnimator.java | 202 private void onAnimationUpdate(RectF currentRect, float progress) { in onAnimationUpdate() argument 207 onAnimationUpdate(tx, mCurrentBoundsF, progress); in onAnimationUpdate() 212 RectF currentRect, float progress) { in onAnimationUpdate() argument 215 mPipContentOverlay.onAnimationUpdate(tx, mCurrentBounds, progress); in onAnimationUpdate() 220 op = onAnimationScale(progress, tx, mCurrentBounds); in onAnimationUpdate() 223 op = onAnimationScaleAndCrop(progress, tx, mCurrentBounds); in onAnimationUpdate() 230 float progress, SurfaceControl.Transaction tx, Rect bounds) { in onAnimationScale() argument 232 final RotatedPosition rotatedPosition = getRotatedPosition(progress); in onAnimationScale() 242 float progress, SurfaceControl.Transaction tx, in onAnimationScaleAndCrop() argument 244 final Rect insets = mInsetsEvaluator.evaluate(progress, mSourceInsets, in onAnimationScaleAndCrop() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | RoundedRectRevealOutlineProvider.java | 49 public void setProgress(float progress) { in setProgress() argument 50 mOutlineRadius = (1 - progress) * mStartRadius + progress * mEndRadius; in setProgress() 52 mOutline.left = (int) ((1 - progress) * mStartRect.left + progress * mEndRect.left); in setProgress() 53 mOutline.top = (int) ((1 - progress) * mStartRect.top + progress * mEndRect.top); in setProgress() 54 mOutline.right = (int) ((1 - progress) * mStartRect.right + progress * mEndRect.right); in setProgress() 55 mOutline.bottom = (int) ((1 - progress) * mStartRect.bottom + progress * mEndRect.bottom); in setProgress()
|
D | Interpolators.java | 181 Interpolator interpolator, float progress, float lowerBound, float upperBound) { in clampToProgress() argument 188 if (progress == lowerBound && progress == upperBound) { in clampToProgress() 189 return progress == 0f ? 0 : 1; in clampToProgress() 191 if (progress < lowerBound) { in clampToProgress() 194 if (progress > upperBound) { in clampToProgress() 197 return interpolator.getInterpolation((progress - lowerBound) / (upperBound - lowerBound)); in clampToProgress() 204 public static float clampToProgress(float progress, float lowerBound, float upperBound) { in clampToProgress() argument 205 return clampToProgress(Interpolators.LINEAR, progress, lowerBound, upperBound); in clampToProgress()
|
D | AnimatorPlaybackController.java | 174 h.mapper = (progress, globalEndProgress) -> { in startWithVelocity() 245 float progress = boundToRange(fraction, 0, 1); in setPlayFraction() local 247 holder.setProgress(progress); in setPlayFraction() 356 ProgressMapper DEFAULT = (progress, globalEndProgress) -> 357 progress > globalEndProgress ? 1 : (progress / globalEndProgress); 359 float getProgress(float progress, float globalProgress); in getProgress() argument 385 public void setProgress(float progress) { in setProgress() argument 386 anim.setCurrentFraction(mapper.getProgress(progress, globalEndProgress)); in setProgress()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | SeekBarPreference.java | 218 public void setProgress(int progress) { in setProgress() argument 219 setProgress(progress, true); in setProgress() 254 private void setProgress(int progress, boolean notifyChanged) { in setProgress() argument 255 if (progress > mMax) { in setProgress() 256 progress = mMax; in setProgress() 258 if (progress < mMin) { in setProgress() 259 progress = mMin; in setProgress() 261 if (progress != mProgress) { in setProgress() 262 mProgress = progress; in setProgress() 263 persistInt(progress); in setProgress() [all …]
|
D | LabeledSeekBar.java | 73 public synchronized void setProgress(int progress) { in setProgress() argument 80 super.setProgress(progress); in setProgress() 99 private void sendClickEventForAccessibility(int progress) { in sendClickEventForAccessibility() argument 101 mAccessHelper.sendEventForVirtualView(progress, AccessibilityEvent.TYPE_VIEW_CLICKED); in sendClickEventForAccessibility() 120 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { 122 mOnSeekBarChangeListener.onProgressChanged(seekBar, progress, fromUser); 123 sendClickEventForAccessibility(progress); 125 if (progress != mLastProgress) { 127 mLastProgress = progress;
|
D | LabeledSeekBarPreference.java | 165 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onProgressChanged() argument 166 super.onProgressChanged(seekBar, progress, fromUser); in onProgressChanged() 169 mSeekBarChangeListener.onProgressChanged(seekBar, progress, fromUser); in onProgressChanged() 210 final int progress = getProgress(); in updateIconStartIfNeeded() local 211 if (progress > 0) { in updateIconStartIfNeeded() 212 setProgress(progress - 1); in updateIconStartIfNeeded() 236 final int progress = getProgress(); in updateIconEndIfNeeded() local 237 if (progress < getMax()) { in updateIconEndIfNeeded() 238 setProgress(progress + 1); in updateIconEndIfNeeded()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | BalanceSeekBar.java | 70 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { 73 if (progress != mCenter 74 && progress > mCenter - mSnapThreshold 75 && progress < mCenter + mSnapThreshold) { 76 progress = mCenter; 77 seekBar.setProgress(progress); // direct update (fromUser becomes false) 79 if (progress != mLastProgress) { 80 if (progress == mCenter || progress == getMin() || progress == getMax()) { 83 mLastProgress = progress; 85 final float balance = (progress - mCenter) * 0.01f; [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | AbstractStateChangeTouchController.java | 203 float progress = deltaProgress + mStartProgress; in onDrag() local 204 updateProgress(progress); in onDrag() 207 if (progress <= 0) { in onDrag() 216 mLauncher.getAppsView().onPull(-progress , -progress); in onDrag() 218 } else if (progress >= 1) { in onDrag() 228 mLauncher.getAppsView().onPull(progress - 1f, progress - 1f); in onDrag() 285 final float progress = mCurrentAnimation.getProgressFraction(); in onDragEnd() local 319 if (progress >= 1) { in onDragEnd() 323 startProgress = Utilities.boundToRange(progress in onDragEnd() 326 endProgress - Math.max(progress, 0)) * durationMultiplier; in onDragEnd() [all …]
|
/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()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | LauncherBackAnimationController.java | 207 private void updateBackProgress(float progress, BackEvent event) { in updateBackProgress() argument 213 float width = Utilities.mapRange(progress, 1, MIN_WINDOW_SCALE) * screenWidth; in updateBackProgress() 217 float deltaY = (float) Math.sin(deltaYRatio * Math.PI * 0.5f) * mWindowMaxDeltaY * progress; in updateBackProgress() 222 ? progress * mWindowScaleMarginX in updateBackProgress() 223 : screenWidth - progress * mWindowScaleMarginX - width; in updateBackProgress() 227 progress, mWindowScaleStartCornerRadius, mWindowScaleEndCornerRadius); in updateBackProgress() 231 private void updateCancelProgress(float progress) { in updateCancelProgress() argument 236 Utilities.mapRange(progress, mCancelRect.left, mStartRect.left), in updateCancelProgress() 237 Utilities.mapRange(progress, mCancelRect.top, mStartRect.top), in updateCancelProgress() 238 Utilities.mapRange(progress, mCancelRect.right, mStartRect.right), in updateCancelProgress() [all …]
|
D | LauncherSwipeHandlerV2.java | 147 public void update(RectF currentRect, float progress, float radius) { 148 super.update(currentRect, progress, radius); 149 floatingIconView.update(1f /* alpha */, currentRect, progress, windowAlphaThreshold, 201 public void update(RectF currentRect, float progress, float radius) { 202 super.update(currentRect, progress, radius); 204 1 - mapBoundToRange(progress, 0.8f, 1, 0, 1, EXAGGERATED_EASE); 206 mapBoundToRange(progress, 0.5f, 1, 0, 1, EXAGGERATED_EASE); 208 fallbackBackgroundAlpha, 1 - progress); 212 protected float getWindowAlpha(float progress) { 213 return 1 - mapBoundToRange(progress, 0, 0.5f, 0, 1, LINEAR);
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | IconShape.java | 175 float progress = (Float) anim.getAnimatedValue(); 176 float[] values = evaluator.evaluate(progress, startValues, endValues); 283 float progress = (Float) anim.getAnimatedValue(); 284 float[] values = evaluator.evaluate(progress, startValues, endValues); 351 float progress = (Float) anim.getAnimatedValue(); 353 float cx = (1 - progress) * startCX + progress * endCX; 354 float cy = (1 - progress) * startCY + progress * endCY; 355 float r = (1 - progress) * startR + progress * endR; 356 float control = (1 - progress) * startControl + progress * endControl; 357 float hShift = (1 - progress) * startHShift + progress * endHShift; [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | PointerSpeedPreference.java | 84 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { in onProgressChanged() argument 86 mIm.tryPointerSpeed(progress + InputManager.MIN_POINTER_SPEED); in onProgressChanged() 88 if (progress != mLastProgress) { in onProgressChanged() 90 mLastProgress = progress; in onProgressChanged() 142 myState.progress = mSeekBar.getProgress(); in onSaveInstanceState() 161 mIm.tryPointerSpeed(myState.progress + InputManager.MIN_POINTER_SPEED); in onRestoreInstanceState() 165 int progress; field in PointerSpeedPreference.SavedState 170 progress = source.readInt(); in SavedState() 177 dest.writeInt(progress); in writeToParcel()
|
/packages/apps/Dialer/java/com/android/incallui/incall/impl/ |
D | InCallPaginator.java | 47 private float progress; field in InCallPaginator 80 public void setProgress(float progress, boolean toFirstPage) { in setProgress() argument 81 this.progress = progress; in setProgress() 85 if (transitionAnimator.isStarted() && progress > transitionAnimator.getAnimatedFraction()) { in setProgress() 86 transitionAnimator.setCurrentFraction(progress); in setProgress() 94 transitionAnimator.setCurrentFraction(progress); in startTransition() 175 (toFirstPage ? 1f - 2f * progress : 2f * progress - 1f) * (dotRadius + dotsSeparation / 2); in onDraw()
|
/packages/apps/Launcher3/src/com/android/launcher3/pm/ |
D | PackageInstallInfo.java | 34 public final int progress; field in PackageInstallInfo 41 this.progress = (int) (info.getProgress() * 100f); in PackageInstallInfo() 45 public PackageInstallInfo(String packageName, int state, int progress, UserHandle user) { in PackageInstallInfo() argument 49 this.progress = progress; in PackageInstallInfo() 71 + " progress=" + progress in dumpProperties()
|
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
D | DownloadService.java | 401 final Integer progress = getProgress(contentLength, allRead); in downloadToFile() local 402 if (progress == null || progress.equals(lastProgress)) continue; in downloadToFile() 405 if (maybeNotifyProgress(progress, lastProgress, now, lastUpdateTime, task, nm)) { in downloadToFile() 408 lastProgress = progress; in downloadToFile() 443 private boolean maybeNotifyProgress(int progress, int lastProgress, long now, in maybeNotifyProgress() argument 446 if (lastProgress > 0 && progress < 100 in maybeNotifyProgress() 456 final Notification note = makeProgressNotification(task, progress); in maybeNotifyProgress() 469 @Nullable Integer progress) { in makeProgressNotification() argument 471 .setContentText(progress == null in makeProgressNotification() 473 : NumberFormat.getPercentInstance().format(progress.floatValue() / 100)) in makeProgressNotification() [all …]
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | PreviewSeekBarPreferenceFragment.java | 80 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onProgressChanged() argument 81 if (mCurrentIndex == progress) { in onProgressChanged() 86 setPreviewLayer(progress, false); in onProgressChanged() 155 final int progress = mSeekBar.getProgress(); in onCreateView() 156 if (progress > 0) { in onCreateView() 157 mSeekBar.setProgress(progress - 1, true); in onCreateView() 163 final int progress = mSeekBar.getProgress(); in onCreateView() 164 if (progress < mSeekBar.getMax()) { in onCreateView() 165 mSeekBar.setProgress(progress + 1, true); in onCreateView()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/hvac/custom/ |
D | FanSpeedSeekBar.java | 59 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { 63 if (shouldAllowControl() && fromUser && progress == prevProgress) { 64 mHvacPropertySetter.setHvacProperty(HVAC_FAN_SPEED, getAreaId(), progress); 65 } else if (progress != prevProgress) { 70 setProgress(progress); 206 int progress = getProgress(); in updateUI() local 207 setThumb(mIcons.get(progress)); in updateUI() 208 setSelected(progress > 0); in updateUI()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | AppDataUsagePreference.java | 66 final ProgressBar progress = (ProgressBar) holder.findViewById( in onBindViewHolder() local 67 android.R.id.progress); in onBindViewHolder() 70 progress.setVisibility(View.GONE); in onBindViewHolder() 72 progress.setVisibility(View.VISIBLE); in onBindViewHolder() 74 progress.setProgress(mPercent); in onBindViewHolder() 75 progress.setContentDescription( in onBindViewHolder()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | RecentsHitboxExtender.java | 74 public void onAnimationProgressToOverview(float progress) { in onAnimationProgressToOverview() argument 75 if (progress == 1 || progress == 0) { in onAnimationProgressToOverview() 77 mLastIconAlignment = progress; in onAnimationProgressToOverview() 79 if (progress == 1) { in onAnimationProgressToOverview() 95 if (progress > 0 && mLastIconAlignment == 0 && mRecentsButtonClicked) { in onAnimationProgressToOverview()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | ItemInfoWithIcon.java | 188 setProgressLevel(installInfo.progress, installInfo.state); in setProgressLevel() 200 public void setProgressLevel(int progress, int status) { in setProgressLevel() argument 202 mProgressLevel = progress; in setProgressLevel() 203 runtimeStatusFlags = progress < 100 in setProgressLevel() 207 mProgressLevel = progress; in setProgressLevel() 209 runtimeStatusFlags = progress < 100 in setProgressLevel()
|
/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/Dialer/java/com/android/incallui/answer/impl/answermethod/ |
D | FlingUpDownTouchHandler.java | 57 void onProgressChanged(@FloatRange(from = -1f, to = 1f) float progress); in onProgressChanged() 335 float progress = pointerYToProgress(pointerY); in getFlingTarget() local 343 if (Math.abs(progress) > PROGRESS_SWIPE_RECENTER) { in getFlingTarget() 345 return progress > 0 ? FlingTarget.ACCEPT : FlingTarget.REJECT; in getFlingTarget() 351 boolean sameDirection = vectorVel < 0 == progress > 0; in getFlingTarget() 352 if (!sameDirection && Math.abs(progress) >= PROGRESS_FLING_RECENTER) { in getFlingTarget() 489 private void setCurrentProgress(float progress) { in setCurrentProgress() argument 490 if (Math.abs(progress) > HINT_MOVE_THRESHOLD_RATIO) { in setCurrentProgress() 493 currentProgress = progress; in setCurrentProgress() 494 listener.onProgressChanged(progress); in setCurrentProgress()
|