| /frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
| DeviceOwner.java | 241 XmlPullParser parser = Xml.newPullParser(); local 242 parser.setInput(input, StandardCharsets.UTF_8.name()); 244 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT) { 249 String tag = parser.getName(); 251 String name = parser.getAttributeValue(null, ATTR_NAME); 252 String packageName = parser.getAttributeValue(null, ATTR_PACKAGE); 255 String packageName = parser.getAttributeValue(null, ATTR_PACKAGE); 257 parser.getAttributeValue(null, ATTR_COMPONENT_NAME); 268 String profileOwnerPackageName = parser.getAttributeValue(null, ATTR_PACKAGE); 269 String profileOwnerName = parser.getAttributeValue(null, ATTR_NAME) [all...] |
| /development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
| Adapters.java | 501 XmlResourceParser parser = null; local 503 parser = context.getResources().getXml(id); 504 return createAdapterFromXml(context, parser, Xml.asAttributeSet(parser), 519 if (parser != null) parser.close(); 524 * Generates an adapter using the specified XML parser. This method is responsible 526 * XML parser. 533 XmlPullParser parser, AttributeSet attrs, int id, Object[] parameters, 540 int depth = parser.getDepth() 634 XmlPullParser parser = mParser; local 723 final XmlPullParser parser = mParser; local [all...] |
| /external/chromium-trace/trace-viewer/tracing/third_party/vinn/third_party/parse5/test/fixtures/ |
| parser_test.js | 5 Parser = parse5.Parser, 12 return ['Parser(', test.dirName, ') - ', test.idx, '.', test.setName, ' - ', test.input].join(''); 16 return ['Parser(Location info) - ', test.name].join(''); 38 var parser = new Parser(treeAdapter, { 42 parser.parseFragment(test.input, test.fragmentContext) : 43 parser.parse(test.input), 58 var parser = new Parser(treeAdapter, [all...] |
| /external/selinux/policycoreutils/semanage/ |
| semanage | 64 def __call__(self, parser, namespace, value, option_string=None): 77 def __call__(self, parser, namespace, values, option_string=None): 91 def __call__(self, parser, namespace, values, option_string=None): 102 def __call__(self, parser, namespace, values, option_string=None): 212 def parser_add_store(parser, name): 213 parser.add_argument('-S', '--store', action=SetStore, help=_("Select an alternate SELinux Policy Store to manage")) 215 def parser_add_priority(parser, name): 216 parser.add_argument('-P', '--priority', type=int, default=400, help=_("Select a priority for module operations")) 218 def parser_add_noheading(parser, name): 219 parser.add_argument('-n', '--noheading', action='store_false', default=True, help=_("Do not print heading (…) [all...] |
| /frameworks/base/graphics/java/android/graphics/drawable/ |
| Drawable.java | [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/xml/dom/ |
| pulldom.py | 211 def __init__(self, stream, parser, bufsize): 213 self.parser = parser 215 if not hasattr(self.parser, 'feed'): 222 self.parser.setFeature(xml.sax.handler.feature_namespaces, 1) 223 self.parser.setContentHandler(self.pulldom) 263 self.parser.close() 265 self.parser.feed(buf) 276 self.parser.parse(self.stream) 292 self.parser = Non [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/xml/dom/ |
| pulldom.py | 211 def __init__(self, stream, parser, bufsize): 213 self.parser = parser 215 if not hasattr(self.parser, 'feed'): 222 self.parser.setFeature(xml.sax.handler.feature_namespaces, 1) 223 self.parser.setContentHandler(self.pulldom) 263 self.parser.close() 265 self.parser.feed(buf) 276 self.parser.parse(self.stream) 292 self.parser = Non [all...] |
| /cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
| TestResults.java | 61 void parse(XmlPullParser parser) throws XmlPullParserException, IOException { 62 int eventType = parser.getEventType(); 64 if (eventType == XmlPullParser.START_TAG && parser.getName().equals( 66 mDeviceInfo.parse(parser); 68 if (eventType == XmlPullParser.START_TAG && parser.getName().equals( 71 pkg.parse(parser); 78 eventType = parser.next();
|
| TestLog.java | 97 static TestLog fromXml(XmlPullParser parser) { 98 String type = parser.getAttributeValue(null, TYPE_ATTR); 103 String url = parser.getAttributeValue(null, URL_ATTR);
|
| /external/antlr/antlr-3.4/runtime/Python/tests/ |
| t055templates.py | 18 parser = parserCls(tStream) 20 parser.templateLib = group 21 result = getattr(parser, grammarEntry)() 374 parser = parserCls(tStream) 375 result = parser.prog() 483 parser = parserCls(tStream) 484 tree = parser.prog().tree
|
| /external/emma/core/java12/com/vladium/jcd/parser/ |
| ClassDefParser.java | 9 package com.vladium.jcd.parser; 41 classParser parser = new classParser (new UDataInputStream (new ByteArrayIStream (bytes))); local 43 return parser.class_table (); 54 classParser parser = new classParser (new UDataInputStream (new ByteArrayIStream (bytes, length))); local 56 return parser.class_table (); 68 classParser parser = new classParser (new UDataInputStream (bytes)); local 70 return parser.class_table ();
|
| /external/lldb/scripts/ |
| buildbot.py | 136 parser = argparse.ArgumentParser(description="Try to build LLDB/LLVM/Clang and run the full test suite.") 137 parser.add_argument("--build-path", "-b", required=True, help="A (nonexistent) path to put temporary build products into", metavar="path") 138 parser.add_argument("--log-file", "-l", required=True, help="The name of a (nonexistent) log file", metavar="file") 139 parser.add_argument("--revision", "-r", required=False, help="The LLVM revision to use", metavar="N") 140 return parser 142 parser = GetArgParser() variable 143 arg_dict = vars(parser.parse_args())
|
| /external/selinux/sepolgen/tests/ |
| test_audit.py | 176 parser = sepolgen.audit.AuditParser() 177 parser.parse_string(log1) 178 avs = parser.to_access() 183 parser = sepolgen.audit.AuditParser() 184 parser.parse_string(granted1) 185 avs = parser.to_access() 189 avs = parser.to_access(only_denials=False)
|
| /external/skia/bench/ |
| tile_analyze.py | 253 parser = optparse.OptionParser(USAGE_STRING % '%prog' + HELP_STRING) 254 parser.add_option(OPTION_PLATFORM_SHORT, OPTION_PLATFORM, 257 parser.add_option(OPTION_REVISION_SHORT, OPTION_REVISION, 260 parser.add_option(OPTION_DIR_SHORT, OPTION_DIR, 264 parser.add_option(OPTION_REPRESENTATION_ALG_SHORT, OPTION_REPRESENTATION_ALG, 268 (options, args) = parser.parse_args() 270 parser.error('Please provide correct mandatory flag %s' % OPTION_REVISION)
|
| /frameworks/base/services/core/java/com/android/server/pm/ |
| KeySetManagerService.java | 684 void readKeySetsLPw(XmlPullParser parser, ArrayMap<Long, Integer> keySetRefCounts) 688 int outerDepth = parser.getDepth(); 689 String recordedVersionStr = parser.getAttributeValue(null, "version"); 693 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT 694 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { 705 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT 706 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { 710 final String tagName = parser.getName(); 712 readKeysLPw(parser); 714 readKeySetListLPw(parser); [all...] |
| /hardware/qcom/audio/hal/ |
| platform_info.c | 296 XML_Parser parser; local 313 parser = XML_ParserCreate(NULL); 314 if (!parser) { 315 ALOGE("%s: Failed to create XML parser!", __func__); 323 XML_SetElementHandler(parser, start_tag, end_tag); 326 buf = XML_GetBuffer(parser, kBufSize); 340 if (XML_ParseBuffer(parser, bytes_read, 353 XML_ParserFree(parser);
|
| /libcore/libart/src/main/java/java/lang/reflect/ |
| AbstractMethod.java | 265 GenericSignatureParser parser = local 268 parser.parseForMethod((GenericDeclaration) this, signatureAttribute, exceptionTypes); 270 parser.parseForConstructor((GenericDeclaration) this, 274 return new GenericInfo(parser.exceptionTypes, parser.parameterTypes, 275 parser.returnType, parser.formalTypeParameters);
|
| /external/wpa_supplicant_8/hostapd/ |
| wps-ap-nfc.py | 116 # override to avoid parser error in request/response.pretty() in nfcpy 270 parser = argparse.ArgumentParser(description='nfcpy to hostapd integration for WPS NFC operations') 271 parser.add_argument('-d', const=logging.DEBUG, default=logging.INFO, 274 parser.add_argument('-q', const=logging.WARNING, action='store_const', 276 parser.add_argument('--only-one', '-1', action='store_true', 278 parser.add_argument('--no-wait', action='store_true', 280 parser.add_argument('--summary', 282 parser.add_argument('--success', 284 parser.add_argument('command', choices=['write-config', 287 args = parser.parse_args( [all...] |
| /hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/h264/parser/ |
| viddec_h264_parse.c | 20 struct h264_viddec_parser* parser = ctxt; local 21 h264_Info * pInfo = &(parser->info); 27 h264_init_sps_pps(parser,persist_mem); 44 struct h264_viddec_parser* parser = ctxt; local 46 h264_Info * pInfo = &(parser->info); 390 //viddec_h264_init(ctxt, (uint32_t *)parser->sps_pps_ddr_paddr, false); 479 struct h264_viddec_parser* parser = ctxt; local 482 h264_Info * pInfo = &(parser->info); 498 struct h264_viddec_parser* parser = ctxt; local 500 h264_Info * pInfo = &(parser->info) [all...] |
| /cts/tests/tests/widget/src/android/widget/cts/ |
| DigitalClockTest.java | 115 XmlResourceParser parser = mActivity.getResources().getXml(resourceId); local 117 XmlUtils.beginDocument(parser, "com.android.cts.widget.alarmclock.DigitalClock"); 123 AttributeSet attr = Xml.asAttributeSet(parser);
|
| /external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/ |
| profile.rb | 201 attr_accessor :parser 217 def initialize( parser = nil, output = nil ) 218 @parser = parser 241 @profile.parser_class = @parser.class 255 stop_index = parser.rule_memoization( rule, @parser.input.index ) 271 starting_look_index = @parser.input.index 278 if @parser.cyclic_decision? then 283 @parser.cyclic_decision = fals [all...] |
| /external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/ |
| ll-star.rb | 134 parser = LLStar::Parser.new lexer 136 parser.program 137 parser.output.should == <<-'END'.fixed_indent( 0 )
|
| /external/apache-xml/src/main/java/org/apache/xml/utils/ |
| DOM2Helper.java | 117 * <p>The application can use this method to instruct the SAX parser 122 * progress (they should create a new Parser instead for each 124 * application may reuse the same Parser object, possibly with a 140 // org.apache.xerces.parsers.DOMParser parser 148 DocumentBuilder parser = builderFactory.newDocumentBuilder(); local 154 parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", true); 155 parser.setFeature("http://xml.org/sax/features/namespaces", true); 159 parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); 162 parser.setFeature("http://apache.org/xml/features/allow-java-encodings", true); 165 parser.setErrorHandler [all...] |
| /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
| ASN1TaggedObject.java | 188 * Return the object held in this tagged object as a parser assuming it has 189 * the type of the passed in tag. If the object doesn't have a parser 199 return ASN1Set.getInstance(this, isExplicit).parser(); 201 return ASN1Sequence.getInstance(this, isExplicit).parser(); 203 return ASN1OctetString.getInstance(this, isExplicit).parser();
|
| /external/chromium-trace/trace-viewer/tracing/ |
| run_tests | 76 parser = argparse.ArgumentParser( variable 78 parser.add_argument('--chrome_path', type=str, 80 args = parser.parse_args()
|