Home
last modified time | relevance | path

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

1234567

/packages/apps/Settings/src/com/android/settings/
DSeekBarPreference.java133 public void setProgress(int progress) { in setProgress() argument
134 setProgress(progress, true); in setProgress()
158 private void setProgress(int progress, boolean notifyChanged) { in setProgress() argument
159 if (progress > mMax) { in setProgress()
160 progress = mMax; in setProgress()
162 if (progress < 0) { in setProgress()
163 progress = 0; in setProgress()
165 if (progress != mProgress) { in setProgress()
166 mProgress = progress; in setProgress()
167 persistInt(progress); in setProgress()
[all …]
DPreviewSeekBarPreferenceFragment.java68 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onProgressChanged() argument
69 setPreviewLayer(progress, true); in onProgressChanged()
123 final int progress = seekBar.getProgress(); in onCreateView()
124 if (progress > 0) { in onCreateView()
125 seekBar.setProgress(progress - 1, true); in onCreateView()
134 final int progress = seekBar.getProgress(); in onCreateView()
135 if (progress < seekBar.getMax()) { in onCreateView()
136 seekBar.setProgress(progress + 1, true); in onCreateView()
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/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/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/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/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/
DMediaCard.java112 public void setProgress(int progress) { in setProgress() argument
113 if (progress == -1) { in setProgress()
120 if (progress > 100) { in setProgress()
121 progress = 100; in setProgress()
123 if (progress < 0) { in setProgress()
124 progress = 0; in setProgress()
126 mProgressBar.setProgress(progress); in setProgress()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DPreloadIconDrawable.java263 private void setInternalProgress(float progress) { in setInternalProgress() argument
264 mInternalStateProgress = progress; in setInternalProgress()
265 if (progress <= 0) { in setInternalProgress()
275 if (progress < 1 && progress > 0) { in setInternalProgress()
276 mPathMeasure.getSegment(0, progress * mTrackLength, mScaledProgressPath, true); in setInternalProgress()
280 } else if (progress >= 1) { in setInternalProgress()
283 float fraction = (progress - 1) / COMPLETE_ANIM_FRACTION; in setInternalProgress()
/packages/apps/Launcher3/src/com/android/launcher3/
DPinchThresholdManager.java51 public float updateAndAnimatePassedThreshold(float progress, in updateAndAnimatePassedThreshold() argument
55 progress = 1f - progress; in updateAndAnimatePassedThreshold()
60 if (progress < THRESHOLD_ONE) { in updateAndAnimatePassedThreshold()
62 } else if (progress < THRESHOLD_TWO) { in updateAndAnimatePassedThreshold()
64 } else if (progress < THRESHOLD_THREE) { in updateAndAnimatePassedThreshold()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageSummaryPreference.java47 final ProgressBar progress = (ProgressBar) view.findViewById(android.R.id.progress); in onBindViewHolder() local
49 progress.setVisibility(View.VISIBLE); in onBindViewHolder()
50 progress.setProgress(mPercent); in onBindViewHolder()
51 progress.setScaleY(7f); in onBindViewHolder()
53 progress.setVisibility(View.GONE); in onBindViewHolder()
DStorageVolumePreference.java114 final ProgressBar progress = (ProgressBar) view.findViewById(android.R.id.progress); in onBindViewHolder() local
116 progress.setVisibility(View.VISIBLE); in onBindViewHolder()
117 progress.setProgress(mUsedPercent); in onBindViewHolder()
118 progress.setProgressTintList(ColorStateList.valueOf(mColor)); in onBindViewHolder()
120 progress.setVisibility(View.GONE); in onBindViewHolder()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DPackageInstallStateChangedTaskTest.java23 private PackageInstallStateChangedTask newTask(String pkg, int progress) { in newTask() argument
25 installInfo.progress = progress; in newTask()
49 private void verifyProgressUpdate(int progress, Long... idsUpdated) { in verifyProgressUpdate() argument
53 assertEquals(updates.contains(info.id) ? progress: 0, in verifyProgressUpdate()
56 assertEquals(updates.contains(info.id) ? progress: -1, in verifyProgressUpdate()
/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/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
DProgressService.java49 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/Settings/src/com/android/settings/widget/
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/Camera2/src/com/android/camera/
DPanoProgressBar.java108 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/
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()
/packages/apps/Email/provider_src/com/android/email/service/
DEmailBroadcastProcessorService.java312 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSeekBarDialogPreference.java82 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/
DVolumeSeekBarPreference.java121 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { in init()
123 mCallback.onStreamValueChanged(mStream, progress); in init()
151 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { in onProgressChanged() argument
152 super.onProgressChanged(seekBar, progress, fromTouch); in onProgressChanged()
154 mCallback.onStreamValueChanged(mStream, progress); in onProgressChanged()
206 void onStreamValueChanged(int stream, int progress); in onStreamValueChanged() argument
/packages/apps/Messaging/src/com/android/messaging/ui/
DAudioPlaybackProgressBar.java48 int progress = 0; in AudioPlaybackProgressBar()
50 progress = (int) (((mCumulativeTime + SystemClock.elapsedRealtime() - in AudioPlaybackProgressBar()
52 progress = Math.max(Math.min(progress, 100), 0); in AudioPlaybackProgressBar()
54 setProgress(progress); in AudioPlaybackProgressBar()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsagePreference.java56 final ProgressBar progress = (ProgressBar) holder.findViewById( in onBindViewHolder() local
57 android.R.id.progress); in onBindViewHolder()
60 progress.setVisibility(View.GONE); in onBindViewHolder()
62 progress.setVisibility(View.VISIBLE); in onBindViewHolder()
64 progress.setProgress(mPercent); in onBindViewHolder()
/packages/apps/PackageInstaller/src/android/support/wearable/view/
DProgressDrawable.java120 float progress = (level - offset) / (float) LEVELS_PER_SEGMENT; in draw() local
122 growing = progress < GROW_SHRINK_RATIO; in draw()
123 correctionAngle = CORRECTION_ANGLE * progress; in draw()
127 lerpInv(0f, GROW_SHRINK_RATIO, progress)); in draw()
130 lerpInv(GROW_SHRINK_RATIO, 1.0f, progress))); in draw()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DPackageInstallerCompat.java52 public int progress; field in PackageInstallerCompat.PackageInstallInfo
58 public PackageInstallInfo(String packageName, int state, int progress) { in PackageInstallInfo() argument
61 this.progress = progress; in PackageInstallInfo()

1234567