/external/chromium-trace/catapult/third_party/Paste/tests/test_util/ |
D | 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/v8/test/mjsunit/ |
D | 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 …]
|
D | json.js | 92 assertEquals({}, JSON.parse("{}")); 93 assertEquals({42:37}, JSON.parse('{"42":37}')); 94 assertEquals(null, JSON.parse("null")); 95 assertEquals(true, JSON.parse("true")); 96 assertEquals(false, JSON.parse("false")); 97 assertEquals("foo", JSON.parse('"foo"')); 98 assertEquals("f\no", JSON.parse('"f\\no"')); 100 JSON.parse('"\\b\\f\\n\\r\\t\\"\\u2028\\/\\\\"')); 101 assertEquals([1.1], JSON.parse("[1.1]")); 102 assertEquals([1], JSON.parse("[1.0]")); [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | HttpUrlTest.java | 38 HttpUrl expected = HttpUrl.parse("http://host/"); in parseTrimsAsciiWhitespace() 39 assertEquals(expected, HttpUrl.parse("http://host/\f\n\t \r")); // Leading. in parseTrimsAsciiWhitespace() 40 assertEquals(expected, HttpUrl.parse("\r\n\f \thttp://host/")); // Trailing. in parseTrimsAsciiWhitespace() 41 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both. in parseTrimsAsciiWhitespace() 42 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both. in parseTrimsAsciiWhitespace() 43 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" ")); in parseTrimsAsciiWhitespace() 44 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" . ")); in parseTrimsAsciiWhitespace() 49 assertNull(HttpUrl.parse("http://" + host + "/")); in parseHostAsciiNonPrintable() 54 assertEquals("/%0B", HttpUrl.parse("http://h/\u000b").encodedPath()); // line tabulation in parseDoesNotTrimOtherWhitespaceCharacters() 55 assertEquals("/%1C", HttpUrl.parse("http://h/\u001c").encodedPath()); // information separator 4 in parseDoesNotTrimOtherWhitespaceCharacters() [all …]
|
D | MediaTypeTest.java | 38 MediaType mediaType = MediaType.parse("text/plain;boundary=foo;charset=utf-8"); in testParse() 43 assertTrue(mediaType.equals(MediaType.parse("text/plain;boundary=foo;charset=utf-8"))); in testParse() 45 MediaType.parse("text/plain;boundary=foo;charset=utf-8").hashCode()); in testParse() 91 MediaType mediaType = MediaType.parse( in testParseWithSpecialCharacters() 98 MediaType mediaType = MediaType.parse("text/plain;a=1;b=2;charset=utf-8;c=3"); in testCharsetIsOneOfManyParameters() 105 MediaType mediaType = MediaType.parse( in testCharsetAndQuoting() 111 MediaType mediaType = MediaType.parse("text/plain; charset=utf-8; charset=UTF-8"); in testDuplicatedCharsets() 117 MediaType.parse("text/plain; charset=utf-8; charset=utf-16"); in testMultipleCharsets() 124 MediaType mediaType = MediaType.parse("text/plain; charset=\"!@#$%^&*()\""); in testIllegalCharsetName() 133 MediaType mediaType = MediaType.parse("text/plain; charset=utf-wtf"); in testUnsupportedCharset() [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/ |
D | rewrites.rb | 8 def parse( grammar, rule, input, expect_errors = false ) method in TestASTViaRewriteRules 60 result = parse( <<-'END', :a, 'abc 34' ) 73 result = parse( <<-'END', :a, 'abc' ) 87 result = parse( <<-'END', :a, 'abc' ) 101 result = parse( <<-'END', :a, 'abc' ) 115 result = parse( <<-'END', :a, 'abc' ) 128 result = parse( <<-'END', :a, 'c' ) 142 result = parse( <<-'END', :a, 'ick' ) 156 result = parse( <<-'END', :a, 'abc' ) 171 result = parse( <<-'END', :a, 'abc 34' ) [all …]
|
D | auto-ast.rb | 8 def parse( grammar, rule, input, expect_errors = false ) method in TestAutoAST 61 result = parse( <<-'END', :a, 'abc 34' ) 73 result = parse( <<-'END', :a, 'abc 34' ) 85 result = parse( <<-'END', :a, 'abc 34' ) 97 result = parse( <<-'END', :a, '34 abc' ) 109 result = parse( <<-'END', :a, 'abc 34 dag 4532' ) 122 result = parse( <<-'END', :a, 'a 1 b' ) 134 result = parse( <<-'END', :a, 'void foo;' ) 146 result = parse( <<-'END', :a, 'void foo;' ) 158 result = parse( <<-'END', :a, 'void foo;' ) [all …]
|
D | hetero-nodes.rb | 593 def parse( grammar_name, grammar_rule, input ) method in TestHeterogeneousNodeTypes 621 result = parse( :VToken, :a, 'a' ) 627 result = parse( :TokenWithQualifiedType, :a, 'a' ) 633 result = parse( :TokenWithLabel, :a, 'a' ) 639 result = parse( :TokenWithListLabel, :a, 'a' ) 645 result = parse( :TokenRoot, :a, 'a' ) 651 result = parse( :TokenRootWithListLabel, :a, 'a' ) 657 result = parse( :FromString, :a, 'begin' ) 663 result = parse( :StringRoot, :a, 'begin' ) 669 result = parse( :RewriteToken, :a, 'a' ) [all …]
|
/external/v8/test/webkit/ |
D | date-parse-comments-test-expected.txt | 29 PASS Date.parse("Dec ((27) 26 (24)) 25 1995 1:30 PM UTC") == 819898200000 is true 30 PASS Date.parse("DEC ((27) 26 (24)) 25 1995 1:30 PM UTC") == 819898200000 is true 31 PASS Date.parse("dec ((27) 26 (24)) 25 1995 1:30 pm utc") == 819898200000 is true 32 PASS Date.parse("Dec 25 1995 1:30 PM UTC (") == 819898200000 is true 33 PASS Date.parse("DEC 25 1995 1:30 PM UTC (") == 819898200000 is true 34 PASS Date.parse("dec 25 1995 1:30 pm utc (") == 819898200000 is true 35 PASS Date.parse("Dec 25 1995 1:30 (PM)) UTC") is NaN 36 PASS Date.parse("DEC 25 1995 1:30 (PM)) UTC") is NaN 37 PASS Date.parse("dec 25 1995 1:30 (pm)) utc") is NaN 38 PASS Date.parse("(Nov) Dec (24) 25 (26) 1995 (1996) GMT (EST)") == 819849600000 is true [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/net/super/com/google/common/net/ |
D | MediaTypeTest.java | 103 assertEquals("text", MediaType.parse("text/plain").type()); in testGetType() 105 MediaType.parse("application/atom+xml; charset=utf-8").type()); in testGetType() 109 assertEquals("plain", MediaType.parse("text/plain").subtype()); in testGetSubtype() 111 MediaType.parse("application/atom+xml; charset=utf-8").subtype()); in testGetSubtype() 118 assertEquals(ImmutableListMultimap.of(), MediaType.parse("text/plain").parameters()); in testGetParameters() 120 MediaType.parse("application/atom+xml; charset=utf-8").parameters()); in testGetParameters() 122 MediaType.parse("application/atom+xml; a=1; a=2; b=3").parameters()); in testGetParameters() 126 assertSame(MediaType.parse("image/gif"), in testWithoutParameters() 127 MediaType.parse("image/gif").withoutParameters()); in testWithoutParameters() 128 assertEquals(MediaType.parse("image/gif"), in testWithoutParameters() [all …]
|
/external/antlr/antlr-3.4/runtime/Python/tests/ |
D | t042ast.py | 25 def parse(self, text, method, rArgs=[], **kwargs): member in t042ast 40 r = self.parse("1 + 2", 'r1') 48 r = self.parse("assert 2+3;", 'r2') 56 r = self.parse("assert 2+3 : 5;", 'r2') 64 r = self.parse("if 1 fooze", 'r3') 72 r = self.parse("if 1 fooze else fooze", 'r3') 80 r = self.parse("while 2 fooze", 'r4') 88 r = self.parse("return;", 'r5') 96 r = self.parse("return 2+3;", 'r5') 104 r = self.parse("3", 'r6') [all …]
|
/external/guava/guava-tests/test/com/google/common/net/ |
D | MediaTypeTest.java | 65 assertSame(constant, MediaType.parse(constant.toString())); in testParse_useConstants() 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 …]
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
D | LevelTest.java | 112 assertSame(Level.SEVERE, Level.parse("SEVERE")); in testParse_PredefinedConstStrings() 113 assertSame(Level.WARNING, Level.parse("WARNING")); in testParse_PredefinedConstStrings() 114 assertSame(Level.INFO, Level.parse("INFO")); in testParse_PredefinedConstStrings() 115 assertSame(Level.CONFIG, Level.parse("CONFIG")); in testParse_PredefinedConstStrings() 116 assertSame(Level.FINE, Level.parse("FINE")); in testParse_PredefinedConstStrings() 117 assertSame(Level.FINER, Level.parse("FINER")); in testParse_PredefinedConstStrings() 118 assertSame(Level.FINEST, Level.parse("FINEST")); in testParse_PredefinedConstStrings() 119 assertSame(Level.OFF, Level.parse("OFF")); in testParse_PredefinedConstStrings() 120 assertSame(Level.ALL, Level.parse("ALL")); in testParse_PredefinedConstStrings() 128 Level.parse("SEVERe"); in testParse_IllegalConstString() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderSpecTest.java | 19 import static com.google.common.cache.CacheBuilderSpec.parse; 38 CacheBuilderSpec spec = parse(""); in testParse_empty() 51 CacheBuilderSpec spec = parse("initialCapacity=10"); in testParse_initialCapacity() 66 parse("initialCapacity=10, initialCapacity=20"); in testParse_initialCapacityRepeated() 74 CacheBuilderSpec spec = parse("maximumSize=9000"); in testParse_maximumSize() 88 parse("maximumSize=10, maximumSize=20"); in testParse_maximumSizeRepeated() 96 CacheBuilderSpec spec = parse("maximumWeight=9000"); in testParse_maximumWeight() 110 parse("maximumWeight=10, maximumWeight=20"); in testParse_maximumWeightRepeated() 119 parse("maximumSize=10, maximumWeight=20"); in testParse_maximumSizeAndMaximumWeight() 127 CacheBuilderSpec spec = parse("concurrencyLevel=32"); in testParse_concurrencyLevel() [all …]
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/ |
D | ElementParser.java | 57 public void parse(String xmlFile){ in parse() method in ElementParser 61 parser.parse(xmlFile,this); in parse() 70 public void parse(String install, String type, String id){ in parse() method in ElementParser 82 parse(xmlFile); in parse() 107 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform-feature"); in main() 108 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.win32-feature"); in main() 109 … xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.linux.motif-feature"); in main() 110 … xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.linux.gtk-feature"); in main() 111 … xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.solaris.motif-feature"); in main() 112 … xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.aix.motif-feature"); in main() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | HttpDateTest.java | 47 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT").getTime()); in parseStandardFormats() 48 assertEquals(1402057830000L, HttpDate.parse("Fri, 06 Jun 2014 12:30:30 GMT").getTime()); in parseStandardFormats() 51 assertEquals(0L, HttpDate.parse("Thursday, 01-Jan-70 00:00:00 GMT").getTime()); in parseStandardFormats() 52 assertEquals(1402057830000L, HttpDate.parse("Friday, 06-Jun-14 12:30:30 GMT").getTime()); in parseStandardFormats() 55 assertEquals(0L, HttpDate.parse("Thu Jan 1 00:00:00 1970").getTime()); in parseStandardFormats() 56 assertEquals(1402057830000L, HttpDate.parse("Fri Jun 6 12:30:30 2014").getTime()); in parseStandardFormats() 66 assertEquals(3600000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT-01:00").getTime()); in parseNonStandardStrings() 67 assertEquals(28800000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 PST").getTime()); in parseNonStandardStrings() 69 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT JUNK").getTime()); in parseNonStandardStrings() 71 assertNull(HttpDate.parse("Thu, 01 Jan 1970 00:00:00")); in parseNonStandardStrings() [all …]
|
/external/v8/test/mjsunit/regress/ |
D | regress-944.js | 31 assertEquals(1290722550521, Date.parse("2010-11-25T22:02:30.521Z")); 35 assertEquals(1290722550500, Date.parse("2010-11-25T22:02:30.5Z")); 36 assertEquals(1290722550520, Date.parse("2010-11-25T22:02:30.52Z")); 37 assertFalse(Date.parse("2010-11-25T22:02:30.5Z") === Date.parse("2010-11-25T22:02:30.005Z")); 40 assertEquals(Date.parse("2010-11-25T22:02:30.1005Z"), Date.parse("2010-11-25T22:02:30.100Z")); 43 assertEquals(Date.parse("2010-11-25T22:02:30.999Z"), Date.parse("2010-11-25T22:02:30.99999999999999… 46 assertTrue(isNaN(Date.parse("2010-11-25T22:02:30.Z")));
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_iterate.c | 36 struct tgsi_parse_context parse; in tgsi_iterate_shader() local 38 if (tgsi_parse_init( &parse, tokens ) != TGSI_PARSE_OK) in tgsi_iterate_shader() 41 ctx->processor = parse.FullHeader.Processor; in tgsi_iterate_shader() 47 while (!tgsi_parse_end_of_tokens( &parse )) { in tgsi_iterate_shader() 48 tgsi_parse_token( &parse ); in tgsi_iterate_shader() 50 switch (parse.FullToken.Token.Type) { in tgsi_iterate_shader() 53 if (!ctx->iterate_instruction( ctx, &parse.FullToken.FullInstruction )) in tgsi_iterate_shader() 59 if (!ctx->iterate_declaration( ctx, &parse.FullToken.FullDeclaration )) in tgsi_iterate_shader() 65 if (!ctx->iterate_immediate( ctx, &parse.FullToken.FullImmediate )) in tgsi_iterate_shader() 71 if (!ctx->iterate_property( ctx, &parse.FullToken.FullProperty )) in tgsi_iterate_shader() [all …]
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | wpa_ft.c | 375 struct wpa_ft_ies parse; in wpa_ft_process_response() local 406 if (wpa_ft_parse_ies(ies, ies_len, &parse) < 0) { in wpa_ft_process_response() 411 mdie = (struct rsn_mdie *) parse.mdie; in wpa_ft_process_response() 412 if (mdie == NULL || parse.mdie_len < sizeof(*mdie) || in wpa_ft_process_response() 419 ftie = (struct rsn_ftie *) parse.ftie; in wpa_ft_process_response() 420 if (ftie == NULL || parse.ftie_len < sizeof(*ftie)) { in wpa_ft_process_response() 434 if (parse.r0kh_id == NULL) { in wpa_ft_process_response() 439 if (parse.r0kh_id_len != sm->r0kh_id_len || in wpa_ft_process_response() 440 os_memcmp_const(parse.r0kh_id, sm->r0kh_id, parse.r0kh_id_len) != 0) in wpa_ft_process_response() 445 parse.r0kh_id, parse.r0kh_id_len); in wpa_ft_process_response() [all …]
|
/external/chromium-trace/catapult/third_party/Paste/tests/ |
D | test_httpheaders.py | 66 assert EXPIRES.parse(headers) > time.time() 67 assert EXPIRES.parse(headers) < time.time() + 60 93 assert ('bytes',[(0,300)]) == RANGE.parse("bytes=0-300") 94 assert ('bytes',[(0,300)]) == RANGE.parse("bytes = -300") 95 assert ('bytes',[(0,None)]) == RANGE.parse("bytes= -") 96 assert ('bytes',[(0,None)]) == RANGE.parse("bytes=0 - ") 97 assert ('bytes',[(300,None)]) == RANGE.parse(" BYTES=300-") 98 assert ('bytes',[(4,5),(6,7)]) == RANGE.parse(" Bytes = 4 - 5,6 - 07 ") 99 assert ('bytes',[(0,5),(7,None)]) == RANGE.parse(" bytes=-5,7-") 100 assert ('bytes',[(0,5),(7,None)]) == RANGE.parse(" bytes=-5,7-") [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/template-output/ |
D | template-output.rb | 8 def parse( grammar, input, options = nil ) method in TestTemplateOutput 29 ANTLR3::Template::Group.parse( source.fixed_indent( 0 ) ) 34 text = parse( <<-'END', "abc 34" ) 61 text = parse( <<-'END', 'a + b', :templates => templates ) 82 text = parse( <<-'END', 'abc 34' ) 101 text = parse( <<-'END', "abc def ghi" ) 122 text = parse( <<-'END', "abc" ) 140 text = parse( <<-'END', 'abc' ) 185 text = parse( <<-'END', 'abc', :templates => templates ) 206 text = parse( <<-'END', 'b 34' ) [all …]
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_ttls.c | 178 static int eap_ttls_avp_parse(struct wpabuf *buf, struct eap_ttls_avp *parse) in eap_ttls_avp_parse() argument 186 os_memset(parse, 0, sizeof(*parse)); in eap_ttls_avp_parse() 230 if (parse->eap == NULL) { in eap_ttls_avp_parse() 231 parse->eap = os_malloc(dlen); in eap_ttls_avp_parse() 232 if (parse->eap == NULL) { in eap_ttls_avp_parse() 238 os_memcpy(parse->eap, dpos, dlen); in eap_ttls_avp_parse() 239 parse->eap_len = dlen; in eap_ttls_avp_parse() 241 u8 *neweap = os_realloc(parse->eap, in eap_ttls_avp_parse() 242 parse->eap_len + dlen); in eap_ttls_avp_parse() 249 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_avp_parse() [all …]
|
/external/llvm/lib/Support/ |
D | regcomp.c | 64 struct parse { struct 78 static void p_ere(struct parse *, int); argument 79 static void p_ere_exp(struct parse *); 80 static void p_str(struct parse *); 81 static void p_bre(struct parse *, int, int); 82 static int p_simp_re(struct parse *, int); 83 static int p_count(struct parse *); 84 static void p_bracket(struct parse *); 85 static void p_b_term(struct parse *, cset *); 86 static void p_b_cclass(struct parse *, cset *); [all …]
|
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/ |
D | ShortNumberInfoTest.java | 34 shortInfo.isPossibleShortNumberForRegion(parse("123456", RegionCode.FR), RegionCode.FR)); in testIsPossibleShortNumber() 49 assertTrue(shortInfo.isValidShortNumberForRegion(parse("1010", RegionCode.FR), RegionCode.FR)); in testIsValidShortNumber() 53 shortInfo.isValidShortNumberForRegion(parse("123456", RegionCode.FR), RegionCode.FR)); in testIsValidShortNumber() 64 parse(premiumRateExample, RegionCode.FR), RegionCode.FR)); in testGetExpectedCost() 73 parse(standardRateExample, RegionCode.FR), RegionCode.FR)); in testGetExpectedCost() 82 shortInfo.getExpectedCostForRegion(parse(tollFreeExample, RegionCode.FR), RegionCode.FR)); in testGetExpectedCost() 89 shortInfo.getExpectedCostForRegion(parse("12345", RegionCode.FR), RegionCode.FR)); in testGetExpectedCost() 97 shortInfo.isValidShortNumberForRegion(parse("116123", RegionCode.FR), RegionCode.FR)); in testGetExpectedCost() 99 shortInfo.getExpectedCostForRegion(parse("116123", RegionCode.FR), RegionCode.FR)); in testGetExpectedCost() 108 shortInfo.getExpectedCostForRegion(parse("911", RegionCode.US), RegionCode.ZZ)); in testGetExpectedCost() [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/debugging/ |
D | debug-mode.rb | 66 def parse( grammar, rule, input, options = {} ) method in TestDebugGrammars 99 parse( grammar, :a, 'a', :listener => listener ) 121 debugger = parse( grammar, :a, 'a' ) 151 debugger = parse( grammar, :a, "a b" ) 189 debugger = parse( grammar, :a, "a" ) 223 debugger = parse( grammar, :a, "a 1 b c 3" ) 294 debugger = parse( grammar, :a, "a 1 b c 3" ) 364 debugger = parse( grammar, :a, "a" ) 403 debugger = parse( grammar, :a, "a 1" ) 456 debugger = parse( grammar, :a, "a !" ) [all …]
|