Home
last modified time | relevance | path

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

/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterConfigReader.java81 SafetyCenterConfig safetyCenterConfig = loadSafetyCenterConfig(); in loadConfig() local
82 if (safetyCenterConfig == null) { in loadConfig()
85 mConfigInternalFromXml = SafetyCenterConfigInternal.from(safetyCenterConfig); in loadConfig()
95 void setConfigOverrideForTests(SafetyCenterConfig safetyCenterConfig) { in setConfigOverrideForTests() argument
96 mConfigInternalOverrideForTests = SafetyCenterConfigInternal.from(safetyCenterConfig); in setConfigOverrideForTests()
243 SafetyCenterConfig safetyCenterConfig = in loadSafetyCenterConfig() local
246 return safetyCenterConfig; in loadSafetyCenterConfig()
272 SafetyCenterConfig safetyCenterConfig, in SafetyCenterConfigInternal() argument
276 mConfig = safetyCenterConfig; in SafetyCenterConfigInternal()
325 private static SafetyCenterConfigInternal from(SafetyCenterConfig safetyCenterConfig) { in from() argument
[all …]
DSafetyCenterService.java632 public void setSafetyCenterConfigForTests(SafetyCenterConfig safetyCenterConfig) { in setSafetyCenterConfigForTests() argument
633 requireNonNull(safetyCenterConfig); in setSafetyCenterConfigForTests()
644 mSafetyCenterConfigReader.setConfigOverrideForTests(safetyCenterConfig); in setSafetyCenterConfigForTests()
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/config/
DXmlConfigTest.kt52 val safetyCenterConfig = safetyCenterManager.getSafetyCenterConfigWithPermission() in safetyCenterConfigResource_validConfig() constant
54 assertThat(parsedSafetyCenterConfig).isEqualTo(safetyCenterConfig) in safetyCenterConfigResource_validConfig()
81 val safetyCenterConfig = parseXmlConfig() in isIntentInConfig() constant
82 return safetyCenterConfig.safetySourcesGroups in isIntentInConfig()
90 safetyCenterResourcesApk.safetyCenterConfig!!, in parseXmlConfig()
/packages/modules/Permission/SafetyCenter/Config/tests/java/com/android/safetycenter/config/
DParserConfigOverlayTest.kt41 val safetyCenterConfig = in <lambda>() constant
44 assertThat(safetyCenterConfig.safetySourcesGroups.size).isEqualTo(1) in <lambda>()
45 val safetySourcesGroup = safetyCenterConfig.safetySourcesGroups[0] in <lambda>()
75 val safetyCenterConfig = in <lambda>() constant
78 assertThat(safetyCenterConfig.safetySourcesGroups.size).isEqualTo(1) in <lambda>()
79 val safetySourcesGroup = safetyCenterConfig.safetySourcesGroups[0] in <lambda>()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetyCenterTestHelper.kt87 val safetyCenterConfig = safetyCenterManager.getSafetyCenterConfigWithPermission() in setEnabled() constant
88 if (safetyCenterConfig == null) { in setEnabled()
100 setEnabledWaitingForSafetyCenterBroadcastIdle(value, safetyCenterConfig) in setEnabled()
161 safetyCenterConfig: SafetyCenterConfig in setEnabledWaitingForSafetyCenterBroadcastIdle()
168 if (safetyCenterConfig.containsTestSource()) { in setEnabledWaitingForSafetyCenterBroadcastIdle()
DSafetyCenterApisWithShellPermissions.kt104 callWithShellPermissionIdentity(MANAGE_SAFETY_CENTER) { safetyCenterConfig } in SafetyCenterManager()
173 safetyCenterConfig: SafetyCenterConfig in SafetyCenterManager()
176 setSafetyCenterConfigForTests(safetyCenterConfig) in SafetyCenterManager()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DInteractionLogger.kt56 safetyCenterConfig: SafetyCenterConfig?
57 ) : this(extractNoLogSourceIds(safetyCenterConfig))
157 private fun extractNoLogSourceIds(safetyCenterConfig: SafetyCenterConfig?): Set<String?> { in extractNoLogSourceIds()
158 if (safetyCenterConfig == null) return setOf() in extractNoLogSourceIds()
160 return safetyCenterConfig.safetySourcesGroups in extractNoLogSourceIds()
DSafetyCenterActivity.java309 SafetyCenterConfig safetyCenterConfig = mSafetyCenterManager.getSafetyCenterConfig(); in getParentGroupId() local
321 if (safetyCenterConfig == null || splitKey.length == 0) { in getParentGroupId()
325 List<SafetySourcesGroup> groups = safetyCenterConfig.getSafetySourcesGroups(); in getParentGroupId()
/packages/modules/Permission/framework-s/java/android/safetycenter/config/
DSafetyCenterConfig.java123 public Builder(@NonNull SafetyCenterConfig safetyCenterConfig) { in Builder() argument
128 requireNonNull(safetyCenterConfig); in Builder()
129 mSafetySourcesGroups.addAll(safetyCenterConfig.mSafetySourcesGroups); in Builder()
/packages/modules/Permission/framework-s/java/android/safetycenter/
DSafetyCenterManager.java631 public void setSafetyCenterConfigForTests(@NonNull SafetyCenterConfig safetyCenterConfig) { in setSafetyCenterConfigForTests() argument
632 requireNonNull(safetyCenterConfig, "safetyCenterConfig cannot be null"); in setSafetyCenterConfigForTests()
635 mService.setSafetyCenterConfigForTests(safetyCenterConfig); in setSafetyCenterConfigForTests()
DISafetyCenterManager.aidl128 void setSafetyCenterConfigForTests(in SafetyCenterConfig safetyCenterConfig); in setSafetyCenterConfigForTests() argument
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DLiveSafetyCenterViewModel.kt60 InteractionLogger(safetyCenterManager.safetyCenterConfig) in <lambda>()
157 safetyCenterManager.safetyCenterConfig?.safetySourcesGroups?.find { in <lambda>()
/packages/modules/Permission/SafetyCenter/ResourcesLib/tests/java/com/android/safetycenter/resources/
DSafetyCenterResourcesApkTest.kt123 val config = resourcesApk.safetyCenterConfig in getSafetyCenterConfig_withValidInputs_returnsConfigContent()
162 assertFailsWith(IllegalStateException::class) { resourcesApk.safetyCenterConfig } in getSafetyCenterConfig_nullContext_throwsRegardlessOfFallback()
/packages/modules/Permission/SafetyCenter/Config/java/com/android/safetycenter/config/
DSafetyCenterConfigParser.java120 SafetyCenterConfig safetyCenterConfig = parseSafetyCenterConfig(parser, resources); in parseXmlResource() local
127 return safetyCenterConfig; in parseXmlResource()
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/
DSafetyCenterUnsupportedTest.kt239 assertFailsWith(SecurityException::class) { safetyCenterManager.safetyCenterConfig } in getSafetyCenterConfig_withoutPermission_throwsSecurityException()
DSafetyCenterManagerTest.kt1541 assertFailsWith(SecurityException::class) { safetyCenterManager.safetyCenterConfig } in getSafetyCenterConfig_withoutPermission_throwsSecurityException()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/service/
DSafetyCenterSearchIndexablesProvider.kt243 safetyCenterConfig?.safetySourcesGroups?.asSequence()?.filter { in <lambda>()