/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/data/repository/ |
D | PowerRepositoryImplTest.kt | 57 private var isInteractive = true variable 62 isInteractive = true in setUp() 63 whenever(manager.isInteractive).then { isInteractive } in setUp() 69 fun `isInteractive - registers for broadcasts`() = in isInteractive - registers for broadcasts() 71 val job = underTest.isInteractive.onEach {}.launchIn(this) in isInteractive - registers for broadcasts() 81 fun `isInteractive - unregisters from broadcasts`() = in isInteractive - unregisters from broadcasts() 83 val job = underTest.isInteractive.onEach {}.launchIn(this) in isInteractive - unregisters from broadcasts() 92 fun `isInteractive - emits initial true value if screen was on`() = in isInteractive - emits initial true value if screen was on() 94 isInteractive = true in isInteractive - emits initial true value if screen was on() 96 val job = underTest.isInteractive.onEach { value = it }.launchIn(this) in isInteractive - emits initial true value if screen was on() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | LooperStats.java | 244 final boolean isInteractive = mTrackScreenInteractive in findEntry() 247 final int id = Entry.idFor(msg, isInteractive); in findEntry() 258 entry = new Entry(msg, isInteractive); in findEntry() 267 || entry.isInteractive != isInteractive) { in findEntry() 307 public final boolean isInteractive; field in LooperStats.Entry 319 Entry(Message msg, boolean isInteractive) { in Entry() argument 323 this.isInteractive = isInteractive; in Entry() 330 this.isInteractive = false; in Entry() 346 static int idFor(Message msg, boolean isInteractive) { in idFor() argument 351 result = 31 * result + (isInteractive ? 1231 : 1237); in idFor() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/domain/interactor/ |
D | PowerInteractorTest.kt | 50 fun `isInteractive - screen turns off`() = in isInteractive - screen turns off() 54 val job = underTest.isInteractive.onEach { value = it }.launchIn(this) in isInteractive - screen turns off() 63 fun `isInteractive - becomes interactive`() = in isInteractive - becomes interactive() 67 val job = underTest.isInteractive.onEach { value = it }.launchIn(this) in isInteractive - becomes interactive()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/attention/ |
D | AttentionManagerServiceTest.java | 97 doReturn(true).when(mMockIPowerManager).isInteractive(); in setUp() 142 doReturn(false).when(mMockIPowerManager).isInteractive(); in testRegisterProximityUpdates_returnFalseWhenPowerManagerNotInteract() 153 doReturn(true).when(mMockIPowerManager).isInteractive(); in testRegisterProximityUpdates_callOnSuccess() 166 doReturn(true).when(mMockIPowerManager).isInteractive(); in testRegisterProximityUpdates_callOnSuccessTwiceInARow() 192 doReturn(true).when(mMockIPowerManager).isInteractive(); in testUnregisterProximityUpdates_noCrashWhenCallbackMismatched() 213 doReturn(true).when(mMockIPowerManager).isInteractive(); in testUnregisterProximityUpdates_cancelRegistrationWhenMatched() 225 doReturn(true).when(mMockIPowerManager).isInteractive(); in testUnregisterProximityUpdates_noCrashWhenTwiceInARow() 251 doReturn(false).when(mMockIPowerManager).isInteractive(); in testCheckAttention_returnFalseWhenPowerManagerNotInteract() 260 doReturn(true).when(mMockIPowerManager).isInteractive(); in testCheckAttention_callOnSuccess()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/data/repository/ |
D | PowerRepository.kt | 36 val isInteractive: Flow<Boolean> constant 47 override val isInteractive: Flow<Boolean> = conflatedCallbackFlow { in <lambda>() constant 49 trySendWithFailureLogging(manager.isInteractive, TAG) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/domain/interactor/ |
D | PowerInteractor.kt | 33 val isInteractive: Flow<Boolean> = repository.isInteractive constant
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverController.java | 395 public boolean isInteractive() { in isInteractive() method in BatterySaverController 431 final boolean isInteractive = getPowerManager().isInteractive(); in handleBatterySaverStateChanged() 441 isInteractive ? 1 : 0, // Device interactive state. in handleBatterySaverStateChanged() 450 mIsInteractive = isInteractive; in handleBatterySaverStateChanged() 515 final boolean isInteractive = pm.isInteractive(); in updateBatterySavingStats() 526 isInteractive ? InteractiveState.INTERACTIVE : in updateBatterySavingStats()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | HdmiCecLocalDevicePlaybackTest.java | 188 assertThat(mPowerManager.isInteractive()).isFalse(); in handleRoutingChange_None() 210 assertThat(mPowerManager.isInteractive()).isFalse(); in handleRoutingInformation_None() 232 assertThat(mPowerManager.isInteractive()).isTrue(); in handleRoutingChange_WakeUpOnly() 254 assertThat(mPowerManager.isInteractive()).isTrue(); in handleRoutingInformation_WakeUpOnly() 278 assertThat(mPowerManager.isInteractive()).isTrue(); in handleRoutingChange_WakeUpAndSendActiveSource() 302 assertThat(mPowerManager.isInteractive()).isTrue(); in handleRoutingInformation_WakeUpAndSendActiveSource() 323 assertThat(mPowerManager.isInteractive()).isTrue(); in handleRoutingChange_otherDevice_None() 344 assertThat(mPowerManager.isInteractive()).isTrue(); in handleRoutingChange_sameDevice_None_ActiveSource() 365 assertThat(mPowerManager.isInteractive()).isTrue(); in handleRoutingChange_sameDevice_None_InactiveSource() 381 assertThat(mPowerManager.isInteractive()).isFalse(); in handleRoutingChange_otherDevice_StandbyNow() [all …]
|
D | FakePowerManagerWrapper.java | 34 boolean isInteractive() { in isInteractive() method in FakePowerManagerWrapper
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderProxyTest.java | 63 mPowerManager.isInteractive(); in testNoListener() 74 mPowerManager.isInteractive(); in testListener() 93 mPowerManager.isInteractive(); in testSessionPropagated()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | PowerManagerWrapper.java | 35 boolean isInteractive() { in isInteractive() method in PowerManagerWrapper 36 return mPowerManager.isInteractive(); in isInteractive()
|
/frameworks/base/services/core/java/com/android/server/location/injector/ |
D | ScreenInteractiveHelper.java | 38 void onScreenInteractiveChanged(boolean isInteractive); in onScreenInteractiveChanged() argument 75 public abstract boolean isInteractive(); in isInteractive() method in ScreenInteractiveHelper
|
D | SystemScreenInteractiveHelper.java | 81 public boolean isInteractive() { in isInteractive() method in SystemScreenInteractiveHelper
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/ |
D | NotificationInterruptStateProviderImplTest.java | 530 when(mPowerManager.isInteractive()).thenReturn(true); in testShouldNotFullScreen_notPendingIntent() 549 when(mPowerManager.isInteractive()).thenReturn(false); in testShouldNotFullScreen_suppressedOnlyByDND() 568 when(mPowerManager.isInteractive()).thenReturn(false); in testShouldNotFullScreen_suppressedByDNDAndOther() 590 when(mPowerManager.isInteractive()).thenReturn(true); in testShouldNotFullScreen_notHighImportance() 612 when(mPowerManager.isInteractive()).thenReturn(false); in testShouldNotFullScreen_isGroupAlertSilenced() 644 when(mPowerManager.isInteractive()).thenReturn(false); in testShouldNotFullScreen_isSuppressedByBubbleMetadata() 676 when(mPowerManager.isInteractive()).thenReturn(false); in testShouldFullScreen_notInteractive() 698 when(mPowerManager.isInteractive()).thenReturn(true); in testShouldFullScreen_isDreaming() 720 when(mPowerManager.isInteractive()).thenReturn(true); in testShouldFullScreen_onKeyguard() 742 when(mPowerManager.isInteractive()).thenReturn(true); in testShouldNotFullScreen_willHun() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | FakeScreenInteractiveHelper.java | 39 public boolean isInteractive() { in isInteractive() method in FakeScreenInteractiveHelper
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerGroup.java | 23 import static android.os.PowerManagerInternal.isInteractive; 141 } else if (isInteractive(mWakefulness) && !isInteractive(newWakefulness)) { in setWakefulnessLocked() 252 if (eventTime < getLastWakeTimeLocked() || !isInteractive(mWakefulness)) { in dozeLocked()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/power/data/repository/ |
D | FakePowerRepository.kt | 29 override val isInteractive: Flow<Boolean> = _isInteractive.asStateFlow() constant
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardUnlockAnimationControllerTest.kt | 92 whenever(powerManager.isInteractive).thenReturn(true) in <lambda>() 292 whenever(powerManager.isInteractive).thenReturn(false) in <lambda>() 316 whenever(powerManager.isInteractive).thenReturn(true) in <lambda>()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/ |
D | FaceDownDetectorTest.java | 75 doReturn(true).when(mPowerManager).isInteractive(); in setup() 141 doReturn(false).when(mPowerManager).isInteractive(); in notInteractive_doesNotTriggerFaceDown() 165 doReturn(false).when(mPowerManager).isInteractive(); in afterReenablingWhileNonInteractive_doesNotTriggerFaceDown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | UnlockedScreenOffAnimationControllerTest.kt | 146 `when`(powerManager.isInteractive).thenReturn(false) in testAodUiShownIfNotInteractive() 169 `when`(powerManager.isInteractive).thenReturn(true) in testAodUiNotShownIfInteractive()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
D | GlobalActionsImeTest.java | 123 if (powerManager.isInteractive()) { in turnScreenOn() 127 waitUntil("Device not interactive", powerManager::isInteractive); in turnScreenOn()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LooperStatsTest.java | 98 assertThat(entry.isInteractive).isEqualTo(true); in testSingleMessageDispatched() 130 assertThat(entry.isInteractive).isEqualTo(true); in testThrewException() 362 entries.sort(Comparator.comparing(e -> e.isInteractive)); in testScreenStateCollected() 365 assertThat(entry1.isInteractive).isEqualTo(false); in testScreenStateCollected() 370 assertThat(entry2.isInteractive).isEqualTo(true); in testScreenStateCollected() 522 assertThat(entry.isInteractive).isEqualTo(false); in testScreenStateTrackingDisabled()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | CachedDeviceStateServiceTest.java | 79 when(mPowerManager.isInteractive()).thenReturn(true); in setUp() 94 when(mPowerManager.isInteractive()).thenReturn(true); // Screen on. in correctlyReportsScreenInteractive()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SurfaceSyncerContinuousTest.java | 55 mCapturedActivity.getSystemService(PowerManager.class)).isInteractive()) { in setup()
|
/frameworks/base/core/java/android/os/ |
D | PowerManagerInternal.java | 96 public static boolean isInteractive(int wakefulness) { in isInteractive() method in PowerManagerInternal
|