Home
last modified time | relevance | path

Searched refs:progress (Results 1 – 25 of 215) sorted by relevance

123456789

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DSeekBarPreference.java198 public void setProgress(int progress) { in setProgress() argument
199 setProgress(progress, true); in setProgress()
223 private void setProgress(int progress, boolean notifyChanged) { in setProgress() argument
224 if (progress > mMax) { in setProgress()
225 progress = mMax; in setProgress()
227 if (progress < mMin) { in setProgress()
228 progress = mMin; in setProgress()
230 if (progress != mProgress) { in setProgress()
231 mProgress = progress; in setProgress()
232 persistInt(progress); in setProgress()
[all …]
DLabeledSeekBar.java69 public synchronized void setProgress(int progress) { in setProgress() argument
76 super.setProgress(progress); in setProgress()
95 private void sendClickEventForAccessibility(int progress) { in sendClickEventForAccessibility() argument
97 mAccessHelper.sendEventForVirtualView(progress, AccessibilityEvent.TYPE_VIEW_CLICKED); in sendClickEventForAccessibility()
116 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
118 mOnSeekBarChangeListener.onProgressChanged(seekBar, progress, fromUser);
119 sendClickEventForAccessibility(progress);
/packages/apps/Settings/src/com/android/settings/widget/
DSeekBarPreference.java209 public void setProgress(int progress) { in setProgress() argument
210 setProgress(progress, true); in setProgress()
234 private void setProgress(int progress, boolean notifyChanged) { in setProgress() argument
235 if (progress > mMax) { in setProgress()
236 progress = mMax; in setProgress()
238 if (progress < mMin) { in setProgress()
239 progress = mMin; in setProgress()
241 if (progress != mProgress) { in setProgress()
242 mProgress = progress; in setProgress()
243 persistInt(progress); in setProgress()
[all …]
DLabeledSeekBar.java69 public synchronized void setProgress(int progress) { in setProgress() argument
76 super.setProgress(progress); in setProgress()
95 private void sendClickEventForAccessibility(int progress) { in sendClickEventForAccessibility() argument
97 mAccessHelper.sendEventForVirtualView(progress, AccessibilityEvent.TYPE_VIEW_CLICKED); in sendClickEventForAccessibility()
116 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
118 mOnSeekBarChangeListener.onProgressChanged(seekBar, progress, fromUser);
119 sendClickEventForAccessibility(progress);
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DRoundedRectRevealOutlineProvider.java49 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()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java1373 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 …]
DFlingScroller.java107 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/recents_ui_overrides/src/com/android/quickstep/util/
DClipAnimationHelper.java162 float progress = params.progress; in applyTransform() local
167 currentRect = mRectFEvaluator.evaluate(progress, mSourceRect, mTmpRectF); in applyTransform()
171 progress = Math.min(1, progress); in applyTransform()
174 mClipRectF.left = sourceWindowClipInsets.left * progress; in applyTransform()
175 mClipRectF.top = sourceWindowClipInsets.top * progress; in applyTransform()
177 mSourceStackBounds.width() - (sourceWindowClipInsets.right * progress); in applyTransform()
179 mSourceStackBounds.height() - (sourceWindowClipInsets.bottom * progress); in applyTransform()
207 cornerRadius = Utilities.mapRange(progress, windowCornerRadius, in applyTransform()
215 alpha = 1 - (progress * params.targetAlpha); in applyTransform()
361 float progress; field in ClipAnimationHelper.TransformParams
[all …]
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/views/
DTaskLayerDrawable.java83 public void setTransitionProgress(float progress) { in setTransitionProgress() argument
84 if (progress > 1 || progress < 0) { in setTransitionProgress()
87 mProgress = progress; in setTransitionProgress()
88 applyTransitionProgress(progress); in setTransitionProgress()
91 private void applyTransitionProgress(float progress) { in applyTransitionProgress() argument
92 int drawableAlpha = (int) (progress * 255); in applyTransitionProgress()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconShape.java285 float progress = (Float) anim.getAnimatedValue();
286 float[] values = evaluator.evaluate(progress, startValues, endValues);
353 float progress = (Float) anim.getAnimatedValue();
355 float cx = (1 - progress) * startCX + progress * endCX;
356 float cy = (1 - progress) * startCY + progress * endCY;
357 float r = (1 - progress) * startR + progress * endR;
358 float control = (1 - progress) * startControl + progress * endControl;
359 float hShift = (1 - progress) * startHShift + progress * endHShift;
360 float vShift = (1 - progress) * startVShift + progress * endVShift;
DPreloadIconDrawable.java262 private void setInternalProgress(float progress) { in setInternalProgress() argument
263 mInternalStateProgress = progress; in setInternalProgress()
264 if (progress <= 0) { in setInternalProgress()
271 if (progress < 1 && progress > 0) { in setInternalProgress()
272 mPathMeasure.getSegment(0, progress * mTrackLength, mScaledProgressPath, true); in setInternalProgress()
276 } else if (progress >= 1) { in setInternalProgress()
279 float fraction = (progress - 1) / COMPLETE_ANIM_FRACTION; in setInternalProgress()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DInCallPaginator.java47 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DBalanceSeekBar.java65 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
68 if (progress != mCenter
69 && progress > mCenter - mSnapThreshold
70 && progress < mCenter + mSnapThreshold) {
71 progress = mCenter;
72 seekBar.setProgress(progress); // direct update (fromUser becomes false)
74 final float balance = (progress - mCenter) * 0.01f;
85 mOnSeekBarChangeListener.onProgressChanged(seekBar, progress, fromUser);
/packages/apps/Settings/src/com/android/settings/accessibility/
DBalanceSeekBar.java65 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
68 if (progress != mCenter
69 && progress > mCenter - mSnapThreshold
70 && progress < mCenter + mSnapThreshold) {
71 progress = mCenter;
72 seekBar.setProgress(progress); // direct update (fromUser becomes false)
74 final float balance = (progress - mCenter) * 0.01f;
85 mOnSeekBarChangeListener.onProgressChanged(seekBar, progress, fromUser);
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageSummaryPreference.java48 final ProgressBar progress = (ProgressBar) view.findViewById(android.R.id.progress); in onBindViewHolder() local
50 progress.setVisibility(View.VISIBLE); in onBindViewHolder()
51 progress.setProgress(mPercent); in onBindViewHolder()
52 progress.setScaleY(7f); in onBindViewHolder()
54 progress.setVisibility(View.GONE); in onBindViewHolder()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java279 float progress = deltaProgress + mStartProgress; in onDrag() local
280 updateProgress(progress); in onDrag()
283 if (progress <= 0) { in onDrag()
290 } else if (progress >= 1) { in onDrag()
319 float progress) { in maybeUpdateAtomicAnim() argument
325 boolean passedThreshold = progress >= threshold; in maybeUpdateAtomicAnim()
390 final float progress = mCurrentAnimation.getProgressFraction(); in onDragEnd() local
412 if (progress >= 1) { in onDragEnd()
417 progress + velocity * SINGLE_FRAME_MS * mProgressMultiplier, 0f, 1f); in onDragEnd()
419 endProgress - Math.max(progress, 0)) * durationMultiplier; in onDragEnd()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageSummaryPreference.java48 final ProgressBar progress = (ProgressBar) view.findViewById(android.R.id.progress); in onBindViewHolder() local
50 progress.setVisibility(View.VISIBLE); in onBindViewHolder()
51 progress.setProgress(mPercent); in onBindViewHolder()
52 progress.setScaleY(7f); in onBindViewHolder()
54 progress.setVisibility(View.GONE); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/display/
DPreviewSeekBarPreferenceFragment.java65 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onProgressChanged() argument
66 setPreviewLayer(progress, false); in onProgressChanged()
111 final int progress = mSeekBar.getProgress(); in onCreateView()
112 if (progress > 0) { in onCreateView()
113 mSeekBar.setProgress(progress - 1, true); in onCreateView()
119 final int progress = mSeekBar.getProgress(); in onCreateView()
120 if (progress < mSeekBar.getMax()) { in onCreateView()
121 mSeekBar.setProgress(progress + 1, true); in onCreateView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DPreviewSeekBarPreferenceFragment.java65 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onProgressChanged() argument
66 setPreviewLayer(progress, false); in onProgressChanged()
111 final int progress = mSeekBar.getProgress(); in onCreateView()
112 if (progress > 0) { in onCreateView()
113 mSeekBar.setProgress(progress - 1, true); in onCreateView()
119 final int progress = mSeekBar.getProgress(); in onCreateView()
120 if (progress < mSeekBar.getMax()) { in onCreateView()
121 mSeekBar.setProgress(progress + 1, true); in onCreateView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DPointerSpeedPreference.java75 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { in onProgressChanged() argument
77 mIm.tryPointerSpeed(progress + InputManager.MIN_POINTER_SPEED); in onProgressChanged()
125 myState.progress = mSeekBar.getProgress(); in onSaveInstanceState()
144 mIm.tryPointerSpeed(myState.progress + InputManager.MIN_POINTER_SPEED); in onRestoreInstanceState()
148 int progress; field in PointerSpeedPreference.SavedState
153 progress = source.readInt(); in SavedState()
160 dest.writeInt(progress); in writeToParcel()
/packages/apps/Settings/src/com/android/settings/
DPointerSpeedPreference.java75 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { in onProgressChanged() argument
77 mIm.tryPointerSpeed(progress + InputManager.MIN_POINTER_SPEED); in onProgressChanged()
125 myState.progress = mSeekBar.getProgress(); in onSaveInstanceState()
144 mIm.tryPointerSpeed(myState.progress + InputManager.MIN_POINTER_SPEED); in onRestoreInstanceState()
148 int progress; field in PointerSpeedPreference.SavedState
153 progress = source.readInt(); in SavedState()
160 dest.writeInt(progress); in writeToParcel()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
DFlingUpDownTouchHandler.java57 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()
/packages/apps/Gallery2/src/com/android/gallery3d/anim/
DStateTransitionAnimation.java129 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/Launcher3/src/com/android/launcher3/allapps/
DAllAppsTransitionController.java62 public void setValue(AllAppsTransitionController controller, float progress) {
63 controller.setProgress(progress);
122 public void setProgress(float progress) { in setProgress() argument
123 mProgress = progress; in setProgress()
124 mScrimView.setProgress(progress); in setProgress()
125 float shiftCurrent = progress * mShiftRange; in setProgress()
142 if (progress >= overviewProgress || mLauncher.isInState(BACKGROUND_APP)) { in setProgress()
143 float hotseatShift = (progress - overviewProgress) * mShiftRange; in setProgress()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoProgressBar.java103 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()

123456789