/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | HbpcdLookupDatabaseHelper.java | 156 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 …]
|
D | TelephonyProvider.java | 137 XmlResourceParser parser = r.getXml(com.android.internal.R.xml.apns); in getVersion() local 139 XmlUtils.beginDocument(parser, "apns"); in getVersion() 140 int publicversion = Integer.parseInt(parser.getAttributeValue(null, "version")); in getVersion() 149 parser.close(); in getVersion() 247 XmlResourceParser parser = r.getXml(com.android.internal.R.xml.apns); in initDatabase() local 250 XmlUtils.beginDocument(parser, "apns"); in initDatabase() 251 publicversion = Integer.parseInt(parser.getAttributeValue(null, "version")); in initDatabase() 252 loadApns(db, parser); in initDatabase() 256 parser.close(); in initDatabase() 388 private ContentValues getRow(XmlPullParser parser) { in getRow() argument [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardBuilder.java | 167 final XmlResourceParser parser = mResources.getXml(xmlId); in load() local 169 parseKeyboard(parser); in load() 177 parser.close(); in load() 215 private void parseKeyboard(final XmlPullParser parser) in parseKeyboard() argument 218 while (parser.getEventType() != XmlPullParser.END_DOCUMENT) { in parseKeyboard() 219 final int event = parser.next(); in parseKeyboard() 221 final String tag = parser.getName(); in parseKeyboard() 223 parseKeyboardAttributes(parser); in parseKeyboard() 225 parseKeyboardContent(parser, false); in parseKeyboard() 228 throw new XmlParseUtils.IllegalStartTag(parser, tag, TAG_KEYBOARD); in parseKeyboard() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 559 XmlPullParser parser; in read() local 561 parser = Xml.newPullParser(); in read() 562 parser.setInput(new BufferedInputStream(is), null); in read() 563 parser.nextTag(); in read() 564 mState = readFromXml(parser, mContext); in read() 589 private static State readFromXml(XmlPullParser parser, Context context) 591 State s = sStateXml.readFromXml(parser, 0, context); 618 public abstract T readFromXml(XmlPullParser parser, int version, Context context) 667 protected List<String> readStringList(XmlPullParser parser) 670 int length = Integer.parseInt(parser.getAttributeValue(null, LENGTH_ATTRIBUTE)); [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AutoInstallsLayout.java | 156 XmlResourceParser parser = res.getXml(layoutId); in parseLayout() local 157 beginDocument(parser, TAG_WORKSPACE); in parseLayout() 158 final int depth = parser.getDepth(); in parseLayout() 163 while (((type = parser.next()) != XmlPullParser.END_TAG || in parseLayout() 164 parser.getDepth() > depth) && type != XmlPullParser.END_DOCUMENT) { in parseLayout() 173 if (HOTSEAT_CONTAINER_NAME.equals(getAttributeValue(parser, ATTR_CONTAINER))) { in parseLayout() 177 long rank = Long.parseLong(getAttributeValue(parser, ATTR_RANK)); in parseLayout() 182 screenId = Long.parseLong(getAttributeValue(parser, ATTR_SCREEN)); in parseLayout() 184 mValues.put(Favorites.CELLX, getAttributeValue(parser, ATTR_X)); in parseLayout() 185 mValues.put(Favorites.CELLY, getAttributeValue(parser, ATTR_Y)); in parseLayout() [all …]
|
D | LauncherProvider.java | 1360 private static final void beginDocument(XmlPullParser parser, String firstElementName) in beginDocument() argument 1363 while ((type = parser.next()) != XmlPullParser.START_TAG in beginDocument() 1372 if (!parser.getName().equals(firstElementName)) { in beginDocument() 1373 throw new XmlPullParserException("Unexpected start tag: found " + parser.getName() + in beginDocument() 1426 XmlResourceParser parser = res.getXml(workspaceResourceId); in loadFavoritesRecursive() local 1427 beginDocument(parser, TAG_FAVORITES); in loadFavoritesRecursive() 1429 final int depth = parser.getDepth(); in loadFavoritesRecursive() 1432 while (((type = parser.next()) != XmlPullParser.END_TAG || in loadFavoritesRecursive() 1433 parser.getDepth() > depth) && type != XmlPullParser.END_DOCUMENT) { in loadFavoritesRecursive() 1440 final String name = parser.getName(); in loadFavoritesRecursive() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
D | EasAutoDiscover.java | 235 private static void parseServer(final XmlPullParser parser, final HostAuth hostAuth) in parseServer() argument 239 final int type = parser.next(); in parseServer() 240 if (type == XmlPullParser.END_TAG && parser.getName().equals(ELEMENT_NAME_SERVER)) { in parseServer() 243 final String name = parser.getName(); in parseServer() 245 if (parser.nextText().equals(ELEMENT_NAME_MOBILE_SYNC)) { in parseServer() 249 final String url = parser.nextText(); in parseServer() 266 private static void parseSettings(final XmlPullParser parser, final HostAuth hostAuth) in parseSettings() argument 269 final int type = parser.next(); in parseSettings() 270 if (type == XmlPullParser.END_TAG && parser.getName().equals(ELEMENT_NAME_SETTINGS)) { in parseSettings() 273 final String name = parser.getName(); in parseSettings() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
D | ProvisionParser.java | 396 XmlPullParser parser = factory.newPullParser(); in parseProvisionDocXml() local 397 parser.setInput(new ByteArrayInputStream(doc.getBytes()), "UTF-8"); in parseProvisionDocXml() 398 int type = parser.getEventType(); in parseProvisionDocXml() 400 type = parser.next(); in parseProvisionDocXml() 402 String tagName = parser.getName(); in parseProvisionDocXml() 404 parseWapProvisioningDoc(parser, policy); in parseProvisionDocXml() 418 private static boolean parseSecurityPolicy(XmlPullParser parser) in parseSecurityPolicy() argument 422 int type = parser.nextTag(); in parseSecurityPolicy() 423 if (type == XmlPullParser.END_TAG && parser.getName().equals("characteristic")) { in parseSecurityPolicy() 426 String tagName = parser.getName(); in parseSecurityPolicy() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
D | ExternalAccountType.java | 118 final XmlResourceParser parser; in ExternalAccountType() local 121 parser = loadContactsXml(context, packageName); in ExternalAccountType() 127 parser = injectedMetadata; in ExternalAccountType() 131 if (parser != null) { in ExternalAccountType() 132 inflate(context, parser); in ExternalAccountType() 152 if (needLineNumberInErrorLog && (parser != null)) { in ExternalAccountType() 154 error.append(parser.getLineNumber()); in ExternalAccountType() 162 if (parser != null) { in ExternalAccountType() 163 parser.close(); in ExternalAccountType() 201 final XmlResourceParser parser = serviceInfo.loadXmlMetaData(pm, in loadContactsXml() local [all …]
|
D | BaseAccountType.java | 660 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/apps/Email/tests/src/com/android/email/mail/store/ |
D | Pop3StoreUnitTests.java | 89 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardLayoutSet.java | 316 final XmlResourceParser parser = res.getXml(resId); in parseKeyboardLayoutSet() local 318 while (parser.getEventType() != XmlPullParser.END_DOCUMENT) { in parseKeyboardLayoutSet() 319 final int event = parser.next(); in parseKeyboardLayoutSet() 321 final String tag = parser.getName(); in parseKeyboardLayoutSet() 323 parseKeyboardLayoutSetContent(parser); in parseKeyboardLayoutSet() 325 throw new XmlParseUtils.IllegalStartTag(parser, tag, TAG_KEYBOARD_SET); in parseKeyboardLayoutSet() 330 parser.close(); in parseKeyboardLayoutSet() 334 private void parseKeyboardLayoutSetContent(final XmlPullParser parser) in parseKeyboardLayoutSetContent() argument 336 while (parser.getEventType() != XmlPullParser.END_DOCUMENT) { in parseKeyboardLayoutSetContent() 337 final int event = parser.next(); in parseKeyboardLayoutSetContent() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | XmlParseUtils.java | 33 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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | Keyboard.java | 194 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/Mms/src/com/android/mms/exif/ |
D | ExifReader.java | 48 ExifParser parser = ExifParser.parse(inputStream, mInterface); in read() local 49 ExifData exifData = new ExifData(parser.getByteOrder()); in read() 52 int event = parser.next(); in read() 56 exifData.addIfdData(new IfdData(parser.getCurrentIfd())); in read() 59 tag = parser.getTag(); in read() 61 parser.registerForTagValue(tag); in read() 67 tag = parser.getTag(); in read() 69 parser.readFullTagValue(tag); in read() 74 byte buf[] = new byte[parser.getCompressedImageSize()]; in read() 75 if (buf.length == parser.read(buf)) { in read() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ExifReader.java | 46 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/ |
D | ExifReader.java | 46 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/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
D | ExifReader.java | 46 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/TvSettings/Settings/src/com/android/tv/settings/ |
D | BrowseInfo.java | 80 void handleRequestedNode(Context context, XmlResourceParser parser, AttributeSet attrs) in handleRequestedNode() argument 117 XmlResourceParser parser = null; in read() local 119 parser = mContext.getResources().getXml(mXmlResource); in read() 120 AttributeSet attrs = Xml.asAttributeSet(parser); in read() 123 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in read() 128 String nodeName = parser.getName(); in read() 131 + "> tag; found" + nodeName + " at " + parser.getPositionDescription()); in read() 136 final int outerDepth = parser.getDepth(); in read() 137 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in read() 138 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in read() [all …]
|
/packages/apps/Mms/src/com/android/mms/ |
D | MmsConfig.java | 293 …public static final void beginDocument(XmlPullParser parser, String firstElementName) throws XmlPu… in beginDocument() argument 296 while ((type=parser.next()) != XmlPullParser.START_TAG in beginDocument() 305 if (!parser.getName().equals(firstElementName)) { in beginDocument() 306 throw new XmlPullParserException("Unexpected start tag: found " + parser.getName() + in beginDocument() 311 …public static final void nextElement(XmlPullParser parser) throws XmlPullParserException, IOExcept… in nextElement() argument 314 while ((type=parser.next()) != XmlPullParser.START_TAG in nextElement() 321 XmlResourceParser parser = context.getResources().getXml(R.xml.mms_config); in loadMmsSettings() local 324 beginDocument(parser, "mms_config"); in loadMmsSettings() 327 nextElement(parser); in loadMmsSettings() 328 String tag = parser.getName(); in loadMmsSettings() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
D | Builder.java | 26 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/ |
D | PhotoPriorityResolver.java | 115 final XmlResourceParser parser = si.loadXmlMetaData(pm, METADATA_CONTACTS); in resolvePhotoPriorityFromMetaData() local 116 if (parser != null) { in resolvePhotoPriorityFromMetaData() 117 return loadPhotoPriorityFromXml(mContext, parser); in resolvePhotoPriorityFromMetaData() 127 private int loadPhotoPriorityFromXml(Context context, XmlPullParser parser) { in loadPhotoPriorityFromXml() argument 131 while ((type = parser.next()) != XmlPullParser.START_TAG in loadPhotoPriorityFromXml() 140 final int depth = parser.getDepth(); in loadPhotoPriorityFromXml() 141 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth) in loadPhotoPriorityFromXml() 143 String name = parser.getName(); in loadPhotoPriorityFromXml() 145 int attributeCount = parser.getAttributeCount(); in loadPhotoPriorityFromXml() 147 String attr = parser.getAttributeName(i); in loadPhotoPriorityFromXml() [all …]
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | RegisteredComponentCache.java | 182 XmlResourceParser parser = null; in parseComponentInfo() local 184 parser = ai.loadXmlMetaData(pm, mMetaDataName); in parseComponentInfo() 185 if (parser == null) { in parseComponentInfo() 190 parser, info, components); in parseComponentInfo() local 194 if (parser != null) parser.close(); in parseComponentInfo() 198 void parseTechLists(Resources res, String packageName, XmlPullParser parser, in parseTechLists() argument 201 int eventType = parser.getEventType(); in parseTechLists() 203 eventType = parser.next(); in parseTechLists() 208 eventType = parser.next(); in parseTechLists() 210 tagName = parser.getName(); in parseTechLists() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsActivity.java | 969 XmlResourceParser parser = null; in loadCategoriesFromResource() local 971 parser = getResources().getXml(resid); in loadCategoriesFromResource() 972 AttributeSet attrs = Xml.asAttributeSet(parser); in loadCategoriesFromResource() 975 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT in loadCategoriesFromResource() 980 String nodeName = parser.getName(); in loadCategoriesFromResource() 984 + nodeName + " at " + parser.getPositionDescription()); in loadCategoriesFromResource() 989 final int outerDepth = parser.getDepth(); in loadCategoriesFromResource() 990 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT in loadCategoriesFromResource() 991 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in loadCategoriesFromResource() 996 nodeName = parser.getName(); in loadCategoriesFromResource() [all …]
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | ExternalSource.java | 101 final XmlResourceParser parser = info.serviceInfo.loadXmlMetaData(pm, in inflate() local 103 if (parser == null) continue; in inflate() 104 inflate(context, parser); in inflate() 118 protected void inflate(Context context, XmlPullParser parser) { in inflate() argument 119 final AttributeSet attrs = Xml.asAttributeSet(parser); in inflate() 123 while ((type = parser.next()) != XmlPullParser.START_TAG in inflate() 132 if (!InflateTags.CONTACTS_SOURCE.equals(parser.getName())) { in inflate() 138 final int depth = parser.getDepth(); in inflate() 139 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth) in inflate() 142 || !InflateTags.CONTACTS_DATA_KIND.equals(parser.getName())) { in inflate()
|