Home
last modified time | relevance | path

Searched refs:xml (Results 1 – 25 of 1246) sorted by relevance

12345678910>>...50

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DEventReportTest.java48 final StringBuilder xml = new StringBuilder(); in fromStream() local
49 xml.append("<event\n"); in fromStream()
50 xml.append("type=\"" + type.toString() + "\"\n"); in fromStream()
51 xml.append("handle=\"" + handle + "\"\n"); in fromStream()
52 xml.append("folder=\"" + folder + "\"\n"); in fromStream()
53 xml.append("old_folder=\"" + oldFolder + "\"\n"); in fromStream()
54 xml.append("msg_type=\"" + msgType + "\"\n"); in fromStream()
55 xml.append("/>\n"); in fromStream()
56 ByteArrayInputStream stream = new ByteArrayInputStream(xml.toString().getBytes()); in fromStream()
72 final StringBuilder xml = new StringBuilder(); in fromStream_withInvalidXml_doesNotCrash_andReturnNull() local
[all …]
DMessagesListingTest.java37 final StringBuilder xml = new StringBuilder(); in constructor() local
38 xml.append("<msg\n"); in constructor()
39 xml.append("handle=\"" + handle + "\"\n"); in constructor()
40 xml.append("subject=\"" + subject + "\"\n"); in constructor()
41 xml.append("/>\n"); in constructor()
42 ByteArrayInputStream stream = new ByteArrayInputStream(xml.toString().getBytes()); in constructor()
DMnsObexServerTest.java109 final StringBuilder xml = new StringBuilder(); in onPut_whenHeaderSetIsValid_returnsOk() local
110 xml.append("<event\n"); in onPut_whenHeaderSetIsValid_returnsOk()
111 xml.append(" type=\"test_type\"\n"); in onPut_whenHeaderSetIsValid_returnsOk()
112 xml.append(" handle=\"FFAB\"\n"); in onPut_whenHeaderSetIsValid_returnsOk()
113 xml.append(" folder=\"test_folder\"\n"); in onPut_whenHeaderSetIsValid_returnsOk()
114 xml.append(" old_folder=\"test_old_folder\"\n"); in onPut_whenHeaderSetIsValid_returnsOk()
115 xml.append(" msg_type=\"MMS\"\n"); in onPut_whenHeaderSetIsValid_returnsOk()
116 xml.append("/>\n"); in onPut_whenHeaderSetIsValid_returnsOk()
118 new DataInputStream(new ByteArrayInputStream(xml.toString().getBytes())); in onPut_whenHeaderSetIsValid_returnsOk()
/packages/services/Car/data/etc/
DAndroid.bp25 src: "com.google.android.car.garagemode.testapp.xml",
32 src: "com.google.android.car.uxr.sample.xml",
39 src: "com.google.android.car.defaultstoragemonitoringcompanionapp.xml",
47 src: "com.android.carsystemui.xml",
54 src: "android.car.cluster.loggingrenderer.xml",
61 src: "android.car.cluster.sample.xml",
68 src: "android.car.cluster.xml",
75 src: "android.car.usb.handler.xml",
82 src: "com.android.car.carlauncher.xml",
89 src: "com.android.car.dialer.xml",
[all …]
/packages/services/Car/
DPREUPLOAD.cfg4xml service/res/values/strings.xml service/res/values/attrs.xml service/res/xml/car_volume_groups.
/packages/modules/Connectivity/tools/
Daospify_device.sh125 out/target/product/generic_arm64/system/etc/selinux/plat_mac_permissions.xml \
126 out/target/product/generic_arm64/system/etc/permissions/com.android.networkstack.xml
147 rm -f /tmp/pulled_plat_mac_permissions.xml
148 $ADB_CMD pull /system/etc/selinux/plat_mac_permissions.xml /tmp/pulled_plat_mac_permissions.xml
150 sed -E "$sed_replace" /tmp/pulled_plat_mac_permissions.xml |
152 rm /tmp/pulled_plat_mac_permissions.xml
155 rm -f /tmp/pulled_privapp-permissions.xml
156 networkstack_permissions=/system/etc/permissions/GoogleNetworkStack_permissions.xml
158 networkstack_permissions=/system/etc/permissions/privapp-permissions-google.xml
161 $ADB_CMD pull $networkstack_permissions /tmp/pulled_privapp-permissions.xml
[all …]
/packages/modules/Permission/SafetyCenter/ConfigLintChecker/tests/java/android/safetycenter/lint/test/
DParserExceptionDetectorTest.kt51 xml("res/raw/safety_center_config.xml", VALID_TIRAMISU_CONFIG), in validMinimumConfig_doesNotThrow()
62 xml("res/raw-99/safety_center_config.xml", VALID_TIRAMISU_CONFIG), in validFutureConfig_doesNotThrow()
73 .files(xml("res/raw-v34/safety_center_config.xml", "<invalid-root/>")) in invalidConfigWithSingleSchema_throwsOneError()
86 .files(xml("res/raw/safety_center_config.xml", "<invalid-root/>")) in invalidConfigWithMultipleSchemas_throwsMultipleErrors()
103 xml("res/raw/safety_center_config.xml", VALID_UDC_CONFIG), in validUConfigWithUFields_throwsInT()
119 xml("res/raw/safety_center_config.xml", VALID_TIRAMISU_CONFIG), in validTConfigWithUReference_throwsInT()
120 xml("res/values-v34/strings.xml", STRINGS_WITH_REFERENCE_XML), in validTConfigWithUReference_throwsInT()
136 xml("res/raw/safety_center_config.xml", VALID_TIRAMISU_CONFIG), in validTConfigWithOtherLanguageReference_throwsInT()
137 xml("res/values-ar/strings.xml", STRINGS_WITH_REFERENCE_XML), in validTConfigWithOtherLanguageReference_throwsInT()
150 lint().files(xml("res/raw/some_other_config.xml", "<some-other-root/>")).run().expectClean() in unrelatedFile_doesNotThrow()
[all …]
DConfigSchemaDetectorTest.kt49 (xml( in validMinimumConfig_doesNotThrow()
78 (xml( in validFutureConfig_doesNotThrow()
107 .files((xml("res/raw-v34/safety_center_config.xml", "<invalid-root/>"))) in invalidConfigWithSingleSchema_throwsOneError()
120 .files((xml("res/raw/safety_center_config.xml", "<invalid-root/>"))) in invalidConfigWithMultipleSchemas_throwsMultipleErrors()
137 (xml( in validUConfigWithUFields_throwsInT()
172 .files((xml("res/raw/some_other_config.xml", "<some-other-root/>"))) in unrelatedFile_doesNotThrow()
179 lint().files((xml("res/values/strings.xml", "<some-other-root/>"))).run().expectClean() in unrelatedFolder_doesNotThrow()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DConfigXmlTest.java40 import javax.xml.parsers.DocumentBuilder;
41 import javax.xml.parsers.DocumentBuilderFactory;
42 import javax.xml.transform.OutputKeys;
43 import javax.xml.transform.Transformer;
44 import javax.xml.transform.TransformerException;
45 import javax.xml.transform.TransformerFactory;
46 import javax.xml.transform.dom.DOMSource;
47 import javax.xml.transform.stream.StreamResult;
48 import javax.xml.xpath.XPath;
49 import javax.xml.xpath.XPathConstants;
[all …]
/packages/apps/Car/systemlibs/tools/rro/
DREADME1 These scripts are used to generate and verify overlayable.xml files.
10 -e $PROJECT_TOP/res/values/overlayable.xml $PROJECT_TOP/res/xml/automotive_app_desc.xml \
11 -o $PROJECT_TOP/res/values/overlayable.xml
17 -e $PROJECT_TOP/res/values/overlayable.xml $PROJECT_TOP/res/xml/automotive_app_desc.xml \
18 -o $PROJECT_TOP/res/values/overlayable.xml
/packages/modules/Permission/PermissionController/
DTEST_MAPPING13 "file_patterns": ["res/xml/roles\\.xml"]
49 "file_patterns": ["res/xml/roles\\.xml"]
61 "file_patterns": ["res/xml/roles\\.xml"]
111 "file_patterns": ["res/xml/roles\\.xml"]
123 "file_patterns": ["res/xml/roles\\.xml"]
161 "file_patterns": ["res/xml/roles\\.xml"]
182 "file_patterns": ["res/xml/roles\\.xml"]
191 "file_patterns": ["res/xml/roles\\.xml"]
/packages/services/Car/car_product/build/
Dcar_vendor.mk35 …ccelerometer_limited_axes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.ac…
36 …nsor.gyroscope_limited_axes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.…
37 …d_axes_uncalibrated.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelero…
38 …ted_axes_uncalibrated.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyrosc…
/packages/modules/Wifi/framework/tests/assets/pps/
DREADME.txt1 PerProviderSubscription.xml - valid PPS XML file
2 PerProviderSubscription_DuplicateHomeSP.xml - containing multiple HomeSP node
3 PerProviderSubscription_DuplicateValue.xml - FriendlyName node contains multiple Value
4 PerProviderSubscription_MissingValue.xml - FriendlyName node is missing Value
5 PerProviderSubscription_MissingName.xml - HomeSP node is missing NodeName
6 PerProviderSubscription_InvalidNode.xml - FQDN node contains both Value and a child node
7 PerProviderSubscription_InvalidName.xml - FriendlyName node have a typo in its name
/packages/apps/Launcher3/
DAndroid.bp86 manifest: "tests/tapl/AndroidManifest.xml",
169 manifest: "AndroidManifest-common.xml",
173 baseline_filename: "lint-baseline.xml",
214 "AndroidManifest-common.xml",
217 baseline_filename: "lint-baseline.xml",
237 manifest: "quickstep/AndroidManifest.xml",
262 manifest: "quickstep/AndroidManifest.xml",
264 "go/AndroidManifest.xml",
265 "AndroidManifest-common.xml",
292 manifest: "quickstep/AndroidManifest.xml",
[all …]
/packages/apps/CellBroadcastReceiver/apex/permissions/
DAndroid.bp22 name: "privapp_allowlist_com.android.cellbroadcastreceiver.module.xml",
23 srcs: ["com.android.cellbroadcastreceiver.module.xml"],
28 name: "platform_privapp_allowlist_com.android.cellbroadcastreceiver.xml",
29 srcs: ["com.android.cellbroadcastreceiver.xml"],
35 name: "platform_privapp_allowlist_com.android.cellbroadcastservice.xml",
36 srcs: ["com.android.cellbroadcastservice.xml"],
40 name: "privapp_allowlist_com.android.cellbroadcastservice.xml",
41 srcs: ["com.android.cellbroadcastservice.xml"],
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParserTest.java59 CarUxRestrictionsConfigurationXmlParser.parse(getContext(), R.xml.car_ux_restrictions_map); in testParsingDefaultConfiguration()
65 getContext(), R.xml.ux_restrictions_only_parameters).get(0); in testParsingParameters()
76 getContext(), R.xml.ux_restrictions_non_moving_state).get(0); in testParsingNonMovingState()
89 getContext(), R.xml.ux_restrictions_moving_state_no_speed_range).get(0); in testParsingMovingState_NoSpeedRange()
100 getContext(), R.xml.ux_restrictions_moving_state_single_speed_range).get(0); in testParsingMovingState_SingleSpeedRange()
111 getContext(), R.xml.ux_restrictions_moving_state_single_speed_range).get(0); in testParsingMovingState_MultiSpeedRange()
125 getContext(), R.xml.ux_restrictions_passenger_mode).get(0); in testParsingPassengerState()
143 getContext(), R.xml.ux_restrictions_multi_mode).get(0); in testParsingMultipleModes()
177 getContext(), R.xml.ux_restrictions_passenger_mode).get(0); in testParsingPassengerMode_ValuesInBaselineAreNotAffected()
200 getContext(), R.xml.ux_restrictions_multiple_display_ports); in testParsingMultipleConfigurations()
[all …]
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/groovy/
DResourceFixerPlugin.groovy8 import javax.xml.parsers.DocumentBuilder
9 import javax.xml.parsers.DocumentBuilderFactory
10 import javax.xml.transform.TransformerFactory
11 import javax.xml.transform.dom.DOMSource
12 import javax.xml.transform.stream.StreamResult
60 for (File xml : values.listFiles()) {
61 if (xml.isFile() && xml.getName().endsWith(".xml")
62 && xml.getText().contains("androidprv:")) {
63 processAndroidPrv(xml, outputDir, aapt);
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/
DPreferenceXmlParserUtilsTest.java67 R.xml.top_level_settings, in extractHomepageMetadata_shouldContainKeyAndHighlightableMenuKey()
83 R.xml.location_settings, in extractMetadata_shouldContainKeyAndControllerNameAndHighlightableMenuKey()
101 R.xml.location_settings, MetadataFlag.FLAG_NEED_PREF_TITLE); in extractMetadata_requestTitle_shouldContainTitle()
112 R.xml.location_settings, MetadataFlag.FLAG_NEED_PREF_SUMMARY); in extractMetadata_requestSummary_shouldContainSummary()
123 R.xml.location_settings, MetadataFlag.FLAG_NEED_PREF_ICON); in extractMetadata_requestIcon_shouldContainIcon()
134 R.xml.location_settings, MetadataFlag.FLAG_NEED_PREF_TYPE); in extractMetadata_requestPrefType_shouldContainPrefType()
145 R.xml.location_settings, in extractMetadata_requestIncludeScreen_shouldContainScreen()
165 R.xml.location_settings, in extractMetadata_requestIncludesKeywords_shouldContainKeywords()
178 R.xml.location_settings, MetadataFlag.FLAG_NEED_SEARCHABLE); in extractMetadata_requestSearchable_shouldDefaultToTrue()
188 R.xml.display_settings, in extractMetadata_requestSearchable_shouldReturnAttributeValue()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/omadm/
DMoSerializer.java27 import javax.xml.parsers.DocumentBuilder;
28 import javax.xml.parsers.DocumentBuilderFactory;
29 import javax.xml.parsers.ParserConfigurationException;
30 import javax.xml.transform.OutputKeys;
31 import javax.xml.transform.Transformer;
32 import javax.xml.transform.TransformerException;
33 import javax.xml.transform.TransformerFactory;
34 import javax.xml.transform.dom.DOMSource;
35 import javax.xml.transform.stream.StreamResult;
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/omadm/
DXMLParser.java19 import org.xml.sax.Attributes;
20 import org.xml.sax.InputSource;
21 import org.xml.sax.SAXException;
22 import org.xml.sax.helpers.DefaultHandler;
29 import javax.xml.parsers.ParserConfigurationException;
30 import javax.xml.parsers.SAXParser;
31 import javax.xml.parsers.SAXParserFactory;
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAndroidManifestConfigParserTest.java47 XmlResourceParser parser = createParser(R.xml.android_manifest_valid); in testGetAdServicesConfigResourceId_valid()
60 XmlResourceParser parser = createParser(R.xml.android_manifest_diff_attr_order_valid); in testGetAdServicesConfigResourceId_attrOrderChange_valid()
74 createParser(R.xml.android_manifest_property_name_referenced_valid); in testGetAdServicesConfigResourceId_withPropertyNameRef_valid()
87 XmlResourceParser parser = createParser(R.xml.android_manifest_missing_property); in testGetAdServicesConfigResourceId_missingProperty()
100 createParser(R.xml.android_manifest_missing_property_inside_application); in testGetAdServicesConfigResourceId_missingPropertyInsideApplication()
113 XmlResourceParser parser = createParser(R.xml.android_manifest_missing_property_name); in testGetAdServicesConfigResourceId_missingPropertyDueToNoNameAttr()
125 XmlResourceParser parser = createParser(R.xml.android_manifest_incorrect_property_name); in testGetAdServicesConfigResourceId_missingPropertyDueToIncorrectName()
138 createParser(R.xml.android_manifest_missing_property_incorrect_depth); in testGetAdServicesConfigResourceId_missingPropertyDueToIncorrectDepth()
150 XmlResourceParser parser = createParser(R.xml.android_manifest_missing_resource); in testGetAdServicesConfigResourceId_invalidPropertyDueToMissingResourceAttr()
165 XmlResourceParser parser = createParser(R.xml.android_manifest_missing_resource); in testGetAdServicesConfigResourceId_onSPlus_throwsException()
/packages/modules/NeuralNetworks/driver/
DAndroid.bp35 "android.hardware.neuralnetworks-service-sample-all.xml",
37 "android.hardware.neuralnetworks-service-sample-limited.xml",
39 "android.hardware.neuralnetworks-shim-service-sample.xml",
50 name: "android.hardware.neuralnetworks-service-sample-all.xml",
51 src: "sample_aidl/config/android.hardware.neuralnetworks-service-sample-all.xml",
63 name: "android.hardware.neuralnetworks-service-sample-limited.xml",
64 src: "sample_aidl/config/android.hardware.neuralnetworks-service-sample-limited.xml",
76 name: "android.hardware.neuralnetworks-shim-service-sample.xml",
77 src: "sample_shim/config/android.hardware.neuralnetworks-shim-service-sample.xml",
/packages/apps/Car/Settings/tools/
Dgenerate-overlayable.sh24 …able.xml $PROJECT_TOP/res/values/preference_keys.xml $PROJECT_TOP/res/values/preference_screen_key…
25 -o $PROJECT_TOP/res/values/overlayable.xml
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/
DAndroid.bp26 test_config: "SdkSandboxLifecycleHostTest.xml",
48 test_config: "SdkSandboxShellHostTest.xml",
64 manifest: "app/SdkSandboxTestAppManifest.xml",
82 manifest: "app/SdkSandboxTestApp2Manifest.xml",
100 manifest: "app/SdkSandboxTestDebuggableAppManifest.xml",
117 manifest: "app/SdkSandboxTestSharedApp1Manifest.xml",
138 manifest: "app/SdkSandboxTestSharedApp2Manifest.xml",
161 manifest: "codeprovider/TestCodeProviderManifest.xml",
177 manifest: "codeprovider/TestCodeProvider2Manifest.xml",
/packages/modules/AdServices/adservices/tests/cts/
DAndroid.bp108 manifest: "AndroidManifestRoot.xml",
109 test_config: "AndroidTest.Root.xml",
157 test_config: "AndroidTest.ExtServices.xml",
158 manifest: "AndroidManifestExtServices.xml",
162 baseline_filename: "lint-baseline-adextservices-devicetestcases.xml",
210 manifest: "AndroidManifestDebuggable.xml",
211 test_config: "AndroidTestDebuggable.xml",
260 test_config: "AndroidTestDebuggable.ExtServices.xml",
261 manifest: "AndroidManifestDebuggableExtServices.xml",
264 baseline_filename: "lint-baseline-adextservices-debuggabletestcases.xml",
[all …]

12345678910>>...50