Home
last modified time | relevance | path

Searched defs:uri (Results 1 – 25 of 123) sorted by relevance

12345

/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_DumpFileProviderTest.java53 Uri uri = Uri.parse(URI_PREFIX + fileName); in testOpenFileDescriptor_throwsErrorWithIllegalFileName() local
60 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testOpenFileDescriptor_worksWithValidFileName() local
71 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testQuery_throwsErrorWithIllegalFileName() local
78 final Uri uri = Uri.parse(URI_PREFIX + fileName); in testQuery_worksWithValidFileName() local
83 private void assertQueryThrowsError(Uri uri) { in assertQueryThrowsError()
94 private void assertOpenFileDescriptorThrowsError(Uri uri) { in assertOpenFileDescriptorThrowsError()
DContactsContract_StreamItemPhotosTest.java56 Uri uri = mResolver.insert(insertUri, values); in testContentDirectoryUri() local
59 assertEquals(Uri.withAppendedPath(insertUri, Long.toString(photoId)), uri); in testContentDirectoryUri() local
69 Uri uri = mResolver.insert(StreamItems.CONTENT_PHOTO_URI, values); in testContentPhotoUri() local
73 Long.toString(photoId)), uri); in testContentPhotoUri() local
DContactsContract_PhoneLookup.java103 final Uri uri = PhoneLookup.CONTENT_FILTER_URI.buildUpon() in testPhoneLookup_nomatch() local
114 final Uri uri = PhoneLookup.CONTENT_FILTER_URI.buildUpon() in testPhoneLookup_found1() local
129 final Uri uri = PhoneLookup.CONTENT_FILTER_URI.buildUpon() in testPhoneLookup_found2() local
144 final Uri uri = PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI.buildUpon() in testPhoneLookupEnterprise_nomatch() local
155 final Uri uri = PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI.buildUpon() in testPhoneLookupEnterprise_found1() local
170 final Uri uri = PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI.buildUpon() in testPhoneLookupEnterprise_found2() local
180 private void assertCursorStoredValuesWithContactsFilter(Uri uri, long[] contactsId, in assertCursorStoredValuesWithContactsFilter()
DContactsContract_AggregationSuggestionsTest.java63 Uri uri = AggregationSuggestions.builder() in testAggregationSuggestionsByNameReversed() local
85 Uri uri = AggregationSuggestions.builder() in testAggregationSuggestionsByName() local
106 Uri uri = AggregationSuggestions.builder() in testAggregationSuggestionsByName_noMatch() local
122 Uri uri = AggregationSuggestions.builder() in testAggregationSuggestionsByName_matchSecondNameParameter() local
143 Uri uri = AggregationSuggestions.builder() in testAggregationSuggestionsByName_matchFirstNameParameter() local
196 Uri uri = new AggregationSuggestions.Builder().setContactId(12).setLimit(7).build(); in testAggregationSuggestionsQueryBuilderWithContactId() local
202 Uri uri = new AggregationSuggestions.Builder() in testAggregationSuggestionsQueryBuilderWithValues() local
DContactsContract_SearchSnippetsTest.java82 final Uri uri = ContactsContract.Contacts.CONTENT_FILTER_URI.buildUpon() in testSearchSnippets_NoMatch() local
90 final Uri uri = ContactsContract.Contacts.CONTENT_FILTER_URI.buildUpon() in testSearchSnippets_MatchEmailAddressCorrectSnippet() local
101 final Uri uri = ContactsContract.Contacts.CONTENT_FILTER_URI.buildUpon() in testSearchSnippets_MatchPhoneNumberCorrectSnippet() local
112 final Uri uri = ContactsContract.Contacts.CONTENT_FILTER_URI.buildUpon() in testSearchSnippets_MatchPostalAddressCorrectSnippet() local
123 final Uri uri = ContactsContract.Contacts.CONTENT_FILTER_URI.buildUpon() in testSearchSnippets_LongMatchTruncation() local
134 final Uri uri = ContactsContract.Contacts.CONTENT_FILTER_URI.buildUpon() in testSearchSnippets_MultipleMatchesCorrectSnippet() local
155 final Uri uri = ContactsContract.Contacts.CONTENT_FILTER_URI.buildUpon() in testSearchSnippets_DeferredSnippetingSingleWordQuerySnippetDeferred() local
172 final Uri uri = ContactsContract.Contacts.CONTENT_FILTER_URI.buildUpon() in testSearchSnippets_DeferredSnippetingMultiWordQuerySnippetNotDeferred() local
193 private void assertCursorStoredValuesWithContactsFilter(Uri uri, long[] contactsId, in assertCursorStoredValuesWithContactsFilter()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DPrivateContentProviderGranting.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
40 public String getType(Uri uri) { in getType()
45 public Uri insert(Uri uri, ContentValues values) { in insert()
55 public Cursor query(Uri uri, String[] projection, String selection, in query()
61 public int update(Uri uri, ContentValues values, String selection, in update()
67 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
DPermissionContentProviderPathRestricting.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
40 public String getType(Uri uri) { in getType()
45 public Uri insert(Uri uri, ContentValues values) { in insert()
55 public Cursor query(Uri uri, String[] projection, String selection, in query()
61 public int update(Uri uri, ContentValues values, String selection, in update()
67 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
DPermissionContentProviderPath.java18 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
24 public String getType(Uri uri) { in getType()
29 public Uri insert(Uri uri, ContentValues values) { in insert()
39 public Cursor query(Uri uri, String[] projection, String selection, in query()
45 public int update(Uri uri, ContentValues values, String selection, in update()
51 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
DPrivateContentProvider.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
40 public String getType(Uri uri) { in getType()
45 public Uri insert(Uri uri, ContentValues values) { in insert()
55 public Cursor query(Uri uri, String[] projection, String selection, in query()
61 public int update(Uri uri, ContentValues values, String selection, in update()
67 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
DPermissionContentProviderGranting.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
40 public String getType(Uri uri) { in getType()
45 public Uri insert(Uri uri, ContentValues values) { in insert()
55 public Cursor query(Uri uri, String[] projection, String selection, in query()
61 public int update(Uri uri, ContentValues values, String selection, in update()
67 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
DAmbiguousContentProvider.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
40 public String getType(Uri uri) { in getType()
45 public Uri insert(Uri uri, ContentValues values) { in insert()
55 public Cursor query(Uri uri, String[] projection, String selection, in query()
61 public int update(Uri uri, ContentValues values, String selection, in update()
67 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
DPermissionContentProvider.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
40 public String getType(Uri uri) { in getType()
45 public Uri insert(Uri uri, ContentValues values) { in insert()
55 public Cursor query(Uri uri, String[] projection, String selection, in query()
61 public int update(Uri uri, ContentValues values, String selection, in update()
67 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
DGrantUriPermission.java48 final Uri uri = intent.getParcelableExtra(EXTRA_URI); in onReceive() local
49 context.grantUriPermission(intent.getStringExtra(EXTRA_PACKAGE_NAME), uri, in onReceive() local
53 final Uri uri = intent.getParcelableExtra(EXTRA_URI); in onReceive() local
81 final Uri uri = intent.getParcelableExtra(EXTRA_URI); in verifyOutgoingPersisted() local
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareAppCompat/src/com/android/cts/permissiondeclareappcompat/
DAmbiguousContentProvider.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
40 public String getType(Uri uri) { in getType()
45 public Uri insert(Uri uri, ContentValues values) { in insert()
55 public Cursor query(Uri uri, String[] projection, String selection, in query()
61 public int update(Uri uri, ContentValues values, String selection, in update()
67 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DBasicContentProvider.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
40 public String getType(Uri uri) { in getType()
45 public Uri insert(Uri uri, ContentValues values) { in insert()
55 public Cursor query(Uri uri, String[] projection, String selection, in query()
61 public int update(Uri uri, ContentValues values, String selection, in update()
67 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
DContentTest.java70 Uri uri = getUriWithTextInFile("reading_test", MESSAGE); in testReceiverCanRead() local
90 Uri uri = getUriWithTextInFile("writing_test", ""); in testReceiverCanWrite() local
103 Uri uri = getUriWithTextInFile("persistable_test", MESSAGE); in testPersistablePermission() local
152 final Uri uri = Uri.parse("content://media/external/images/media/10240"); in testSecurity() local
168 private void grantPersistableReadPermission(Uri uri) throws Exception { in grantPersistableReadPermission()
207 private String getFirstLineFromUri(Uri uri) { in getFirstLineFromUri()
/cts/tests/tests/telephony/src/android/telephony/cts/
DMmsPduProvider.java39 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query()
46 public String getType(Uri uri) { in getType()
52 public Uri insert(Uri uri, ContentValues values) { in insert()
58 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
64 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update()
70 public ParcelFileDescriptor openFile(Uri uri, String fileMode) throws FileNotFoundException { in openFile()
/cts/tests/tests/webkit/src/android/webkit/cts/
DMockContentProvider.java46 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
51 public String getType(Uri uri) { in getType()
56 public Uri insert(Uri uri, ContentValues initialValues) { in insert()
61 public Cursor query(Uri uri, String[] projection, String selection, in query()
67 public int update(Uri uri, ContentValues values, String selection, in update()
73 public AssetFileDescriptor openAssetFile(Uri uri, String mode) in openAssetFile()
81 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, in writeDataToPipe()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodPresentMediaDialog.java52 public static ByodPresentMediaDialog newImageInstance(Uri uri) { in newImageInstance()
63 public static ByodPresentMediaDialog newVideoInstance(Uri uri) { in newVideoInstance()
74 public static ByodPresentMediaDialog newAudioInstance(Uri uri) { in newAudioInstance()
102 Uri uri = (Uri) getArguments().getParcelable(KEY_VIDEO_URI); in onCreateDialog() local
118 Uri uri = (Uri) getArguments().getParcelable(KEY_IMAGE_URI); in onCreateDialog() local
126 Uri uri = (Uri) getArguments().getParcelable(KEY_AUDIO_URI); in onCreateDialog() local
133 mediaPlayer.setDataSource(getActivity(), uri); in onCreateDialog() local
/cts/tests/tests/content/src/android/content/cts/
DContentProviderTest.java53 Uri uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + in testOpenAssetFile() local
113 Uri uri = Uri.parse("content://browser/bookmarks"); in testBulkInsert() local
172 Uri uri = Uri.parse("content://test"); in testOpenFile() local
194 Uri uri = Uri.parse("content://test"); in testOpenFileHelper() local
239 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
244 public String getType(Uri uri) { in getType()
249 public Uri insert(Uri uri, ContentValues values) { in insert()
259 public Cursor query(Uri uri, String[] projection, String selection, in query()
265 public int update(Uri uri, ContentValues values, String selection, in update()
289 public ParcelFileDescriptor openFileHelperWrapper(Uri uri, String mode) in openFileHelperWrapper()
[all …]
DAvailableIntentsTest.java55 Uri uri = Uri.parse(NORMAL_URL); in testViewNormalUrl() local
65 Uri uri = Uri.parse(SECURE_URL); in testViewSecureUrl() local
75 Uri uri = Uri.parse(NORMAL_URL); in testWebSearchNormalUrl() local
86 Uri uri = Uri.parse(SECURE_URL); in testWebSearchSecureUrl() local
109 Uri uri = Uri.parse("tel:2125551212"); in testCallPhoneNumber() local
121 Uri uri = Uri.parse("tel:(212)5551212"); in testDialPhoneNumber() local
133 Uri uri = Uri.parse("voicemail:"); in testDialVoicemail() local
/cts/hostsidetests/appsecurity/test-apps/SplitApp/feature/src/com/android/cts/splitapp/
DFeatureProvider.java61 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query()
67 public String getType(Uri uri) { in getType()
72 public Uri insert(Uri uri, ContentValues values) { in insert()
77 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete()
82 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update()
/cts/tests/tests/net/src/android/net/cts/
DUriTest.java96 Uri uri = Uri.parse("http://localhost:42"); in testStringUri() local
174 Uri uri = Uri.fromFile(f); in testFromFile() local
183 Uri uri = Uri.parse("content://user"); in testQueryParameters() local
198 Uri uri = Uri.parse("content://user/a/b"); in testPathOperations() local
235 Uri uri = Uri.parse("mailto:nobody"); in testOpaqueUri() local
257 private void testOpaqueUri(Uri uri) { in testOpaqueUri()
324 Uri uri = Uri.parse(uriString); in testHierarchical() local
382 Uri uri, in compareHierarchical()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java145 final Uri uri = result.data.getData(); in testOpenSimple() local
174 final Uri uri = result.data.getData(); in testCreateNew() local
205 final Uri uri = result.data.getData(); in testCreateExisting() local
225 final Uri uri = result.data.getData(); in testTree() local
304 private String getColumn(Uri uri, String column) { in getColumn()
315 private byte[] readFully(Uri uri) throws IOException { in readFully()
331 private void writeFully(Uri uri, byte[] data) throws IOException { in writeFully()
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java87 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertCleartextHttpURLConnectionSucceeds() local
110 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertCleartextHttpURLConnectionBlocked() local
131 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertAndroidHttpClientCleartextRequestSucceeds() local
148 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertAndroidHttpClientCleartextRequestBlocked() local
162 Uri uri = Uri.parse(mHttpOnlyWebServer.getUserAgentUrl()); in assertMediaPlayerCleartextRequestSucceeds() local
163 mediaPlayer.setDataSource(getContext(), uri); in assertMediaPlayerCleartextRequestSucceeds() local
180 Uri uri = Uri.parse(mHttpOnlyWebServer.getUserAgentUrl()); in assertMediaPlayerCleartextRequestBlocked() local
181 mediaPlayer.setDataSource(getContext(), uri); in assertMediaPlayerCleartextRequestBlocked() local
197 Uri uri = Uri.parse(mHttpOnlyWebServer.getTestDownloadUrl("netsecpolicy", 0)); in testDownloadManager() local
213 private int[] downloadUsingDownloadManager(Uri uri) throws Exception { in downloadUsingDownloadManager()

12345