Home
last modified time | relevance | path

Searched refs:tagName (Results 1 – 25 of 88) sorted by relevance

1234

/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DSimpleInflater.java66 String tagName; in parseMenu() local
73 tagName = parser.getName(); in parseMenu()
74 if (tagName.equals(XML_MENU)) { in parseMenu()
80 throw new RuntimeException("Expecting menu, got " + tagName); in parseMenu()
93 tagName = parser.getName(); in parseMenu()
94 if (tagName.equals(XML_ITEM)) { in parseMenu()
96 } else if (tagName.equals(XML_MENU)) { in parseMenu()
100 unknownTagName = tagName; in parseMenu()
105 tagName = parser.getName(); in parseMenu()
106 if (lookingForEndOfUnknownTag && tagName.equals(unknownTagName)) { in parseMenu()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/mdnsFilter/
DVendorConfig.java153 @NonNull XmlPullParser parser, @NonNull String tagName, boolean resolveReferences) in readSimpleTag() argument
155 parser.require(XmlPullParser.START_TAG, null, tagName); in readSimpleTag()
157 parser.require(XmlPullParser.END_TAG, null, tagName); in readSimpleTag()
182 @NonNull String tagName, @NonNull String subTagName, @NonNull TagReader<T> tagReader) in readTagList() argument
186 parser.require(XmlPullParser.START_TAG, null, tagName); in readTagList()
196 "Unexpected subtag of " + tagName + ": " + parser.getName()); in readTagList()
224 public VendorConfig readTag(XmlPullParser parser, String tagName) in readVendorConfigs()
226 return readVendorConfig(context, parser, tagName); in readVendorConfigs()
255 @NonNull XmlPullParser parser, @NonNull String tagName) throws XmlPullParserException, in readVendorConfig() argument
257 parser.require(XmlPullParser.START_TAG, null, tagName); in readVendorConfig()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/serialization/
DKeyChainSnapshotDeserializer.java334 private static int readIntTag(XmlPullParser parser, String tagName) in readIntTag() argument
336 parser.require(XmlPullParser.START_TAG, NAMESPACE, tagName); in readIntTag()
338 parser.require(XmlPullParser.END_TAG, NAMESPACE, tagName); in readIntTag()
344 Locale.US, "%s expected int but got '%s'", tagName, text), e); in readIntTag()
348 private static long readLongTag(XmlPullParser parser, String tagName) in readLongTag() argument
350 parser.require(XmlPullParser.START_TAG, NAMESPACE, tagName); in readLongTag()
352 parser.require(XmlPullParser.END_TAG, NAMESPACE, tagName); in readLongTag()
358 Locale.US, "%s expected long but got '%s'", tagName, text), e); in readLongTag()
362 private static String readStringTag(XmlPullParser parser, String tagName) in readStringTag() argument
364 parser.require(XmlPullParser.START_TAG, NAMESPACE, tagName); in readStringTag()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DReflectionInflater.java81 public final T createItem(String tagName, String prefix, AttributeSet attrs) { in createItem() argument
82 String qualifiedName = tagName; in createItem()
98 constructorMap.put(tagName, constructor); in createItem()
114 protected T onCreateItem(String tagName, AttributeSet attrs) { in onCreateItem() argument
115 return createItem(tagName, defaultPackage, attrs); in onCreateItem()
/frameworks/base/services/core/java/com/android/server/pm/
DPersistentPreferredActivity.java56 String tagName = parser.getName(); in PersistentPreferredActivity() local
60 tagName = parser.getName(); in PersistentPreferredActivity()
64 if (tagName.equals(ATTR_FILTER)) { in PersistentPreferredActivity()
68 "Unknown element: " + tagName + in PersistentPreferredActivity()
74 if (tagName.equals(ATTR_FILTER)) { in PersistentPreferredActivity()
DCrossProfileIntentFilter.java72 String tagName = parser.getName(); in CrossProfileIntentFilter() local
76 tagName = parser.getName(); in CrossProfileIntentFilter()
80 if (tagName.equals(ATTR_FILTER)) { in CrossProfileIntentFilter()
84 + Settings.TAG_CROSS_PROFILE_INTENT_FILTERS + ": " + tagName + " at " in CrossProfileIntentFilter()
91 if (tagName.equals(ATTR_FILTER)) { in CrossProfileIntentFilter()
DPackageSignatures.java55 void writeXml(XmlSerializer serializer, String tagName, in writeXml() argument
60 serializer.startTag(null, tagName); in writeXml()
75 serializer.endTag(null, tagName); in writeXml()
169 String tagName = parser.getName(); in readCertsListXml() local
170 if (tagName.equals("cert")) { in readCertsListXml()
261 } else if (tagName.equals("pastSigs")) { in readCertsListXml()
DPreferredActivity.java55 public boolean onReadTag(String tagName, XmlPullParser parser) throws XmlPullParserException, in onReadTag() argument
57 if (tagName.equals("filter")) { in onReadTag()
DSELinuxMMAC.java235 String tagName = parser.getName(); in readSignerOrThrow() local
236 if ("seinfo".equals(tagName)) { in readSignerOrThrow()
240 } else if ("package".equals(tagName)) { in readSignerOrThrow()
242 } else if ("cert".equals(tagName)) { in readSignerOrThrow()
278 String tagName = parser.getName(); in readPackageOrThrow() local
279 if ("seinfo".equals(tagName)) { in readPackageOrThrow()
DKeySetManagerService.java747 final String tagName = parser.getName(); in readKeySetsLPw() local
748 if (tagName.equals("keys")) { in readKeySetsLPw()
750 } else if (tagName.equals("keysets")) { in readKeySetsLPw()
752 } else if (tagName.equals("lastIssuedKeyId")) { in readKeySetsLPw()
754 } else if (tagName.equals("lastIssuedKeySetId")) { in readKeySetsLPw()
771 final String tagName = parser.getName(); in readKeysLPw() local
772 if (tagName.equals("public-key")) { in readKeysLPw()
788 final String tagName = parser.getName(); in readKeySetListLPw() local
789 if (tagName.equals("keyset")) { in readKeySetListLPw()
795 } else if (tagName.equals("key-id")) { in readKeySetListLPw()
DSettings.java1358 String tagName = parser.getName(); in readPreferredActivitiesLPw() local
1359 if (tagName.equals(TAG_ITEM)) { in readPreferredActivitiesLPw()
1386 String tagName = parser.getName(); in readPersistentPreferredActivitiesLPw() local
1387 if (tagName.equals(TAG_ITEM)) { in readPersistentPreferredActivitiesLPw()
1408 final String tagName = parser.getName(); in readCrossProfileIntentFiltersLPw() local
1409 if (tagName.equals(TAG_ITEM)) { in readCrossProfileIntentFiltersLPw()
1414 tagName; in readCrossProfileIntentFiltersLPw()
1439 final String tagName = parser.getName(); in readRestoredIntentFilterVerifications() local
1440 if (tagName.equals(TAG_DOMAIN_VERIFICATION)) { in readRestoredIntentFilterVerifications()
1448 Slog.w(TAG, "Unknown element: " + tagName); in readRestoredIntentFilterVerifications()
[all …]
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistConfig.java123 String tagName = parser.getName(); in reloadConfig() local
124 switch (tagName) { in reloadConfig()
126 parseHashes(parser, tagName, crc32DomainList); in reloadConfig()
129 parseHashes(parser, tagName, crc32IpList); in reloadConfig()
132 parseHashes(parser, tagName, sha256DomainList); in reloadConfig()
135 parseHashes(parser, tagName, sha256IpList); in reloadConfig()
154 private void parseHashes(XmlPullParser parser, String tagName, List<byte[]> hashList) in parseHashes() argument
156 parser.require(XmlPullParser.START_TAG, null, tagName); in parseHashes()
164 parser.require(XmlPullParser.END_TAG, null, tagName); in parseHashes()
/frameworks/base/cmds/incident_helper/src/parsers/
DEventLogTagsParser.cpp37 string tagName = behead(&line, ' '); in Parse() local
38 if (tagNumber == "" || tagName == "") { in Parse()
40 debug.c_str(), tagNumber.c_str(), tagName.c_str()); in Parse()
46 proto.write(EventLogTag::TAG_NAME, tagName); in Parse()
/frameworks/base/core/java/android/view/
DMenuInflater.java133 String tagName; in parseMenu() local
140 tagName = parser.getName(); in parseMenu()
141 if (tagName.equals(XML_MENU)) { in parseMenu()
147 throw new RuntimeException("Expecting menu, got " + tagName); in parseMenu()
160 tagName = parser.getName(); in parseMenu()
161 if (tagName.equals(XML_GROUP)) { in parseMenu()
163 } else if (tagName.equals(XML_ITEM)) { in parseMenu()
165 } else if (tagName.equals(XML_MENU)) { in parseMenu()
174 unknownTagName = tagName; in parseMenu()
179 tagName = parser.getName(); in parseMenu()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java1424 final String tagName = parser.getName(); in readThisValueXml() local
1430 if (tagName.equals("null")) { in readThisValueXml()
1432 } else if (tagName.equals("string")) { in readThisValueXml()
1453 } else if ((res = readThisPrimitiveValueXml(parser, tagName)) != null) { in readThisValueXml()
1455 } else if (tagName.equals("byte-array")) { in readThisValueXml()
1460 } else if (tagName.equals("int-array")) { in readThisValueXml()
1465 } else if (tagName.equals("long-array")) { in readThisValueXml()
1470 } else if (tagName.equals("double-array")) { in readThisValueXml()
1475 } else if (tagName.equals("string-array")) { in readThisValueXml()
1480 } else if (tagName.equals("boolean-array")) { in readThisValueXml()
[all …]
/frameworks/base/core/java/android/nfc/cardemulation/
DAidGroup.java165 String tagName = parser.getName(); in createFromXml() local
167 if (tagName.equals("aid")) { in createFromXml()
176 } else if (tagName.equals("aid-group")) { in createFromXml()
184 Log.d(TAG, "Ignoring unexpected tag: " + tagName); in createFromXml()
187 if (tagName.equals("aid-group") && inGroup && aids.size() > 0) { in createFromXml()
DNfcFServiceInfo.java122 String tagName = parser.getName(); in NfcFServiceInfo() local
123 if (!"host-nfcf-service".equals(tagName)) { in NfcFServiceInfo()
146 tagName = parser.getName(); in NfcFServiceInfo()
148 "system-code-filter".equals(tagName) && systemCode == null) { in NfcFServiceInfo()
160 "nfcid2-filter".equals(tagName) && nfcid2 == null) { in NfcFServiceInfo()
172 } else if (eventType == XmlPullParser.START_TAG && tagName.equals("t3tPmm-filter") in NfcFServiceInfo()
DApduServiceInfo.java165 String tagName = parser.getName(); in ApduServiceInfo() local
166 if (onHost && !"host-apdu-service".equals(tagName)) { in ApduServiceInfo()
169 } else if (!onHost && !"offhost-apdu-service".equals(tagName)) { in ApduServiceInfo()
226 tagName = parser.getName(); in ApduServiceInfo()
227 if (eventType == XmlPullParser.START_TAG && "aid-group".equals(tagName) && in ApduServiceInfo()
250 } else if (eventType == XmlPullParser.END_TAG && "aid-group".equals(tagName) && in ApduServiceInfo()
260 } else if (eventType == XmlPullParser.START_TAG && "aid-filter".equals(tagName) && in ApduServiceInfo()
273 "aid-prefix-filter".equals(tagName) && currentGroup != null) { in ApduServiceInfo()
287 tagName.equals("aid-suffix-filter") && currentGroup != null) { in ApduServiceInfo()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioCollections.cpp28 sp<AudioPort> AudioPortVector::findByTagName(const String8 &tagName) const in findByTagName()
31 if (port->getTagName() == tagName) { in findByTagName()
DDeviceDescriptor.cpp30 DeviceDescriptor::DeviceDescriptor(audio_devices_t type, const String8 &tagName) : in DeviceDescriptor() argument
31 DeviceDescriptor(type, FormatVector{}, tagName) in DeviceDescriptor()
36 const String8 &tagName) : in DeviceDescriptor() argument
40 mTagName(tagName), mDeviceType(type), mEncodedFormats(encodedFormats) in DeviceDescriptor()
267 sp<DeviceDescriptor> DeviceVector::getDeviceFromTagName(const String8 &tagName) const in getDeviceFromTagName()
270 if (device->getTagName() == tagName) { in getDeviceFromTagName()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java282 String tagName = valueName[0]; in parseWifiConfigurationFromXmlInternal() local
283 if (tagName == null) { in parseWifiConfigurationFromXmlInternal()
288 if (!supportedTags.contains(tagName)) { in parseWifiConfigurationFromXmlInternal()
289 Log.w(TAG, "Unsupported tag + \"" + tagName + "\" found in <WifiConfiguration>" in parseWifiConfigurationFromXmlInternal()
296 switch (tagName) { in parseWifiConfigurationFromXmlInternal()
431 String tagName = valueName[0]; in parseIpConfigurationFromXml() local
432 if (tagName == null) { in parseIpConfigurationFromXml()
437 if (!supportedTags.contains(tagName)) { in parseIpConfigurationFromXml()
438 Log.w(TAG, "Unsupported tag + \"" + tagName + "\" found in <IpConfiguration>" in parseIpConfigurationFromXml()
447 switch (tagName) { in parseIpConfigurationFromXml()
/frameworks/base/core/java/android/security/net/config/
DXmlConfigSource.java144 String tagName = parser.getName(); in parsePinSet() local
145 if (tagName.equals("pin")) { in parsePinSet()
208 String tagName = parser.getName(); in parseTrustAnchors() local
209 if (tagName.equals("certificates")) { in parseTrustAnchors()
250 String tagName = parser.getName(); in parseConfigEntry() local
251 if ("domain".equals(tagName)) { in parseConfigEntry()
258 } else if ("trust-anchors".equals(tagName)) { in parseConfigEntry()
266 } else if ("pin-set".equals(tagName)) { in parseConfigEntry()
276 } else if ("domain-config".equals(tagName)) { in parseConfigEntry()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DSimpleInflaterTest.java52 protected StringBuilder onCreateItem(String tagName, AttributeSet attrs) { in onCreateItem() argument
54 return new StringBuilder(tagName).append("[").append(attribute).append("]"); in onCreateItem()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DDeviceDescriptor.h33 explicit DeviceDescriptor(audio_devices_t type, const String8 &tagName = String8(""));
35 const String8 &tagName = String8(""));
115 sp<DeviceDescriptor> getDeviceFromTagName(const String8 &tagName) const;
/frameworks/base/tools/stats_log_api_gen/
Dmain.cpp968 const char* tagName = attributionDecl.fields.back().name.c_str(); in write_java_helpers_for_module() local
972 fprintf(out, " buff[pos + 1] = (byte) (%s.length);\n", tagName); in write_java_helpers_for_module()
976 fprintf(out, " for (int i = 0; i < %s.length; i++) {\n", tagName); in write_java_helpers_for_module()
989 tagName, tagName, tagName); in write_java_helpers_for_module()
990 fprintf(out, " byte[] %sByte = %sStr.getBytes(UTF_8);\n", tagName, tagName); in write_java_helpers_for_module()
992 fprintf(out, " copyInt(buff, pos + 1, %sByte.length);\n", tagName); in write_java_helpers_for_module()
995 tagName, tagName); in write_java_helpers_for_module()
996 fprintf(out, " pos += STRING_TYPE_OVERHEAD + %sByte.length;\n", tagName); in write_java_helpers_for_module()
1129 const char* tagName = attributionDecl.fields.back().name.c_str(); in write_java_method_for_module() local
1135 fprintf(out, " if (%s == null) {\n", tagName); in write_java_method_for_module()
[all …]

1234