Home
last modified time | relevance | path

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

12345678910>>...14

/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.java126 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_rawUri()
135 Uri contentUri = Uri.parse("content://cts/test/for/clipboardmanager"); in testSetPrimaryClip_contentUri()
146 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_complexItem()
162 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_multipleItems()
180 Uri uri = Uri.parse("http://www.google.com"); in testSetPrimaryClip_multipleMimeTypes()
181 Uri contentUri1 = Uri.parse("content://ctstest/testtable1"); in testSetPrimaryClip_multipleMimeTypes()
182 Uri contentUri2 = Uri.parse("content://ctstest/testtable2"); in testSetPrimaryClip_multipleMimeTypes()
183 Uri contentUri3 = Uri.parse("content://ctstest/testtable1/0"); in testSetPrimaryClip_multipleMimeTypes()
184 Uri contentUri4 = Uri.parse("content://ctstest/testtable1/1"); in testSetPrimaryClip_multipleMimeTypes()
185 Uri contentUri5 = Uri.parse("content://ctstest/testtable2/0"); in testSetPrimaryClip_multipleMimeTypes()
[all …]
DContentProviderTest.java97 Uri uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + in testOpenAssetFile()
159 Uri uri = Uri.parse("content://browser/bookmarks"); in testBulkInsert()
223 Uri uri = Uri.parse("content://test"); in testOpenFile()
245 Uri uri = Uri.parse("content://test"); in testOpenFileHelper()
249 uri = Uri.parse("content://test"); in testOpenFileHelper()
259 uri = Uri.parse("content://test"); in testOpenFileHelper()
290 Uri uri = Uri.parse("content://test"); in testOpenPipeHelper()
293 uri = Uri.parse("content://test"); in testOpenPipeHelper()
300 uri = Uri.parse("content://test"); in testOpenPipeHelper()
348 final Uri uri = Uri.parse("content://test"); in testCheckUriPermission()
[all …]
/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.java104 Uri.parse("content://browser/bookmarks")),
106 Uri.parse("http://www.example.com")).addCategory(
109 Uri.parse("mailto:user@example.com")),
111 Uri.parse("mailto:user@example.com")).addCategory(
114 Uri.parse("geo:0,0?q=BuckinghamPalace")),
116 Uri.parse("http://example.com/oceans.mp4")).setType("video/mp4"),
118 Uri.parse("http://www.example.com/horse.mp3")).setType("audio/*"),
121 Uri.parse("market://details?id=com.android.chrome")).addCategory(
127 Uri.parse("package:com.android.chrome")),
160 Uri.parse("tel:123")), in addIntentsThatDependOnDeviceFeatures()
[all …]
/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/tests/tests/webkit/src/android/webkit/cts/
DPostMessageTest.java112 verifyPostMessageToOrigin(Uri.parse(BASE_URI)); in testSimpleMessageToMainFrame()
122 verifyPostMessageToOrigin(Uri.parse("*")); in testWildcardOriginMatchesAnything()
132 verifyPostMessageToOrigin(Uri.parse("")); in testEmptyStringOriginMatchesAnything()
159 Uri.parse(BASE_URI)); in testMultipleMessagesToMainFrame()
177 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testMessageChannel()
215 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testClose()
260 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testReceiveMessagePort()
285 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testWebMessageHandler()
321 mOnUiThread.postWebMessage(message, Uri.parse(BASE_URI)); in testWebMessageDefaultHandler()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java127 .setAddress(Uri.parse("tel:555-TEST"))
128 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
144 .setAddress(Uri.parse("tel:555-TEST"))
145 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
161 .setAddress(Uri.parse("tel:555-TEST"))
162 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
173 .setAddress(Uri.parse("tel:555-TEST2"))
174 .setSubscriptionAddress(Uri.parse("tel:555-TEST2"))
187 .setAddress(Uri.parse("foobuzz:testuri1"))
195 .setAddress(Uri.parse("foobuzz:testuri2"))
[all …]
DPhoneAccountOperationsTest.java73 .setAddress(Uri.parse("tel:555-TEST"))
74 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
83 .setAddress(Uri.parse("tel:555-TEST"))
84 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
96 .setAddress(Uri.parse("tel:555-TEST"))
97 .setSubscriptionAddress(Uri.parse("tel:555-TEST"))
182 .setAddress(Uri.parse("tel:555-TEST")) in testRegisterPhoneAccount_DisallowEnable()
183 .setSubscriptionAddress(Uri.parse("tel:555-TEST")) in testRegisterPhoneAccount_DisallowEnable()
/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/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/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaPlayerDrmTest.java127 download(Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testCAR_CLEARKEY_AUDIO_DOWNLOADED_V0_SYNC()
134 download(Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testCAR_CLEARKEY_AUDIO_DOWNLOADED_V1_ASYNC()
141 download(Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testCAR_CLEARKEY_AUDIO_DOWNLOADED_V2_SYNC_CONFIG()
148 download(Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testCAR_CLEARKEY_AUDIO_DOWNLOADED_V3_ASYNC_DRMPREPARED()
155 download(Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testCAR_CLEARKEY_AUDIO_DOWNLOADED_V5_ASYNC_WITH_HANDLER()
DNativeMediaDrmClearkeyTest.java153 Uri.parse(Utils.getMediaPath() + CENC_CLEARKEY_VIDEO_PATH).toString())); in testPssh()
310 Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testClearKeyPlaybackCenc()
311 Uri.parse(Utils.getMediaPath() + CENC_CLEARKEY_VIDEO_PATH), in testClearKeyPlaybackCenc()
321 Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH), in testClearKeyPlaybackCenc2()
322 Uri.parse(Utils.getMediaPath() + CENC_CLEARKEY_VIDEO_PATH), in testClearKeyPlaybackCenc2()
332 params.audioUrl = Uri.parse(Utils.getMediaPath() + CENC_AUDIO_PATH).toString(); in testClearKeyGetKeyRequest()
333 params.videoUrl = Uri.parse(Utils.getMediaPath() + CENC_CLEARKEY_VIDEO_PATH).toString(); in testClearKeyGetKeyRequest()
/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/
DXmlParser.java53 parse(); in getPermissions()
60 private void parse() { in parse() method in XmlParser
66 xmlReader.parse(new InputSource(fileReader)); in parse()
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
DArgumentParser.java35 parse(); in getArgumentMap()
76 private void parse() { in parse() method in ArgumentParser
/cts/tests/tests/slice/src/android/slice/cts/
DSliceProviderTest.kt47 private val validBaseUri = Uri.parse(VALID_BASE_URI_STRING)
48 private val validActionUri = Uri.parse(VALID_ACTION_URI_STRING)
49 private val shadyActionUri = Uri.parse(SHADY_ACTION_URI_STRING)
/cts/tests/tests/media/player/src/android/media/player/cts/
DMediaCodecPlayerTest.java45 Uri.parse(Utils.getMediaPath() + CLEAR_AUDIO_PATH), in playOnSurfaces()
46 Uri.parse(Utils.getMediaPath() + CLEAR_VIDEO_PATH), in playOnSurfaces()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DRingtoneManagerTest.java137 Uri bogus = Uri.parse("content://a_bogus_uri"); in testAccessMethods()
181 Uri uri = Uri.parse("android.resource://" + PKG + "/" + R.raw.john_cage); in testStopPreviousRingtone()
215 assertTrue(RingtoneManager.hasHapticChannels(Uri.parse(uriPrefix + "a_4_haptic"))); in testHasHapticChannels()
216 assertFalse(RingtoneManager.hasHapticChannels(Uri.parse(uriPrefix + "a_4"))); in testHasHapticChannels()
219 mContext, Uri.parse(uriPrefix + "a_4_haptic"))); in testHasHapticChannels()
220 assertFalse(RingtoneManager.hasHapticChannels(mContext, Uri.parse(uriPrefix + "a_4"))); in testHasHapticChannels()
/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/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()

12345678910>>...14