Home
last modified time | relevance | path

Searched refs:isSafetyCenterEnabled (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSafetyControllerTest.kt72 `when`(scm.isSafetyCenterEnabled).thenReturn(false) in setUp()
83 `when`(scm.isSafetyCenterEnabled).thenReturn(true) in addingFirstListenerRegistersReceiver()
103 `when`(scm.isSafetyCenterEnabled).thenReturn(false) in listenersCalledWhenBroadcastReceivedWithPCPackageAndStateChange()
106 `when`(scm.isSafetyCenterEnabled).thenReturn(true) in listenersCalledWhenBroadcastReceivedWithPCPackageAndStateChange()
115 `when`(scm.isSafetyCenterEnabled).thenReturn(true) in listenersNotCalledWhenBroadcastReceivedWithOtherPackage()
126 `when`(scm.isSafetyCenterEnabled).thenReturn(false) in listenersNotCalledWhenBroadcastReceivedWithNoStateChange()
139 override fun onSafetyCenterEnableChanged(isSafetyCenterEnabled: Boolean) { in listenerRemovedWhileDispatching_doesNotCrash()
151 `when`(scm.isSafetyCenterEnabled).thenReturn(true) in listenerRemovedWhileDispatching_doesNotCrash()
163 override fun onSafetyCenterEnableChanged(isSafetyCenterEnabled: Boolean) { in listenerRemovedWhileDispatching_otherCallbacksCalled()
171 override fun onSafetyCenterEnableChanged(isSafetyCenterEnabled: Boolean) { in listenerRemovedWhileDispatching_otherCallbacksCalled()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSafetyController.java65 mSafetyCenterEnabled = mSafetyCenterManager.isSafetyCenterEnabled(); in SafetyController()
68 public boolean isSafetyCenterEnabled() { in isSafetyCenterEnabled() method in SafetyController
83 mSafetyCenterEnabled = mSafetyCenterManager.isSafetyCenterEnabled(); in addCallback()
84 listener.onSafetyCenterEnableChanged(isSafetyCenterEnabled()); in addCallback()
87 listener.onSafetyCenterEnableChanged(isSafetyCenterEnabled()); in addCallback()
130 mSafetyCenterEnabled = mSafetyCenterManager.isSafetyCenterEnabled();
147 void onSafetyCenterEnableChanged(boolean isSafetyCenterEnabled); in onSafetyCenterEnableChanged() argument
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/data/repository/
DPrivacyChipRepositoryTest.kt75 val actual by collectLastValue(underTest.isSafetyCenterEnabled) in isSafetyCenterEnabled_startEnabled()
86 val actual by collectLastValue(underTest.isSafetyCenterEnabled) in isSafetyCenterEnabled_startDisabled()
94 val actual by collectLastValue(underTest.isSafetyCenterEnabled) in isSafetyCenterEnabled_updates()
99 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(true) in isSafetyCenterEnabled_updates()
170 private fun setUpUnderTest(isSafetyCenterEnabled: Boolean = false) { in setUpUnderTest()
171 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(isSafetyCenterEnabled) in setUpUnderTest()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/data/repository/
DPrivacyChipRepository.kt42 val isSafetyCenterEnabled: StateFlow<Boolean> in <lambda>() constant
65 override val isSafetyCenterEnabled: StateFlow<Boolean> = constant
73 map = { _, _ -> safetyCenterManager.isSafetyCenterEnabled } in _()
75 .onStart { emit(safetyCenterManager.isSafetyCenterEnabled) } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DHeaderPrivacyIconsControllerTest.kt169 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in eq()
182 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in eq()
196 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(true) in eq()
217 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(true) in eq()
235 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in eq()
244 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in eq()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/autoaddable/
DSafetyCenterAutoAddable.kt73 SafetyController.Listener { isSafetyCenterEnabled -> in <lambda>() method
74 if (isSafetyCenterEnabled) { in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCameraToggleTileTest.kt128 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(true) in testLongClickIntent_safetyCenterEnabled()
149 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in testLongClickIntent_safetyCenterDisabled()
DMicrophoneToggleTileTest.kt127 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(true) in testLongClickIntent_safetyCenterEnabled()
148 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in testLongClickIntent_safetyCenterDisabled()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/shade/data/repository/
DFakePrivacyChipRepository.kt29 override val isSafetyCenterEnabled = _isSafetyCenterEnabled constant in com.android.systemui.shade.data.repository.FakePrivacyChipRepository
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/sensorprivacy/domain/interactor/
DSensorPrivacyToggleTileUserActionInteractorTest.kt124 whenever(fakeSafetyCenterManager.isSafetyCenterEnabled).thenReturn(true) in handleLongClick_whenSafetyManagerEnabled_privacyControlsIntent()
135 whenever(fakeSafetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in handleLongClick_whenSafetyManagerDisabled_privacySettingsIntent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DHeaderPrivacyIconsController.kt81 safetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabled() in onChipVisibilityRefreshed()
101 safetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabled() in onChipVisibilityRefreshed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/domain/interactor/
DPrivacyChipInteractor.kt82 if (repository.isSafetyCenterEnabled.value) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/sensorprivacy/domain/
DSensorPrivacyToggleTileUserActionInteractor.kt76 if (safetyCenterManager.isSafetyCenterEnabled) { in create()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java451 public void onSafetyCenterEnableChanged(boolean isSafetyCenterEnabled) {
456 if (isSafetyCenterEnabled && !mAutoTracker.isAdded(mSafetySpec)) {
458 } else if (!isSafetyCenterEnabled && mAutoTracker.isAdded(mSafetySpec)) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DSensorPrivacyToggleTile.java93 mIsSafetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabled(); in SensorPrivacyToggleTile()
/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DSensorPrivacyService.java706 String action = safetyCenterManager.isSafetyCenterEnabled() in showSensorUseReminderNotification()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java702 SafetyCenterManager.class).isSafetyCenterEnabled(); in setNonA11yToolNotificationToMatchSafetyCenter()