Home
last modified time | relevance | path

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

12

/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DSensorBlockedBannerTest.kt130 var isSafetyCenterEnabled = false in testCardClickOpenPrivacyControls() variable
132 isSafetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabled in testCardClickOpenPrivacyControls()
134 Assume.assumeTrue(isSafetyCenterEnabled) in testCardClickOpenPrivacyControls()
DCameraMicIndicatorsPermissionTest.kt681 val isSafetyCenterEnabled: Boolean = in <lambda>() constant
682 runWithShellPermissionIdentity<Boolean> { safetyCenterManager.isSafetyCenterEnabled } in <lambda>()
683 assumeTrue(isSafetyCenterEnabled) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/
DSafetyCenterReceiver.kt94 safetyCenterManager.isSafetyCenterEnabled, in onReceive()
99 if (safetyCenterManager.isSafetyCenterEnabled) { in onReceive()
113 updateTileVisibility(context, safetyCenterManager.isSafetyCenterEnabled) in onReceive()
114 if (safetyCenterManager.isSafetyCenterEnabled) { in onReceive()
DAccessibilitySourceService.kt99 private fun isSafetyCenterEnabled(context: Context): Boolean { in isSafetyCenterEnabled() method
100 return getSystemServiceSafe(context, SafetyCenterManager::class.java).isSafetyCenterEnabled in isSafetyCenterEnabled()
900 if (!isSafetyCenterEnabled(this@AccessibilityJobService)) { in onStartJob()
954 if (!isSafetyCenterEnabled(context) || isProfile(context)) { in onAccessibilityServicesStateChanged()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/
DSafetyCenterReceiverTest.kt109 whenever(mockSafetyCenterManager.isSafetyCenterEnabled).thenReturn(true) in privacySourceMap()
162 whenever(mockSafetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in <lambda>()
186 whenever(mockSafetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in <lambda>()
222 whenever(mockSafetyCenterManager.isSafetyCenterEnabled).thenReturn(false) in <lambda>()
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyCenterUnsupportedTest.kt95 val isSafetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabledWithPermission() in isSafetyCenterEnabled_withFlagEnabled_returnsFalse() constant
97 assertThat(isSafetyCenterEnabled).isFalse() in isSafetyCenterEnabled_withFlagEnabled_returnsFalse()
104 val isSafetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabledWithPermission() in isSafetyCenterEnabled_withFlagDisabled_returnsFalse() constant
106 assertThat(isSafetyCenterEnabled).isFalse() in isSafetyCenterEnabled_withFlagDisabled_returnsFalse()
111 assertFailsWith(SecurityException::class) { safetyCenterManager.isSafetyCenterEnabled } in isSafetyCenterEnabled_withoutPermission_throwsSecurityException()
DSafetyCenterManagerTest.kt118 val isSafetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabledWithPermission() in isSafetyCenterEnabled_withFlagEnabled_returnsTrue() constant
120 assertThat(isSafetyCenterEnabled).isTrue() in isSafetyCenterEnabled_withFlagEnabled_returnsTrue()
127 val isSafetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabledWithPermission() in isSafetyCenterEnabled_withFlagDisabled_returnsFalse() constant
129 assertThat(isSafetyCenterEnabled).isFalse() in isSafetyCenterEnabled_withFlagDisabled_returnsFalse()
134 assertFailsWith(SecurityException::class) { safetyCenterManager.isSafetyCenterEnabled } in isSafetyCenterEnabled_withoutPermission_throwsSecurityException()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/service/
DSafetyCenterBackgroundRefreshJobService.java97 if (!safetyCenterManager.isSafetyCenterEnabled()) { in schedulePeriodicBackgroundRefresh()
146 if (!safetyCenterManager.isSafetyCenterEnabled()) { in onStartJob()
DSafetyCenterSearchIndexablesProvider.kt118 if (safetyCenterManager.isSafetyCenterEnabled) { in <lambda>()
367 val safetyCenterDisabled = !safetyCenterManager.isSafetyCenterEnabled in <lambda>()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetyCenterTestHelper.kt41 import com.android.safetycenter.testing.SafetyCenterFlags.isSafetyCenterEnabled
155 setEnabled(SafetyCenterFlags.snapshot.isSafetyCenterEnabled()) in resetFlags()
DSafetyCenterApisWithShellPermissions.kt46 callWithShellPermissionIdentity(READ_SAFETY_CENTER_STATUS) { isSafetyCenterEnabled } in SafetyCenterManager()
DSafetySourceIntentHandler.kt69 safetyCenterEnabledChangedChannel.send(safetyCenterManager.isSafetyCenterEnabled) in handle()
DSafetyCenterFlags.kt444 fun Properties.isSafetyCenterEnabled() = in <lambda>() method
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/safetycenter/
DSafetyCenterManagerWrapper.kt61 safetyCenterManager.isSafetyCenterEnabled in isEnabled()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DISafetyCenterManager.aidl42 boolean isSafetyCenterEnabled(); in isSafetyCenterEnabled() method
DSafetyCenterManager.java341 public boolean isSafetyCenterEnabled() { in isSafetyCenterEnabled() method in SafetyCenterManager
343 return mService.isSafetyCenterEnabled(); in isSafetyCenterEnabled()
/packages/apps/Settings/src/com/android/settings/safetycenter/
DSafetyCenterManagerWrapper.java89 return safetyCenterManager.isSafetyCenterEnabled(); in isEnabled()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DCellularSecurityNotificationsDividerController.java100 return mSafetyCenterManager.isSafetyCenterEnabled(); in isSafetyCenterSupported()
DCellularSecurityNotificationsPreferenceController.java188 return mSafetyCenterManager.isSafetyCenterEnabled(); in isSafetyCenterSupported()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/v33/
DSafetyCenterQsTileService.kt49 if (!scManager.isSafetyCenterEnabled) { in onBind()
/packages/apps/Settings/src/com/android/settings/network/
DCellularSecurityPreferenceController.java150 return safetyCenterManager.isSafetyCenterEnabled(); in isSafetyCenterSupported()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DCellularSecurityNotificationsDividerControllerTest.java74 Assume.assumeTrue(mSafetyCenterManager.isSafetyCenterEnabled()); in setUp()
DCellularSecurityNotificationsPreferenceControllerTest.java75 Assume.assumeTrue(mSafetyCenterManager.isSafetyCenterEnabled()); in setUp()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterShellCommandHandler.java102 getOutPrintWriter().println(mSafetyCenterManager.isSafetyCenterEnabled()); in onEnabled()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DCellularSecurityPreferenceControllerTest.java79 Assume.assumeTrue(mSafetyCenterManager.isSafetyCenterEnabled()); in setUp()

12