/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/scenetransition/ |
D | LockscreenSceneTransitionInteractorTest.kt | 54 private val progress = MutableStateFlow(0f) constant in com.android.systemui.keyguard.domain.interactor.scenetransition.LockscreenSceneTransitionInteractorTest 66 progress, 76 progress, 104 progress = 0f, in transition_from_ls_scene_end_in_gone() 107 progress.value = 0.4f in transition_from_ls_scene_end_in_gone() 111 progress = 0.4f, in transition_from_ls_scene_end_in_gone() 120 progress = 1f, in transition_from_ls_scene_end_in_gone() 141 progress = 0f, in transition_from_ls_scene_end_in_ls() 144 progress.value = 0.4f in transition_from_ls_scene_end_in_ls() 148 progress = 0.4f, in transition_from_ls_scene_end_in_ls() [all …]
|
/frameworks/libs/systemui/animationlib/tests/src/com/android/app/animation/ |
D | InterpolatorResourcesTest.kt | 27 var progress = 0f in testResourceInterpolatorsMatchCodeInterpolators() variable 28 while (progress < +1f) { in testResourceInterpolatorsMatchCodeInterpolators() 30 InterpolatorsAndroidX.EMPHASIZED.getInterpolation(progress), in testResourceInterpolatorsMatchCodeInterpolators() 31 loadInterpolator(R.interpolator.emphasized_interpolator).getInterpolation(progress) in testResourceInterpolatorsMatchCodeInterpolators() 34 InterpolatorsAndroidX.EMPHASIZED_ACCELERATE.getInterpolation(progress), in testResourceInterpolatorsMatchCodeInterpolators() 36 .getInterpolation(progress) in testResourceInterpolatorsMatchCodeInterpolators() 39 InterpolatorsAndroidX.EMPHASIZED_DECELERATE.getInterpolation(progress), in testResourceInterpolatorsMatchCodeInterpolators() 41 .getInterpolation(progress) in testResourceInterpolatorsMatchCodeInterpolators() 44 InterpolatorsAndroidX.STANDARD.getInterpolation(progress), in testResourceInterpolatorsMatchCodeInterpolators() 45 loadInterpolator(R.interpolator.standard_interpolator).getInterpolation(progress) in testResourceInterpolatorsMatchCodeInterpolators() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/haptics/slider/ |
D | SliderStateProducerTest.kt | 73 val progress = 0.5f in <lambda>() constant 76 eventProducer.onProgressChanged(/*fromUser =*/ true, progress) in <lambda>() 78 assertEquals(SliderEvent(SliderEventType.PROGRESS_CHANGE_BY_USER, progress), latest) in <lambda>() 83 val progress = 0.5f in <lambda>() constant 86 eventProducer.onProgressChanged(/*fromUser =*/ false, progress) in <lambda>() 88 assertEquals(SliderEvent(SliderEventType.PROGRESS_CHANGE_BY_PROGRAM, progress), latest) in <lambda>() 93 val progress = 0.5f in onStartTrackingTouch_afterProgress_trackingTouchEventProduced() constant 96 eventProducer.onProgressChanged(/*fromUser =*/ true, progress) in onStartTrackingTouch_afterProgress_trackingTouchEventProduced() 99 assertEquals(SliderEvent(SliderEventType.STARTED_TRACKING_TOUCH, progress), latest) in onStartTrackingTouch_afterProgress_trackingTouchEventProduced() 104 val progress = 0.5f in <lambda>() constant [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/haptics/slider/ |
D | SliderStateTrackerTest.kt | 95 val progress = 0f in <lambda>() constant 96 sliderEventProducer.sendEvent(SliderEvent(SliderEventType.STARTED_TRACKING_TOUCH, progress)) in <lambda>() 113 val progress = 0f in <lambda>() constant 114 sliderEventProducer.sendEvent(SliderEvent(SliderEventType.STARTED_TRACKING_TOUCH, progress)) in <lambda>() 134 var progress = 0.5f in <lambda>() variable 135 sliderEventProducer.sendEvent(SliderEvent(SliderEventType.STARTED_TRACKING_TOUCH, progress)) in <lambda>() 138 progress += (config.jumpThreshold - 0.01f) in <lambda>() 140 SliderEvent(SliderEventType.PROGRESS_CHANGE_BY_USER, progress) in <lambda>() 159 var progress = 0.5f in <lambda>() variable 160 sliderEventProducer.sendEvent(SliderEvent(SliderEventType.STARTED_TRACKING_TOUCH, progress)) in <lambda>() [all …]
|
D | SliderHapticFeedbackProviderTest.kt | 146 val progress = 1f in playHapticAtProgress_onQuickSuccession_playsLowTicksOnce() constant 150 progress, in playHapticAtProgress_onQuickSuccession_playsLowTicksOnce() 161 sliderHapticFeedbackProvider.onProgress(progress) in playHapticAtProgress_onQuickSuccession_playsLowTicksOnce() 162 sliderHapticFeedbackProvider.onProgress(progress) in playHapticAtProgress_onQuickSuccession_playsLowTicksOnce() 222 val progress = 1f in playHapticAtLowerBookend_afterPlayingAtProgress_playsTwice() constant 226 progress, in playHapticAtLowerBookend_afterPlayingAtProgress_playsTwice() 244 sliderHapticFeedbackProvider.onProgress(progress) in playHapticAtLowerBookend_afterPlayingAtProgress_playsTwice() 260 val progress = 1f in playHapticAtUpperBookend_afterPlayingAtProgress_playsTwice() constant 264 progress, in playHapticAtUpperBookend_afterPlayingAtProgress_playsTwice() 282 sliderHapticFeedbackProvider.onProgress(progress) in playHapticAtUpperBookend_afterPlayingAtProgress_playsTwice() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/domain/interactor/ |
D | ShadeInteractorSceneContainerImplTest.kt | 73 progress = MutableStateFlow(.3f), in qsExpansionWhenInSplitShadeAndQsExpanded() 96 val progress = MutableStateFlow(.3f) in qsExpansionWhenNotInSplitShadeAndQsExpanded() constant 103 progress = progress, in qsExpansionWhenNotInSplitShadeAndQsExpanded() 128 progress = MutableStateFlow(.3f), in qsFullscreen_falseWhenTransitioning() 220 val progress = MutableStateFlow(0f) in lockscreenShadeExpansion_transitioning_toScene() constant 227 progress = progress, in lockscreenShadeExpansion_transitioning_toScene() 238 progress.value = .4f in lockscreenShadeExpansion_transitioning_toScene() 244 progress.value = 1f in lockscreenShadeExpansion_transitioning_toScene() 259 val progress = MutableStateFlow(0f) in lockscreenShadeExpansion_transitioning_fromScene() constant 266 progress = progress, in lockscreenShadeExpansion_transitioning_fromScene() [all …]
|
/frameworks/base/core/java/android/preference/ |
D | SeekBarPreference.java | 124 public void setProgress(int progress) { in setProgress() argument 125 setProgress(progress, true); in setProgress() 128 private void setProgress(int progress, boolean notifyChanged) { in setProgress() argument 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() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/ |
D | TransitionLayoutController.kt | 79 progress = animator.animatedFraction, in updateStateFromAnimation() 143 progress: Float, in getInterpolatedState() 154 var alphaProgress = progress in getInterpolatedState() 155 var widthProgress = progress in getInterpolatedState() 180 progress in getInterpolatedState() 182 nowGone = progress < GONE_FADE_GUTS_FRACTION in getInterpolatedState() 197 progress in getInterpolatedState() 199 nowGone = progress < GONE_FADE_FRACTION in getInterpolatedState() 203 newScale = MathUtils.lerp(GONE_SCALE_AMOUNT * endScale, endScale, progress) in getInterpolatedState() 210 progress in getInterpolatedState() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/view/ |
D | SeekBarWithIconButtonsView.java | 92 int progress = typedArray.getInt( in SeekBarWithIconButtonsView() local 96 setProgress(progress); in SeekBarWithIconButtonsView() 194 private void updateIconViewIfNeeded(int progress) { 195 setIconViewAndFrameEnabled(mIconStart, progress > 0); 196 setIconViewAndFrameEnabled(mIconEnd, progress < mSeekbar.getMax()); 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 [all …]
|
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/page/ |
D | ProgressBarPage.kt | 67 var progress by remember { mutableStateOf(0f) } in Page() variable 69 while (progress < 1f) { in Page() 71 progress += 0.01f in Page() 74 progress = 0.4f in Page() 77 LargeProgressBar(progress) in Page() 80 CircularProgressBar(progress = progress, radius = 160f) in Page() 86 private fun LargeProgressBar(progress: Float) { in LargeProgressBar() 89 override val progress = progress in LargeProgressBar() constant 98 override val progress = 0.2f in SimpleProgressBar() constant 107 override val progress = 0.2f in ProgressBarWithData() constant
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/progress/ |
D | TestUnfoldProgressListener.kt | 17 package com.android.systemui.unfold.progress 41 override fun onTransitionProgress(progress: Float) { in onTransitionProgress() 46 currentRecording!!.addProgress(progress) in onTransitionProgress() 79 fun assertLastProgress(progress: Float) { in assertLastProgress() 80 currentRecording?.assertLastProgress(progress) ?: error("unfold not in progress.") in assertLastProgress() 92 fun addProgress(progress: Float) { in addProgress() 93 assertThat(progress).isAtMost(1.0f) in addProgress() 94 assertThat(progress).isAtLeast(0.0f) in addProgress() 96 progressHistory += progress in addProgress() 139 fun assertLastProgress(progress: Float) { in assertLastProgress() [all …]
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/ |
D | FontInterpolator.kt | 50 private data class InterpKey(var l: Font?, var r: Font?, var progress: Float) { in <lambda>() variable in com.android.systemui.animation.InterpKey 51 fun set(l: Font, r: Font, progress: Float) { in <lambda>() 54 this.progress = progress in <lambda>() 98 fun lerp(start: Font, end: Font, progress: Float): Font { in <lambda>() 99 if (progress == 0f) { in <lambda>() 101 } else if (progress == 1f) { in <lambda>() 114 tmpInterpKey.set(start, end, progress) in <lambda>() 118 Log.d(LOG_TAG, "[$progress] Interp. cache hit for $tmpInterpKey") in <lambda>() 134 progress in <lambda>() 141 progress in <lambda>() [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | Mandelbrot.java | 39 public void onBar1Changed(int progress) { in onBar1Changed() argument 40 int iters = progress * 3 + 50; in onBar1Changed() 50 public void onBar2Changed(int progress) { in onBar2Changed() argument 53 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed() 63 public void onBar3Changed(int progress) { in onBar3Changed() argument 66 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed() 76 public void onBar4Changed(int progress) { in onBar4Changed() argument 77 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed()
|
D | Vignette.java | 72 public void onBar1Changed(int progress) { in onBar1Changed() argument 73 scale = progress / 50.0f; in onBar1Changed() 76 public void onBar2Changed(int progress) { in onBar2Changed() argument 77 shade = progress / 100.0f; in onBar2Changed() 80 public void onBar3Changed(int progress) { in onBar3Changed() argument 81 slope = (float)progress; in onBar3Changed() 84 public void onBar4Changed(int progress) { in onBar4Changed() argument 85 center_x = progress / 100.0f; in onBar4Changed() 88 public void onBar5Changed(int progress) { in onBar5Changed() argument 89 center_y = progress / 100.0f; in onBar5Changed()
|
D | LevelsV4.java | 116 public void onBar1Changed(int progress) { in onBar1Changed() argument 117 mSaturation = (float)progress / 50.0f; in onBar1Changed() 120 public void onBar2Changed(int progress) { in onBar2Changed() argument 121 mInBlack = (float)progress; in onBar2Changed() 124 public void onBar3Changed(int progress) { in onBar3Changed() argument 125 mOutBlack = (float)progress; in onBar3Changed() 128 public void onBar4Changed(int progress) { in onBar4Changed() argument 129 mInWhite = (float)progress + 127.0f; in onBar4Changed() 132 public void onBar5Changed(int progress) { in onBar5Changed() argument 133 mOutWhite = (float)progress + 127.0f; in onBar5Changed()
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | Mandelbrot.java | 39 public void onBar1Changed(int progress) { in onBar1Changed() argument 40 int iters = progress * 3 + 50; in onBar1Changed() 50 public void onBar2Changed(int progress) { in onBar2Changed() argument 53 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed() 63 public void onBar3Changed(int progress) { in onBar3Changed() argument 66 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed() 76 public void onBar4Changed(int progress) { in onBar4Changed() argument 77 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed()
|
D | Vignette.java | 72 public void onBar1Changed(int progress) { in onBar1Changed() argument 73 scale = progress / 50.0f; in onBar1Changed() 76 public void onBar2Changed(int progress) { in onBar2Changed() argument 77 shade = progress / 100.0f; in onBar2Changed() 80 public void onBar3Changed(int progress) { in onBar3Changed() argument 81 slope = (float)progress; in onBar3Changed() 84 public void onBar4Changed(int progress) { in onBar4Changed() argument 85 center_x = progress / 100.0f; in onBar4Changed() 88 public void onBar5Changed(int progress) { in onBar5Changed() argument 89 center_y = progress / 100.0f; in onBar5Changed()
|
D | LevelsV4.java | 116 public void onBar1Changed(int progress) { in onBar1Changed() argument 117 mSaturation = (float)progress / 50.0f; in onBar1Changed() 120 public void onBar2Changed(int progress) { in onBar2Changed() argument 121 mInBlack = (float)progress; in onBar2Changed() 124 public void onBar3Changed(int progress) { in onBar3Changed() argument 125 mOutBlack = (float)progress; in onBar3Changed() 128 public void onBar4Changed(int progress) { in onBar4Changed() argument 129 mInWhite = (float)progress + 127.0f; in onBar4Changed() 132 public void onBar5Changed(int progress) { in onBar5Changed() argument 133 mOutWhite = (float)progress + 127.0f; in onBar5Changed()
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | Vignette.java | 75 public void onBar1Changed(int progress) { in onBar1Changed() argument 76 scale = progress / 50.0f; in onBar1Changed() 79 public void onBar2Changed(int progress) { in onBar2Changed() argument 80 shade = progress / 100.0f; in onBar2Changed() 83 public void onBar3Changed(int progress) { in onBar3Changed() argument 84 slope = (float)progress; in onBar3Changed() 87 public void onBar4Changed(int progress) { in onBar4Changed() argument 88 center_x = progress / 100.0f; in onBar4Changed() 91 public void onBar5Changed(int progress) { in onBar5Changed() argument 92 center_y = progress / 100.0f; in onBar5Changed()
|
D | Mandelbrot.java | 45 public void onBar1Changed(int progress) { in onBar1Changed() argument 46 int iters = progress * 3 + 50; in onBar1Changed() 56 public void onBar2Changed(int progress) { in onBar2Changed() argument 59 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed() 69 public void onBar3Changed(int progress) { in onBar3Changed() argument 72 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed() 82 public void onBar4Changed(int progress) { in onBar4Changed() argument 83 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed()
|
D | LevelsV4.java | 122 public void onBar1Changed(int progress) { in onBar1Changed() argument 123 mSaturation = (float)progress / 50.0f; in onBar1Changed() 126 public void onBar2Changed(int progress) { in onBar2Changed() argument 127 mInBlack = (float)progress; in onBar2Changed() 130 public void onBar3Changed(int progress) { in onBar3Changed() argument 131 mOutBlack = (float)progress; in onBar3Changed() 134 public void onBar4Changed(int progress) { in onBar4Changed() argument 135 mInWhite = (float)progress + 127.0f; in onBar4Changed() 138 public void onBar5Changed(int progress) { in onBar5Changed() argument 139 mOutWhite = (float)progress + 127.0f; in onBar5Changed()
|
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/progress/ |
D | UnfoldRemoteFilter.kt | 1 package com.android.systemui.unfold.progress 53 override fun onTransitionProgress(progress: Float) { in onTransitionProgress() 54 logCounter({ "$TAG#plain_remote_progress" }, progress) in onTransitionProgress() 59 springAnimation.animateToFinalPosition(progress) in onTransitionProgress() 63 processedProgress = progress in onTransitionProgress() 86 private fun logCounter(name: () -> String, progress: Float) { in getValue() 88 Trace.setCounter(name(), (progress * 100).toLong()) in getValue()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/animation/ |
D | UnfoldMoveFromCenterAnimator.kt | 103 override fun onTransitionProgress(progress: Float) { in onTransitionProgress() 105 it.applyTransition(progress) in onTransitionProgress() 106 it.applyAlpha(progress) in onTransitionProgress() 108 lastAnimationProgress = progress in onTransitionProgress() 111 private fun AnimatedView.applyTransition(progress: Float) { in AnimatedView() 115 x = startTranslationX * (1 - progress), in AnimatedView() 116 y = startTranslationY * (1 - progress) in AnimatedView() 121 private fun AnimatedView.applyAlpha(progress: Float) { in AnimatedView() 123 view.get()?.alpha = alphaProvider.getAlpha(progress) in AnimatedView() 166 fun getAlpha(progress: Float): Float in getAlpha()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/ |
D | ProgressBar.kt | 47 progress: Float, in LinearProgressBar() 56 .progressSemantics(progress) in LinearProgressBar() 61 drawLinearBar(progress, color, roundedCorner) in LinearProgressBar() 67 progress: Float, in DrawScope() 72 val width = progress * size.width in DrawScope() 75 topLeft = if (isLtr) Offset.Zero else Offset((1 - progress) * size.width, 0f), in DrawScope() 95 fun CircularProgressBar(progress: Float, radius: Float = 40f) { in DrawScope() 98 progress = { progress }, in DrawScope()
|
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/materials/ |
D | GlassActivity.kt | 90 onProgressChanged(it, it.progress, fromUser = false) in <lambda>() 99 override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) { in <lambda>() 103 progress.toFloat(), resources.displayMetrics) in <lambda>() 104 blurRadiusValue.text = progress.toString() in <lambda>() 107 materialView.materialOpacity = progress / seekBar.max.toFloat() in <lambda>() 108 materialOpacityValue.text = progress.toString() in <lambda>() 111 materialView.noiseOpacity = progress / seekBar.max.toFloat() in <lambda>() 112 noiseOpacityValue.text = progress.toString() in <lambda>() 115 materialView.scrimOpacity = progress / seekBar.max.toFloat() in <lambda>() 116 scrimOpacityValue.text = progress.toString() in <lambda>() [all …]
|