/aosp14/frameworks/base/core/java/android/preference/ |
H A D | SeekBarPreference.java | 125 setProgress(progress, true); in setProgress() 129 if (progress > mMax) { in setProgress() 130 progress = mMax; in setProgress() 132 if (progress < 0) { in setProgress() 133 progress = 0; in setProgress() 135 if (progress != mProgress) { in setProgress() 136 mProgress = progress; in setProgress() 137 persistInt(progress); in setProgress() 154 if (progress != mProgress) { in syncProgress() 228 int progress; field in SeekBarPreference.SavedState [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/ |
H A D | TransitionLayoutController.kt | 132 progress: Float, 175 progress) 178 progress) 183 progress) 201 progress) 204 progress) 239 if (progress == 0.0f) { 247 progress) 249 progress) 254 progress) [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/view/ |
H A D | SeekBarWithIconButtonsView.java | 92 int progress = typedArray.getInt( in SeekBarWithIconButtonsView() local 96 setProgress(progress); in SeekBarWithIconButtonsView() 226 public void setProgress(int progress) { in setProgress() argument 227 mSeekbar.setProgress(progress); in setProgress() 231 private void setProgressFromButton(int progress) { in setProgressFromButton() argument 233 mSeekbar.setProgress(progress); in setProgressFromButton() 238 final int progress = mSeekbar.getProgress(); in onIconStartClicked() local 239 if (progress > 0) { in onIconStartClicked() 245 final int progress = mSeekbar.getProgress(); in onIconEndClicked() local 246 if (progress < mSeekbar.getMax()) { in onIconEndClicked() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/haptics/slider/ |
H A D | SeekableSliderEventProducerTest.kt | 57 val progress = 50 regex 60 eventProducer.onProgressChanged(seekBar, progress, true) 71 val progress = 50 regex 74 eventProducer.onProgressChanged(seekBar, progress, true) 81 val progress = 50 regex 84 eventProducer.onProgressChanged(seekBar, progress, false) 95 val progress = 50 regex 106 val progress = 50 regex 109 eventProducer.onProgressChanged(seekBar, progress, true) 118 val progress = 50 regex [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/page/ |
H A D | ProgressBarPage.kt | 67 var progress by remember { mutableStateOf(0f) } regex 69 while (progress < 1f) { 71 progress += 0.01f 74 progress = 0.4f 77 LargeProgressBar(progress) 80 CircularProgressBar(progress = progress, radius = 160f) 86 private fun LargeProgressBar(progress: Float) { 89 override val progress = progress 98 override val progress = 0.2f 107 override val progress = 0.2f
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/progress/ |
H A D | TestUnfoldProgressListener.kt | 17 package com.android.systemui.unfold.progress 38 override fun onTransitionProgress(progress: Float) { 42 currentRecording!!.addProgress(progress) 73 fun assertLastProgress(progress: Float) { 74 currentRecording?.assertLastProgress(progress) ?: error("unfold not in progress.") 86 fun addProgress(progress: Float) { 87 assertThat(progress).isAtMost(1.0f) 88 assertThat(progress).isAtLeast(0.0f) 90 progressHistory += progress 133 fun assertLastProgress(progress: Float) { [all …]
|
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/ |
H A D | FontInterpolator.kt | 51 fun set(l: Font, r: Font, progress: Float) { 54 this.progress = progress 98 fun lerp(start: Font, end: Font, progress: Float): Font { 99 if (progress == 0f) { 101 } else if (progress == 1f) { 114 tmpInterpKey.set(start, end, progress) 134 progress 141 progress 148 MathUtils.lerp(startValue, endValue, progress) 158 interpCache.put(InterpKey(start, end, progress), axesCachedFont) [all …]
|
H A D | TextInterpolator.kt | 103 var progress: Float = 0f 207 if (progress == 0f) { 209 } else if (progress == 1f) { 212 lerp(basePaint, targetPaint, progress, tmpPaint) 231 progress = 0f 240 lerp(basePaint, targetPaint, progress, tmpPaint) 367 MathUtils.lerp(line.baseX[i], line.targetX[i], progress) 391 glyphFilter(tmpGlyph, progress) 480 private fun lerp(from: Paint, to: Paint, progress: Float, out: Paint) { 485 out.textSize = MathUtils.lerp(from.textSize, to.textSize, progress) [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/ |
H A D | TouchTracker.java | 107 float progress = 0; in createProgressEvent() local 110 progress = getProgress(mLatestTouchX); in createProgressEvent() 112 return createProgressEvent(progress); in createProgressEvent() 133 float progress; in getProgress() local 143 progress = deltaX / initialTarget; in getProgress() 151 progress = deltaX / currentTarget; in getProgress() 155 progress = deltaX / maxDistance; in getProgress() 157 return MathUtils.constrain(progress, 0, 1); in getProgress() 168 BackMotionEvent createProgressEvent(float progress) { in createProgressEvent() argument 172 /* progress = */ progress, in createProgressEvent()
|
H A D | CrossTaskBackAnimation.java | 148 private void updateGestureBackProgress(float progress, BackEvent event) { in updateGestureBackProgress() argument 164 float enteringScale = mapRange(progress, 1, ENTERING_MIN_WINDOW_SCALE); in updateGestureBackProgress() 165 float closingScale = mapRange(progress, 1, CLOSING_MIN_WINDOW_SCALE); in updateGestureBackProgress() 182 float right = width - (progress * WINDOW_MARGIN); in updateGestureBackProgress() 194 mBackground.onBackProgressed(progress); in updateGestureBackProgress() 197 private void updatePostCommitClosingAnimation(float progress) { in updatePostCommitClosingAnimation() argument 199 float alpha = mapRange(progress, 1, 0); in updatePostCommitClosingAnimation() 203 private void updatePostCommitEnteringAnimation(float progress) { in updatePostCommitEnteringAnimation() argument 302 float progress = animation.getAnimatedFraction(); in onGestureCommitted() 303 updatePostCommitEnteringAnimation(progress); in onGestureCommitted() [all …]
|
H A D | CrossActivityAnimation.java | 241 float progress = backEvent.getProgress(); in onGestureProgress() local 242 float springProgress = (progress > PROGRESS_COMMIT_THRESHOLD in onGestureProgress() 243 ? mapLinear(progress, 0.1f, 1, TARGET_COMMIT_PROGRESS, 1) in onGestureProgress() 247 mBackground.onBackProgressed(progress); in onGestureProgress() 268 float progress = animation.getAnimatedFraction(); in onGestureCommitted() 269 updatePostCommitEnteringAnimation(progress); in onGestureCommitted() 282 private void updatePostCommitEnteringAnimation(float progress) { in updatePostCommitEnteringAnimation() argument 283 float left = mapRange(progress, mEnteringStartRect.left, mStartTaskRect.left); in updatePostCommitEnteringAnimation() 284 float top = mapRange(progress, mEnteringStartRect.top, mStartTaskRect.top); in updatePostCommitEnteringAnimation() 287 float alpha = mapRange(progress, mEnteringProgress, 1.0f); in updatePostCommitEnteringAnimation() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/scene/ |
H A D | AnimateToScene.kt | 65 val progress = state.progress regex 66 if ((1f - progress).absoluteValue < ProgressVisibilityThreshold) { 73 animate(layoutImpl, target, startProgress = progress) 84 val progress = state.progress regex 85 if (progress.absoluteValue < ProgressVisibilityThreshold) { 90 animate(layoutImpl, target, startProgress = progress, reversed = true) 144 override val progress: Float
|
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/animation/ |
H A D | UnfoldMoveFromCenterAnimator.kt | 103 override fun onTransitionProgress(progress: Float) { 105 it.applyTransition(progress) 106 it.applyAlpha(progress) 108 lastAnimationProgress = progress 111 private fun AnimatedView.applyTransition(progress: Float) { 115 x = startTranslationX * (1 - progress), 116 y = startTranslationY * (1 - progress) 121 private fun AnimatedView.applyAlpha(progress: Float) { 123 view.get()?.alpha = alphaProvider.getAlpha(progress) 166 fun getAlpha(progress: Float): Float
|
/aosp14/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/ |
H A D | ProgressBar.kt | 47 progress: Float, 56 .progressSemantics(progress) 61 drawLinearBar(progress, color, roundedCorner) 67 progress: Float, 72 val width = progress * size.width 75 topLeft = if (isLtr) Offset.Zero else Offset((1 - progress) * size.width, 0f), 95 fun CircularProgressBar(progress: Float, radius: Float = 40f) { 98 progress = progress,
|
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/materials/ |
H A D | GlassActivity.kt | 90 onProgressChanged(it, it.progress, fromUser = false) 103 progress.toFloat(), resources.displayMetrics) 104 blurRadiusValue.text = progress.toString() 107 materialView.materialOpacity = progress / seekBar.max.toFloat() 108 materialOpacityValue.text = progress.toString() 111 materialView.noiseOpacity = progress / seekBar.max.toFloat() 112 noiseOpacityValue.text = progress.toString() 115 materialView.scrimOpacity = progress / seekBar.max.toFloat() 116 scrimOpacityValue.text = progress.toString() 119 materialView.zoom = progress / seekBar.max.toFloat() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/ |
H A D | UnfoldRemoteFilter.kt | 1 package com.android.systemui.unfold.progress 55 override fun onTransitionProgress(progress: Float) { 56 logCounter({ "$TAG#plain_remote_progress" }, progress) 61 springAnimation.animateToFinalPosition(progress) 65 processedProgress = progress 88 private fun logCounter(name: () -> String, progress: Float) { 90 Trace.setCounter(name(), (progress * 100).toLong())
|
H A D | RemoteUnfoldTransitionReceiver.kt | 17 package com.android.systemui.unfold.progress 59 override fun onTransitionProgress(progress: Float) { 61 filter?.onTransitionProgress(progress) 62 ?: outputProgressListener.onTransitionProgress(progress) 91 override fun onTransitionProgress(@FloatRange(from = 0.0, to = 1.0) progress: Float) { 93 listeners.forEach { it.onTransitionProgress(progress) }
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
H A D | DefaultUiController.java | 110 public void onInvocationProgress(int type, float progress) { in onInvocationProgress() argument 113 if (progress == 1) { in onInvocationProgress() 115 } else if (progress == 0) { in onInvocationProgress() 122 setProgressInternal(type, progress); in onInvocationProgress() 124 mLastInvocationProgress = progress; in onInvocationProgress() 146 int type, float progress, boolean invocationWasInProgress) { in logInvocationProgressMetrics() argument 148 if (progress == 1f) { in logInvocationProgressMetrics() 153 if (!invocationWasInProgress && progress > 0.f) { in logInvocationProgressMetrics() 168 && invocationWasInProgress && progress == 0f) { in logInvocationProgressMetrics() 194 private void setProgressInternal(int type, float progress) { in setProgressInternal() argument [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/preference/ |
H A D | ProgressBarPreference.kt | 47 val progress: Float 77 progress = model.progress, 93 progress = model.progress, 105 progress: Float, 113 LinearProgressBar(progress, height, roundedCorner) 126 progress: Float, 142 LinearProgressBar(progress, height, roundedCorner)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scene/domain/interactor/ |
H A D | SceneInteractorTest.kt | 82 val progress = MutableStateFlow(1f) regex 87 progress = progress, 91 progress.value = 0.1f 94 progress.value = 0.9f 119 val progress = MutableStateFlow(0f) regex 124 progress = progress, 128 progress.value = 0.5f 131 progress.value = 1f
|
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/ |
H A D | RippleShader.kt | 165 private fun subProgress(start: Float, end: Float, progress: Float): Float { 170 return if (progress > start) 1f else 0f 175 val sub = Math.min(Math.max(progress, min), max) 220 progress = STANDARD.getInterpolation(value) 228 private var progress: Float = 0.0f 422 fun update(progress: Float) { 423 val targetIndex = updateTargetIndex(progress) 429 val subProgress = subProgress(prevSize.t, targetSize.t, progress) 435 private fun updateTargetIndex(progress: Float): Int { 438 if (progress > 0f) { [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/AppPreference/src/com/android/settingslib/widget/ |
H A D | AppPreference.java | 71 final ProgressBar progress = (ProgressBar) view.findViewById(android.R.id.progress); in onBindViewHolder() local 73 progress.setProgress(mProgress); in onBindViewHolder() 74 progress.setVisibility(View.VISIBLE); in onBindViewHolder() 76 progress.setVisibility(View.GONE); in onBindViewHolder()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | ProgressBar.java | 1529 public int progress; field in ProgressBar.RefreshData 1539 rd.progress = progress; in obtain() 1651 mVisualProgress = progress; in setVisualProgress() 1748 progress = MathUtils.constrain(progress, mMin, mMax); in setProgressInternal() 1750 if (progress == mProgress) { in setProgressInternal() 1755 mProgress = progress; in setProgressInternal() 2246 int progress; field in ProgressBar.SavedState 2261 progress = in.readInt(); in SavedState() 2268 out.writeInt(progress); in writeToParcel() 2290 ss.progress = mProgress; in onSaveInstanceState() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/ |
H A D | BackPanelController.kt | 544 strokeAlphaProgress?.let { progress -> 546 ?.get(progress) 570 return MathUtils.saturate(progress) 585 private fun stretchActiveBackIndicator(progress: Float) { 601 private fun stretchEntryBackIndicator(progress: Float) { 634 private fun stretchInactiveBackIndicator(progress: Float) { 1145 private var progress: Float = 0f 1153 progress = 0f 1158 fun get(progress: Float): Value<T> { 1159 this.progress = progress [all …]
|
/aosp14/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/preference/ |
H A D | ProgressBarPreferenceTest.kt | 43 override val progress = 0.2f 54 override val progress = 0.2f 67 override val progress = 0.2f 71 fun progressEqualsTo(progress: Float): SemanticsMatcher = 74 ProgressBarRangeInfo(progress, 0f..1f, 0)
|