/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/ |
D | SensorBlockedBannerTest.kt | 130 var isSafetyCenterEnabled = false in testCardClickOpenPrivacyControls() variable 132 isSafetyCenterEnabled = safetyCenterManager.isSafetyCenterEnabled in testCardClickOpenPrivacyControls() 134 Assume.assumeTrue(isSafetyCenterEnabled) in testCardClickOpenPrivacyControls()
|
D | CameraMicIndicatorsPermissionTest.kt | 681 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/ |
D | SafetyCenterReceiver.kt | 94 safetyCenterManager.isSafetyCenterEnabled, in onReceive() 99 if (safetyCenterManager.isSafetyCenterEnabled) { in onReceive() 113 updateTileVisibility(context, safetyCenterManager.isSafetyCenterEnabled) in onReceive() 114 if (safetyCenterManager.isSafetyCenterEnabled) { in onReceive()
|
D | AccessibilitySourceService.kt | 99 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/ |
D | SafetyCenterReceiverTest.kt | 109 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/ |
D | SafetyCenterUnsupportedTest.kt | 95 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()
|
D | SafetyCenterManagerTest.kt | 118 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/ |
D | SafetyCenterBackgroundRefreshJobService.java | 97 if (!safetyCenterManager.isSafetyCenterEnabled()) { in schedulePeriodicBackgroundRefresh() 146 if (!safetyCenterManager.isSafetyCenterEnabled()) { in onStartJob()
|
D | SafetyCenterSearchIndexablesProvider.kt | 118 if (safetyCenterManager.isSafetyCenterEnabled) { in <lambda>() 367 val safetyCenterDisabled = !safetyCenterManager.isSafetyCenterEnabled in <lambda>()
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | SafetyCenterTestHelper.kt | 41 import com.android.safetycenter.testing.SafetyCenterFlags.isSafetyCenterEnabled 155 setEnabled(SafetyCenterFlags.snapshot.isSafetyCenterEnabled()) in resetFlags()
|
D | SafetyCenterApisWithShellPermissions.kt | 46 callWithShellPermissionIdentity(READ_SAFETY_CENTER_STATUS) { isSafetyCenterEnabled } in SafetyCenterManager()
|
D | SafetySourceIntentHandler.kt | 69 safetyCenterEnabledChangedChannel.send(safetyCenterManager.isSafetyCenterEnabled) in handle()
|
D | SafetyCenterFlags.kt | 444 fun Properties.isSafetyCenterEnabled() = in <lambda>() method
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/safetycenter/ |
D | SafetyCenterManagerWrapper.kt | 61 safetyCenterManager.isSafetyCenterEnabled in isEnabled()
|
/packages/modules/Permission/framework-s/java/android/safetycenter/ |
D | ISafetyCenterManager.aidl | 42 boolean isSafetyCenterEnabled(); in isSafetyCenterEnabled() method
|
D | SafetyCenterManager.java | 341 public boolean isSafetyCenterEnabled() { in isSafetyCenterEnabled() method in SafetyCenterManager 343 return mService.isSafetyCenterEnabled(); in isSafetyCenterEnabled()
|
/packages/apps/Settings/src/com/android/settings/safetycenter/ |
D | SafetyCenterManagerWrapper.java | 89 return safetyCenterManager.isSafetyCenterEnabled(); in isEnabled()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | CellularSecurityNotificationsDividerController.java | 100 return mSafetyCenterManager.isSafetyCenterEnabled(); in isSafetyCenterSupported()
|
D | CellularSecurityNotificationsPreferenceController.java | 188 return mSafetyCenterManager.isSafetyCenterEnabled(); in isSafetyCenterSupported()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/v33/ |
D | SafetyCenterQsTileService.kt | 49 if (!scManager.isSafetyCenterEnabled) { in onBind()
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | CellularSecurityPreferenceController.java | 150 return safetyCenterManager.isSafetyCenterEnabled(); in isSafetyCenterSupported()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/ |
D | CellularSecurityNotificationsDividerControllerTest.java | 74 Assume.assumeTrue(mSafetyCenterManager.isSafetyCenterEnabled()); in setUp()
|
D | CellularSecurityNotificationsPreferenceControllerTest.java | 75 Assume.assumeTrue(mSafetyCenterManager.isSafetyCenterEnabled()); in setUp()
|
/packages/modules/Permission/service/java/com/android/safetycenter/ |
D | SafetyCenterShellCommandHandler.java | 102 getOutPrintWriter().println(mSafetyCenterManager.isSafetyCenterEnabled()); in onEnabled()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | CellularSecurityPreferenceControllerTest.java | 79 Assume.assumeTrue(mSafetyCenterManager.isSafetyCenterEnabled()); in setUp()
|