Home
last modified time | relevance | path

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

12345678910>>...21

/frameworks/native/data/etc/
DAndroid.bp16 // Modules use the 'prebuilt.xml' suffix to prevent conflicting
26 name: "android.hardware.audio.low_latency.prebuilt.xml",
27 src: "android.hardware.audio.low_latency.xml",
32 name: "android.hardware.biometrics.face.prebuilt.xml",
33 src: "android.hardware.biometrics.face.xml",
38 name: "android.hardware.bluetooth_le.prebuilt.xml",
39 src: "android.hardware.bluetooth_le.xml",
44 name: "android.hardware.bluetooth.prebuilt.xml",
45 src: "android.hardware.bluetooth.xml",
50 name: "android.hardware.camera.concurrent.prebuilt.xml",
[all …]
/frameworks/base/tools/aapt2/link/
DManifestFixer.cpp35 static bool HasDeepLink(xml::Element* intent_filter_el) { in HasDeepLink()
36 xml::Element* action_el = intent_filter_el->FindChild({}, "action"); in HasDeepLink()
37 xml::Element* category_el = intent_filter_el->FindChild({}, "category"); in HasDeepLink()
38 xml::Element* data_el = intent_filter_el->FindChild({}, "data"); in HasDeepLink()
45 if (intent_filter_el->FindChildWithAttribute({}, "action", xml::kSchemaAndroid, "name", in HasDeepLink()
51 xml::Attribute* data_scheme_attr = data_el->FindAttribute(xml::kSchemaAndroid, "scheme"); in HasDeepLink()
58 if (intent_filter_el->FindChildWithAttribute({}, "category", xml::kSchemaAndroid, "name", in HasDeepLink()
65 static bool VerifyDeeplinkPathAttribute(xml::Element* data_el, android::SourcePathDiagnostics* diag, in VerifyDeeplinkPathAttribute()
67 xml::Attribute* attr = data_el->FindAttribute(xml::kSchemaAndroid, attr_name); in VerifyDeeplinkPathAttribute()
100 static bool VerifyDeepLinkIntentAction(xml::Element* intent_filter_el, in VerifyDeepLinkIntentAction()
[all …]
DXmlCompatVersioner.cpp25 static xml::Attribute CopyAttr(const xml::Attribute& src, android::StringPool* out_string_pool) { in CopyAttr()
27 xml::Attribute dst{src.namespace_uri, src.name, src.value, src.compiled_attribute}; in CopyAttr()
36 static bool CopyAttribute(const xml::Attribute& src_attr, bool generated, xml::Element* dst_el, in CopyAttribute()
39 xml::Attribute* dst_attr = dst_el->FindAttribute(src_attr.namespace_uri, src_attr.name); in CopyAttribute()
56 void XmlCompatVersioner::ProcessRule(const xml::Element& src_el, const xml::Attribute& src_attr, in ProcessRule()
59 xml::Element* dst_el, in ProcessRule()
104 std::unique_ptr<xml::XmlResource> XmlCompatVersioner::ProcessDoc( in ProcessDoc()
105 ApiVersion target_api, ApiVersion max_api, xml::XmlResource* doc, in ProcessDoc()
109 std::unique_ptr<xml::XmlResource> cloned_doc = util::make_unique<xml::XmlResource>(doc->file); in ProcessDoc()
112 cloned_doc->root = doc->root->CloneElement([&](const xml::Element& el, xml::Element* out_el) { in ProcessDoc()
[all …]
DXmlCompatVersioner.h37 xml::Attribute attr;
46 virtual std::vector<DegradeResult> Degrade(const xml::Element& src_el,
47 const xml::Attribute& src_attr,
60 std::vector<std::unique_ptr<xml::XmlResource>> Process(IAaptContext* context,
61 xml::XmlResource* doc,
67 std::unique_ptr<xml::XmlResource> ProcessDoc(ApiVersion target_api, ApiVersion max_api,
68 xml::XmlResource* doc,
70 void ProcessRule(const xml::Element& src_el, const xml::Attribute& src_attr,
72 const util::Range<ApiVersion>& api_range, bool generated, xml::Element* dst_el,
89 std::vector<DegradeResult> Degrade(const xml::Element& src_el, const xml::Attribute& src_attr,
DFeatureFlagsFilter.cpp27 using ::aapt::xml::Element;
28 using ::aapt::xml::Node;
29 using ::aapt::xml::NodeCast;
33 class FlagsVisitor : public xml::Visitor {
41 void Visit(xml::Element* node) override { in Visit()
43 [this](std::unique_ptr<xml::Node>& node) { return ShouldRemove(node); }); in Visit()
52 bool ShouldRemove(std::unique_ptr<xml::Node>& node) { in ShouldRemove()
54 auto* attr = el->FindAttribute(xml::kSchemaAndroid, "featureFlag"); in ShouldRemove()
98 bool FeatureFlagsFilter::Consume(IAaptContext* context, xml::XmlResource* doc) { in Consume()
/frameworks/base/tools/aapt2/
DResourceParser.h63 xml::IPackageDeclStack* namespace_resolver;
75 bool Parse(xml::XmlPullParser* parser);
85 std::optional<FlattenedXmlSubTree> CreateFlattenSubTree(xml::XmlPullParser* parser);
94 bool FlattenXmlSubtree(xml::XmlPullParser* parser, std::string* out_raw_string,
105 std::unique_ptr<Item> ParseXml(xml::XmlPullParser* parser, const uint32_t type_mask,
108 bool ParseResources(xml::XmlPullParser* parser);
109 bool ParseResource(xml::XmlPullParser* parser, ParsedResource* out_resource);
111 bool ParseItem(xml::XmlPullParser* parser, ParsedResource* out_resource, uint32_t format);
112 bool ParseString(xml::XmlPullParser* parser, ParsedResource* out_resource);
113 bool ParseMacro(xml::XmlPullParser* parser, ParsedResource* out_resource);
[all …]
/frameworks/base/core/res/
DOWNERS25 # TODO(262451702): Move WindowManager configs out of config.xml in a separate file
26 per-file res/values/config.xml = file:/services/core/java/com/android/server/wm/OWNERS
27 per-file res/values/symbols.xml = file:/services/core/java/com/android/server/wm/OWNERS
30 per-file res/xml/public-staging.xml = file:/tools/aapt2/OWNERS
31 per-file res/xml/public-final.xml = file:/tools/aapt2/OWNERS
34 per-file res/xml/config_user_types.xml = file:/MULTIUSER_OWNERS
39 per-file res/values*/attrs.xml = jeffdq@google.com
40 per-file res/values*/colors.xml = jeffdq@google.com
41 per-file res/values*/dimens.xml = jeffdq@google.com
42 per-file res/values*/config.xml = jeffdq@google.com
[all …]
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/persistence/
DVibrationEffectXmlSerializationTest.java77 String xml = "<vibration-effect>" in testParseElement_fromVibrationTag_succeedAndParserPointsToEndVibrationTag() local
90 TypedXmlPullParser parser = createXmlPullParser(xml); in testParseElement_fromVibrationTag_succeedAndParserPointsToEndVibrationTag()
97 parser = createXmlPullParser("<next-tag>" + xml + "</next-tag>"); in testParseElement_fromVibrationTag_succeedAndParserPointsToEndVibrationTag()
104 parser = createXmlPullParser(xml + "<next-tag>"); in testParseElement_fromVibrationTag_succeedAndParserPointsToEndVibrationTag()
109 parser = createXmlPullParser(xml + xml2); in testParseElement_fromVibrationTag_succeedAndParserPointsToEndVibrationTag()
117 xml = "<vibration-effect><primitive-effect name=\"tick\"/><!-- hi --></vibration-effect>"; in testParseElement_fromVibrationTag_succeedAndParserPointsToEndVibrationTag()
118 parser = createXmlPullParser(xml); in testParseElement_fromVibrationTag_succeedAndParserPointsToEndVibrationTag()
144 String xml = "<vibration-select>" + vibrationXml1 + vibrationXml2 + "</vibration-select>"; in testParseElement_fromVibrationSelectTag_succeedAndParserPointsToEndVibrationSelectTag() local
145 TypedXmlPullParser parser = createXmlPullParser(xml); in testParseElement_fromVibrationSelectTag_succeedAndParserPointsToEndVibrationSelectTag()
152 parser = createXmlPullParser("<next-tag>" + xml + "</next-tag>"); in testParseElement_fromVibrationSelectTag_succeedAndParserPointsToEndVibrationSelectTag()
[all …]
/frameworks/base/data/etc/
DAndroid.bp27 name: "framework-sysconfig.xml",
29 src: "framework-sysconfig.xml",
33 name: "preinstalled-packages-platform.xml",
35 src: "preinstalled-packages-platform.xml",
39 name: "initial-package-stopped-states.xml",
41 src: "initial-package-stopped-states.xml",
45 name: "preinstalled-packages-platform-overlays.xml",
48 src: "preinstalled-packages-platform-overlays.xml",
52 name: "hiddenapi-package-whitelist.xml",
54 src: "hiddenapi-package-whitelist.xml",
[all …]
DCleanSpec.mk46 …add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/sysconfig/package-shareduid-allowlist.xml)
47 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/sysconfig/package-shareduid-allowlist.xml)
48 …add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.carrierconfig.xml)
49 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.carrierconfig.xml)
50 …all add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.emergency.xml)
51 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.emergency.xml)
52 …all add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.provision.xml)
53 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.provision.xml)
54 …call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product/etc/permissions/com.android.settings.xml)
55 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product/etc/permissions/com.android.settings.xml)
[all …]
/frameworks/av/services/audiopolicy/config/
DAndroid.bp31 name: "a2dp_in_audio_policy_configuration.xml",
37 name: "a2dp_audio_policy_configuration.xml",
43 name: "audio_policy_configuration.xml",
49 name: "r_submix_audio_policy_configuration.xml",
55 name: "audio_policy_volumes.xml",
61 name: "default_volume_tables.xml",
67 name: "surround_sound_configuration_5_0.xml",
73 name: "usb_audio_policy_configuration.xml",
79 name: "primary_audio_policy_configuration.xml",
86 srcs: ["a2dp_in_audio_policy_configuration.xml"],
[all …]
/frameworks/base/tests/privapp-permissions/
DAndroid.bp14 manifest: "system/AndroidManifest.xml",
15 required: ["privapp-permissions-test.xml"],
19 name: "privapp-permissions-test.xml",
20 src: "system/privapp-permissions-test.xml",
28 manifest: "vendor/AndroidManifest.xml",
30 required: ["vendorprivapp-permissions-test.xml"],
34 name: "vendorprivapp-permissions-test.xml",
35 src: "vendor/privapp-permissions-test.xml",
44 manifest: "product/AndroidManifest.xml",
46 required: ["productprivapp-permissions-test.xml"],
[all …]
/frameworks/base/tools/aapt2/compile/
DInlineXmlFormatParser.cpp31 xml::Element* el;
37 class Visitor : public xml::PackageAwareVisitor {
39 using xml::PackageAwareVisitor::Visit;
41 explicit Visitor(IAaptContext* context, xml::XmlResource* xml_resource) in Visitor()
44 void Visit(xml::Element* el) override { in Visit()
45 if (el->namespace_uri != xml::kSchemaAapt || el->name != "attr") { in Visit()
46 xml::PackageAwareVisitor::Visit(el); in Visit()
52 xml::Attribute* attr = el->FindAttribute({}, "name"); in Visit()
68 std::optional<xml::ExtractedPackage> maybe_pkg = TransformPackageAlias(name.package); in Visit()
76 const xml::ExtractedPackage& pkg = maybe_pkg.value(); in Visit()
[all …]
/frameworks/base/cmds/idmap2/tests/
DXmlParserTests.cpp44 auto xml = CreateTestParser("AndroidManifest.xml"); in TEST() local
45 ASSERT_TRUE(xml) << xml.GetErrorMessage(); in TEST()
54 auto xml = CreateTestParser("res/xml/test.xml"); in TEST() local
55 ASSERT_TRUE(xml) << xml.GetErrorMessage(); in TEST()
57 auto root_iter = xml->tree_iterator(); in TEST()
84 auto xml = CreateTestParser("res/xml/test.xml"); in TEST() local
85 ASSERT_TRUE(xml) << xml.GetErrorMessage(); in TEST()
88 auto root_iter = xml->tree_iterator(); in TEST()
110 auto xml = CreateTestParser("res/xml/test.xml"); in TEST() local
111 ASSERT_TRUE(xml) << xml.GetErrorMessage(); in TEST()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontListParserTest.java64 String xml = "<?xml version='1.0' encoding='UTF-8'?>" in named() local
74 FontConfig.NamedFamilyList family = readNamedFamily(xml); in named()
80 String xml = "<?xml version='1.0' encoding='UTF-8'?>" in fallback() local
95 FontConfig.FontFamily family = readFamily(xml); in fallback()
101 String xml = "<?xml version='1.0' encoding='UTF-8'?>" in compact() local
112 FontConfig.FontFamily family = readFamily(xml); in compact()
118 String xml = "<?xml version='1.0' encoding='UTF-8'?>" in elegant() local
129 FontConfig.FontFamily family = readFamily(xml); in elegant()
135 String xml = "<?xml version='1.0' encoding='UTF-8'?>" in styles() local
153 FontConfig.NamedFamilyList family = readNamedFamily(xml); in styles()
[all …]
/frameworks/base/tools/aapt2/xml/
DXmlUtil_test.cpp24 ASSERT_FALSE(xml::ExtractPackageFromNamespace("com.android")); in TEST()
25 ASSERT_FALSE(xml::ExtractPackageFromNamespace("http://schemas.android.com/apk")); in TEST()
26 ASSERT_FALSE(xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/res")); in TEST()
27 ASSERT_FALSE(xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/res/")); in TEST()
28 ASSERT_FALSE(xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/prv/res/")); in TEST()
30 std::optional<xml::ExtractedPackage> p = in TEST()
31 xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/res/a"); in TEST()
36 p = xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/prv/res/android"); in TEST()
41 p = xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/prv/res/com.test"); in TEST()
46 p = xml::ExtractPackageFromNamespace("http://schemas.android.com/apk/res-auto"); in TEST()
/frameworks/base/apct-tests/perftests/core/src/android/util/
DXmlPerfTest.java121 TypedXmlPullParser xml = inFactory.get(); in doRead() local
122 xml.setInput(is, StandardCharsets.UTF_8.name()); in doRead()
123 read(xml); in doRead()
254 private static void read(TypedXmlPullParser xml) throws Exception { in read() argument
259 while ((type = xml.next()) != XmlPullParser.END_DOCUMENT) { in read()
260 final String tag = xml.getName(); in read()
263 xml.getAttributeValue(null, "name"); in read()
264 xml.getAttributeValue(null, "codePath"); in read()
265 xml.getAttributeValue(null, "nativeLibraryPath"); in read()
266 xml.getAttributeLong(null, "publicFlags"); in read()
[all …]
/frameworks/base/wifi/migration_samples/
DREADME.txt12 1) WifiConfigStore.xml - General storage for shared configurations. Includes
14 AOSP Path in Android 10: /data/misc/wifi/WifiConfigStore.xml
15 AOSP Path in Android 11: /data/misc/apexdata/com.android/wifi/WifiConfigStore.xml
16 Sample File (in this folder): Shared_WifiConfigStore.xml
18 2) WifiConfigStoreSoftAp.xml - Storage for user's softap/tethering configuration.
21 AOSP Path in Android 11: /data/misc/apexdata/com.android/wifi/WifiConfigStore.xml
22 Sample File (in this folder): Shared_WifiConfigStoreSoftAp.xml
26 3) WifiConfigStore.xml - General storage for user specific configurations. Includes
28 AOSP Path in Android 10: /data/misc_ce/<userId>/wifi/WifiConfigStore.xml
29 AOSP Path in Android 11: /data/misc_ce/<userId>/apexdata/com.android/wifi/WifiConfigStore.xml
[all …]
/frameworks/base/tools/aapt2/cmd/
DUtil.cpp190 static xml::AaptAttribute CreateAttributeWithId(const ResourceId& id) { in CreateAttributeWithId()
191 return xml::AaptAttribute(Attribute(), id); in CreateAttributeWithId()
194 static xml::NamespaceDecl CreateAndroidNamespaceDecl() { in CreateAndroidNamespaceDecl()
195 xml::NamespaceDecl decl; in CreateAndroidNamespaceDecl()
197 decl.uri = xml::kSchemaAndroid; in CreateAndroidNamespaceDecl()
226 std::unique_ptr<xml::XmlResource> GenerateSplitManifest(const AppInfo& app_info, in GenerateSplitManifest()
233 std::unique_ptr<xml::Element> manifest_el = util::make_unique<xml::Element>(); in GenerateSplitManifest()
236 manifest_el->attributes.push_back(xml::Attribute{"", "package", app_info.package}); in GenerateSplitManifest()
240 manifest_el->attributes.push_back(xml::Attribute{ in GenerateSplitManifest()
241 xml::kSchemaAndroid, "versionCode", std::to_string(version_code), in GenerateSplitManifest()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationLegacySettingsTest.kt79 val xml = file.readText() in writeAndReadBackNormal() constant
82 assertWithMessage(xml).that(newSettings.remove("com.test.one")).isNull() in writeAndReadBackNormal()
83 assertWithMessage(xml).that(newSettings.getUserState("com.test.one", 0)) in writeAndReadBackNormal()
85 assertWithMessage(xml).that(newSettings.getUserState("com.test.one", 10)) in writeAndReadBackNormal()
89 assertWithMessage(xml).that(firstUserStates).isNotNull() in writeAndReadBackNormal()
90 assertWithMessage(xml).that(firstUserStates!!.size()).isEqualTo(2) in writeAndReadBackNormal()
91 assertWithMessage(xml).that(firstUserStates[0]) in writeAndReadBackNormal()
93 assertWithMessage(xml).that(firstUserStates[10]) in writeAndReadBackNormal()
96 assertWithMessage(xml).that(newSettings.remove("com.test.two")).isNull() in writeAndReadBackNormal()
97 assertWithMessage(xml).that(newSettings.getUserStates("com.test.two")).isNull() in writeAndReadBackNormal()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/phone/
DAndroid.bp36 name: "audio_policy_engine_configuration.xml",
40 ":audio_policy_engine_criteria.xml",
41 ":audio_policy_engine_criterion_types.xml",
42 ":audio_policy_engine_product_strategies.xml",
43 ":audio_policy_engine_volumes.xml",
48 name: "audio_policy_engine_product_strategies.xml",
50 src: "audio_policy_engine_product_strategies.xml",
54 name: "audio_policy_engine_stream_volumes.xml",
60 name: "audio_policy_engine_default_stream_volumes.xml",
66 name: "audio_policy_engine_criterion_types.xml",
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/apks/keyset/
DAndroid.bp17 manifest: "uNone/AndroidManifest.xml",
25 manifest: "uA/AndroidManifest.xml",
33 manifest: "uB/AndroidManifest.xml",
41 manifest: "uAB/AndroidManifest.xml",
49 manifest: "uAuB/AndroidManifest.xml",
57 manifest: "permDef/AndroidManifest.xml",
65 manifest: "permUse/AndroidManifest.xml",
74 manifest: "uA/AndroidManifest.xml",
82 manifest: "uB/AndroidManifest.xml",
90 manifest: "permUse/AndroidManifest.xml",
[all …]
/frameworks/av/services/audiopolicy/tests/resources/
DAndroid.bp14 "test_audio_policy_configuration.xml",
15 "test_audio_policy_configuration_bluetooth.xml",
16 "test_audio_policy_primary_only_configuration.xml",
17 "test_car_ap_atmos_offload_configuration.xml",
18 "test_invalid_audio_policy_configuration.xml",
19 "test_settop_box_surround_configuration.xml",
20 "test_tv_apm_configuration.xml",
/frameworks/av/services/audiopolicy/enginedefault/config/example/
DAndroid.bp33 name: "audio_policy_engine_configuration.xml",
35 src: "phone/audio_policy_engine_configuration.xml",
37 ":audio_policy_engine_default_stream_volumes.xml",
38 ":audio_policy_engine_product_strategies.xml",
39 ":audio_policy_engine_stream_volumes.xml",
44 name: "audio_policy_engine_product_strategies.xml",
46 src: "phone/audio_policy_engine_product_strategies.xml",
50 name: "audio_policy_engine_stream_volumes.xml",
52 src: "phone/audio_policy_engine_stream_volumes.xml",
56 name: "audio_policy_engine_default_stream_volumes.xml",
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/config/example/automotive/
DAndroid.bp36 name: "audio_policy_engine_configuration.xml",
40 ":audio_policy_engine_criteria.xml",
41 ":audio_policy_engine_criterion_types.xml",
42 ":audio_policy_engine_product_strategies.xml",
43 ":audio_policy_engine_volumes.xml",
48 name: "audio_policy_engine_product_strategies.xml",
50 src: "audio_policy_engine_product_strategies.xml",
54 name: "audio_policy_engine_volumes.xml",
60 name: "audio_policy_engine_criterion_types.xml",
95 srcs: ["audio_policy_engine_configuration.xml"],
[all …]

12345678910>>...21