Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/net/src/android/net/cts/
DUriTest.java28 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); in testParcelling()
53 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build(); in testBuildUpon()
80 Uri.parse("foo:bob%20lee").getSchemeSpecificPart()); in testStringUri()
82 Uri.parse("foo:bob%20lee").getEncodedSchemeSpecificPart()); in testStringUri()
85 Uri.parse("foo:/bob%20lee").getEncodedPath()); in testStringUri()
86 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri()
89 Uri.parse("foo:?bob%20lee").getEncodedQuery()); in testStringUri()
90 assertNull(Uri.parse("foo:bob%20lee").getEncodedQuery()); in testStringUri()
91 assertNull(Uri.parse("foo:bar#?bob%20lee").getQuery()); in testStringUri()
94 Uri.parse("foo:#bob%20lee").getEncodedFragment()); in testStringUri()
[all …]
DMailToTest.java46 MailTo mailTo_1 = MailTo.parse(MAILTOURI_1); in testParseMailToURI()
56 MailTo mailTo_2 = MailTo.parse(MAILTOURI_2); in testParseMailToURI()
69 MailTo mailTo_3 = MailTo.parse(MAILTOURI_3); in testParseMailToURI()
82 MailTo mailTo_4 = MailTo.parse(MAILTOURI_4); in testParseMailToURI()
96 MailTo mailTo_5 = MailTo.parse(MAILTOURI_5); in testParseMailToURI()
111 MailTo mailTo_6 = MailTo.parse(MAILTOURI_6); in testParseMailToURI()
DUri_BuilderTest.java25 Uri uri = Uri.parse("http://google.com/p1?query#fragment"); in testBuilderOperations()
35 uri = Uri.parse("mailto:nobody"); in testBuilderOperations()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DIntentFiltersTestHelper.java105 Uri.parse("content://browser/bookmarks")),
107 Uri.parse("http://www.example.com")).addCategory(
110 Uri.parse("mailto:user@example.com")),
112 Uri.parse("mailto:user@example.com")).addCategory(
115 Uri.parse("geo:0,0?q=BuckinghamPalace")),
117 Uri.parse("http://example.com/oceans.mp4")).setType("video/mp4"),
119 Uri.parse("http://www.example.com/horse.mp3")).setType("audio/*"),
122 Uri.parse("market://details?id=com.android.chrome")).addCategory(
128 Uri.parse("package:com.android.chrome")),
151 new Intent(Intent.ACTION_DIAL).setData(Uri.parse("tel:123")), in addIntentsThatDependOnDeviceFeatures()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DIntentFilter_AuthorityEntryTest.java55 Uri uri = Uri.parse("testUri"); in testMatch()
57 uri = Uri.parse("content://contacts/deleted_people"); in testMatch()
59 uri = Uri.parse("test"); in testMatch()
62 uri = Uri.parse("http://" + mHost); in testMatch()
66 uri = Uri.parse("http://" + mHost + ":90"); in testMatch()
70 uri = Uri.parse("http://" + mHost + ":80"); in testMatch()
74 uri = Uri.parse("http://" + mHost + ":80"); in testMatch()
DUriMatcherTest.java37 private Uri uri1 = Uri.parse("content://" + sAuthority + "/" + sPath1);
38 private Uri uri2 = Uri.parse("content://" + sAuthority + "/" + sPath2);
39 private Uri uri3 = Uri.parse("content://" + sAuthority + "/" + sPath3);
40 private Uri uri4 = Uri.parse("content://" + sAuthority + "/" + sPath4);
64 Uri unknown = Uri.parse("abc"); in testMatch()
DAvailableIntentsTest.java55 Uri uri = Uri.parse(NORMAL_URL); in testViewNormalUrl()
65 Uri uri = Uri.parse(SECURE_URL); in testViewSecureUrl()
75 Uri uri = Uri.parse(NORMAL_URL); in testWebSearchNormalUrl()
86 Uri uri = Uri.parse(SECURE_URL); in testWebSearchSecureUrl()
109 Uri uri = Uri.parse("tel:2125551212"); in testCallPhoneNumber()
121 Uri uri = Uri.parse("tel:(212)5551212"); in testDialPhoneNumber()
133 Uri uri = Uri.parse("voicemail:"); in testDialVoicemail()
DContentUrisTest.java32 private Uri uri1 = Uri.parse("content://" + AUTHORITY + "/" + PATH1);
33 private Uri uri2 = Uri.parse("content://" + AUTHORITY + "/" + PATH2);
47 assertEquals(-1, ContentUris.parseId(Uri.parse(""))); in testParseId()
DContentResolverTest.java54 private static final Uri TABLE1_URI = Uri.parse("content://" + AUTHORITY + "/testtable1/");
56 Uri.parse("content://" + AUTHORITY + "/testtable1/cross");
57 private static final Uri TABLE2_URI = Uri.parse("content://" + AUTHORITY + "/testtable2/");
58 private static final Uri SELF_URI = Uri.parse("content://" + AUTHORITY + "/self/");
59 private static final Uri CRASH_URI = Uri.parse("content://" + AUTHORITY + "/crash/");
61 private static final Uri LEVEL1_URI = Uri.parse("content://" + AUTHORITY + "/level/");
62 private static final Uri LEVEL2_URI = Uri.parse("content://" + AUTHORITY + "/level/child");
63 private static final Uri LEVEL3_URI = Uri.parse("content://" + AUTHORITY
67 private static final Uri REMOTE_TABLE1_URI = Uri.parse("content://"
69 private static final Uri REMOTE_SELF_URI = Uri.parse("content://"
[all …]
DContentProviderTest.java53 Uri uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + in testOpenAssetFile()
113 Uri uri = Uri.parse("content://browser/bookmarks"); in testBulkInsert()
172 Uri uri = Uri.parse("content://test"); in testOpenFile()
194 Uri uri = Uri.parse("content://test"); in testOpenFileHelper()
198 uri = Uri.parse("content://test"); in testOpenFileHelper()
208 uri = Uri.parse("content://test"); in testOpenFileHelper()
DIntentTest.java262 mIntent.setData(Uri.parse("test")); in testResolveType1()
274 mIntent.setData(Uri.parse("test")); in testResolveType2()
346 assertEquals(Uri.parse("http://www.google.com/"), mIntent.getData()); in testParseIntent()
963 .setData(Uri.parse("http://www.example.com/blah"))); in testUris()
968 .setData(Uri.parse("http://www.example.com/blah")) in testUris()
974 .setData(Uri.parse("http://www.example.com/blah#fragment"))); in testUris()
979 .setData(Uri.parse("http://www.example.com/blah"))); in testUris()
984 .setDataAndType(Uri.parse("mailto:foo"), "image/foo")); in testUris()
989 .setData(Uri.parse("mailto:foo")) in testUris()
999 .setData(Uri.parse("mailto:foo")) in testUris()
[all …]
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
DTestPackageXmlParserTest.java98 parser.parse(getStringAsStream(INSTR_TEST_DATA)); in testParse_instrPackage()
112 parser.parse(getStringAsStream(HOST_TEST_DATA)); in testParse_hostTest()
136 parser.parse(getStringAsStream(HOST_TEST_DATA)); in testParse_hostTest_noKnownFailures()
159 parser.parse(getStringAsStream(BAD_HOST_TEST_DATA)); in testParse_badHostTest()
175 parser.parse(getStringAsStream(xml)); in assertTestType()
186 parser.parse(getStringAsStream(NO_TEST_DATA)); in testParse_noData()
195 parser.parse(getStringAsStream(INSTANCED_TEST_DATA)); in testParse_instancedMultiple()
219 parser.parse(getStringAsStream(INSTANCED_TEST_DATA)); in testParse_instancedSingle()
240 parser.parse(getStringAsStream(INSTANCED_TEST_DATA)); in testParse_instancedEmptys()
263 parser.parse(getStringAsStream(INSTANCED_TEST_DATA)); in testParse_instancedNoInstances()
DTestPlanTest.java85 mPlan.parse(getStringAsStream(TEST_DATA)); in testParse()
114 mPlan.parse(getStringAsStream(TEST_EXCLUDED_DATA)); in testParse_exclude()
130 mPlan.parse(getStringAsStream(TEST_MULTI_EXCLUDED_DATA)); in testParse_multiExclude()
156 mPlan.parse(getStringAsStream(TEST_CLASS_EXCLUDED_DATA)); in testParse_classExclude()
190 parsedPlan.parse(getStringAsStream(outStream.toString())); in testSerialize_packages()
212 parsedPlan.parse(getStringAsStream(outStream.toString())); in testSerialize_multiExclude()
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_DumpFileProviderTest.java53 Uri uri = Uri.parse(URI_PREFIX + fileName); in testOpenFileDescriptor_throwsErrorWithIllegalFileName()
60 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testOpenFileDescriptor_worksWithValidFileName()
71 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testQuery_throwsErrorWithIllegalFileName()
78 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testQuery_worksWithValidFileName()
/cts/tests/tests/telecom/src/android/telecom/cts/
DPhoneAccountOperationsTest.java55 .setAddress(Uri.parse("tel:555-TEST"))
56 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
65 .setAddress(Uri.parse("tel:555-TEST"))
66 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
78 .setAddress(Uri.parse("tel:555-TEST"))
79 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
146 .setAddress(Uri.parse("tel:555-TEST")) in testRegisterPhoneAccount_DisallowEnable()
147 .setSubscriptionAddress(Uri.parse("tel:555-TEST")) in testRegisterPhoneAccount_DisallowEnable()
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/
DTestResultsTest.java56 parser.parse(new StringReader("<Empty/>")); in testParse_empty()
65 parser.parse(new StringReader(TEST_PACKAGE_FULL)); in testParse_package()
80 parser.parse(new StringReader(RESULT_START + TEST_PACKAGE_START + RESULT_END)); in testParse_corrupt()
92 parser.parse(new StringReader(TEST_FULL)); in testParse_test()
DTestSummaryXmlTest.java52 result.parse(getStringAsReader(TEST_DATA)); in testParse()
65 result.parse(getStringAsReader(MISSING_DATA)); in testParse_missing()
/cts/tests/tests/text/src/android/text/style/cts/
DImageSpanTest.java52 new ImageSpan(mContext, Uri.parse("content://user/a/b")); in testConstructor()
53 new ImageSpan(mContext, Uri.parse("content://user/a/b"), in testConstructor()
55 new ImageSpan(mContext, Uri.parse("content://user/a/b"), in testConstructor()
83 imageSpan = new ImageSpan(mContext, Uri.parse(source)); in testGetSource()
98 imageSpan = new ImageSpan(mContext, Uri.parse("unknown uri.")); in testGetDrawable()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DAbstractXmlPullParser.java41 public void parse(Reader xmlReader) throws ParseException { in parse() method in AbstractXmlPullParser
46 parse(parser); in parse()
54 abstract void parse(XmlPullParser parser) throws XmlPullParserException, IOException; in parse() method in AbstractXmlPullParser
/cts/tests/tests/webkit/src/android/webkit/cts/
DPostMessageTest.java108 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testSimpleMessageToMainFrame()
121 Uri.parse(BASE_URI)); in testMultipleMessagesToMainFrame()
134 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testMessageChannel()
165 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testClose()
208 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testReceiveMessagePort()
/cts/libs/vogar-expect/src/vogar/
DExpectationStore.java121 … public static ExpectationStore parse(Set<File> expectationFiles, ModeId mode) throws IOException { in parse() method in ExpectationStore
125 result.parse(f, mode); in parse()
150 result.parse(url, mode); in parseResources()
156 private void parse(URL url, ModeId mode) throws IOException { in parse() method in ExpectationStore
161 parse(reader, url.toString(), mode); in parse()
165 public void parse(File expectationsFile, ModeId mode) throws IOException { in parse() method in ExpectationStore
170 parse(fileReader, source, mode); in parse()
174 private void parse(Reader reader, String source, ModeId mode) throws IOException { in parse() method in ExpectationStore
/cts/common/util/tests/src/com/android/compatibility/common/util/
DReportLogTest.java87 ReportLog.parse((String) null); in testParse_null()
95 ReportLog report = ReportLog.parse(HEADER_XML); in testParse_noData()
100 ReportLog report = ReportLog.parse(String.format(SUMMARY_XML, "testParse_summaryOnly:125")); in testParse_summaryOnly()
106 ReportLog report = ReportLog.parse(String.format(FULL_XML, "testParse_full:140")); in testParse_full()
/cts/tests/tests/ndef/src/android/ndef/cts/
DNdefTest.java314 NdefRecord.createUri(Uri.parse("http://www.nfc.com"))).toByteArray()); in testCreateUri()
485 assertEquals(Uri.parse("http://www.android.com"), in testToUri()
489 assertEquals(Uri.parse("http://www.android.com"), in testToUri()
492 assertEquals(Uri.parse("http://www.android.com"), in testToUri()
497 assertEquals(Uri.parse("http://www.android.com"), in testToUri()
502 assertEquals(Uri.parse("http://www.android.com"), in testToUri()
507 assertEquals(Uri.parse("vnd.android.nfc://ext/com.foo.bar:type"), in testToUri()
510 assertEquals(Uri.parse("http://www.android.com"), in testToUri()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java48 static final Uri MEDIA_URI = Uri.parse("content://" + MediaStore.AUTHORITY + "/");
51 static final Uri MEDIA_EXTERNAL_URI = Uri.parse("content://" + MediaStore.AUTHORITY
238 Uri uribase = Uri.parse(base); in testDescendantsObserver()
239 Uri uri1 = Uri.parse(base + "/sub1"); in testDescendantsObserver()
240 Uri uri2 = Uri.parse(base + "/sub2"); in testDescendantsObserver()
286 Uri uribase = Uri.parse(base); in testNonDescendantsObserver()
287 Uri uri1 = Uri.parse(base + "/sub1"); in testNonDescendantsObserver()
288 Uri uri2 = Uri.parse(base + "/sub2"); in testNonDescendantsObserver()
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java87 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertCleartextHttpURLConnectionSucceeds()
110 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertCleartextHttpURLConnectionBlocked()
131 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertAndroidHttpClientCleartextRequestSucceeds()
148 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertAndroidHttpClientCleartextRequestBlocked()
162 Uri uri = Uri.parse(mHttpOnlyWebServer.getUserAgentUrl()); in assertMediaPlayerCleartextRequestSucceeds()
180 Uri uri = Uri.parse(mHttpOnlyWebServer.getUserAgentUrl()); in assertMediaPlayerCleartextRequestBlocked()
197 Uri uri = Uri.parse(mHttpOnlyWebServer.getTestDownloadUrl("netsecpolicy", 0)); in testDownloadManager()

1234567