/external/autotest/tko/ |
parse | 4 from autotest_lib.tko import parse 5 parse.main()
|
/external/chromium-trace/catapult/third_party/Paste/tests/test_util/ |
test_mimeparse.py | 8 parse = parse_mime_type 9 assert parse('*/*') == ('*', '*', {}) 10 assert parse('text/html') == ('text', 'html', {}) 11 assert parse('audio/*; q=0.2') == ('audio', '*', {'q': '0.2'}) 12 assert parse('text/x-dvi;level=1') == ('text', 'x-dvi', {'level': '1'}) 13 assert parse('image/gif; level=2; q=0.4') == ( 15 assert parse('application/xhtml;level=3;q=0.5') == ( 17 assert parse('application/xml') == ('application', 'xml', {}) 18 assert parse('application/xml;q=1') == ('application', 'xml', {'q': '1'}) 19 assert parse('application/xml ; q=1;b=other') == [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
HttpUrlTest.java | 38 HttpUrl expected = HttpUrl.parse("http://host/"); 39 assertEquals(expected, HttpUrl.parse("http://host/\f\n\t \r")); // Leading. 40 assertEquals(expected, HttpUrl.parse("\r\n\f \thttp://host/")); // Trailing. 41 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both. 42 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both. 43 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" ")); 44 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" . ")); 49 assertNull(HttpUrl.parse("http://" + host + "/")); 54 assertEquals("/%0B", HttpUrl.parse("http://h/\u000b").encodedPath()); // line tabulation 55 assertEquals("/%1C", HttpUrl.parse("http://h/\u001c").encodedPath()); // information separator [all...] |
/external/mesa3d/src/gallium/tools/trace/ |
dump.py | 30 from parse import *
|
/external/proguard/src/proguard/util/ |
StringParser.java | 34 public StringMatcher parse(String regularExpression); method in interface:StringParser
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
HttpDateTest.java | 47 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT").getTime()); 48 assertEquals(1402057830000L, HttpDate.parse("Fri, 06 Jun 2014 12:30:30 GMT").getTime()); 51 assertEquals(0L, HttpDate.parse("Thursday, 01-Jan-70 00:00:00 GMT").getTime()); 52 assertEquals(1402057830000L, HttpDate.parse("Friday, 06-Jun-14 12:30:30 GMT").getTime()); 55 assertEquals(0L, HttpDate.parse("Thu Jan 1 00:00:00 1970").getTime()); 56 assertEquals(1402057830000L, HttpDate.parse("Fri Jun 6 12:30:30 2014").getTime()); 66 assertEquals(3600000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT-01:00").getTime()); 67 assertEquals(28800000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 PST").getTime()); 69 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT JUNK").getTime()); 71 assertNull(HttpDate.parse("Thu, 01 Jan 1970 00:00:00")) [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/ |
ElementParser.java | 57 public void parse(String xmlFile){ method in class:ElementParser 59 // Parse the Document 61 parser.parse(xmlFile,this); 70 public void parse(String install, String type, String id){ method in class:ElementParser 82 parse(xmlFile); 107 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform-feature"); 108 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.win32-feature"); 109 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.linux.motif-feature"); 110 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.linux.gtk-feature"); 111 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.solaris.motif-feature") [all...] |
/external/guava/guava-gwt/test-super/com/google/common/net/super/com/google/common/net/ |
MediaTypeTest.java | 103 assertEquals("text", MediaType.parse("text/plain").type()); 105 MediaType.parse("application/atom+xml; charset=utf-8").type()); 109 assertEquals("plain", MediaType.parse("text/plain").subtype()); 111 MediaType.parse("application/atom+xml; charset=utf-8").subtype()); 118 assertEquals(ImmutableListMultimap.of(), MediaType.parse("text/plain").parameters()); 120 MediaType.parse("application/atom+xml; charset=utf-8").parameters()); 122 MediaType.parse("application/atom+xml; a=1; a=2; b=3").parameters()); 126 assertSame(MediaType.parse("image/gif"), 127 MediaType.parse("image/gif").withoutParameters()); 128 assertEquals(MediaType.parse("image/gif") [all...] |
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
tgsi_iterate.c | 36 struct tgsi_parse_context parse; local 38 if (tgsi_parse_init( &parse, tokens ) != TGSI_PARSE_OK) 41 ctx->processor = parse.FullHeader.Processor; 47 while (!tgsi_parse_end_of_tokens( &parse )) { 48 tgsi_parse_token( &parse ); 50 switch (parse.FullToken.Token.Type) { 53 if (!ctx->iterate_instruction( ctx, &parse.FullToken.FullInstruction )) 59 if (!ctx->iterate_declaration( ctx, &parse.FullToken.FullDeclaration )) 65 if (!ctx->iterate_immediate( ctx, &parse.FullToken.FullImmediate )) 71 if (!ctx->iterate_property( ctx, &parse.FullToken.FullProperty ) [all...] |
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
LevelTest.java | 109 * Test method parse, with the pre-defined string consts. 112 assertSame(Level.SEVERE, Level.parse("SEVERE")); 113 assertSame(Level.WARNING, Level.parse("WARNING")); 114 assertSame(Level.INFO, Level.parse("INFO")); 115 assertSame(Level.CONFIG, Level.parse("CONFIG")); 116 assertSame(Level.FINE, Level.parse("FINE")); 117 assertSame(Level.FINER, Level.parse("FINER")); 118 assertSame(Level.FINEST, Level.parse("FINEST")); 119 assertSame(Level.OFF, Level.parse("OFF")); 120 assertSame(Level.ALL, Level.parse("ALL")) [all...] |
/external/guava/guava-tests/test/com/google/common/net/ |
MediaTypeTest.java | 65 assertSame(constant, MediaType.parse(constant.toString())); 163 assertEquals("text", MediaType.parse("text/plain").type()); 165 MediaType.parse("application/atom+xml; charset=utf-8").type()); 169 assertEquals("plain", MediaType.parse("text/plain").subtype()); 171 MediaType.parse("application/atom+xml; charset=utf-8").subtype()); 178 assertEquals(ImmutableListMultimap.of(), MediaType.parse("text/plain").parameters()); 180 MediaType.parse("application/atom+xml; charset=utf-8").parameters()); 182 MediaType.parse("application/atom+xml; a=1; a=2; b=3").parameters()); 186 assertSame(MediaType.parse("image/gif"), 187 MediaType.parse("image/gif").withoutParameters()) [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
VerificationParamsTest.java | 37 private final static Uri VERIFICATION_URI = Uri.parse(VERIFICATION_URI_STRING); 38 private final static Uri ORIGINATING_URI = Uri.parse(ORIGINATING_URI_STRING); 39 private final static Uri REFERRER = Uri.parse(REFERRER_STRING); 67 Uri.parse(VERIFICATION_URI_STRING), Uri.parse(ORIGINATING_URI_STRING), 68 Uri.parse(REFERRER_STRING), ORIGINATING_UID); 78 Uri.parse("http://a.different.uri/"), Uri.parse(ORIGINATING_URI_STRING), 79 Uri.parse(REFERRER_STRING), ORIGINATING_UID); 89 Uri.parse(VERIFICATION_URI_STRING), Uri.parse("http://a.different.uri/") [all...] |
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardParser.java | 37 * <p>This method reads a whole InputStream. If you just want to parse one vCard entry inside 40 * @param is The source to parse. 43 public abstract void parse(InputStream is) throws IOException, VCardException; method in class:VCardParser 71 * @param is The source to parse. 78 * {@link #parse(InputStream)} 81 public void parse(InputStream is, VCardInterpreter interpreter) method in class:VCardParser 84 parse(is); 89 * Cancel parsing vCard. Useful when you want to stop the parse in the other threads.
|
/external/caliper/caliper/src/main/java/com/google/caliper/util/ |
Parser.java | 23 T parse(CharSequence text) throws ParseException; method in interface:Parser
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
ObserverNodeTest.java | 42 Uri.parse("content://c/a/"), 43 Uri.parse("content://c/"), 44 Uri.parse("content://x/"), 45 Uri.parse("content://c/b/"), 46 Uri.parse("content://c/a/a1/1/"), 47 Uri.parse("content://c/a/a1/2/"), 48 Uri.parse("content://c/b/1/"), 49 Uri.parse("content://c/b/2/"), 76 Uri.parse("content://c/"), 77 Uri.parse("content://x/") [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/ |
FieldParser.java | 20 Field parse(final String name, final String body, final String raw); method in interface:FieldParser
|
/packages/services/Telephony/src/org/apache/james/mime4j/field/ |
FieldParser.java | 20 Field parse(final String name, final String body, final String raw); method in interface:FieldParser
|
/external/v8/test/mjsunit/ |
date.js | 39 var date0 = Date.parse("Dec 25 1995 1:30"); 40 var date1 = Date.parse("Dec 25, 1995 1:30"); 41 var date2 = Date.parse("Dec 25 1995, 1:30"); 42 var date3 = Date.parse("Dec 25, 1995, 1:30"); 199 assertEquals(0, Date.parse("1970-01-01T00:00:00.000+00:00")); 200 assertEquals(0, Date.parse("1970-01-01T00:00:00.000-00:00")); 201 assertEquals(0, Date.parse("1970-01-01T00:00:00.000Z")); 202 assertEquals(0, Date.parse("1970-01-01T00:00:00.000")); 203 assertEquals(0, Date.parse("1970-01-01T00:00:00")); 204 assertEquals(0, Date.parse("1970-01-01T00:00")) [all...] |
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
InputContentInfoTest.java | 33 Uri.parse("content://com.example/path"), 35 Uri.parse("https://example.com")); 37 assertEquals(Uri.parse("content://com.example/path"), info.getContentUri()); 41 assertEquals(Uri.parse("https://example.com"), info.getLinkUri()); 62 Uri.parse("content://com.example/path"), 65 assertEquals(Uri.parse("content://com.example/path"), info.getContentUri()); 77 Uri.parse("https://example.com")); 87 Uri.parse("https://example.com"), 89 Uri.parse("https://example.com")); 101 Uri.parse("content://com.example/path"), null [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/xml/etree/ |
ElementInclude.py | 69 # @param parse Parse mode. Either "xml" or "text". 71 # @return The expanded resource. If the parse mode is "xml", this 72 # is an ElementTree instance. If the parse mode is "text", this 77 def default_loader(href, parse, encoding=None): 79 if parse == "xml": 80 data = ElementTree.parse(file).getroot() 109 parse = e.get("parse", "xml") 110 if parse == "xml" [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/xml/etree/ |
ElementInclude.py | 69 # @param parse Parse mode. Either "xml" or "text". 71 # @return The expanded resource. If the parse mode is "xml", this 72 # is an ElementTree instance. If the parse mode is "text", this 77 def default_loader(href, parse, encoding=None): 79 if parse == "xml": 80 data = ElementTree.parse(file).getroot() 109 parse = e.get("parse", "xml") 110 if parse == "xml" [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/xml/etree/ |
ElementInclude.py | 69 # @param parse Parse mode. Either "xml" or "text". 71 # @return The expanded resource. If the parse mode is "xml", this 72 # is an ElementTree instance. If the parse mode is "text", this 77 def default_loader(href, parse, encoding=None): 79 if parse == "xml": 80 data = ElementTree.parse(file).getroot() 109 parse = e.get("parse", "xml") 110 if parse == "xml" [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/xml/etree/ |
ElementInclude.py | 69 # @param parse Parse mode. Either "xml" or "text". 71 # @return The expanded resource. If the parse mode is "xml", this 72 # is an ElementTree instance. If the parse mode is "text", this 77 def default_loader(href, parse, encoding=None): 79 if parse == "xml": 80 data = ElementTree.parse(file).getroot() 109 parse = e.get("parse", "xml") 110 if parse == "xml" [all...] |
/external/jsilver/src/com/google/streamhtmlparser/ |
Parser.java | 24 * us to parse either a character at a time or a fragment of a template 44 void parse(char input) throws ParseException; method in interface:Parser 50 * @param input the {@code String} to parse 53 void parse(String input) throws ParseException; method in interface:Parser 63 * and the caller may want to continue parsing until {@link #parse(String)}
|
/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
BaseJsonReader.java | 24 JsonValue parse (InputStream input);
method in interface:BaseJsonReader 26 JsonValue parse (FileHandle file);
method in interface:BaseJsonReader
|