Home
last modified time | relevance | path

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

12345678910>>...20

/frameworks/base/core/tests/coretests/src/android/content/pm/
DVerificationParamsTest.java39 private final static Uri VERIFICATION_URI = Uri.parse(VERIFICATION_URI_STRING);
40 private final static Uri ORIGINATING_URI = Uri.parse(ORIGINATING_URI_STRING);
41 private final static Uri REFERRER = Uri.parse(REFERRER_STRING);
69 Uri.parse(VERIFICATION_URI_STRING), Uri.parse(ORIGINATING_URI_STRING), in testEquals_Success()
70 Uri.parse(REFERRER_STRING), ORIGINATING_UID); in testEquals_Success()
80 Uri.parse("http://a.different.uri/"), Uri.parse(ORIGINATING_URI_STRING), in testEquals_VerificationUri_Failure()
81 Uri.parse(REFERRER_STRING), ORIGINATING_UID); in testEquals_VerificationUri_Failure()
91 Uri.parse(VERIFICATION_URI_STRING), Uri.parse("http://a.different.uri/"), in testEquals_OriginatingUri_Failure()
92 Uri.parse(REFERRER_STRING), ORIGINATING_UID); in testEquals_OriginatingUri_Failure()
102 Uri.parse(VERIFICATION_URI_STRING), Uri.parse(ORIGINATING_URI_STRING), in testEquals_Referrer_Failure()
[all …]
DVerifierDeviceIdentityTest.java178 VerifierDeviceIdentity id2 = VerifierDeviceIdentity.parse(TEST_1_ENCODED); in testVerifierDeviceIdentity_Parse_Normal()
187 VerifierDeviceIdentity id2 = VerifierDeviceIdentity.parse(TEST_MAXVALUE_ENCODED); in testVerifierDeviceIdentity_Parse_MaxValue()
194 VerifierDeviceIdentity.parse("AAAA-AAAA-AAAA-"); in testVerifierDeviceIdentity_Parse_TooShort()
203 VerifierDeviceIdentity.parse("----------------"); in testVerifierDeviceIdentity_Parse_WayTooShort()
212 VerifierDeviceIdentity.parse("AAAA-AAAA-AAAA-AA"); in testVerifierDeviceIdentity_Parse_TooLong()
221 VerifierDeviceIdentity.parse(TEST_OVERFLOW_ENCODED); in testVerifierDeviceIdentity_Parse_Overflow()
231 VerifierDeviceIdentity id2 = VerifierDeviceIdentity.parse(TEST_1_ENCODED_LOWERCASE); in testVerifierDeviceIdentity_Parse_SquashToUppercase()
240 VerifierDeviceIdentity id1 = VerifierDeviceIdentity.parse(TEST_SUBSTITUTION_CORRECTED); in testVerifierDeviceIdentity_Parse_1I_And_0O_Substitution()
242 VerifierDeviceIdentity id2 = VerifierDeviceIdentity.parse(TEST_SUBSTITUTION_UNCORRECTED); in testVerifierDeviceIdentity_Parse_1I_And_0O_Substitution()
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java49 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); in testParcelling()
80 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build(); in testBuildUponOpaqueStringUri()
93 Uri.parse("foo:bob%20lee").getSchemeSpecificPart()); in testStringUri()
95 Uri.parse("foo:bob%20lee").getEncodedSchemeSpecificPart()); in testStringUri()
97 Uri.parse("foo:/bob%20lee").getEncodedPath()); in testStringUri()
98 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri()
100 Uri.parse("foo:?bob%20lee").getEncodedQuery()); in testStringUri()
101 assertNull(Uri.parse("foo:bar#?bob%20lee").getQuery()); in testStringUri()
103 Uri.parse("foo:#bob%20lee").getEncodedFragment()); in testStringUri()
108 assertTrue(Uri.parse("bob").isHierarchical()); in testStringUriIsHierarchical()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DContentProviderTest.java60 assertEquals(Uri.parse("content://com.example/"), in testValidateIncomingUri_Normal()
61 mCp.validateIncomingUri(Uri.parse("content://com.example/"))); in testValidateIncomingUri_Normal()
62 assertEquals(Uri.parse("content://com.example/foo/bar"), in testValidateIncomingUri_Normal()
63 mCp.validateIncomingUri(Uri.parse("content://com.example/foo/bar"))); in testValidateIncomingUri_Normal()
64 assertEquals(Uri.parse("content://com.example/foo%2Fbar"), in testValidateIncomingUri_Normal()
65 mCp.validateIncomingUri(Uri.parse("content://com.example/foo%2Fbar"))); in testValidateIncomingUri_Normal()
66 assertEquals(Uri.parse("content://com.example/foo%2F%2Fbar"), in testValidateIncomingUri_Normal()
67 mCp.validateIncomingUri(Uri.parse("content://com.example/foo%2F%2Fbar"))); in testValidateIncomingUri_Normal()
72 assertEquals(Uri.parse("content://com.example/"), in testValidateIncomingUri_Shady()
73 mCp.validateIncomingUri(Uri.parse("content://com.example//"))); in testValidateIncomingUri_Shady()
[all …]
DContentResolverTest.java108 Uri.parse("content://com.example/"), new Size(1280, 960), null, in testLoadThumbnail_Normal()
123 Uri.parse("content://com.example/"), new Size(320, 240), null, in testLoadThumbnail_Scaling()
138 Uri.parse("content://com.example/"), new Size(240, 320), null, in testLoadThumbnail_Aspect()
153 Uri.parse("content://com.example/"), new Size(320, 240), null, in testLoadThumbnail_Tiny()
165 assertTranslate(Uri.parse("content://com.example/path/?foo=bar&baz=meow")); in testTranslateDeprecatedDataPath()
166 assertTranslate(Uri.parse("content://com.example/path/subpath/12/")); in testTranslateDeprecatedDataPath()
167 assertTranslate(Uri.parse("content://com.example/path/subpath/12")); in testTranslateDeprecatedDataPath()
168 assertTranslate(Uri.parse("content://com.example/path/12")); in testTranslateDeprecatedDataPath()
169 assertTranslate(Uri.parse("content://com.example/")); in testTranslateDeprecatedDataPath()
170 assertTranslate(Uri.parse("content://com.example")); in testTranslateDeprecatedDataPath()
/frameworks/base/core/tests/coretests/src/android/util/
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()
64 ZonedDateTime.parse("2015-12-14T00:00:00.00Z")), it.next()); in testSimpleMonth()
67 ZonedDateTime.parse("2015-10-14T00:00:00.00Z"), in testSimpleMonth()
68 ZonedDateTime.parse("2015-11-14T00:00:00.00Z")), it.next()); 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()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DObserverNodeTest.java48 Uri.parse("content://c/a/"), in testUri()
49 Uri.parse("content://c/"), in testUri()
50 Uri.parse("content://x/"), in testUri()
51 Uri.parse("content://c/b/"), in testUri()
52 Uri.parse("content://c/a/a1/1/"), in testUri()
53 Uri.parse("content://c/a/a1/2/"), in testUri()
54 Uri.parse("content://c/b/1/"), in testUri()
55 Uri.parse("content://c/b/2/"), in testUri()
82 Uri.parse("content://c/"), in testUriNotNotify()
83 Uri.parse("content://x/"), in testUriNotNotify()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
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()
93 return HSFriendlyNameElement.parse(payload); in parseHS20Element()
95 return HSWanMetricsElement.parse(payload); in parseHS20Element()
97 return HSConnectionCapabilityElement.parse(payload); in parseHS20Element()
99 return HSOsuProvidersElement.parse(payload); in parseHS20Element()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
DCertXmlTest.java48 CertXml certXml = CertXml.parse(certXmlBytes); in parse_succeeds()
55 CertXml.parse(TestData.readTestFile("xml/valid-cert-file-no-intermediates.xml")); in parse_succeedsIfNoIntermediateCerts()
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()
[all …]
DSigXmlTest.java46 SigXml sigXml = SigXml.parse(sigXmlBytes); in parseAndVerifyFileSignature_succeeds()
53 SigXml sigXml = SigXml.parse(sigXmlBytes); in parseAndVerifyFileSignature_throwsIfExpiredCert()
64 SigXml sigXml = SigXml.parse(sigXmlBytes); in parseAndVerifyFileSignature_throwsIfInvalidSignature()
79 SigXml sigXml = SigXml.parse(sigXmlBytes); in parseAndVerifyFileSignature_throwsIfRootCertWithWrongCommonName()
91 SigXml.parse(TestData.readTestFile("xml/valid-sig-file-no-intermediates.sig.xml")); in parse_succeedsWithoutIntermediateCerts()
100 SigXml.parse( in parse_throwsIfNoSignerCert()
112 SigXml.parse( in parse_throwsIfTwoSignerCerts()
124 SigXml.parse( in parse_throwsIfNoSignatureValue()
136 SigXml.parse( in parse_throwsIfTwoSignatureValues()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
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 …]
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 …]
/frameworks/base/tools/powermodel/test/com/android/powermodel/
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 …]
/frameworks/base/tools/aapt/tests/
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()
102 ASSERT_EQ(NO_ERROR, filter.parse(String8("fr_FR,en_US,normal,large,xxhdpi,sw320dp"))); 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()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DHbpcdLookup.java29 Uri.parse("content://" + AUTHORITY);
47 Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_IDD);
60 Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_LOOKUP_TABLE);
80 Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_SID_CONFLICT);
93 Uri.parse("content://" + AUTHORITY + "/" + PATH_MCC_SID_RANGE);
106 Uri.parse("content://" + AUTHORITY + "/" + PATH_ARBITRARY_MCC_SID_MATCH);
119 Uri.parse("content://" + AUTHORITY + "/" + PATH_NANP_AREA_CODE);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/eap/
DEAPMethod.java56 public static EAPMethod parse(ByteBuffer payload) throws ProtocolException { in parse() method in EAPMethod
90 return ExpandedEAPMethod.parse(payload, length, false); in parseAuthParam()
92 return NonEAPInnerAuth.parse(payload, length); in parseAuthParam()
94 return InnerAuthEAP.parse(payload, length); in parseAuthParam()
96 return ExpandedEAPMethod.parse(payload, length, true); in parseAuthParam()
98 return CredentialType.parse(payload, length, false); in parseAuthParam()
100 return CredentialType.parse(payload, length, true); in parseAuthParam()
102 return VendorSpecificAuth.parse(payload, length); in parseAuthParam()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DTimeZoneLookupHelperTest.java82 NitzData lonSummerNitzDataWithOffset = NitzData.parse(lonSummerTimeString + ",4"); in testLookupByNitzByNitz()
89 NitzData lonWinterNitzDataWithOffset = NitzData.parse(lonWinterTimeString + ",0"); in testLookupByNitzByNitz()
96 NitzData lonSummerNitzDataWithoutOffset = NitzData.parse(lonSummerTimeString); in testLookupByNitzByNitz()
103 NitzData lonWinterNitzDataWithoutOffset = NitzData.parse(lonWinterTimeString); in testLookupByNitzByNitz()
123 NitzData mtvSummerNitzDataWithOffset = NitzData.parse(mtvSummerTimeString + ",4"); in testLookupByNitzByNitz()
130 NitzData mtvWinterNitzDataWithOffset = NitzData.parse(mtvWinterTimeString + ",0"); in testLookupByNitzByNitz()
137 NitzData mtvSummerNitzDataWithoutOffset = NitzData.parse(mtvSummerTimeString); in testLookupByNitzByNitz()
144 NitzData mtvWinterNitzDataWithoutOffset = NitzData.parse(mtvWinterTimeString); in testLookupByNitzByNitz()
161 NitzData nitzData = NitzData.parse(nitzString); in testLookupByNitzCountry_filterByEffectiveDate()
171 NitzData nitzData = NitzData.parse(nitzString); in testLookupByNitzCountry_filterByEffectiveDate()
[all …]
/frameworks/base/core/java/android/util/
DXml.java52 public static void parse(String xml, ContentHandler contentHandler) in parse() method in Xml
57 reader.parse(new InputSource(new StringReader(xml))); in parse()
67 public static void parse(Reader in, ContentHandler contentHandler) in parse() method in Xml
71 reader.parse(new InputSource(in)); in parse()
78 public static void parse(InputStream in, Encoding encoding, in parse() method in Xml
84 reader.parse(source); in parse()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/eap/
DExpandedEAPMethodTest.java46 ExpandedEAPMethod.parse( in parseEmptyBuffer()
58 ExpandedEAPMethod.parse(ByteBuffer.wrap(TEST_DATA_BYTES), in parseBufferWithInvalidLength()
69 ExpandedEAPMethod.parse(ByteBuffer.wrap(TEST_DATA_BYTES, 0, TEST_DATA_BYTES.length - 1), in parseBufferWithTruncatedBuffer()
83 ExpandedEAPMethod actual = ExpandedEAPMethod.parse( in parseBufferForNonInnerEAPMethod()
98 ExpandedEAPMethod actual = ExpandedEAPMethod.parse( in parseBufferForTunneledEAPMethod()
DVendorSpecificAuthTest.java42 VendorSpecificAuth.parse(ByteBuffer.wrap(new byte[0]), 1); in parseEmptyBuffer()
52 VendorSpecificAuth.parse( in parseTruncatedBuffer()
65 assertEquals(expected, VendorSpecificAuth.parse(ByteBuffer.wrap(TEST_DATA), 0)); in parseBufferWithZeroLength()
78 VendorSpecificAuth.parse(ByteBuffer.wrap(TEST_DATA), TEST_DATA.length); in parseBuffer()
/frameworks/base/tests/net/common/java/android/net/
DCaptivePortalDataTest.kt38 .setUserPortalUrl(Uri.parse("https://portal.example.com/test"))
39 .setVenueInfoUrl(Uri.parse("https://venue.example.com/test"))
61 assertNotEqualsAfterChange { it.setUserPortalUrl(Uri.parse("https://example.com/")) } in testEquals()
63 assertNotEqualsAfterChange { it.setVenueInfoUrl(Uri.parse("https://example.com/")) } in testEquals()
73 assertEquals(Uri.parse("https://portal.example.com/test"), data.userPortalUrl) in testUserPortalUrl()
78 assertEquals(Uri.parse("https://venue.example.com/test"), data.venueInfoUrl) in testVenueInfoUrl()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DBatteryStatsReader.java38 public static ActivityReport parse(InputStream stream) throws ParseException, IOException { in parse() method in BatteryStatsReader
40 return parser.parse(); in parse()
63 ActivityReport parse() throws ParseException, IOException { in parse() method in BatteryStatsReader.Parser
64 mBs = RawBatteryStats.parse(mStream); in parse()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DCellularNetworkTest.java49 CellularNetwork.parse(ByteBuffer.allocate(0)); in parseBufferWithEmptyBuffer()
61 assertNull(CellularNetwork.parse(ByteBuffer.wrap(testData))); in parseBufferWithInvalidIEIType()
74 CellularNetwork.parse(ByteBuffer.wrap(testData, 0, testData.length - 1)); in parseBufferWithIncompleteData()
89 CellularNetwork.parse(ByteBuffer.wrap(testData)); in parseBufferWithMismatchIEISizeAndPLMNCount()
109 assertEquals(expected, CellularNetwork.parse(ByteBuffer.wrap(testData))); in parseBufferWithTestData()
DI18NameTest.java93 I18Name.parse(ByteBuffer.allocate(0)); in parseEmptyBuffer()
107 I18Name.parse(buffer); in parseTruncatedBuffer()
119 I18Name.parse(getTestBuffer(data, I18Name.MINIMUM_LENGTH - 1)); in parseBufferWithLengthLessThanMinimum()
131 I18Name actualName = I18Name.parse(getTestBuffer(data, data.length)); in parseBufferWithDefaultTestData()
148 I18Name actualName = I18Name.parse(getTestBuffer(data, data.length)); in parseBufferWithFrenchData()
162 I18Name actualName = I18Name.parse(getTestBuffer(data, data.length)); in parseBufferWithEmptyText()
DNAIRealmDataTest.java41 NAIRealmData.parse(ByteBuffer.wrap(new byte[0])); in parseEmptyBuffer()
54 NAIRealmData.parse(buffer); in parseTruncatedBuffer()
66 assertEquals(NAIRealmDataTestUtil.TEST_REALM_DATA, NAIRealmData.parse(buffer)); in parseBufferWithUTF8EncodedNAIRealmData()
79 assertEquals(NAIRealmDataTestUtil.TEST_REALM_DATA, NAIRealmData.parse(buffer)); in parseBufferWithNonUTF8EncodedNAIRealmData()

12345678910>>...20