/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics2/ui/viewmodel/ |
D | FingerprintEnrollProgressViewModelTest.java | 201 EnrollmentProgress progress = progressLiveData.getValue(); in testProgressUpdate() local 202 assertThat(progress).isNotNull(); in testProgressUpdate() 203 assertThat(progress.getSteps()).isEqualTo(-1); in testProgressUpdate() 204 assertThat(progress.getRemaining()).isEqualTo(0); in testProgressUpdate() 208 progress = progressLiveData.getValue(); in testProgressUpdate() 209 assertThat(progress).isNotNull(); in testProgressUpdate() 210 assertThat(progress.getSteps()).isEqualTo(25); in testProgressUpdate() 211 assertThat(progress.getRemaining()).isEqualTo(25); in testProgressUpdate() 215 progress = progressLiveData.getValue(); in testProgressUpdate() 216 assertThat(progress).isNotNull(); in testProgressUpdate() [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()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/ |
D | ClockCarouselView.kt | 174 progress: Float, in <lambda>() 177 ClockSize.DYNAMIC -> onDynamicClockViewTransition(progress) in <lambda>() 178 ClockSize.SMALL -> onSmallClockViewTransition(progress) in <lambda>() 180 onCardViewTransition(progress) in <lambda>() 220 private fun onCardViewTransition(progress: Float) { in <lambda>() 221 offCenterCardView?.alpha = getShowingAlpha(progress) in <lambda>() 222 toCenterCardView?.alpha = getHidingAlpha(progress) in <lambda>() 225 private fun onDynamicClockViewTransition(progress: Float) { in <lambda>() 229 ?.onPickerCarouselSwiping(1 - progress) in <lambda>() 233 ?.onPickerCarouselSwiping(progress) in <lambda>() [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | SeekBarPreference.java | 229 public void setProgress(int progress) { in setProgress() argument 230 setProgress(progress, true); in setProgress() 265 private void setProgress(int progress, boolean notifyChanged) { in setProgress() argument 266 if (progress > mMax) { in setProgress() 267 progress = mMax; in setProgress() 269 if (progress < mMin) { in setProgress() 270 progress = mMin; in setProgress() 272 if (progress != mProgress) { in setProgress() 273 mProgress = progress; in setProgress() 274 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;
|
/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/Settings/tests/robotests/src/com/android/settings/notification/ |
D | VolumeSeekBarPreferenceTest.java | 89 final int progress = 4; in setStream_shouldSetMinMaxAndProgress() local 92 when(mAudioManager.getStreamVolume(STREAM)).thenReturn(progress); in setStream_shouldSetMinMaxAndProgress() 98 verify(mPreference).setProgress(progress); in setStream_shouldSetMinMaxAndProgress() 139 final int progress = 4; in init_changeProgress_overrideStateDescriptionCalled() local 141 when(mPreference.formatStateDescription(progress)).thenReturn(CONTENT_DESCRIPTION); in init_changeProgress_overrideStateDescriptionCalled() 158 int progress = 4; in init_changeProgress_stateDescriptionValueUpdated() local 161 when(mAudioManager.getStreamVolume(STREAM)).thenReturn(progress); in init_changeProgress_stateDescriptionValueUpdated() 179 testFormatStateDescription(progress, "18%"); in init_changeProgress_stateDescriptionValueUpdated() 181 progress = 6; in init_changeProgress_stateDescriptionValueUpdated() 184 testFormatStateDescription(progress, "31%"); in init_changeProgress_stateDescriptionValueUpdated() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | SwipePipToHomeAnimator.java | 228 private void onAnimationUpdate(RectF currentRect, float progress) { in onAnimationUpdate() argument 233 onAnimationUpdate(tx, mCurrentBoundsF, progress); in onAnimationUpdate() 238 RectF currentRect, float progress) { in onAnimationUpdate() argument 241 mPipContentOverlay.onAnimationUpdate(tx, mCurrentBounds, progress); in onAnimationUpdate() 243 return onAnimationScaleAndCrop(progress, tx, mCurrentBounds); in onAnimationUpdate() 248 float progress, SurfaceControl.Transaction tx, in onAnimationScaleAndCrop() argument 250 final Rect insets = mInsetsEvaluator.evaluate(progress, mSourceInsets, in onAnimationScaleAndCrop() 253 final RotatedPosition rotatedPosition = getRotatedPosition(progress); in onAnimationScaleAndCrop() 258 bounds, insets, progress); in onAnimationScaleAndCrop() 298 private RotatedPosition getRotatedPosition(float progress) { in getRotatedPosition() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/view/ |
D | FingerprintEnrollEnrollingRfpsFragment.kt | 115 private val progressObserver = Observer { progress: EnrollmentProgress? -> in <lambda>() method 116 if (progress != null && progress.steps >= 0) { in <lambda>() 117 onEnrollmentProgressChange(progress) in <lambda>() 328 private fun onEnrollmentProgressChange(progress: EnrollmentProgress) { in <lambda>() 329 updateProgress(true /* animate */, progress) in <lambda>() 337 val progress = getProgress(enrollmentProgress) in <lambda>() constant 339 + ", new:$progress") in <lambda>() 343 if (progressBar.progress < progress) { in <lambda>() 347 animateProgress(progress) in <lambda>() 349 progressBar.progress = progress in <lambda>() [all …]
|
D | FingerprintEnrollEnrollingSfpsFragment.kt | 100 if (progressBar.progress >= PROGRESS_BAR_MAX) { in <lambda>() 133 private val progressObserver = Observer { progress: EnrollmentProgress? -> in <lambda>() method 134 if (progress != null && progress.steps >= 0) { in <lambda>() 135 onEnrollmentProgressChange(progress) in <lambda>() 373 private fun onEnrollmentProgressChange(progress: EnrollmentProgress) { in <lambda>() 374 updateProgress(true /* animate */, progress) in <lambda>() 377 … ((progress.steps - progress.remaining).toFloat() / progress.steps.toFloat() * 100).toInt() in <lambda>() 394 val progress = getProgress(enrollmentProgress) in <lambda>() constant 396 + ", new:$progress") in <lambda>() 400 if (progressBar.progress < progress) { in <lambda>() [all …]
|
D | FingerprintEnrollEnrollingUdfpsFragment.kt | 127 private val progressObserver = Observer { progress: EnrollmentProgress? -> in <lambda>() method 128 if (progress != null && progress.steps >= 0) { in <lambda>() 129 onEnrollmentProgressChange(progress) in <lambda>() 346 val progress = getProgress(enrollmentProgress) in <lambda>() constant 347 Log.d(TAG, "updateProgress($animate, $enrollmentProgress), progress:$progress") in <lambda>() 356 if (progress >= PROGRESS_BAR_MAX) { in <lambda>() 366 private fun getProgress(progress: EnrollmentProgress): Int { in <lambda>() 367 if (progress.steps == -1) { in <lambda>() 370 val displayProgress = 0.coerceAtLeast(progress.steps + 1 - progress.remaining) in <lambda>() 371 return PROGRESS_BAR_MAX * displayProgress / (progress.steps + 1) in <lambda>() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | FloatingAppPairBackground.kt | 127 val progress = floatingView.progress in drawLeftRightSplit() constant 147 (cellSplitInterpolator.getInterpolation(progress) * halfDividerSize) - onePixel in drawLeftRightSplit() 148 val changingInnerRadiusX = cellSplitInterpolator.getInterpolation(progress) * cornerRadiusX in drawLeftRightSplit() 149 val changingInnerRadiusY = cellSplitInterpolator.getInterpolation(progress) * cornerRadiusY in drawLeftRightSplit() 191 expandXInterpolator.getInterpolation(progress))) / scaleFactorX in drawLeftRightSplit() 195 expandYInterpolator.getInterpolation(progress))) / scaleFactorY in drawLeftRightSplit() 204 (255 - (255 * iconFadeInterpolator.getInterpolation(progress))).toInt() in drawLeftRightSplit() 225 val progress = floatingView.progress in drawTopBottomSplit() constant 245 (cellSplitInterpolator.getInterpolation(progress) * halfDividerSize) - onePixel in drawTopBottomSplit() 246 val changingInnerRadiusX = cellSplitInterpolator.getInterpolation(progress) * cornerRadiusX in drawTopBottomSplit() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | AbstractStateChangeTouchController.java | 208 float progress = deltaProgress + mStartProgress; in onDrag() local 209 updateProgress(progress); in onDrag() 212 if (progress <= 0) { in onDrag() 221 mLauncher.getAppsView().onPull(-progress , -progress); in onDrag() 223 } else if (progress >= 1) { in onDrag() 233 mLauncher.getAppsView().onPull(progress - 1f, progress - 1f); in onDrag() 300 final float progress = mCurrentAnimation.getProgressFraction(); in onDragEnd() local 334 if (progress >= 1) { in onDragEnd() 338 startProgress = Utilities.boundToRange(progress in onDragEnd() 341 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/Settings/src/com/android/settings/ |
D | PointerSpeedPreference.java | 85 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { in onProgressChanged() argument 87 mIm.tryPointerSpeed(progress + InputSettings.MIN_POINTER_SPEED); in onProgressChanged() 89 if (progress != mLastProgress) { in onProgressChanged() 91 mLastProgress = progress; in onProgressChanged() 143 myState.progress = mSeekBar.getProgress(); in onSaveInstanceState() 162 mIm.tryPointerSpeed(myState.progress + InputSettings.MIN_POINTER_SPEED); in onRestoreInstanceState() 166 int progress; field in PointerSpeedPreference.SavedState 171 progress = source.readInt(); in SavedState() 178 dest.writeInt(progress); in writeToParcel()
|
/packages/apps/Launcher3/src/com/android/launcher3/pm/ |
D | PackageInstallInfo.java | 35 public final int progress; field in PackageInstallInfo 42 this.progress = (int) (info.getProgress() * 100f); in PackageInstallInfo() 46 public PackageInstallInfo(String packageName, int state, int progress, UserHandle user) { in PackageInstallInfo() argument 50 this.progress = progress; in PackageInstallInfo() 72 + " progress=" + progress in dumpProperties()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/unfold/ |
D | ProxyUnfoldTransitionProvider.kt | 23 import com.android.systemui.unfold.progress.IUnfoldTransitionListener 24 import com.android.systemui.unfold.progress.UnfoldRemoteFilter 49 override fun onTransitionProgress(progress: Float) { in onTransitionProgress() 50 MAIN_EXECUTOR.execute { delegate.onTransitionProgress(progress) } in onTransitionProgress() 86 override fun onTransitionProgress(@FloatRange(from = 0.0, to = 1.0) progress: Float) { in onTransitionProgress() 87 listeners.forEach { it.onTransitionProgress(progress) } in onTransitionProgress()
|
/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/Settings/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingDeviceVolumeControlUpdater.java | 96 SeekBar seekBar, int progress, boolean fromUser) {} in addPreference() 103 int progress = seekBar.getProgress(); in addPreference() 111 setAudioManagerStreamVolume(progress); in addPreference() 114 setDeviceVolume(cachedDevice, progress); in addPreference() 156 private void setDeviceVolume(CachedBluetoothDevice cachedDevice, int progress) { in setDeviceVolume() argument 159 cachedDevice.getDevice(), progress, /* isGroupOp= */ true); in setDeviceVolume() local 167 private void setAudioManagerStreamVolume(int progress) { in setAudioManagerStreamVolume() argument 176 int volume = Math.round((float) progress * streamVolumeRange / seekbarRange); in setAudioManagerStreamVolume()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | IconShape.java | 231 float progress = (Float) anim.getAnimatedValue(); 232 float[] values = evaluator.evaluate(progress, startValues, endValues); 339 float progress = (Float) anim.getAnimatedValue(); 340 float[] values = evaluator.evaluate(progress, startValues, endValues); 407 float progress = (Float) anim.getAnimatedValue(); 409 float cx = (1 - progress) * startCX + progress * endCX; 410 float cy = (1 - progress) * startCY + progress * endCY; 411 float r = (1 - progress) * startR + progress * endR; 412 float control = (1 - progress) * startControl + progress * endControl; 413 float hShift = (1 - progress) * startHShift + progress * endHShift; [all …]
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | AppDataUsagePreference.java | 67 final ProgressBar progress = (ProgressBar) holder.findViewById( in onBindViewHolder() local 68 android.R.id.progress); in onBindViewHolder() 71 progress.setVisibility(View.GONE); in onBindViewHolder() 73 progress.setVisibility(View.VISIBLE); in onBindViewHolder() 75 progress.setProgress(mPercent); in onBindViewHolder() 76 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/Settings/tests/unit/src/com/android/settings/accessibility/ |
D | DisplaySizeDataTest.java | 56 final int progress = mDisplaySizeData.getValues().size() - 1; in commit_success() local 58 mInitialIndex != progress && progress > 0); in commit_success() 60 mDisplaySizeData.commit(progress); in commit_success() 64 assertThat(density).isEqualTo(mDisplaySizeData.getValues().get(progress)); in commit_success()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | FontSizeDataTest.java | 49 final int progress = 3; in commit_success() local 51 mFontSizeData.commit(progress); in commit_success() 56 assertThat(currentScale).isEqualTo(mFontSizeData.getValues().get(progress)); in commit_success() 61 final int progress = 3; in commit_fontScalingHasBeenChangedIsOn() local 65 mFontSizeData.commit(progress); in commit_fontScalingHasBeenChangedIsOn()
|