HomeSort by relevance Sort by last modified time
    Searched refs:parser (Results 76 - 100 of 4871) sorted by null

1 2 34 5 6 7 8 91011>>

  /development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/net/
FeedParser.java 61 XmlPullParser parser = Xml.newPullParser(); local
62 parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);
63 parser.setInput(in, null);
64 parser.nextTag();
65 return readFeed(parser);
74 * @param parser Incoming XMl
79 private List<Entry> readFeed(XmlPullParser parser)
90 parser.require(XmlPullParser.START_TAG, ns, "feed");
91 while (parser.next() != XmlPullParser.END_TAG) {
92 if (parser.getEventType() != XmlPullParser.START_TAG)
    [all...]
  /packages/providers/TelephonyProvider/src/com/android/providers/telephony/
HbpcdLookupDatabaseHelper.java 156 XmlResourceParser parser = r.getXml(R.xml.hbpcd_lookup_tables); local
158 if (parser == null) {
163 XmlUtils.beginDocument(parser, "hbpcd_info");
165 int eventType = parser.getEventType();
166 String tagName = parser.getName();
171 String tableName = parser.getAttributeValue(null, "name");
172 loadTable(db, parser, tableName);
174 parser.next();
175 eventType = parser.getEventType();
176 tagName = parser.getName()
    [all...]
  /external/pdfium/core/fpdfapi/parser/
cpdf_parser_unittest.cpp 8 #include "core/fpdfapi/parser/cpdf_parser.h"
9 #include "core/fpdfapi/parser/cpdf_syntax_parser.h"
84 CPDF_TestParser parser; local
88 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file;
90 ASSERT_TRUE(parser.RebuildCrossRef());
94 EXPECT_EQ(offsets[i], parser.m_ObjectInfo[i].pos);
96 EXPECT_EQ(versions[i], parser.m_ObjectInfo[i].gennum);
100 CPDF_TestParser parser; local
104 ASSERT_TRUE(parser.InitTestFromFile(test_file.c_str())) << test_file;
106 ASSERT_FALSE(parser.RebuildCrossRef())
121 CPDF_TestParser parser; local
146 CPDF_TestParser parser; local
172 CPDF_TestParser parser; local
197 CPDF_TestParser parser; local
    [all...]
  /external/vogar/src/vogar/
XmlReportReader.java 49 KXmlParser parser = new KXmlParser(); local
51 parser.setInput(stream, "UTF-8");
52 parser.setInput(new FileReader(xmlReport));
53 return readTestSuite(parser);
69 private Collection<Outcome> readTestSuite(KXmlParser parser)
73 parser.nextTag();
74 parser.require(XmlPullParser.START_TAG, null, XmlReportConstants.TESTSUITE);
75 Map<String, String> testSuiteAttributes = createAttributeMap(parser);
78 parser.nextTag();
79 parser.require(XmlPullParser.START_TAG, null, XmlReportConstants.PROPERTIES)
    [all...]
  /external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
tmmbr_unittest.cc 34 RtcpPacketParser parser; local
35 parser.Parse(packet->Buffer(), packet->Length());
36 EXPECT_EQ(1, parser.tmmbr()->num_packets());
37 EXPECT_EQ(kSenderSsrc, parser.tmmbr()->Ssrc());
38 EXPECT_EQ(1, parser.tmmbr_item()->num_packets());
39 EXPECT_EQ(312U, parser.tmmbr_item()->BitrateKbps());
40 EXPECT_EQ(60U, parser.tmmbr_item()->Overhead());
  /packages/apps/TV/src/com/android/tv/parental/
ContentRatingsParser.java 77 try (XmlResourceParser parser = mContext.getPackageManager()
79 if (parser == null) {
82 ratingSystems = parse(parser, packageName, !info.isSystemDefined());
93 private List<ContentRatingSystem> parse(XmlResourceParser parser, String domain,
111 while (parser.next() == XmlPullParser.START_DOCUMENT) {}
113 int eventType = parser.getEventType();
115 assertEquals(parser.getName(), TAG_RATING_SYSTEM_DEFINITIONS,
119 for (int i = 0; i < parser.getAttributeCount(); i++) {
120 String attr = parser.getAttributeName(i);
123 mXmlVersionCode = parser.getAttributeValue(i)
    [all...]
  /frameworks/base/graphics/java/android/graphics/
FontListParser.java 36 * Parser for font config files.
45 XmlPullParser parser = Xml.newPullParser(); local
46 parser.setInput(in, null);
47 parser.nextTag();
48 return readFamilies(parser);
54 private static FontConfig readFamilies(XmlPullParser parser)
59 parser.require(XmlPullParser.START_TAG, null, "familyset");
60 while (parser.next() != XmlPullParser.END_TAG) {
61 if (parser.getEventType() != XmlPullParser.START_TAG) continue;
62 String tag = parser.getName()
    [all...]
  /external/autotest/site_utils/deployment/
commandline_unittest.py 16 parser = commandline._ArgumentParser()
18 parser.add_argument_pair('--yes', '--no', default=True)
22 parser = commandline._ArgumentParser()
24 parser.add_argument_pair('--yes', '--no')
31 parser = commandline._ArgumentParser()
32 parser.add_argument_pair('--yes', '--no', dest='option',
34 args = parser.parse_args([])
39 parser = commandline._ArgumentParser()
40 parser.add_argument_pair('--yes', '--no', dest='option',
42 args = parser.parse_args(['--yes']
    [all...]
  /frameworks/base/packages/WallpaperCropper/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/Camera2/src/com/android/camera/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/Gallery2/gallerycommon/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/Messaging/src/com/android/messaging/util/exif/
ExifReader.java 47 ExifParser parser = ExifParser.parse(inputStream, mInterface); local
48 ExifData exifData = new ExifData(parser.getByteOrder());
51 int event = parser.next();
55 exifData.addIfdData(new IfdData(parser.getCurrentIfd()));
58 tag = parser.getTag();
60 parser.registerForTagValue(tag);
66 tag = parser.getTag();
68 parser.readFullTagValue(tag);
73 byte buf[] = new byte[parser.getCompressedImageSize()];
74 if (buf.length == parser.read(buf))
    [all...]
  /tools/test/connectivity/acts/framework/acts/bin/
monsoon.py 61 parser = argparse.ArgumentParser(description=("This is a python utility " variable
63 parser.add_argument("--status", action="store_true",
65 parser.add_argument("-avg", "--avg", type=int, default=0,
67 parser.add_argument("-v", "--voltage", type=float,
69 parser.add_argument("-c", "--current", type=float,
71 parser.add_argument("-sc", "--startcurrent", type=float,
73 parser.add_argument("-usb", "--usbpassthrough", choices=("on", "off",
75 parser.add_argument("-sp", "--samples", type=int,
77 parser.add_argument("-hz", "--hz", type=int,
79 parser.add_argument("-d", "--device", help="Use this /dev/ttyACM... file."
    [all...]
  /external/libyuv/files/tools_libyuv/valgrind/
libyuv_tests.py 75 parser = optparse.OptionParser('usage: %prog -b <dir> -t <test> <test args>')
76 parser.disable_interspersed_args()
77 parser.add_option('-b', '--build-dir',
80 parser.add_option("--target", help="Debug or Release")
81 parser.add_option('-t', '--test', help='Test to run.')
82 parser.add_option('', '--baseline', action='store_true', default=False,
84 parser.add_option('', '--gtest_filter',
86 parser.add_option('', '--gtest_repeat',
88 parser.add_option("--gtest_shuffle", action="store_true", default=False,
90 parser.add_option("--gtest_break_on_failure", action="store_true"
    [all...]
  /external/webrtc/webrtc/tools/psnr_ssim_analyzer/
psnr_ssim_analyzer.cc 101 webrtc::test::CommandLineParser parser; local
103 // Init the parser and set the usage message
104 parser.Init(argc, argv);
105 parser.SetUsageMessage(usage);
107 parser.SetFlag("width", "-1");
108 parser.SetFlag("height", "-1");
109 parser.SetFlag("results_file", "results.txt");
110 parser.SetFlag("reference_file", "ref.yuv");
111 parser.SetFlag("test_file", "test.yuv");
112 parser.SetFlag("results_file", "results.txt")
    [all...]
  /external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/
SoapEnvelope.java 138 /** Parses the SOAP envelope from the given parser */
139 public void parse(XmlPullParser parser) throws IOException, XmlPullParserException {
140 parser.nextTag();
141 parser.require(XmlPullParser.START_TAG, env, "Envelope");
142 encodingStyle = parser.getAttributeValue(env, "encodingStyle");
143 parser.nextTag();
144 if (parser.getEventType() == XmlPullParser.START_TAG
145 && parser.getNamespace().equals(env)
146 && parser.getName().equals("Header")) {
147 parseHeader(parser);
    [all...]
SoapFault.java 58 public void parse(XmlPullParser parser) throws IOException, XmlPullParserException {
59 parser.require(XmlPullParser.START_TAG, SoapEnvelope.ENV, "Fault");
60 while (parser.nextTag() == XmlPullParser.START_TAG) {
61 String name = parser.getName();
64 detail.parse(parser);
66 if (parser.getNamespace().equals(SoapEnvelope.ENV)
67 && parser.getName().equals("Fault")) {
72 faultcode = parser.nextText();
74 faultstring = parser.nextText();
76 faultactor = parser.nextText()
    [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...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_pyexpat.py 15 self.parser = expat.ParserCreate(namespace_separator='!')
25 self.parser.returns_unicode = x
26 self.assertEqual(self.parser.returns_unicode, y)
30 self.parser.ordered_attributes = x
31 self.assertEqual(self.parser.ordered_attributes, y)
35 self.parser.specified_attributes = x
36 self.assertEqual(self.parser.specified_attributes, y)
136 parser = expat.ParserCreate(namespace_separator='!')
138 setattr(parser, name, getattr(out, name))
139 parser.returns_unicode = 0
    [all...]
  /external/expat/tests/
runtests.c 36 static XML_Parser parser; variable
42 parser = XML_ParserCreate(NULL);
43 if (parser == NULL)
44 fail("Parser not created.");
50 if (parser != NULL)
51 XML_ParserFree(parser);
54 /* Generate a failure using the parser state to create an error message;
55 this should be used when the parser reports an error we weren't
59 _xml_failure(XML_Parser parser, const char *file, int line)
62 enum XML_Error err = XML_GetErrorCode(parser);
    [all...]
  /external/chromium-trace/catapult/telemetry/third_party/web-page-replay/
replay_test.py 35 parser = replay.GetParser()
36 options = parser.parse_args([])
37 options = replay.OptionsWrapper(options, parser)
43 parser = replay.GetParser()
44 options = parser.parse_args(['--shaping=proxy'])
45 options = replay.OptionsWrapper(options, parser)
51 parser = replay.GetParser()
52 options = parser.parse_args(['--shaping=proxy', '--net=cable'])
53 options = replay.OptionsWrapper(options, parser)
62 parser = replay.GetParser(
    [all...]
  /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
SimpleInflater.java 33 * A simple XML inflater, which takes care of moving the parser to the correct position. Subclasses
68 XmlResourceParser parser = getResources().getXml(resId); local
70 return inflate(parser);
72 parser.close();
85 * @param parser XML dom node containing the description of the hierarchy.
88 public T inflate(XmlPullParser parser) {
89 final AttributeSet attrs = Xml.asAttributeSet(parser);
95 while ((type = parser.next()) != XmlPullParser.START_TAG
101 throw new InflateException(parser.getPositionDescription()
105 createdItem = createItemFromTag(parser.getName(), attrs)
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/testtype/testdefs/
XmlDefsParserTest.java 60 XmlDefsParser parser = new XmlDefsParser(); local
61 parser.parse(getStringAsStream(TEST_DATA));
62 assertEquals(1, parser.getTestDefs().size());
63 InstrumentationTestDef def = parser.getTestDefs().iterator().next();
76 XmlDefsParser parser = new XmlDefsParser(); local
77 parser.parse(getStringAsStream(NON_CONTINUOUS_TEST_DATA));
78 assertEquals(1, parser.getTestDefs().size());
79 InstrumentationTestDef def = parser.getTestDefs().iterator().next();
87 XmlDefsParser parser = new XmlDefsParser(); local
88 parser.parse(getStringAsStream(FALSE_CONTINUOUS_TEST_DATA))
98 XmlDefsParser parser = new XmlDefsParser(); local
115 XmlDefsParser parser = new XmlDefsParser(); local
    [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...]
  /external/pdfium/xfa/fde/css/
cfde_cssvaluelistparser_unittest.cpp 17 auto parser = pdfium::MakeUnique<CFDE_CSSValueListParser>(L"#abc", 4, L' '); local
18 EXPECT_TRUE(parser->NextValue(type, start, len));
21 EXPECT_FALSE(parser->NextValue(type, start, len));
23 parser = pdfium::MakeUnique<CFDE_CSSValueListParser>(L"#abcdef", 7, L' ');
24 EXPECT_TRUE(parser->NextValue(type, start, len));
27 EXPECT_FALSE(parser->NextValue(type, start, len));
29 parser =
31 EXPECT_TRUE(parser->NextValue(type, start, len));
35 parser =
37 EXPECT_TRUE(parser->NextValue(type, start, len))
48 auto parser = pdfium::MakeUnique<CFDE_CSSValueListParser>(L"1234", 4, L' '); local
90 auto parser = local
113 auto parser = local
    [all...]

Completed in 1878 milliseconds

1 2 34 5 6 7 8 91011>>