Home
last modified time | relevance | path

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

12345678910>>...13

/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/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()
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()
DClipboardManagerTest.java121 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_rawUri()
130 Uri contentUri = Uri.parse("content://cts/test/for/clipboardmanager"); in testSetPrimaryClip_contentUri()
141 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_complexItem()
157 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_multipleItems()
175 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_multipleMimeTypes()
176 Uri contentUri1 = Uri.parse("content://ctstest/testtable1"); in testSetPrimaryClip_multipleMimeTypes()
177 Uri contentUri2 = Uri.parse("content://ctstest/testtable2"); in testSetPrimaryClip_multipleMimeTypes()
178 Uri contentUri3 = Uri.parse("content://ctstest/testtable1/0"); in testSetPrimaryClip_multipleMimeTypes()
179 Uri contentUri4 = Uri.parse("content://ctstest/testtable1/1"); in testSetPrimaryClip_multipleMimeTypes()
180 Uri contentUri5 = Uri.parse("content://ctstest/testtable2/0"); in testSetPrimaryClip_multipleMimeTypes()
[all …]
DContentProviderTest.java88 Uri uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + in testOpenAssetFile()
150 Uri uri = Uri.parse("content://browser/bookmarks"); in testBulkInsert()
214 Uri uri = Uri.parse("content://test"); in testOpenFile()
237 Uri uri = Uri.parse("content://test"); in testOpenFileHelper()
241 uri = Uri.parse("content://test"); in testOpenFileHelper()
251 uri = Uri.parse("content://test"); in testOpenFileHelper()
304 final Uri uri = Uri.parse("content://test"); in testCheckUriPermission()
318 final Uri uri = Uri.parse("notcontent://test"); in testCreateContentUriForUser_nonContentUri_throwsIAE()
326 final Uri uri = Uri.parse("content://07@Test"); in testCreateContentUriForUser_UriWithDifferentUserID_throwsIAE()
334 final Uri uri = Uri.parse("content://7@Test"); in testCreateContentUriForUser_UriWithUserID_unchanged()
DAvailableIntentsTest.java117 Uri uri = Uri.parse(NORMAL_URL); in testViewNormalUrl()
127 Uri uri = Uri.parse(SECURE_URL); in testViewSecureUrl()
137 Uri uri = Uri.parse(NORMAL_URL); in testWebSearchNormalUrl()
148 Uri uri = Uri.parse(SECURE_URL); in testWebSearchSecureUrl()
171 Uri uri = Uri.parse("tel:2125551212"); in testCallPhoneNumber()
183 Uri uri = Uri.parse("tel:(212)5551212"); in testDialPhoneNumber()
195 Uri uri = Uri.parse("voicemail:"); in testDialVoicemail()
525 intent.setData(Uri.parse(QRCODE)); in testEasyConnectIntent()
535 .setData(Uri.parse("package:android.content.cts")); in testRequestSetAutofillServiceIntent()
545 .setData(Uri.parse("package:android.content.cts")); in testNotificationPolicyDetailIntent()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAccessPermissionWithDiffSigTest.java52 static final Uri PERM_URI = Uri.parse("content://ctspermissionwithsignature");
53 static final Uri PERM_URI_GRANTING = Uri.parse("content://ctspermissionwithsignaturegranting");
54 static final Uri PERM_URI_PATH = Uri.parse("content://ctspermissionwithsignaturepath");
55 static final Uri PERM_URI_PATH_RESTRICTING = Uri.parse(
57 static final Uri PRIV_URI = Uri.parse("content://ctsprivateprovider");
58 static final Uri PRIV_URI_GRANTING = Uri.parse("content://ctsprivateprovidergranting");
61 static final Uri AMBIGUOUS_URI_COMPAT = Uri.parse("content://ctsambiguousprovidercompat");
63 static final Uri AMBIGUOUS_URI = Uri.parse("content://ctsambiguousprovider");
211 Uri.parse("content://ctspermissionwithsignaturepathrestricting/")); in testRestrictingProviderMatchingShadyPaths()
213 Uri.parse("content://ctspermissionwithsignaturepathrestricting//")); in testRestrictingProviderMatchingShadyPaths()
[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")),
167 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/contactsprovider/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.java125 .setAddress(Uri.parse("tel:555-TEST"))
126 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
141 .setAddress(Uri.parse("tel:555-TEST"))
142 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
153 .setAddress(Uri.parse("tel:555-TEST2"))
154 .setSubscriptionAddress(Uri.parse("tel:555-TEST2"))
167 .setAddress(Uri.parse("foobuzz:testuri1"))
175 .setAddress(Uri.parse("foobuzz:testuri2"))
189 .setAddress(Uri.parse("tel:555-TEST"))
191 .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()
DMediaCodecPlayerTest.java42 Uri.parse(Utils.getMediaPath() + CLEAR_AUDIO_PATH), in playOnSurfaces()
43 Uri.parse(Utils.getMediaPath() + CLEAR_VIDEO_PATH), in playOnSurfaces()
/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/cts-test-metrics/
DREADME1 The parse_test_metrics.py script can be used to parse test metrics json files. Run the following
5 To parse multiple files, list all files as arguments. Try the following:
12 The MetricsParser class defines functions to parse a json file. The _Parse function takes a filename
/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.kt46 private val validBaseUri = Uri.parse(VALID_BASE_URI_STRING)
47 private val validActionUri = Uri.parse(VALID_ACTION_URI_STRING)
48 private val 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/hostsidetests/appsecurity/test-apps/OrderedActivityApp/src/android/appsecurity/cts/orderedactivity/
DPackageResolutionTest.java42 intent.setData(Uri.parse("https://www.google.com/cts/packageresolution")); in queryActivityOrdered()
62 intent.setData(Uri.parse("https://www.google.com/cts/packageresolution")); in queryServiceOrdered()
82 intent.setData(Uri.parse("https://www.google.com/cts/packageresolution")); in queryReceiverOrdered()
/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()
/cts/tests/tests/view/receivecontent/src/android/view/cts/receivecontent/
DContentInfoTest.java59 Uri sampleUri = Uri.parse("content://com.example/path"); in testPartition_multipleItems()
65 .setLinkUri(Uri.parse("http://example.com")) in testPartition_multipleItems()
102 .setLinkUri(Uri.parse("http://example.com")) in testPartition_singleItem()
121 .setLinkUri(Uri.parse("http://example.com")) in testBuilder_copy()
140 .setLinkUri(Uri.parse("http://example.com")) in testBuilder_copyAndUpdate()
245 .setLinkUri(Uri.parse("http://example.com")) in testParcel_withAllMetadata()
261 InputContentInfo inputContentInfo = new InputContentInfo(Uri.parse("content://example/1"), in testParcel_imePermissionsMetadata()

12345678910>>...13