/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
ExifReader.java | 46 ExifParser parser = ExifParser.parse(inputStream, mInterface); local 47 ExifData exifData = new ExifData(parser.getByteOrder()); 50 int event = parser.next(); 54 exifData.addIfdData(new IfdData(parser.getCurrentIfd())); 57 tag = parser.getTag(); 59 parser.registerForTagValue(tag); 65 tag = parser.getTag(); 67 parser.readFullTagValue(tag); 72 byte buf[] = new byte[parser.getCompressedImageSize()]; 73 if (buf.length == parser.read(buf)) [all...] |
/packages/apps/Mms/src/com/android/mms/exif/ |
ExifReader.java | 46 ExifParser parser = ExifParser.parse(inputStream, mInterface); local 47 ExifData exifData = new ExifData(parser.getByteOrder()); 50 int event = parser.next(); 54 exifData.addIfdData(new IfdData(parser.getCurrentIfd())); 57 tag = parser.getTag(); 59 parser.registerForTagValue(tag); 65 tag = parser.getTag(); 67 parser.readFullTagValue(tag); 72 byte buf[] = new byte[parser.getCompressedImageSize()]; 73 if (buf.length == parser.read(buf)) [all...] |
/external/smack/src/org/jivesoftware/smackx/workgroup/packet/ |
TranscriptsProvider.java | 51 public IQ parseIQ(XmlPullParser parser) throws Exception {
52 String userID = parser.getAttributeValue("", "userID");
57 int eventType = parser.next();
59 if (parser.getName().equals("transcript")) {
60 summaries.add(parseSummary(parser));
64 if (parser.getName().equals("transcripts")) {
73 private Transcripts.TranscriptSummary parseSummary(XmlPullParser parser) throws IOException,
75 String sessionID = parser.getAttributeValue("", "sessionID");
82 int eventType = parser.next();
84 if (parser.getName().equals("joinTime")) { [all...] |
/external/chromium/sdch/open-vcdiff/src/ |
headerparser_test.cc | 35 VCDiffHeaderParserTest() : parser(NULL) { } 38 delete parser; 46 parser = new VCDiffHeaderParser( 49 EXPECT_EQ(encoded_buffer_.data(), parser->UnparsedData()); 54 const char* prior_position = parser->UnparsedData(); 55 EXPECT_TRUE(parser->ParseByte(&decoded_byte)); 57 EXPECT_EQ(RESULT_SUCCESS, parser->GetResult()); 59 parser->UnparsedData()); 64 const char* prior_position = parser->UnparsedData(); 65 EXPECT_TRUE(parser->ParseInt32("decoded int32", &decoded_integer)) 93 VCDiffHeaderParser* parser; member in class:open_vcdiff::__anon2972::VCDiffHeaderParserTest [all...] |
/external/chromium_org/sdch/open-vcdiff/src/ |
headerparser_test.cc | 35 VCDiffHeaderParserTest() : parser(NULL) { } 38 delete parser; 46 parser = new VCDiffHeaderParser( 49 EXPECT_EQ(encoded_buffer_.data(), parser->UnparsedData()); 54 const char* prior_position = parser->UnparsedData(); 55 EXPECT_TRUE(parser->ParseByte(&decoded_byte)); 57 EXPECT_EQ(RESULT_SUCCESS, parser->GetResult()); 59 parser->UnparsedData()); 64 const char* prior_position = parser->UnparsedData(); 65 EXPECT_TRUE(parser->ParseInt32("decoded int32", &decoded_integer)) 93 VCDiffHeaderParser* parser; member in class:open_vcdiff::__anon10351::VCDiffHeaderParserTest [all...] |
/external/open-vcdiff/src/ |
headerparser_test.cc | 35 VCDiffHeaderParserTest() : parser(NULL) { } 38 delete parser; 46 parser = new VCDiffHeaderParser( 49 EXPECT_EQ(encoded_buffer_.data(), parser->UnparsedData()); 54 const char* prior_position = parser->UnparsedData(); 55 EXPECT_TRUE(parser->ParseByte(&decoded_byte)); 57 EXPECT_EQ(RESULT_SUCCESS, parser->GetResult()); 59 parser->UnparsedData()); 64 const char* prior_position = parser->UnparsedData(); 65 EXPECT_TRUE(parser->ParseInt32("decoded int32", &decoded_integer)) 93 VCDiffHeaderParser* parser; member in class:open_vcdiff::__anon23957::VCDiffHeaderParserTest [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/ |
UiElementPullParserTest.java | 167 // wrap the parser around the ui element node, and start parsing 168 UiElementPullParser parser = new UiElementPullParser( local 176 assertEquals(XmlPullParser.START_DOCUMENT, parser.getEventType()); 179 assertEquals(XmlPullParser.START_TAG, parser.next()); 180 assertEquals("LinearLayout", parser.getName()); 181 assertEquals(1, parser.getAttributeCount()); 182 assertEquals("orientation", parser.getAttributeName(0)); 183 assertEquals(SdkConstants.NS_RESOURCES, parser.getAttributeNamespace(0)); 184 assertEquals("android", parser.getAttributePrefix(0)); 185 assertEquals("vertical", parser.getAttributeValue(0)) [all...] |
/external/smack/src/org/jivesoftware/smackx/provider/ |
AdHocCommandDataProvider.java | 43 public IQ parseIQ(XmlPullParser parser) throws Exception {
51 adHocCommandData.setSessionID(parser.getAttributeValue("", "sessionid"));
52 adHocCommandData.setNode(parser.getAttributeValue("", "node"));
55 String status = parser.getAttributeValue("", "status");
67 String action = parser.getAttributeValue("", "action");
78 eventType = parser.next();
79 elementName = parser.getName();
80 namespace = parser.getNamespace();
82 if (parser.getName().equals("actions")) {
83 String execute = parser.getAttributeValue("", "execute"); [all...] |
DiscoverItemsProvider.java | 35 public IQ parseIQ(XmlPullParser parser) throws Exception { 43 discoverItems.setNode(parser.getAttributeValue("", "node")); 45 int eventType = parser.next(); 47 if (eventType == XmlPullParser.START_TAG && "item".equals(parser.getName())) { 49 jid = parser.getAttributeValue("", "jid"); 50 name = parser.getAttributeValue("", "name"); 51 node = parser.getAttributeValue("", "node"); 52 action = parser.getAttributeValue("", "action"); 54 else if (eventType == XmlPullParser.END_TAG && "item".equals(parser.getName())) { 62 else if (eventType == XmlPullParser.END_TAG && "query".equals(parser.getName())) [all...] |
MultipleAddressesProvider.java | 43 public PacketExtension parseExtension(XmlPullParser parser) throws Exception { 47 int eventType = parser.next(); 49 if (parser.getName().equals("address")) { 50 String type = parser.getAttributeValue("", "type"); 51 String jid = parser.getAttributeValue("", "jid"); 52 String node = parser.getAttributeValue("", "node"); 53 String desc = parser.getAttributeValue("", "desc"); 54 boolean delivered = "true".equals(parser.getAttributeValue("", "delivered")); 55 String uri = parser.getAttributeValue("", "uri"); 60 if (parser.getName().equals(multipleAddresses.getElementName())) [all...] |
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
AbstractXmlPullParser.java | 44 XmlPullParser parser = fact.newPullParser(); local 45 parser.setInput (xmlReader); 46 parse(parser); 54 abstract void parse(XmlPullParser parser) throws XmlPullParserException, IOException; 59 * @param parser the {@link XmlPullParser} 63 protected int parseIntAttr(XmlPullParser parser, String name) { 65 String value = parser.getAttributeValue(null, name); 78 protected boolean parseBooleanAttr(XmlPullParser parser, String name) { 79 String stringValue = parser.getAttributeValue(null, name); 87 * @param parser the XmlPullParse [all...] |
TestSummaryXml.java | 103 void parse(XmlPullParser parser) throws XmlPullParserException, IOException { 104 int eventType = parser.getEventType(); 106 if (eventType == XmlPullParser.START_TAG && parser.getName().equals( 108 mPlan = getAttribute(parser, CtsXmlResultReporter.PLAN_ATTR); 109 mStartTime = getAttribute(parser, CtsXmlResultReporter.STARTTIME_ATTR); 110 } else if (eventType == XmlPullParser.START_TAG && parser.getName().equals( 112 mDeviceSerials = getAttribute(parser, DeviceInfoConstants.SERIAL_NUMBER); 113 } else if (eventType == XmlPullParser.START_TAG && parser.getName().equals( 115 mNumFailed = parseIntAttr(parser, TestResults.FAILED_ATTR) + 116 parseIntAttr(parser, TestResults.TIMEOUT_ATTR) [all...] |
/external/antlr/antlr-3.4/runtime/Python/tests/ |
t030specialStates.py | 15 parser = self.getParser(tStream) 16 events = parser.r() 23 parser = self.getParser(tStream) 24 events = parser.r() 31 parser = self.getParser(tStream) 32 parser.cond = False 33 events = parser.r() 40 parser = self.getParser(tStream) 41 parser.cond = False 42 events = parser.r( [all...] |
t021hoist.py | 17 parser = self.getParser(tStream) 18 parser.enableEnum = True 19 enumIs = parser.stat() 28 parser = self.getParser(tStream) 29 parser.enableEnum = False 30 enumIs = parser.stat()
|
/external/chromium_org/build/android/gyp/ |
dex.py | 34 parser = optparse.OptionParser() 35 parser.add_option('--android-sdk-tools', 37 parser.add_option('--dex-path', help='Dex output path.') 38 parser.add_option('--configuration-name', 40 parser.add_option('--proguard-enabled', 42 parser.add_option('--proguard-enabled-input-path', 45 parser.add_option('--no-locals', 47 parser.add_option('--stamp', help='Path to touch on success.') 50 parser.add_option('--ignore', help='Ignored.') 52 options, paths = parser.parse_args( [all...] |
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/ |
TestResultsTest.java | 55 TestResults parser = new TestResults(); local 56 parser.parse(new StringReader("<Empty/>")); 57 assertEquals(0, parser.getPackages().size()); 64 TestResults parser = new TestResults(); local 65 parser.parse(new StringReader(TEST_PACKAGE_FULL)); 66 assertEquals(1, parser.getPackages().size()); 67 TestPackageResult pkg = parser.getPackages().iterator().next(); 77 TestResults parser = new TestResults(); local 80 parser.parse(new StringReader(RESULT_START + TEST_PACKAGE_START + RESULT_END)); 91 TestResults parser = new TestResults() local [all...] |
/external/tagsoup/src/org/ccil/cowan/tagsoup/jaxp/ |
SAXParserImpl.java | 22 import org.ccil.cowan.tagsoup.Parser; 34 final org.ccil.cowan.tagsoup.Parser parser; field in class:SAXParserImpl 39 parser = new org.ccil.cowan.tagsoup.Parser(); 45 SAXParserImpl parser = new SAXParserImpl(); local 50 parser.setFeature((String) entry.getKey(), ((Boolean) entry.getValue()).booleanValue()); 53 return parser; 62 public org.xml.sax.Parser getParser() 65 return new SAX1ParserAdapter(parser); [all...] |
/external/smack/src/org/jivesoftware/smack/util/ |
PacketParserUtils.java | 69 * @param parser the XML parser, positioned at the start of a message packet. 73 public static Packet parseMessage(XmlPullParser parser) throws Exception { 75 String id = parser.getAttributeValue("", "id"); 77 message.setTo(parser.getAttributeValue("", "to")); 78 message.setFrom(parser.getAttributeValue("", "from")); 79 message.setType(Message.Type.fromString(parser.getAttributeValue("", "type"))); 80 String language = getLanguageAttribute(parser); 99 int eventType = parser.next(); 101 String elementName = parser.getName() 489 parser)); local [all...] |
/external/smack/src/org/jivesoftware/smack/ |
SmackConfiguration.java | 91 XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser(); typedefs 92 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true); 93 parser.setInput(systemStream, "UTF-8"); 94 int eventType = parser.getEventType(); 97 if (parser.getName().equals("className")) { 99 parseClassToLoad(parser); typedefs 101 else if (parser.getName().equals("packetReplyTimeout")) { 102 packetReplyTimeout = parseIntProperty(parser, packetReplyTimeout); 104 else if (parser.getName().equals("mechName")) { 105 defaultMechs.add(parser.nextText()) [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/ |
nuances.rb | 29 parser = EmptyAlt::Parser.new lexer 30 events = parser.r 43 @parser::members { 59 parser = Subrule::Parser.new lexer 60 events = parser.a 96 parser = SpecialStates::Parser.new lexer 97 parser. [all...] |
/frameworks/base/core/java/android/app/ |
AliasActivity.java | 56 XmlResourceParser parser = null; local 60 parser = ai.loadXmlMetaData(getPackageManager(), 62 if (parser == null) { 67 Intent intent = parseAlias(parser); 83 if (parser != null) parser.close(); 87 private Intent parseAlias(XmlPullParser parser) 89 AttributeSet attrs = Xml.asAttributeSet(parser); 94 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT 98 String nodeName = parser.getName() [all...] |
/external/chromium_org/tools/cr/cr/commands/ |
install.py | 25 parser = super(InstallCommand, self).AddArguments(subparsers) 26 cr.Builder.AddArguments(self, parser) 27 cr.Installer.AddArguments(self, parser) 28 cr.Target.AddArguments(self, parser, allow_multiple=True) 29 self.ConsumeArgs(parser, 'the installer') 30 return parser
|
/frameworks/base/services/java/com/android/server/firewall/ |
FilterList.java | 29 public FilterList readFromXml(XmlPullParser parser) throws IOException, XmlPullParserException { 30 int outerDepth = parser.getDepth(); 31 while (XmlUtils.nextElementWithin(parser, outerDepth)) { 32 readChild(parser); 37 protected void readChild(XmlPullParser parser) throws IOException, XmlPullParserException { 38 Filter filter = IntentFirewall.parseFilter(parser);
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
XmlPullParserException.java | 7 * This exception is thrown to signal XML Pull Parser related faults. 36 public XmlPullParserException(String msg, XmlPullParser parser, Throwable chain) { 38 + (parser == null ? "" : "(position:"+parser.getPositionDescription()+") ") 41 if (parser != null) { 42 this.row = parser.getLineNumber(); 43 this.column = parser.getColumnNumber();
|
/external/expat/tests/ |
runtests.c | 31 static XML_Parser parser; variable 37 parser = XML_ParserCreate(NULL); 38 if (parser == NULL) 39 fail("Parser not created."); 45 if (parser != NULL) 46 XML_ParserFree(parser); 49 /* Generate a failure using the parser state to create an error message; 50 this should be used when the parser reports an error we weren't 54 _xml_failure(XML_Parser parser, const char *file, int line) 57 enum XML_Error err = XML_GetErrorCode(parser); [all...] |