Home
last modified time | relevance | path

Searched refs:getXml (Results 1 – 25 of 61) sorted by relevance

123

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAppManifestConfigParserTest.java47 .getXml(R.xml.ad_services_config); in testValidXml()
213 .getXml(R.xml.ad_services_config_missing_sdk_name); in testInvalidXml_missingSdkLibrary()
228 .getXml(R.xml.ad_services_config_incorrect_values); in testInvalidXml_incorrectValues()
243 .getXml(R.xml.ad_services_config_missing_tags); in testValidXml_missingAllTags()
271 .getXml(R.xml.ad_services_config_all_false_missing_attribution); in testValidXml_missingAttribution()
293 .getXml(R.xml.ad_services_config_all_false_missing_custom_audiences); in testValidXml_missingCustomAudiences()
315 .getXml(R.xml.ad_services_config_all_false_missing_protected_signals); in testValidXml_missingProtectedSignals()
337 .getXml(R.xml.ad_services_config_all_false_missing_ad_selection); in testValidXml_missingAdSelection()
359 .getXml(R.xml.ad_services_config_all_false_missing_topics); in testValidXml_missingTopics()
381 .getXml(R.xml.ad_services_config_all_false_missing_adid); in testValidXml_missingAdId()
[all …]
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DApplicationSelfCertifiedNetworkCapabilitiesTest.kt50 val parser = mResource.getXml( in parseXmlWithWrongTag_shouldIgnoreWrongTag()
60 val parser = mResource.getXml( in parseXmlWithWrongDeclaration_shouldThrowException()
71 val parser = mResource.getXml(R.xml.self_certified_capabilities_other) in checkIfSelfCertifiedNetworkCapabilitiesDeclared_shouldThrowExceptionWhenNoDeclaration()
89 val parser = mResource.getXml(R.xml.self_certified_capabilities_both) in checkIfSelfCertifiedNetworkCapabilitiesDeclared_shouldPassIfDeclarationExist()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DResourceHelper.kt30 open fun getXml(): XmlResourceParser { in getXml() method in com.android.launcher3.util.ResourceHelper
31 return context.resources.getXml(specsFileId) in getXml()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/util/
DWallpaperParserImplTest.kt78 val parser: XmlResourceParser = resources.getXml(wallpapersResId) in parseXMLForSystemCategories_shouldReturnCategories()
95 val parser: XmlResourceParser = resources.getXml(wallpapersResId) in parseInvalidXMLForSystemCategories_shouldReturnEmptyCategories()
112 val parser: XmlResourceParser = resources.getXml(wallpapersResId) in parseInvalidXMLForSystemCategories_shouldThrowException()
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/
DExternalAccountTypeTest.java130 getInstrumentation().getContext().getResources().getXml(R.xml.contacts_fallback) in testEditSchema_fallback()
158 getInstrumentation().getContext().getResources().getXml(xmlResId) in checkEditSchema_mustHaveChecks()
170 getInstrumentation().getContext().getResources().getXml(R.xml.contacts_readonly) in testReadOnlyDefinition()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DRoleParserInitializer.java33 RoleParser.sGetRolesXml = context -> context.getResources().getXml(R.xml.roles); in initialize()
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java197 () -> res.getXml(layoutId), rootTag); in AutoInstallsLayout()
290 return parseLayout(mSourceRes.getXml(resId)); in parseAndAddNode()
730 default XmlResourceParser getXml(@XmlRes int id) throws NotFoundException { in getXml() method
747 public XmlResourceParser getXml(int id) { in wrap()
748 return res.getXml(id); in wrap()
DDefaultLayoutParser.java224 final XmlPullParser partnerParser = partner.getResources().getXml(resId); in parseAndAdd()
245 parser = mSourceRes.getXml(resId); in parseAndAdd()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DEnterpriseSetDefaultAppsListFragmentTest.java46 XmlResourceParser parser = mRealContext.getResources().getXml(resId); in testGetPreferenceScreenResId()
DEnterprisePrivacySettingsFragmentTest.java49 XmlResourceParser parser = mRealContext.getResources().getXml(resId); in testGetPreferenceScreenResId()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/
DIconUtil.java46 .createFromXml(res, res.getXml(R.color.two_panel_preference_icon_color)); in getCompoundIcon()
/packages/apps/CarrierConfig/src/com/android/carrierconfig/
DDefaultCarrierConfigService.java124 getApplicationContext().getResources().getXml(R.xml.vendor_no_sim); in loadConfig()
181 XmlPullParser vendorInput = getApplicationContext().getResources().getXml(R.xml.vendor); in loadConfig()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/manifest/
DAppManifestConfigHelper.java65 XmlResourceParser xmlParser = resources.getXml(resId); in getAppManifestConfig()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/
DCarRemoteAccessServiceUnitTest.java264 when(mResources.getXml(R.xml.remote_access_serverless_client_map)).thenReturn( in setUp()
577 when(mResources.getXml(R.xml.remote_access_serverless_client_map)).thenReturn( in testAddCarRemoteTaskClient_serverlessClient()
604 when(mResources.getXml(R.xml.remote_access_serverless_client_map)).thenReturn( in testAddCarRemoteTaskClient_asignedDynamicClientId_thenBecomeServerlessClient()
751 when(mResources.getXml(R.xml.remote_access_serverless_client_map)).thenReturn( in testRemoteTaskRequested_serverlessClientRegisteredAfterRequest()
1304 when(mResources.getXml(R.xml.remote_access_serverless_client_map)).thenReturn( in testParseServerlessClientMap()
1322 when(mResources.getXml(R.xml.remote_access_serverless_client_map)).thenReturn( in testParseServerlessClientMapWithComment()
1347 when(mResources.getXml(R.xml.remote_access_serverless_client_map)).thenReturn( in testIsTaskScheduleSupported_true()
1368 when(mResources.getXml(R.xml.remote_access_serverless_client_map)).thenReturn( in testIsTaskScheduleSupported_clientNotConfigured()
1382 when(mResources.getXml(R.xml.remote_access_serverless_client_map)).thenReturn( in prepareTaskSchedule()
/packages/apps/LegacyCamera/src/com/android/camera/
DPreferenceInflater.java51 return inflate(mContext.getResources().getXml(resId)); in inflate()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DLauncherSearchIndexablesProvider.java74 .getXml(R.xml.indexable_launcher_prefs)) { in queryNonIndexableKeys()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DLauncherIconProvider.java79 try (XmlResourceParser parser = res.getXml(R.xml.grayscale_icon_map)) { in getThemedIconMap()
/packages/apps/Messaging/src/android/support/v7/mms/
DDefaultCarrierConfigValuesLoader.java100 xml = subContext.getResources().getXml(R.xml.mms_config); in loadFromResources()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DVolumeItemParser.java55 try (XmlResourceParser parser = context.getResources().getXml(volumeItemsXml)) { in loadAudioUsageItems()
/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DResponsiveSpecsParser.kt40 val parser: XmlResourceParser = resourceHelper.getXml() in parseXML()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/category/client /
DDefaultWallpaperCategoryClient.kt117 wallpaperXMLParser.parseSystemCategories(partnerRes.getXml(wallpapersResId)) in <lambda>()
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/distantdisplay/util/
DAppCategoryDetector.java85 try (XmlResourceParser parser = appResources.getXml(resourceId)) { in getAutomotiveAppTypes()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetSections.java74 try (XmlResourceParser parser = context.getResources().getXml(R.xml.widget_sections)) { in parseWidgetSectionsXml()
/packages/apps/Messaging/src/com/android/messaging/sms/
DBugleCarrierConfigValuesLoader.java133 parser = subContext.getResources().getXml(R.xml.mms_config); in loadFromResources()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardLayoutSet.java345 final XmlResourceParser parser = resources.getXml(xmlId); in readScriptId()
401 final XmlResourceParser parser = res.getXml(resId); in parseKeyboardLayoutSet()

123