Home
last modified time | relevance | path

Searched refs:parse (Results 1 – 25 of 1598) sorted by relevance

12345678910>>...64

/aosp12/frameworks/base/core/tests/coretests/src/android/net/
H A DUriTest.java115 Uri.parse(null); in testNullUriString()
130 Uri a = Uri.parse("foo:a"); in testCompareTo()
131 Uri b = Uri.parse("foo:b"); in testCompareTo()
132 Uri b2 = Uri.parse("foo:b"); in testCompareTo()
207 uri = Uri.parse("http://localhost"); in testAuthorityParsing()
254 Uri base = Uri.parse("content://sms"); in testSms()
301 Uri uri = Uri.parse("content://user"); in testQueryParameters()
329 Uri uri = Uri.parse("empty:"); in testSchemeOnly()
337 Uri uri = Uri.parse("content://user"); in testEmptyPath()
379 Uri uri = Uri.parse("mailto:nobody"); in testOpaqueUri()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/content/
H A DContentProviderTest.java61 assertEquals(Uri.parse("content://com.example/"), in testValidateIncomingUri_Normal()
62 mCp.validateIncomingUri(Uri.parse("content://com.example/"))); in testValidateIncomingUri_Normal()
63 assertEquals(Uri.parse("content://com.example/foo/bar"), in testValidateIncomingUri_Normal()
65 assertEquals(Uri.parse("content://com.example/foo%2Fbar"), in testValidateIncomingUri_Normal()
67 assertEquals(Uri.parse("content://com.example/foo%2F%2Fbar"), in testValidateIncomingUri_Normal()
73 assertEquals(Uri.parse("content://com.example/"), in testValidateIncomingUri_Shady()
75 assertEquals(Uri.parse("content://com.example/foo/bar/"), in testValidateIncomingUri_Shady()
77 assertEquals(Uri.parse("content://com.example/foo/bar/"), in testValidateIncomingUri_Shady()
79 assertEquals(Uri.parse("content://com.example/foo%2F%2Fbar/baz"), in testValidateIncomingUri_Shady()
93 Uri uri = Uri.parse("content://com.example/foo/bar"); in testCreateContentUriForUser()
[all …]
H A DContentResolverTest.java113 Uri.parse("content://com.example/"), new Size(1280, 960), null, in testLoadThumbnail_Normal()
128 Uri.parse("content://com.example/"), new Size(320, 240), null, in testLoadThumbnail_Scaling()
143 Uri.parse("content://com.example/"), new Size(240, 320), null, in testLoadThumbnail_Aspect()
158 Uri.parse("content://com.example/"), new Size(320, 240), null, in testLoadThumbnail_Tiny()
174 Uri.parse("content://com.example/"), new Size(1080, 540), null, in testLoadThumbnail_Large()
186 assertTranslate(Uri.parse("content://com.example/path/?foo=bar&baz=meow")); in testTranslateDeprecatedDataPath()
187 assertTranslate(Uri.parse("content://com.example/path/subpath/12/")); in testTranslateDeprecatedDataPath()
188 assertTranslate(Uri.parse("content://com.example/path/subpath/12")); in testTranslateDeprecatedDataPath()
189 assertTranslate(Uri.parse("content://com.example/path/12")); in testTranslateDeprecatedDataPath()
190 assertTranslate(Uri.parse("content://com.example/")); in testTranslateDeprecatedDataPath()
[all …]
/aosp12/packages/services/Telephony/tests/src/com/android/services/telephony/
H A DImsConferenceTest.java94 Uri.parse("tel:6505551212"), in testPropertyPropagation()
100 Uri.parse("tel:6505551213"), in testPropertyPropagation()
136 Uri.parse("tel:6505551212"), in testSinglePartyEmulation()
142 Uri.parse("tel:6505551213"), in testSinglePartyEmulation()
187 Uri.parse("tel:6505551212"), in testDisconnectParticipantViaDisconnectState()
193 Uri.parse("tel:6505551213"), in testDisconnectParticipantViaDisconnectState()
200 Uri.parse("tel:6505551214"), in testDisconnectParticipantViaDisconnectState()
215 Uri.parse("tel:6505551214"), in testDisconnectParticipantViaDisconnectState()
251 Uri.parse("tel:6505551212"), in testDisconnectParticipantViaRemoval()
257 Uri.parse("tel:6505551213"), in testDisconnectParticipantViaRemoval()
[all …]
H A DConferenceParticipantConnectionTest.java38 assertUrisEqual(Uri.parse("tel:+16505551212"), in testParticipantParseSimpleTel()
39 getParticipantAddress(Uri.parse("tel:6505551212"), "US")); in testParticipantParseSimpleTel()
44 assertUrisEqual(Uri.parse("tel:+16505551212"), in testParticipantParseTelExtended()
45 getParticipantAddress(Uri.parse("tel:6505551212;phone-context=blah"), "US")); in testParticipantParseTelExtended()
50 assertUrisEqual(Uri.parse("tel:+16505551212"), in testParticipantParseSip()
57 assertUrisEqual(Uri.parse("tel:+12125551212"), in testParticipantParseSip2()
58 getParticipantAddress(Uri.parse("sip:+1-212-555-1212@something.com;user=phone"), in testParticipantParseSip2()
64 assertUrisEqual(Uri.parse("tel:+819066570660"), in testParticipantParseTelJp()
65 getParticipantAddress(Uri.parse( in testParticipantParseTelJp()
72 assertUrisEqual(Uri.parse("tel:+819066571180"), in testParticipantParseSipJp()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DCutoutSpecificationTest.java145 CutoutSpecification cutoutSpecification = mParser.parse(""); in parse_emptyString_pathShouldBeNull()
194 .parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_tabletLikeDevice_shouldHaveLeftBound()
201 .parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_tabletLikeDevice_shouldHaveTopBound()
208 .parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_tabletLikeDevice_shouldHaveRightBound()
215 .parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_tabletLikeDevice_shouldHaveBottomBound()
222 .parse(WITH_BIND_CUTOUT_SPECIFICATION); in parse_withBindMarker_tabletLikeDevice_shouldMatchExpectedSafeInset()
228 CutoutSpecification cutoutSpecification = mParser.parse("M 0,0\n" in parse_tallCutout_topBoundShouldMatchExpectedHeight()
324 .parse(CORNER_CUTOUT_SPECIFICATION); in getSafeInset_shortEdgeIsTopBottom_shouldMatchExpectedInset()
334 .parse(CORNER_CUTOUT_SPECIFICATION); in getSafeInset_shortEdgeIsLeftRight_shouldMatchExpectedInset()
344 .parse("@bottom" in parse_bottomLeftSpec_withBindLeftMarker_shouldBeLeftBound()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/util/
H A DRecurrenceRuleTest.java52 setClock(Instant.parse("2015-11-20T10:15:30.00Z")); in testSimpleMonth()
54 ZonedDateTime.parse("2010-11-14T00:00:00.000Z"), in testSimpleMonth()
63 ZonedDateTime.parse("2015-11-14T00:00:00.00Z"), in testSimpleMonth()
67 ZonedDateTime.parse("2015-10-14T00:00:00.00Z"), in testSimpleMonth()
72 setClock(Instant.parse("2015-01-01T10:15:30.00Z")); in testSimpleDays()
74 ZonedDateTime.parse("2010-11-14T00:11:00.000Z"), in testSimpleDays()
75 ZonedDateTime.parse("2010-11-20T00:11:00.000Z"), in testSimpleDays()
83 ZonedDateTime.parse("2010-11-17T00:11:00.00Z"), in testSimpleDays()
87 ZonedDateTime.parse("2010-11-14T00:11:00.00Z"), in testSimpleDays()
93 setClock(Instant.parse("2015-01-01T10:15:30.00Z")); in testNotRecurring()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/content/
H A DObserverNodeTest.java70 Uri.parse("content://c/a/"), in testUri()
71 Uri.parse("content://c/"), in testUri()
72 Uri.parse("content://x/"), in testUri()
73 Uri.parse("content://c/b/"), in testUri()
76 Uri.parse("content://c/b/1/"), in testUri()
77 Uri.parse("content://c/b/2/"), in testUri()
104 Uri.parse("content://c/"), in testUriNotNotify()
105 Uri.parse("content://x/"), in testUriNotNotify()
106 Uri.parse("content://c/a/"), in testUriNotNotify()
107 Uri.parse("content://c/b/"), in testUriNotNotify()
[all …]
/aosp12/system/extras/perf2cfg/tests/
H A Dtest_parse.py17 from perf2cfg import parse
23 got = parse.build_flags([])
27 got = parse.build_flags(['catch_block', 'critical'])
31 got = parse.build_name('void hcf()')
36 parse.parse_address(':)')
41 got = parse.parse_address('0x0000001c: d503201f nop')
46 parse.parse_flags('name "void hcf()"')
51 got = parse.parse_flags('flags')
60 parse.parse_name('flags "catch_block" "critical"')
66 parse.parse_name('name')
[all …]
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
H A DVendorServiceInfoTest.java39 VendorServiceInfo.parse(""); in emptyString()
45 VendorServiceInfo.parse(SERVICE_NAME + "#user=system#bind=bind"); in multipleHashTags()
51 VendorServiceInfo.parse(SERVICE_NAME + "#user=system,unknownKey=blah"); in unknownArg()
57 VendorServiceInfo.parse("invalidComponentName"); in invalidComponentName()
62 VendorServiceInfo info = VendorServiceInfo.parse(SERVICE_NAME); in testServiceNameWithDefaults()
74 VendorServiceInfo info = VendorServiceInfo.parse(SERVICE_NAME + "#bind=start"); in startService()
83 VendorServiceInfo info = VendorServiceInfo.parse(SERVICE_NAME + "#bind=bind"); in bindService()
110 VendorServiceInfo.parse(SERVICE_NAME + "#trigger=whenever"); in triggerUnknown()
129 VendorServiceInfo info = VendorServiceInfo.parse(SERVICE_NAME + "#user=all"); in userScopeAll()
137 VendorServiceInfo.parse(SERVICE_NAME + "#user=whoever"); in userUnknown()
[all …]
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
H A DANQPParser.java62 return VenueNameElement.parse(payload); in parseElement()
64 return RoamingConsortiumElement.parse(payload); in parseElement()
66 return IPAddressTypeAvailabilityElement.parse(payload); in parseElement()
68 return NAIRealmElement.parse(payload); in parseElement()
70 return ThreeGPPNetworkElement.parse(payload); in parseElement()
72 return DomainNameElement.parse(payload); in parseElement()
76 return VenueUrlElement.parse(payload); in parseElement()
95 return HSFriendlyNameElement.parse(payload); in parseHS20Element()
97 return HSWanMetricsElement.parse(payload); in parseHS20Element()
99 return HSConnectionCapabilityElement.parse(payload); in parseHS20Element()
[all …]
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
H A DUriTest.java29 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); in testParcelling()
103 Uri uri = Uri.parse("http://localhost:42"); in testStringUri()
116 uri = Uri.parse("http://localhost"); in testStringUri()
149 uri = Uri.parse( in testStringUri()
165 Uri a = Uri.parse("foo:a"); in testCompareTo()
166 Uri b = Uri.parse("foo:b"); in testCompareTo()
167 Uri b2 = Uri.parse("foo:b"); in testCompareTo()
273 Uri uri = Uri.parse("content://user"); in testQueryParameters()
325 Uri uri = Uri.parse("mailto:nobody"); in testOpaqueUri()
414 Uri uri = Uri.parse(uriString); in testHierarchical()
[all …]
/aosp12/packages/modules/Connectivity/tests/common/java/android/net/
H A DCaptivePortalDataTest.kt43 .setUserPortalUrl(Uri.parse("https://portal.example.com/test"))
44 .setVenueInfoUrl(Uri.parse("https://venue.example.com/test"))
61 setUserPortalUrl(Uri.parse("https://tc.example.com/passpoint"),
63 setVenueInfoUrl(Uri.parse("https://venue.example.com/passpoint"),
100 Uri.parse("https://tc.example.com/passpoint")) }
102 Uri.parse("https://tc.example.com/passpoint"),
105 Uri.parse("https://tc.example.com/other"),
108 Uri.parse("https://tc.example.com/passpoint"),
111 Uri.parse("https://venue.example.com/passpoint")) }
113 Uri.parse("https://venue.example.com/other"),
[all …]
/aosp12/system/libvintf/include/vintf/
H A Dparse_string.h61 bool parse(const std::string &s, HalFormat *hf);
62 bool parse(const std::string &s, Transport *tr);
63 bool parse(const std::string &s, Arch *ar);
66 bool parse(const std::string &s, Tristate *tr);
67 bool parse(const std::string &s, SchemaType *ver);
69 bool parse(const std::string& s, Level* l);
71 bool parse(const std::string &s, Version *ver);
72 bool parse(const std::string &s, VersionRange *vr);
79 bool parse(const std::string &s, KernelVersion *ver);
81 bool parse(const std::string &s, TransportArch *ta);
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
H A DCertXmlTest.java48 CertXml certXml = CertXml.parse(certXmlBytes); in parse_succeeds()
61 CertXml certXml = CertXml.parse(certXmlBytes); in parse_checkIntermediateCerts()
70 CertXml certXml = CertXml.parse(certXmlBytes); in parse_checkEndpointCerts()
78 CertXml.parse( in parse_doesNotThrowIfNoRefreshInterval()
89 CertXml.parse( in parse_throwsIfNoEndpointCert()
101 CertXml.parse( in parse_throwsIfNoSerial()
113 CertXml.parse( in parse_throwsIfTwoSerials()
121 CertXml certXml = CertXml.parse(certXmlBytes); in parseAndValidateAllCerts_succeeds()
132 CertXml certXml = CertXml.parse(certXmlBytes); in parseAndValidate_returnsExpectedCertPath()
147 CertXml certXml = CertXml.parse(certXmlBytes); in validateCert_throwsIfRootCertWithDifferentCommonName()
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccPkcs15.java314 tlvRule.parse(data, false); in parseOdf()
318 tlvAsnPath.parse(ruleString, true); in parseOdf()
319 tlvPath.parse(tlvAsnPath.getValue(), true); in parseOdf()
338 acRules = dodfTag.parse(acRules, false); in parseDodf()
356 oidDoTag.parse(ruleString, true); in parseDodf()
360 oidDo.parse(ruleString, true); in parseDodf()
364 oidTag.parse(ruleString, false); in parseDodf()
392 acmfTag.parse(data, false); in parseAcmf()
403 tlvAsnPath.parse(ruleString, true); in parseAcmf()
404 tlvPath.parse(tlvAsnPath.getValue(), true); in parseAcmf()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DVisualVoicemailSmsParserTest.java28 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsing()
44 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsing_TrailingSemiColon()
60 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsing_EmptyPrefix()
76 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsing_EmptyField()
83 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_NotVvm()
91 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_PrefixMismatch()
99 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_MissingFirstColon()
107 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_MissingSecondColon()
115 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_MessageEndAfterClientPrefix()
123 WrappedMessageData result = VisualVoicemailSmsParser.parse("//VVM", in testParsingFail_MessageEndAfterPrefix()
[all …]
H A DNitzDataTest.java33 assertNull(NitzData.parse("38/06/20,00:00:00+0")); in testParse_dateOutsideAllowedRange()
41 assertNull(NitzData.parse("38/06/20,00:00:00")); in testParse_missingRequiredFields()
49 NitzData nitz = NitzData.parse("15/06/20,01:02:03-1,0"); in testParse_withDst()
56 NitzData nitz = NitzData.parse("15/06/20,01:02:03+8,1"); in testParse_withDst()
63 NitzData nitz = NitzData.parse("15/06/20,01:02:03-8,1"); in testParse_withDst()
74 NitzData nitz = NitzData.parse("15/06/20,01:02:03+4"); in testParse_noDstField()
81 NitzData nitz = NitzData.parse("15/06/20,01:02:03-4"); in testParse_noDstField()
91 NitzData nitz = NitzData.parse("15/06/20,01:02:03-32,1,America!Los_Angeles"); in testParse_androidEmulatorTimeZoneExtension()
100 assertNotNull(NitzData.parse("15/06/20,01:02:03-32").toString()); in testToString()
101 assertNotNull(NitzData.parse("15/06/20,01:02:03-32,4").toString()); in testToString()
[all …]
/aosp12/bionic/libc/upstream-netbsd/lib/libc/regex/
H A Dregcomp.c108 struct parse { struct
239 struct parse pa; in regcomp()
341 struct parse *p, in p_ere()
395 struct parse *p, in p_ere_exp()
549 struct parse *p) in p_str()
573 struct parse *p, in p_bre()
616 struct parse *p, in p_simp_re()
738 struct parse *p) in p_count()
763 struct parse *p) in p_bracket()
844 struct parse *p, in p_b_term()
[all …]
/aosp12/system/bt/gd/rust/gddi/macros/
H A Dlib.rs6 use syn::parse::{Parse, ParseStream, Result};
67 fn parse(input: ParseStream) -> Result<Self> { in parse() method
69 let name = input.parse()?; in parse()
70 input.parse::<Token![,]>()?; in parse()
96 fn parse(input: ParseStream) -> Result<Self> { in parse() method
99 match input.parse::<Ident>()?.to_string().as_str() { in parse()
106 let ty = input.parse()?; in parse()
107 input.parse::<Token![=>]>()?; in parse()
108 let ident = input.parse()?; in parse()
114 fn parse(input: ParseStream) -> Result<Self> { in parse() method
[all …]
/aosp12/frameworks/base/tools/powermodel/test/com/android/powermodel/
H A DCsvParserTest.java67 CsvParser.parse(is, collector); in testEmpty()
79 CsvParser.parse(is, collector); in testOnlyNewline()
91 CsvParser.parse(is, collector); in testTwoLines()
106 CsvParser.parse(is, collector); in testEscapedEmpty()
119 CsvParser.parse(is, collector); in testEscapedText()
132 CsvParser.parse(is, collector); in testEscapedQuotes()
145 CsvParser.parse(is, collector); in testEscapedCommas()
158 CsvParser.parse(is, collector); in testEscapedQuotesAndCommas()
171 CsvParser.parse(is, collector); in testNoNewline()
184 CsvParser.parse(is, collector); in testNoNewlineWithCommas()
[all …]
/aosp12/hardware/interfaces/identity/support/include/cppbor/
H A Dcppbor_parse.h37 ParseResult parse(const uint8_t* begin, const uint8_t* end);
50 inline ParseResult parse(const std::vector<uint8_t>& encoding) { in parse() function
51 return parse(encoding.data(), encoding.data() + encoding.size()); in parse()
65 inline ParseResult parse(const uint8_t* begin, size_t size) { in parse() function
66 return parse(begin, begin + size); in parse()
75 void parse(const uint8_t* begin, const uint8_t* end, ParseClient* parseClient);
81 inline void parse(const std::vector<uint8_t>& encoding, ParseClient* parseClient) { in parse() function
82 return parse(encoding.data(), encoding.data() + encoding.size(), parseClient); in parse()
/aosp12/frameworks/base/tools/aapt/tests/
H A DResourceFilter_test.cpp32 ASSERT_EQ(NO_ERROR, filter.parse(String8(""))); in TEST()
47 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr"))); in TEST()
57 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr"))); in TEST()
68 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr"))); in TEST()
80 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr_FR,sw360dp,normal,en_US"))); in TEST()
91 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr"))); in TEST()
115 ASSERT_EQ(NO_ERROR, filter.parse(String8("sw600dp"))); in TEST()
128 ASSERT_EQ(NO_ERROR, filter.parse(String8("de-rDE"))); in TEST()
139 EXPECT_EQ(NO_ERROR, filter.parse(String8("de_DE"))); in TEST()
144 ASSERT_EQ(NO_ERROR, filter.parse(String8("normal-v4"))); in TEST()
[all …]
/aosp12/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/
H A DCodeUtilsTest.kt64 StaticJavaParser.parse(code), "org.example.Test", "")
73 StaticJavaParser.parse(code), "org.example.Test", "")
82 StaticJavaParser.parse(code), "org.example.Test", "")
91 StaticJavaParser.parse(code), "org.example.Test", "")
100 StaticJavaParser.parse(code), "org.example.Test"))
108 StaticJavaParser.parse(code), "org.example.test.Test"))
117 StaticJavaParser.parse(code), "org.example.Test2"))
126 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code),
138 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code),
150 val imported = CodeUtils.staticallyImportedMethods(StaticJavaParser.parse(code),
H A DProtoLogCallProcessorTest.kt69 visitor.process(StaticJavaParser.parse(code), processor, "")
96 visitor.process(StaticJavaParser.parse(code), processor, "")
115 visitor.process(StaticJavaParser.parse(code), processor, "")
133 visitor.process(StaticJavaParser.parse(code), processor, "")
150 visitor.process(StaticJavaParser.parse(code), processor, "")
165 visitor.process(StaticJavaParser.parse(code), processor, "")
179 visitor.process(StaticJavaParser.parse(code), processor, "")
193 visitor.process(StaticJavaParser.parse(code), processor, "")
207 visitor.process(StaticJavaParser.parse(code), processor, "")
223 visitor.process(StaticJavaParser.parse(code), processor, "")

12345678910>>...64