Searched refs:isSafetyCenterEnabled (Results 1 – 17 of 17) sorted by relevance
72 `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 …]
65 mSafetyCenterEnabled = mSafetyCenterManager.isSafetyCenterEnabled(); in SafetyController()68 public boolean isSafetyCenterEnabled() { in isSafetyCenterEnabled() method in SafetyController83 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
75 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()
42 val isSafetyCenterEnabled: StateFlow<Boolean> in <lambda>() constant65 override val isSafetyCenterEnabled: StateFlow<Boolean> = constant73 map = { _, _ -> safetyCenterManager.isSafetyCenterEnabled } in _()75 .onStart { emit(safetyCenterManager.isSafetyCenterEnabled) } in <lambda>()
169 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()
73 SafetyController.Listener { isSafetyCenterEnabled -> in <lambda>() method74 if (isSafetyCenterEnabled) { in <lambda>()
128 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(true) in testLongClickIntent_safetyCenterEnabled()149 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in testLongClickIntent_safetyCenterDisabled()
127 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(true) in testLongClickIntent_safetyCenterEnabled()148 whenever(safetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in testLongClickIntent_safetyCenterDisabled()
29 override val isSafetyCenterEnabled = _isSafetyCenterEnabled constant in com.android.systemui.shade.data.repository.FakePrivacyChipRepository
124 whenever(fakeSafetyCenterManager.isSafetyCenterEnabled).thenReturn(true) in handleLongClick_whenSafetyManagerEnabled_privacyControlsIntent()135 whenever(fakeSafetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in handleLongClick_whenSafetyManagerDisabled_privacySettingsIntent()
81 safetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabled() in onChipVisibilityRefreshed()101 safetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabled() in onChipVisibilityRefreshed()
82 if (repository.isSafetyCenterEnabled.value) { in <lambda>()
76 if (safetyCenterManager.isSafetyCenterEnabled) { in create()
451 public void onSafetyCenterEnableChanged(boolean isSafetyCenterEnabled) {456 if (isSafetyCenterEnabled && !mAutoTracker.isAdded(mSafetySpec)) {458 } else if (!isSafetyCenterEnabled && mAutoTracker.isAdded(mSafetySpec)) {
93 mIsSafetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabled(); in SensorPrivacyToggleTile()
706 String action = safetyCenterManager.isSafetyCenterEnabled() in showSensorUseReminderNotification()
702 SafetyCenterManager.class).isSafetyCenterEnabled(); in setNonA11yToolNotificationToMatchSafetyCenter()