Home
last modified time | relevance | path

Searched refs:isThrottled (Results 1 – 11 of 11) sorted by relevance

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/
H A DBouncerViewModel.kt53 bouncerInteractor.isThrottled
58 initialValue = !bouncerInteractor.isThrottled.value,
107 bouncerInteractor.isThrottled
108 .map { isThrottled ->
109 if (isThrottled) {
144 bouncerInteractor.isThrottled,
145 ) { message, isThrottled ->
146 toMessageViewModel(message, isThrottled)
154 isThrottled = bouncerInteractor.isThrottled.value,
182 isThrottled: Boolean,
[all …]
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
H A DBrightnessThrottlerTest.java178 assertFalse(throttler.isThrottled()); in testThermalThrottlingSingleLevel()
185 assertTrue(throttler.isThrottled()); in testThermalThrottlingSingleLevel()
193 assertTrue(throttler.isThrottled()); in testThermalThrottlingSingleLevel()
201 assertTrue(throttler.isThrottled()); in testThermalThrottlingSingleLevel()
209 assertFalse(throttler.isThrottled()); in testThermalThrottlingSingleLevel()
243 assertTrue(throttler.isThrottled()); in testThermalThrottlingMultiLevel()
251 assertTrue(throttler.isThrottled()); in testThermalThrottlingMultiLevel()
259 assertTrue(throttler.isThrottled()); in testThermalThrottlingMultiLevel()
267 assertTrue(throttler.isThrottled()); in testThermalThrottlingMultiLevel()
275 assertTrue(throttler.isThrottled()); in testThermalThrottlingMultiLevel()
[all …]
H A DAutomaticBrightnessControllerTest.java148 when(mBrightnessThrottler.isThrottled()).thenReturn(false); in setupController()
709 when(mBrightnessThrottler.isThrottled()).thenReturn(true);
720 when(mBrightnessThrottler.isThrottled()).thenReturn(false);
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/domain/interactor/
H A DBouncerInteractor.kt59 authenticationInteractor.isThrottled,
61 ) { message, isThrottled, throttling ->
62 messageOrThrottlingMessage(message, isThrottled, throttling)
70 authenticationInteractor.isThrottled.value,
82 val isThrottled: StateFlow<Boolean> = authenticationInteractor.isThrottled
97 isThrottled.pairwise().collect { (wasThrottled, currentlyThrottled) ->
208 isThrottled: Boolean,
212 isThrottled ->
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/authentication/domain/interactor/
H A DAuthenticationInteractorTest.kt236 val isThrottled by collectLastValue(underTest.isThrottled) regex
241 assertThat(isThrottled).isFalse()
292 val isThrottled by collectLastValue(underTest.isThrottled) regex
298 assertThat(isThrottled).isFalse()
352 val isThrottled by collectLastValue(underTest.isThrottled) regex
366 assertThat(isThrottled).isFalse()
458 val isThrottled by collectLastValue(underTest.isThrottled) regex
464 assertThat(isThrottled).isFalse()
469 assertThat(isThrottled).isFalse()
483 assertThat(isThrottled).isTrue()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bouncer/domain/interactor/
H A DBouncerInteractorTest.kt283 val isThrottled by collectLastValue(underTest.isThrottled) regex
292 assertThat(isThrottled).isFalse()
304 assertThat(isThrottled).isTrue()
339 assertThat(isThrottled).isFalse()
352 assertThat(isThrottled).isFalse()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/authentication/domain/interactor/
H A DAuthenticationInteractor.kt157 val isThrottled: StateFlow<Boolean> =
262 isThrottled.value -> true
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DBrightnessThrottler.java162 boolean isThrottled() { in isThrottled() method in BrightnessThrottler
H A DAutomaticBrightnessController.java439 if (mIsBrightnessThrottled != mBrightnessThrottler.isThrottled()) { in configure()
441 mIsBrightnessThrottled = mBrightnessThrottler.isThrottled(); in configure()
H A DDisplayPowerController2.java1427 if (mBrightnessThrottler.isThrottled()) { in updatePowerStateInternal()
H A DDisplayPowerController.java1778 if (mBrightnessThrottler.isThrottled()) { in updatePowerStateInternal()