Home
last modified time | relevance | path

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

12345678910

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputContentInfoTest.java41 Uri.parse("content://com.example/path"), in testInputContentInfo()
43 Uri.parse("https://example.com")); in testInputContentInfo()
45 assertEquals(Uri.parse("content://com.example/path"), info.getContentUri()); in testInputContentInfo()
49 assertEquals(Uri.parse("https://example.com"), info.getLinkUri()); in testInputContentInfo()
71 Uri.parse("content://com.example/path"), in testOptionalConstructorParam()
74 assertEquals(Uri.parse("content://com.example/path"), info.getContentUri()); in testOptionalConstructorParam()
86 Uri.parse("https://example.com")); in testContentUriNullContentUri()
92 Uri.parse("https://example.com"), in testContentUriInvalidContentUri()
94 Uri.parse("https://example.com")); in testContentUriInvalidContentUri()
100 Uri.parse("content://com.example/path"), null, in testMimeTypeNulLDescription()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DUriTest.java29 parcelAndUnparcel(Uri.parse("foo:bob%20lee")); in testParcelling()
54 Uri u = Uri.parse("bob:lee").buildUpon().scheme("robert").build(); in testBuildUpon()
87 Uri.parse("foo:bob%20lee").getSchemeSpecificPart()); in testStringUri()
89 Uri.parse("foo:bob%20lee").getEncodedSchemeSpecificPart()); in testStringUri()
92 Uri.parse("foo:/bob%20lee").getEncodedPath()); in testStringUri()
93 assertNull(Uri.parse("foo:bob%20lee").getPath()); in testStringUri()
96 Uri.parse("foo:?bob%20lee").getEncodedQuery()); in testStringUri()
97 assertNull(Uri.parse("foo:bob%20lee").getEncodedQuery()); in testStringUri()
98 assertNull(Uri.parse("foo:bar#?bob%20lee").getQuery()); in testStringUri()
101 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()
/cts/tests/tests/content/src/android/content/cts/
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()
115 assertEquals(Uri.parse("content://auth"), in testRemoveId()
116 ContentUris.removeId(Uri.parse("content://auth/12"))); in testRemoveId()
117 assertEquals(Uri.parse("content://auth/path"), in testRemoveId()
118 ContentUris.removeId(Uri.parse("content://auth/path/12"))); in testRemoveId()
119 assertEquals(Uri.parse("content://auth/path/path"), in testRemoveId()
120 ContentUris.removeId(Uri.parse("content://auth/path/path/12"))); in testRemoveId()
125 ContentUris.removeId(Uri.parse("content://auth/")); in testRemoveId_MissingId()
[all …]
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()
DClipboardManagerTest.java109 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_rawUri()
118 Uri contentUri = Uri.parse("content://cts/test/for/clipboardmanager"); in testSetPrimaryClip_contentUri()
129 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_complexItem()
145 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_multipleItems()
163 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_multipleMimeTypes()
164 Uri contentUri1 = Uri.parse("content://ctstest/testtable1"); in testSetPrimaryClip_multipleMimeTypes()
165 Uri contentUri2 = Uri.parse("content://ctstest/testtable2"); in testSetPrimaryClip_multipleMimeTypes()
166 Uri contentUri3 = Uri.parse("content://ctstest/testtable1/0"); in testSetPrimaryClip_multipleMimeTypes()
167 Uri contentUri4 = Uri.parse("content://ctstest/testtable1/1"); in testSetPrimaryClip_multipleMimeTypes()
168 Uri contentUri5 = Uri.parse("content://ctstest/testtable2/0"); in testSetPrimaryClip_multipleMimeTypes()
[all …]
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.java86 Uri uri = Uri.parse(NORMAL_URL); in testViewNormalUrl()
96 Uri uri = Uri.parse(SECURE_URL); in testViewSecureUrl()
106 Uri uri = Uri.parse(NORMAL_URL); in testWebSearchNormalUrl()
117 Uri uri = Uri.parse(SECURE_URL); in testWebSearchSecureUrl()
140 Uri uri = Uri.parse("tel:2125551212"); in testCallPhoneNumber()
152 Uri uri = Uri.parse("tel:(212)5551212"); in testDialPhoneNumber()
164 Uri uri = Uri.parse("voicemail:"); in testDialVoicemail()
434 intent.setData(Uri.parse(QRCODE)); in testEasyConnectIntent()
441 .setData(Uri.parse("package:android.content.cts")); in testRequestSetAutofillServiceIntent()
451 .setData(Uri.parse("package:android.content.cts")); in testNotificationPolicyDetailIntent()
DIntentTest.java269 mIntent.setData(Uri.parse("test")); in testResolveType1()
281 mIntent.setData(Uri.parse("test")); in testResolveType2()
359 assertEquals(Uri.parse("http://www.google.com/"), mIntent.getData()); in testParseIntent()
1001 .setData(Uri.parse("http://www.example.com/blah"))); in testUris()
1006 .setData(Uri.parse("http://www.example.com/blah")) in testUris()
1012 .setData(Uri.parse("http://www.example.com/blah#fragment"))); in testUris()
1017 .setData(Uri.parse("http://www.example.com/blah"))); in testUris()
1022 .setDataAndType(Uri.parse("mailto:foo"), "image/foo")); in testUris()
1027 .setData(Uri.parse("mailto:foo")) in testUris()
1037 .setData(Uri.parse("mailto:foo")) in testUris()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DIntentFiltersTestHelper.java111 Uri.parse("content://browser/bookmarks")),
113 Uri.parse("http://www.example.com")).addCategory(
116 Uri.parse("mailto:user@example.com")),
118 Uri.parse("mailto:user@example.com")).addCategory(
121 Uri.parse("geo:0,0?q=BuckinghamPalace")),
123 Uri.parse("http://example.com/oceans.mp4")).setType("video/mp4"),
125 Uri.parse("http://www.example.com/horse.mp3")).setType("audio/*"),
128 Uri.parse("market://details?id=com.android.chrome")).addCategory(
134 Uri.parse("package:com.android.chrome")),
166 Uri.parse("tel:123")), in addIntentsThatDependOnDeviceFeatures()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DPostMessageTest.java114 verifyPostMessageToOrigin(Uri.parse(BASE_URI)); in testSimpleMessageToMainFrame()
124 verifyPostMessageToOrigin(Uri.parse("*")); in testWildcardOriginMatchesAnything()
134 verifyPostMessageToOrigin(Uri.parse("")); in testEmptyStringOriginMatchesAnything()
161 Uri.parse(BASE_URI)); in testMultipleMessagesToMainFrame()
179 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testMessageChannel()
217 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testClose()
262 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testReceiveMessagePort()
287 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testWebMessageHandler()
323 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testWebMessageDefaultHandler()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_DumpFileProviderTest.java52 Uri uri = Uri.parse(URI_PREFIX + fileName); in testOpenFileDescriptor_throwsErrorWithIllegalFileName()
59 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testOpenFileDescriptor_worksWithValidFileName()
70 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testQuery_throwsErrorWithIllegalFileName()
77 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testQuery_worksWithValidFileName()
/cts/libs/vogar-expect/src/vogar/expect/
DExpectationStore.java118 … public static ExpectationStore parse(Set<File> expectationFiles, ModeId mode) throws IOException { in parse() method in ExpectationStore
122 result.parse(f, mode); in parse()
147 result.parse(url, mode); in parseResources()
153 private void parse(URL url, ModeId mode) throws IOException { in parse() method in ExpectationStore
158 parse(reader, url.toString(), mode); in parse()
162 public void parse(File expectationsFile, ModeId mode) throws IOException { in parse() method in ExpectationStore
167 parse(fileReader, source, mode); in parse()
171 private void parse(Reader reader, String source, ModeId mode) throws IOException { in parse() method in ExpectationStore
/cts/tests/tests/telecom/src/android/telecom/cts/
DPhoneAccountOperationsTest.java74 .setAddress(Uri.parse("tel:555-TEST"))
75 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
84 .setAddress(Uri.parse("tel:555-TEST"))
85 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
97 .setAddress(Uri.parse("tel:555-TEST"))
98 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
172 .setAddress(Uri.parse("tel:555-TEST")) in testRegisterPhoneAccount_DisallowEnable()
173 .setSubscriptionAddress(Uri.parse("tel:555-TEST")) in testRegisterPhoneAccount_DisallowEnable()
DTestUtils.java117 .setAddress(Uri.parse("tel:555-TEST"))
118 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
133 .setAddress(Uri.parse("tel:555-TEST2"))
134 .setSubscriptionAddress(Uri.parse("tel:555-TEST2"))
147 .setAddress(Uri.parse("foobuzz:testuri1"))
155 .setAddress(Uri.parse("foobuzz:testuri2"))
169 .setAddress(Uri.parse("tel:555-TEST"))
171 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
180 .setAddress(Uri.parse("tel:555-TEST"))
182 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerDrmTest.java131 download(Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testCAR_CLEARKEY_AUDIO_DOWNLOADED_V0_SYNC()
138 download(Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testCAR_CLEARKEY_AUDIO_DOWNLOADED_V1_ASYNC()
145 download(Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testCAR_CLEARKEY_AUDIO_DOWNLOADED_V2_SYNC_CONFIG()
152 download(Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testCAR_CLEARKEY_AUDIO_DOWNLOADED_V3_ASYNC_DRMPREPARED()
159 download(Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testCAR_CLEARKEY_AUDIO_DOWNLOADED_V5_ASYNC_WITH_HANDLER()
DMediaDrmClearkeyTest.java85 private static final Uri WEBM_URL = Uri.parse(
87 private static final Uri MPEG2TS_SCRAMBLED_URL = Uri.parse(
89 private static final Uri MPEG2TS_CLEAR_URL = Uri.parse(
431 Uri videoUrl = Uri.parse(Utils.getMediaPath() + CENC_VIDEO_PATH); in testReleaseOfflineLicense()
444 Uri audioUrl = Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH); in testReleaseOfflineLicense()
528 Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), null, false); in testQueryKeyStatus()
530 Uri.parse(Utils.getMediaPath() + CENC_VIDEO_PATH), null, true); in testQueryKeyStatus()
573 Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), null, false); in testOfflineKeyManagement()
575 Uri.parse(Utils.getMediaPath() + CENC_VIDEO_PATH), null, true); in testOfflineKeyManagement()
643 Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), false /* audioEncrypted */, in testClearKeyPlaybackCenc()
[all …]
DNativeMediaDrmClearkeyTest.java145 Uri.parse(Utils.getMediaPath() + CENC_CLEARKEY_VIDEO_PATH).toString())); in testPssh()
294 Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testClearKeyPlaybackCenc()
295 Uri.parse(Utils.getMediaPath() + CENC_CLEARKEY_VIDEO_PATH), in testClearKeyPlaybackCenc()
303 Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testClearKeyPlaybackCenc2()
304 Uri.parse(Utils.getMediaPath() + CENC_CLEARKEY_VIDEO_PATH), in testClearKeyPlaybackCenc2()
/cts/tests/tests/text/src/android/text/style/cts/
DImageSpanTest.java76 new ImageSpan(mContext, Uri.parse("content://user/a/b")); in testConstructor()
77 new ImageSpan(mContext, Uri.parse("content://user/a/b"), in testConstructor()
79 new ImageSpan(mContext, Uri.parse("content://user/a/b"), in testConstructor()
108 imageSpan = new ImageSpan(mContext, Uri.parse(source)); in testGetSource()
124 imageSpan = new ImageSpan(mContext, Uri.parse("unknown uri.")); in testGetDrawable()
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DSoParser.java72 parse(); in getDependencies()
80 parse(); in getDynamicLoadingDependencies()
88 parse(); in getAbiBits()
96 parse(); in getAbiArchitecture()
122 parse(); in getExternalApiPackage()
129 parse(); in getInternalApiPackage()
134 private void parse() { in parse() method in SoParser
DXmlParser.java53 parse(); in getPermissions()
60 private void parse() { in parse() method in XmlParser
66 xmlReader.parse(new InputSource(fileReader)); in parse()
/cts/tests/tests/slice/src/android/slice/cts/
DSliceProviderTest.kt43 private val validBaseUri = Uri.parse(VALID_BASE_URI_STRING)
44 private val validActionUri = Uri.parse(VALID_ACTION_URI_STRING)
45 private val shadyActionUri = Uri.parse(SHADY_ACTION_URI_STRING)
DSliceProviderTest.java58 private Uri validBaseUri = Uri.parse(VALID_BASE_URI_STRING);
59 private Uri validActionUri = Uri.parse(VALID_ACTION_URI_STRING);
60 private Uri shadyActionUri = Uri.parse(SHADY_ACTION_URI_STRING);
/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/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()

12345678910