Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 225) sorted by relevance

123456789

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DHbpcdLookupDatabaseHelper.java156 XmlResourceParser parser = r.getXml(R.xml.hbpcd_lookup_tables); in initDatabase() local
158 if (parser == null) { in initDatabase()
163 XmlUtils.beginDocument(parser, "hbpcd_info"); in initDatabase()
165 int eventType = parser.getEventType(); in initDatabase()
166 String tagName = parser.getName(); in initDatabase()
171 String tableName = parser.getAttributeValue(null, "name"); in initDatabase()
172 loadTable(db, parser, tableName); in initDatabase()
174 parser.next(); in initDatabase()
175 eventType = parser.getEventType(); in initDatabase()
176 tagName = parser.getName(); in initDatabase()
[all …]
DTelephonyProvider.java199 XmlResourceParser parser = r.getXml(com.android.internal.R.xml.apns); in getVersion() local
201 XmlUtils.beginDocument(parser, "apns"); in getVersion()
202 int publicversion = Integer.parseInt(parser.getAttributeValue(null, "version")); in getVersion()
211 parser.close(); in getVersion()
391 XmlResourceParser parser = r.getXml(com.android.internal.R.xml.apns); in initDatabase() local
394 XmlUtils.beginDocument(parser, "apns"); in initDatabase()
395 publicversion = Integer.parseInt(parser.getAttributeValue(null, "version")); in initDatabase()
396 loadApns(db, parser); in initDatabase()
400 parser.close(); in initDatabase()
768 private void deleteMatchingApns(SQLiteDatabase db, XmlPullParser parser) { in deleteMatchingApns() argument
[all …]
/packages/apps/TV/src/com/android/tv/parental/
DContentRatingsParser.java77 try (XmlResourceParser parser = mContext.getPackageManager() in parse() argument
79 if (parser == null) { in parse()
82 ratingSystems = parse(parser, packageName, !info.isSystemDefined()); in parse()
93 private List<ContentRatingSystem> parse(XmlResourceParser parser, String domain, in parse() argument
111 while (parser.next() == XmlPullParser.START_DOCUMENT) {} in parse()
113 int eventType = parser.getEventType(); in parse()
115 assertEquals(parser.getName(), TAG_RATING_SYSTEM_DEFINITIONS, in parse()
119 for (int i = 0; i < parser.getAttributeCount(); i++) { in parse()
120 String attr = parser.getAttributeName(i); in parse()
123 mXmlVersionCode = parser.getAttributeValue(i); in parse()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardBuilder.java170 final XmlResourceParser parser = mResources.getXml(xmlId); in load() local
172 parseKeyboard(parser); in load()
180 parser.close(); in load()
219 private void parseKeyboard(final XmlPullParser parser) in parseKeyboard() argument
222 while (parser.getEventType() != XmlPullParser.END_DOCUMENT) { in parseKeyboard()
223 final int event = parser.next(); in parseKeyboard()
225 final String tag = parser.getName(); in parseKeyboard()
227 parseKeyboardAttributes(parser); in parseKeyboard()
229 parseKeyboardContent(parser, false); in parseKeyboard()
232 throw new XmlParseUtils.IllegalStartTag(parser, tag, TAG_KEYBOARD); in parseKeyboard()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java983 XmlPullParser parser; in read() local
985 parser = Xml.newPullParser(); in read()
986 parser.setInput(new BufferedInputStream(is), null); in read()
987 parser.nextTag(); in read()
988 mState = readFromXml(parser, mContext); in read()
1027 private static State readFromXml(XmlPullParser parser, Context context)
1029 State s = sStateXml.readFromXml(parser, 0, context);
1061 public abstract T readFromXml(XmlPullParser parser, int version, Context context)
1165 protected List<String> readStringList(XmlPullParser parser)
1168 int length = Integer.parseInt(parser.getAttributeValue(null, ATTRIBUTE_LENGTH));
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DAutoInstallsLayout.java208 XmlResourceParser parser = mSourceRes.getXml(layoutId); in parseLayout() local
209 beginDocument(parser, mRootTag); in parseLayout()
210 final int depth = parser.getDepth(); in parseLayout()
215 while (((type = parser.next()) != XmlPullParser.END_TAG || in parseLayout()
216 parser.getDepth() > depth) && type != XmlPullParser.END_DOCUMENT) { in parseLayout()
220 count += parseAndAddNode(parser, tagParserMap, screenIds); in parseLayout()
229 protected void parseContainerAndScreen(XmlResourceParser parser, long[] out) { in parseContainerAndScreen() argument
230 if (HOTSEAT_CONTAINER_NAME.equals(getAttributeValue(parser, ATTR_CONTAINER))) { in parseContainerAndScreen()
233 long rank = Long.parseLong(getAttributeValue(parser, ATTR_RANK)); in parseContainerAndScreen()
237 out[1] = Long.parseLong(getAttributeValue(parser, ATTR_SCREEN)); in parseContainerAndScreen()
[all …]
DDefaultLayoutParser.java80 protected void parseContainerAndScreen(XmlResourceParser parser, long[] out) { in parseContainerAndScreen() argument
82 String strContainer = getAttributeValue(parser, ATTR_CONTAINER); in parseContainerAndScreen()
86 out[1] = Long.parseLong(getAttributeValue(parser, ATTR_SCREEN)); in parseContainerAndScreen()
95 protected long invalidPackageOrClass(XmlResourceParser parser) { in invalidPackageOrClass() argument
96 final String uri = getAttributeValue(parser, ATTR_URI); in invalidPackageOrClass()
189 protected Intent parseIntent(XmlResourceParser parser) { in parseIntent() argument
192 uri = getAttributeValue(parser, ATTR_URI); in parseIntent()
209 public long parseAndAdd(XmlResourceParser parser) throws XmlPullParserException, in parseAndAdd() argument
211 final int groupDepth = parser.getDepth(); in parseAndAdd()
214 while ((type = parser.next()) != XmlPullParser.END_TAG || in parseAndAdd()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DIntentStore.java158 XmlPullParser parser = Xml.newPullParser(); in load() local
159 parser.setInput(stream, null); in load()
160 Intent result = parseIntent(parser); in load()
170 private Intent parseIntent(XmlPullParser parser) throws XmlPullParserException, IOException { in parseIntent() argument
172 int outerDepth = parser.getDepth(); in parseIntent()
174 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in parseIntent()
175 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in parseIntent()
179 String tag = parser.getName(); in parseIntent()
181 intent.setAction(parser.getAttributeValue(null, ATTR_VALUE)); in parseIntent()
184 parser.getAttributeValue(null, ATTR_VALUE))); in parseIntent()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardLayoutSet.java345 final XmlResourceParser parser = resources.getXml(xmlId); in readScriptId() local
347 while (parser.getEventType() != XmlPullParser.END_DOCUMENT) { in readScriptId()
350 parser.next(); in readScriptId()
351 final String tag = parser.getName(); in readScriptId()
353 return readScriptIdFromTagFeature(resources, parser); in readScriptId()
359 parser.close(); in readScriptId()
366 final XmlPullParser parser) throws IOException, XmlPullParserException { in readScriptIdFromTagFeature() argument
367 final TypedArray featureAttr = resources.obtainAttributes(Xml.asAttributeSet(parser), in readScriptIdFromTagFeature()
373 XmlParseUtils.checkEndTag(TAG_FEATURE, parser); in readScriptIdFromTagFeature()
401 final XmlResourceParser parser = res.getXml(resId); in parseKeyboardLayoutSet() local
[all …]
/packages/apps/CarrierConfig/tests/src/com/android/carrierconfig/
DCarrierConfigTest.java32 public void check(XmlPullParser parser) throws XmlPullParserException, IOException { in testAllFilesParse()
33 PersistableBundle b = DefaultCarrierConfigService.readConfigFromXml(parser, in testAllFilesParse()
46 public void check(XmlPullParser parser) throws XmlPullParserException, IOException { in testFilterValidAttributes()
48 while (((event = parser.next()) != XmlPullParser.END_DOCUMENT)) { in testFilterValidAttributes()
50 && "carrier_config".equals(parser.getName())) { in testFilterValidAttributes()
51 for (int i = 0; i < parser.getAttributeCount(); ++i) { in testFilterValidAttributes()
52 String attribute = parser.getAttributeName(i); in testFilterValidAttributes()
63 + "' at " + parser.getPositionDescription()); in testFilterValidAttributes()
80 public void check(XmlPullParser parser) throws XmlPullParserException, IOException { in testVariableNames()
82 while (((event = parser.next()) != XmlPullParser.END_DOCUMENT)) { in testVariableNames()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
DExternalAccountType.java121 final XmlResourceParser parser; in ExternalAccountType() local
123 parser = loadContactsXml(context, packageName); in ExternalAccountType()
125 parser = injectedMetadata; in ExternalAccountType()
129 if (parser != null) { in ExternalAccountType()
130 inflate(context, parser); in ExternalAccountType()
150 if (needLineNumberInErrorLog && (parser != null)) { in ExternalAccountType()
152 error.append(parser.getLineNumber()); in ExternalAccountType()
160 if (parser != null) { in ExternalAccountType()
161 parser.close(); in ExternalAccountType()
203 final XmlResourceParser parser = serviceInfo.loadXmlMetaData( in loadContactsXml() local
[all …]
DBaseAccountType.java660 protected final void parseEditSchema(Context context, XmlPullParser parser, AttributeSet attrs) in parseEditSchema() argument
663 final int outerDepth = parser.getDepth(); in parseEditSchema()
665 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in parseEditSchema()
666 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in parseEditSchema()
667 final int depth = parser.getDepth(); in parseEditSchema()
672 final String tag = parser.getName(); in parseEditSchema()
675 for (DataKind kind : KindParser.INSTANCE.parseDataKindTag(context, parser, attrs)) { in parseEditSchema()
731 public List<DataKind> parseDataKindTag(Context context, XmlPullParser parser, in parseDataKindTag() argument
737 return builder.parseDataKind(context, parser, attrs); in parseDataKindTag()
751 public abstract List<DataKind> parseDataKind(Context context, XmlPullParser parser, in parseDataKind() argument
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DXmlParseUtils.java33 public ParseException(final String msg, final XmlPullParser parser) { in ParseException() argument
34 super(msg + " at " + parser.getPositionDescription()); in ParseException()
40 public IllegalStartTag(final XmlPullParser parser, final String tag, final String parent) { in IllegalStartTag() argument
41 super("Illegal start tag " + tag + " in " + parent, parser); in IllegalStartTag()
47 public IllegalEndTag(final XmlPullParser parser, final String tag, final String parent) { in IllegalEndTag() argument
48 super("Illegal end tag " + tag + " in " + parent, parser); in IllegalEndTag()
54 public IllegalAttribute(final XmlPullParser parser, final String tag, in IllegalAttribute() argument
56 super("Tag " + tag + " has illegal attribute " + attribute, parser); in IllegalAttribute()
62 public NonEmptyTag(final XmlPullParser parser, final String tag) { in NonEmptyTag() argument
63 super(tag + " must be empty tag", parser); in NonEmptyTag()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/
DPop3StoreUnitTests.java89 Pop3Store.Pop3Folder.UidlParser parser = mFolder.new UidlParser(); in testUIDLParserMulti() local
92 parser.parseMultiLine("101 " + UNIQUE_ID_1); in testUIDLParserMulti()
93 assertEquals(101, parser.mMessageNumber); in testUIDLParserMulti()
94 assertEquals(UNIQUE_ID_1, parser.mUniqueId); in testUIDLParserMulti()
95 assertFalse(parser.mEndOfMessage); in testUIDLParserMulti()
96 assertFalse(parser.mErr); in testUIDLParserMulti()
99 parser.parseMultiLine("."); in testUIDLParserMulti()
100 assertTrue(parser.mEndOfMessage); in testUIDLParserMulti()
101 assertFalse(parser.mErr); in testUIDLParserMulti()
110 Pop3Store.Pop3Folder.UidlParser parser = mFolder.new UidlParser(); in testUIDLParserSingle() local
[all …]
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/
DExifReader.java46 ExifParser parser = ExifParser.parse(inputStream, mInterface); in read() local
47 ExifData exifData = new ExifData(parser.getByteOrder()); in read()
50 int event = parser.next(); in read()
54 exifData.addIfdData(new IfdData(parser.getCurrentIfd())); in read()
57 tag = parser.getTag(); in read()
59 parser.registerForTagValue(tag); in read()
65 tag = parser.getTag(); in read()
67 parser.readFullTagValue(tag); in read()
72 byte buf[] = new byte[parser.getCompressedImageSize()]; in read()
73 if (buf.length == parser.read(buf)) { in read()
[all …]
/packages/apps/Camera2/src/com/android/camera/exif/
DExifReader.java46 ExifParser parser = ExifParser.parse(inputStream, mInterface); in read() local
47 ExifData exifData = new ExifData(parser.getByteOrder()); in read()
50 int event = parser.next(); in read()
54 exifData.addIfdData(new IfdData(parser.getCurrentIfd())); in read()
57 tag = parser.getTag(); in read()
59 parser.registerForTagValue(tag); in read()
65 tag = parser.getTag(); in read()
67 parser.readFullTagValue(tag); in read()
72 byte buf[] = new byte[parser.getCompressedImageSize()]; in read()
73 if (buf.length == parser.read(buf)) { in read()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifReader.java46 ExifParser parser = ExifParser.parse(inputStream, mInterface); in read() local
47 ExifData exifData = new ExifData(parser.getByteOrder()); in read()
50 int event = parser.next(); in read()
54 exifData.addIfdData(new IfdData(parser.getCurrentIfd())); in read()
57 tag = parser.getTag(); in read()
59 parser.registerForTagValue(tag); in read()
65 tag = parser.getTag(); in read()
67 parser.readFullTagValue(tag); in read()
72 byte buf[] = new byte[parser.getCompressedImageSize()]; in read()
73 if (buf.length == parser.read(buf)) { in read()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifReader.java47 ExifParser parser = ExifParser.parse(inputStream, mInterface); in read() local
48 ExifData exifData = new ExifData(parser.getByteOrder()); in read()
51 int event = parser.next(); in read()
55 exifData.addIfdData(new IfdData(parser.getCurrentIfd())); in read()
58 tag = parser.getTag(); in read()
60 parser.registerForTagValue(tag); in read()
66 tag = parser.getTag(); in read()
68 parser.readFullTagValue(tag); in read()
73 byte buf[] = new byte[parser.getCompressedImageSize()]; in read()
74 if (buf.length == parser.read(buf)) { in read()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DKeyboard.java194 public Row(Resources res, Keyboard parent, XmlResourceParser parser) { in Row() argument
196 TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parser), in Row()
211 a = res.obtainAttributes(Xml.asAttributeSet(parser), in Row()
323 public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) { in Key() argument
329 TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parser), in Key()
342 a = res.obtainAttributes(Xml.asAttributeSet(parser), in Key()
385 a = res.obtainAttributes(Xml.asAttributeSet(parser), R.styleable.WnnKeyboard_Key); in Key()
747 protected Row createRowFromXml(Resources res, XmlResourceParser parser) { in createRowFromXml() argument
748 return new Row(res, this, parser); in createRowFromXml()
752 XmlResourceParser parser) { in createKeyFromXml() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapFolderElement.java310 XmlPullParser parser = Xml.newPullParser(); in appendSubfolders() local
312 parser.setInput(xmlDocument, "UTF-8"); in appendSubfolders()
315 while((type=parser.next()) != XmlPullParser.END_TAG in appendSubfolders()
318 if (parser.getEventType() != XmlPullParser.START_TAG) { in appendSubfolders()
322 String name = parser.getName(); in appendSubfolders()
325 XmlUtils.skipCurrentTag(parser); in appendSubfolders()
327 readFolders(parser); in appendSubfolders()
340 public void readFolders(XmlPullParser parser) in readFolders() argument
344 while((type=parser.next()) != XmlPullParser.END_TAG in readFolders()
347 if (parser.getEventType() != XmlPullParser.START_TAG) { in readFolders()
[all …]
DBluetoothMapConvoListing.java144 XmlPullParser parser = Xml.newPullParser(); in appendFromXml() local
146 parser.setInput(xmlDocument, "UTF-8"); in appendFromXml()
149 while((type=parser.next()) != XmlPullParser.END_TAG in appendFromXml()
152 if (parser.getEventType() != XmlPullParser.START_TAG) { in appendFromXml()
156 String name = parser.getName(); in appendFromXml()
159 XmlUtils.skipCurrentTag(parser); in appendFromXml()
161 readConversations(parser); in appendFromXml()
175 private void readConversations(XmlPullParser parser) in readConversations() argument
179 while((type=parser.next()) != XmlPullParser.END_TAG in readConversations()
182 if (parser.getEventType() != XmlPullParser.START_TAG) { in readConversations()
[all …]
/packages/apps/CarrierConfig/src/com/android/carrierconfig/
DDefaultCarrierConfigService.java70 XmlPullParser parser = mFactory.newPullParser(); in onLoadConfig() local
72 parser.setInput(getApplicationContext().getAssets().open(fileName), "utf-8"); in onLoadConfig()
73 config = readConfigFromXml(parser, id); in onLoadConfig()
119 static PersistableBundle readConfigFromXml(XmlPullParser parser, CarrierIdentifier id) in readConfigFromXml() argument
123 if (parser == null) { in readConfigFromXml()
130 while (((event = parser.next()) != XmlPullParser.END_DOCUMENT)) { in readConfigFromXml()
131 if (event == XmlPullParser.START_TAG && "carrier_config".equals(parser.getName())) { in readConfigFromXml()
133 if (!checkFilters(parser, id)) { in readConfigFromXml()
136 PersistableBundle configFragment = PersistableBundle.restoreFromXml(parser); in readConfigFromXml()
165 static boolean checkFilters(XmlPullParser parser, CarrierIdentifier id) { in checkFilters() argument
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/
DBuilder.java26 import org.apache.james.mime4j.field.address.parser.ASTaddr_spec;
27 import org.apache.james.mime4j.field.address.parser.ASTaddress;
28 import org.apache.james.mime4j.field.address.parser.ASTaddress_list;
29 import org.apache.james.mime4j.field.address.parser.ASTangle_addr;
30 import org.apache.james.mime4j.field.address.parser.ASTdomain;
31 import org.apache.james.mime4j.field.address.parser.ASTgroup_body;
32 import org.apache.james.mime4j.field.address.parser.ASTlocal_part;
33 import org.apache.james.mime4j.field.address.parser.ASTmailbox;
34 import org.apache.james.mime4j.field.address.parser.ASTname_addr;
35 import org.apache.james.mime4j.field.address.parser.ASTphrase;
[all …]
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/
DBuilder.java26 import org.apache.james.mime4j.field.address.parser.ASTaddr_spec;
27 import org.apache.james.mime4j.field.address.parser.ASTaddress;
28 import org.apache.james.mime4j.field.address.parser.ASTaddress_list;
29 import org.apache.james.mime4j.field.address.parser.ASTangle_addr;
30 import org.apache.james.mime4j.field.address.parser.ASTdomain;
31 import org.apache.james.mime4j.field.address.parser.ASTgroup_body;
32 import org.apache.james.mime4j.field.address.parser.ASTlocal_part;
33 import org.apache.james.mime4j.field.address.parser.ASTmailbox;
34 import org.apache.james.mime4j.field.address.parser.ASTname_addr;
35 import org.apache.james.mime4j.field.address.parser.ASTphrase;
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoPriorityResolver.java134 final XmlResourceParser parser = serviceInfo.loadXmlMetaData( in resolvePhotoPriorityFromMetaData() local
136 if (parser != null) { in resolvePhotoPriorityFromMetaData()
137 return loadPhotoPriorityFromXml(mContext, parser); in resolvePhotoPriorityFromMetaData()
145 private int loadPhotoPriorityFromXml(Context context, XmlPullParser parser) { in loadPhotoPriorityFromXml() argument
149 while ((type = parser.next()) != XmlPullParser.START_TAG in loadPhotoPriorityFromXml()
158 final int depth = parser.getDepth(); in loadPhotoPriorityFromXml()
159 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth) in loadPhotoPriorityFromXml()
161 String name = parser.getName(); in loadPhotoPriorityFromXml()
163 int attributeCount = parser.getAttributeCount(); in loadPhotoPriorityFromXml()
165 String attr = parser.getAttributeName(i); in loadPhotoPriorityFromXml()
[all …]

123456789