| /frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
| SpnOverride.java | 88 XmlPullParser parser = Xml.newPullParser(); local 89 parser.setInput(spnReader); 91 XmlUtils.beginDocument(parser, "spnOverrides"); 94 XmlUtils.nextElement(parser); 96 String name = parser.getName(); 101 String numeric = parser.getAttributeValue(null, "numeric"); 102 String data = parser.getAttributeValue(null, "spn"); 108 Rlog.w(LOG_TAG, "Exception in spn-conf parser " + e); 110 Rlog.w(LOG_TAG, "Exception in spn-conf parser " + e);
|
| /packages/apps/Camera/src/com/android/camera/ |
| PreferenceInflater.java | 75 private CameraPreference inflate(XmlPullParser parser) { 77 AttributeSet attrs = Xml.asAttributeSet(parser); 82 for (int type = parser.next(); 83 type != XmlPullParser.END_DOCUMENT; type = parser.next()) { 85 CameraPreference pref = newPreference(parser.getName(), args); 87 int depth = parser.getDepth(); 105 throw new InflateException(parser.getPositionDescription(), e);
|
| /packages/apps/Launcher3/src/com/android/launcher3/ |
| AutoInstallsLayout.java | 205 XmlResourceParser parser = mSourceRes.getXml(layoutId); local 206 beginDocument(parser, mRootTag); 207 final int depth = parser.getDepth(); 212 while (((type = parser.next()) != XmlPullParser.END_TAG || 213 parser.getDepth() > depth) && type != XmlPullParser.END_DOCUMENT) { 217 count += parseAndAddNode(parser, tagParserMap, screenIds); 226 protected void parseContainerAndScreen(XmlResourceParser parser, long[] out) { 227 if (HOTSEAT_CONTAINER_NAME.equals(getAttributeValue(parser, ATTR_CONTAINER))) { 230 long rank = Long.parseLong(getAttributeValue(parser, ATTR_RANK)); 234 out[1] = Long.parseLong(getAttributeValue(parser, ATTR_SCREEN)) [all...] |
| DefaultLayoutParser.java | 27 * Implements the layout parser with rules for internal layouts and partner layouts. 81 protected void parseContainerAndScreen(XmlResourceParser parser, long[] out) { 83 String strContainer = getAttributeValue(parser, ATTR_CONTAINER); 87 out[1] = Long.parseLong(getAttributeValue(parser, ATTR_SCREEN)); 96 protected long invalidPackageOrClass(XmlResourceParser parser) { 97 final String uri = getAttributeValue(parser, ATTR_URI); 181 * Shortcut parser which allows any uri and not just web urls. 190 protected Intent parseIntent(XmlResourceParser parser) { 193 uri = getAttributeValue(parser, ATTR_URI); 210 public long parseAndAdd(XmlResourceParser parser) throws XmlPullParserException [all...] |
| /packages/apps/LegacyCamera/src/com/android/camera/ |
| PreferenceInflater.java | 75 private CameraPreference inflate(XmlPullParser parser) { 77 AttributeSet attrs = Xml.asAttributeSet(parser); 82 for (int type = parser.next(); 83 type != XmlPullParser.END_DOCUMENT; type = parser.next()) { 85 CameraPreference pref = newPreference(parser.getName(), args); 87 int depth = parser.getDepth(); 105 throw new InflateException(parser.getPositionDescription(), e);
|
| /external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/ |
| actions.rb | 39 example "parser action execution" do 41 parser = ParserActions::Parser.new lexer 43 parser.declaration.should == 'foo' 55 @parser::members { 92 parser = AllKindsOfActions::Parser.new lexer 93 parser.prog 95 parser.output.should == <<-END.fixed_indent( 0 ) 142 parser = Finally::Parser.new lexe [all...] |
| /frameworks/base/services/core/java/com/android/server/policy/ |
| GlobalKeyManager.java | 93 XmlResourceParser parser = null; local 95 parser = context.getResources().getXml(com.android.internal.R.xml.global_keys); 96 XmlUtils.beginDocument(parser, TAG_GLOBAL_KEYS); 97 int version = parser.getAttributeIntValue(null, ATTR_VERSION, 0); 100 XmlUtils.nextElement(parser); 101 String element = parser.getName(); 106 String keyCodeName = parser.getAttributeValue(null, ATTR_KEY_CODE); 107 String componentName = parser.getAttributeValue(null, ATTR_COMPONENT); 119 Log.w(TAG, "XML parser exception reading global keys file", e); 123 if (parser != null) [all...] |
| /packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
| LocalizedNameResolver.java | 79 final XmlResourceParser parser = ExternalAccountType.loadContactsXml(context, packageName); local 80 if (parser != null) { 81 return loadAllContactsNameFromXml(context, parser, packageName); 86 private static String loadAllContactsNameFromXml(Context context, XmlPullParser parser, 89 final AttributeSet attrs = Xml.asAttributeSet(parser); 91 while ((type = parser.next()) != XmlPullParser.START_TAG 100 final int depth = parser.getDepth(); 101 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth) 103 String name = parser.getName() [all...] |
| /packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/ |
| ContentTypeField.java | 32 import org.apache.james.mime4j.field.contenttype.parser.ContentTypeParser; 33 import org.apache.james.mime4j.field.contenttype.parser.ParseException; 34 import org.apache.james.mime4j.field.contenttype.parser.TokenMgrError; 208 public static class Parser implements FieldParser { 209 private static Log log = LogFactory.getLog(Parser.class); 216 ContentTypeParser parser = new ContentTypeParser(new StringReader(body)); local 218 parser.parseAll(); 234 final String type = parser.getType(); 235 final String subType = parser.getSubType(); 238 mimeType = (type + "/" + parser.getSubType()).toLowerCase() [all...] |
| /packages/services/Telephony/src/org/apache/james/mime4j/field/ |
| ContentTypeField.java | 32 import org.apache.james.mime4j.field.contenttype.parser.ContentTypeParser; 33 import org.apache.james.mime4j.field.contenttype.parser.ParseException; 34 import org.apache.james.mime4j.field.contenttype.parser.TokenMgrError; 208 public static class Parser implements FieldParser { 209 private static Log log = LogFactory.getLog(Parser.class); 216 ContentTypeParser parser = new ContentTypeParser(new StringReader(body)); local 218 parser.parseAll(); 234 final String type = parser.getType(); 235 final String subType = parser.getSubType(); 238 mimeType = (type + "/" + parser.getSubType()).toLowerCase() [all...] |
| /external/chromium-trace/trace-viewer/tracing/build/ |
| generate_about_tracing_contents.py | 21 parser = optparse.OptionParser(usage="%prog --outdir=<directory>") 22 parser.add_option("--outdir", dest="out_dir", 24 parser.add_option('--no-min', dest='no_min', default=False, 27 options, args = parser.parse_args(args) 31 parser.print_help()
|
| /external/clang/utils/check_cfc/ |
| obj_diff.py | 67 parser = argparse.ArgumentParser() variable 68 parser.add_argument('objfilea', nargs=1) 69 parser.add_argument('objfileb', nargs=1) 70 parser.add_argument('-v', '--verbose', action='store_true') 71 args = parser.parse_args()
|
| /external/lldb/examples/python/ |
| globals.py | 57 parser = optparse.OptionParser(description=description, prog='globals',usage=usage) 58 parser.add_option('-v', '--verbose', action='store_true', dest='verbose', help='display verbose debug info', default=False) 59 parser.add_option('-a', '--arch', type='string', metavar='arch', dest='arch', help='Specify an architecture (or triple) to use when extracting from a file.') 60 parser.add_option('-p', '--platform', type='string', metavar='platform', dest='platform', help='Specify the platform to use when creating the debug target. Valid values include "localhost", "darwin-kernel", "ios-simulator", "remote-freebsd", "remote-macosx", "remote-ios", "remote-linux".') 62 (options, args) = parser.parse_args(command_args)
|
| process_events.py | 79 parser = optparse.OptionParser(description=description, prog='process_events',usage='usage: process_events [options] program [arg1 arg2]', epilog=epilog) 80 parser.add_option('-v', '--verbose', action='store_true', dest='verbose', help="Enable verbose logging.", default=False) 81 parser.add_option('-b', '--breakpoint', action='append', type='string', metavar='BPEXPR', dest='breakpoints', help='Breakpoint commands to create after the target has been created, the values will be sent to the "_regexp-break" command which supports breakpoints by name, file:line, and address.') 82 parser.add_option('-a', '--arch', type='string', dest='arch', help='The architecture to use when creating the debug target.', default=None) 83 parser.add_option('--platform', type='string', metavar='platform', dest='platform', help='Specify the platform to use when creating the debug target. Valid values include "localhost", "darwin-kernel", "ios-simulator", "remote-freebsd", "remote-macosx", "remote-ios", "remote-linux".', default=None) 84 parser.add_option('-l', '--launch-command', action='append', type='string', metavar='CMD', dest='launch_commands', help='LLDB command interpreter commands to run once after the process has launched. This option can be specified more than once.', default=[]) 85 parser.add_option('-s', '--stop-command', action='append', type='string', metavar='CMD', dest='stop_commands', help='LLDB command interpreter commands to run each time the process stops. This option can be specified more than once.', default=[]) 86 parser.add_option('-c', '--crash-command', action='append', type='string', metavar='CMD', dest='crash_commands', help='LLDB command interpreter commands to run in case the process crashes. This option can be specified more than once.', default=[]) 87 parser.add_option('-x', '--exit-command', action='append', type='string', metavar='CMD', dest='exit_commands', help='LLDB command interpreter commands to run once after the process has exited. This option can be specified more than once.', default=[]) 88 parser.add_option('-T', '--no-threads', action='store_false', dest='show_threads', help="Don't show threa (…) [all...] |
| /external/lldb/utils/test/ |
| llvm-mc-shell.py | 63 parser = OptionParser(usage="""\ 71 parser.add_option('-m', '--llvm-mc', 77 parser.add_option('-o', '--options', 82 opts, args = parser.parse_args() 86 parser.print_help()
|
| /external/lzma/CPP/7zip/Bundles/LzmaCon/ |
| LzmaAlone.cpp | 149 static void ParseUInt32(const CParser &parser, int index, UInt32 &res)
151 if (parser[index].ThereIs)
152 if (!GetNumber(parser[index].PostStrings[0], res))
179 CParser parser(kNumSwitches);
182 parser.ParseStrings(kSwitchForms, commandStrings);
189 if(parser[NKey::kHelp1].ThereIs || parser[NKey::kHelp2].ThereIs)
194 const UStringVector &nonSwitchStrings = parser.NonSwitchStrings;
203 if(parser[NKey::kDict].ThereIs)
206 if (!GetNumber(parser[NKey::kDict].PostStrings[0], dicLog)) [all...] |
| /frameworks/base/core/java/android/app/backup/ |
| FullBackup.java | 325 XmlResourceParser parser = null; local 327 parser = mPackageManager 330 parseBackupSchemeFromXmlLocked(parser, mExcludes, mIncludes); 335 if (parser != null) { 336 parser.close(); 343 public void parseBackupSchemeFromXmlLocked(XmlPullParser parser, 347 int event = parser.getEventType(); // START_DOCUMENT 349 event = parser.next(); 352 if (!"full-backup-content".equals(parser.getName())) { 354 " (<full-backup-content>). Found \"" + parser.getName() + "\"") [all...] |
| /cts/tests/tests/widget/src/android/widget/cts/ |
| TableLayout_LayoutParamsTest.java | 140 XmlResourceParser parser = null; local 143 parser = mTargetContext.getResources().getXml(R.xml.base_attributes); 146 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT 149 String nodeName = parser.getName(); 153 int outerDepth = parser.getDepth(); 154 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT 155 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { 159 nodeName = parser.getName(); 161 outerDepth = parser.getDepth(); 162 while ((type = parser.next()) != XmlPullParser.END_DOCUMEN [all...] |
| /frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
| VCardParserTests.java | 96 VCardParser parser = new VCardParser_V21(); local 103 parser.addInterpreter(interpreter); 104 parser.parse(inputStream); 114 VCardParser parser = new VCardParser_V21(); local 131 parser.addInterpreter(interpreter); 132 parser.parse(inputStream); 142 * parser correctly skips the extra line terminators and still 148 VCardParser parser = new VCardParser_V30(); local 163 parser.addInterpreter(interpreter); 164 parser.parse(inputStream) 180 VCardParser parser = new VCardParser_V21(); local 221 VCardParser parser = new VCardParser_V21(); local [all...] |
| /external/selinux/policycoreutils/audit2allow/ |
| audit2allow | 48 parser = OptionParser(version=self.VERSION) 49 parser.add_option("-b", "--boot", action="store_true", dest="boot", default=False, 51 parser.add_option("-a", "--all", action="store_true", dest="audit", default=False, 53 parser.add_option("-p", "--policy", dest="policy", default=None, help="Policy file to use for analysis") 54 parser.add_option("-d", "--dmesg", action="store_true", dest="dmesg", default=False, 56 parser.add_option("-i", "--input", dest="input", 58 parser.add_option("-l", "--lastreload", action="store_true", dest="lastreload", default=False, 60 parser.add_option("-r", "--requires", action="store_true", dest="requires", default=False, 62 parser.add_option("-m", "--module", dest="module", 64 parser.add_option("-M", "--module-package", dest="module_package" [all...] |
| audit2why | 48 parser = OptionParser(version=self.VERSION) 49 parser.add_option("-b", "--boot", action="store_true", dest="boot", default=False, 51 parser.add_option("-a", "--all", action="store_true", dest="audit", default=False, 53 parser.add_option("-p", "--policy", dest="policy", default=None, help="Policy file to use for analysis") 54 parser.add_option("-d", "--dmesg", action="store_true", dest="dmesg", default=False, 56 parser.add_option("-i", "--input", dest="input", 58 parser.add_option("-l", "--lastreload", action="store_true", dest="lastreload", default=False, 60 parser.add_option("-r", "--requires", action="store_true", dest="requires", default=False, 62 parser.add_option("-m", "--module", dest="module", 64 parser.add_option("-M", "--module-package", dest="module_package" [all...] |
| /external/harfbuzz_ng/util/ |
| options.hh | 94 virtual void add_options (struct option_parser_t *parser) = 0; 151 view_options_t (option_parser_t *parser) { 158 add_options (parser); 161 void add_options (option_parser_t *parser); 175 shape_options_t (option_parser_t *parser) 186 add_options (parser); 194 void add_options (option_parser_t *parser); 275 font_options_t (option_parser_t *parser, 287 add_options (parser); 293 void add_options (option_parser_t *parser); [all...] |
| /external/expat/lib/ |
| xmlparse.c | 178 A parser re-uses these structures, maintaining a list of allocated 300 typedef enum XML_Error PTRCALL Processor(XML_Parser parser, 325 handleUnknownEncoding(XML_Parser parser, const XML_Char *encodingName); 327 processXmlDecl(XML_Parser parser, int isGeneralTextEntity, 330 initializeEncoding(XML_Parser parser); 332 doProlog(XML_Parser parser, const ENCODING *enc, const char *s, 336 processInternalEntity(XML_Parser parser, ENTITY *entity, 339 doContent(XML_Parser parser, int startTagLevel, const ENCODING *enc, 343 doCdataSection(XML_Parser parser, const ENCODING *, const char **startPtr, 347 doIgnoreSection(XML_Parser parser, const ENCODING *, const char **startPtr 730 XML_Parser parser; local 984 XML_Parser parser = oldParser; local [all...] |
| /packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
| ExternalAccountType.java | 121 final XmlResourceParser parser; local 123 parser = loadContactsXml(context, packageName); 125 parser = injectedMetadata; 129 if (parser != null) { 130 inflate(context, parser); 150 if (needLineNumberInErrorLog && (parser != null)) { 152 error.append(parser.getLineNumber()); 160 if (parser != null) { 161 parser.close(); 203 final XmlResourceParser parser = serviceInfo.loadXmlMetaData local [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/xml/sax/ |
| expatreader.py | 34 # weak references to avoid cycles between the parser and content 51 This uses a weak reference to the parser object to avoid creating 52 a circular reference between the parser and the content handler. 54 def __init__(self, parser): 55 self._ref = _mkproxy(parser) 58 parser = self._ref 59 if parser._parser is None: 61 return parser._parser.ErrorColumnNumber 64 parser = self._ref 65 if parser._parser is None [all...] |