Home
last modified time | relevance | path

Searched refs:mResolver (Results 1 – 25 of 46) sorted by relevance

12

/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_RawContactsTest.java37 private ContentResolver mResolver; field in ContactsContract_RawContactsTest
76 mResolver = getContext().getContentResolver(); in setUp()
78 mResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp()
101 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); in testGetLookupUriBySourceId()
118 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); in testGetLookupUriByDisplayName()
135 long rawContactid = RawContactUtil.insertRawContact(mResolver, in testRawContactDelete_setsDeleteFlag()
138 assertTrue(RawContactUtil.rawContactExistsById(mResolver, rawContactid)); in testRawContactDelete_setsDeleteFlag()
140 RawContactUtil.delete(mResolver, rawContactid, false); in testRawContactDelete_setsDeleteFlag()
146 String[] result = RawContactUtil.queryByRawContactId(mResolver, rawContactid, in testRawContactDelete_setsDeleteFlag()
161 long rawContactid = RawContactUtil.insertRawContact(mResolver, account); in testRawContactDelete_localDeleteRemovesRecord()
[all …]
DContactsContract_SettingsTest.java47 private ContentResolver mResolver; field in ContactsContract_SettingsTest
54 mResolver = getContext().getContentResolver(); in setUp()
60 SimContacts.addSimAccount(mResolver, SIM_ACCT_NAME, SIM_ACCT_TYPE, SIM_SLOT_0, in setUp()
64 mInitialDefaultAccount = Settings.getDefaultAccount(mResolver); in setUp()
73 SimContacts.removeSimAccounts(mResolver, SIM_SLOT_0); in tearDown()
77 Settings.setDefaultAccount(mResolver, mInitialDefaultAccount); in tearDown()
90 Settings.setDefaultAccount(mResolver, ACCT_1); in testSetDefaultAccount_returnedByGetDefaultAccount()
93 Account defaultAccount = Settings.getDefaultAccount(mResolver); in testSetDefaultAccount_returnedByGetDefaultAccount()
99 Settings.setDefaultAccount(mResolver, ACCT_2); in testSetDefaultAccount_returnedByGetDefaultAccount()
102 defaultAccount = Settings.getDefaultAccount(mResolver); in testSetDefaultAccount_returnedByGetDefaultAccount()
[all …]
DContactsContract_ContactsTest.java44 private ContentResolver mResolver; field in ContactsContract_ContactsTest
50 mResolver = getContext().getContentResolver(); in setUp()
52 mResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp()
78 Contacts.markAsContacted(mResolver, contact.getId()); in testMarkAsContacted()
117 Uri lookupUri2 = Contacts.getLookupUri(mResolver, contactUri); in testLookupUri()
120 Uri contactUri2 = Contacts.lookupContact(mResolver, lookupUri); in testLookupUri()
125 DatabaseAsserts.assertInsertIsUnsupported(mResolver, Contacts.CONTENT_URI); in testInsert_isUnsupported()
135 DatabaseAsserts.assertHasDeleteLogGreaterThan(mResolver, ids.mContactId, start); in testContactDelete_hasDeleteLog()
138 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testContactDelete_hasDeleteLog()
148 List<String[]> records = RawContactUtil.queryByContactId(mResolver, ids.mContactId, in testContactDelete_marksRawContactsForDeletion()
[all …]
DContactsContract_DataUsageTest.java39 private ContentResolver mResolver; field in ContactsContract_DataUsageTest
45 mResolver = getContext().getContentResolver(); in setUp()
47 mResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp()
58 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testSingleDataUsageFeedback_incrementsCorrectDataItems()
72 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testSingleDataUsageFeedback_incrementsCorrectDataItems()
76 DatabaseAsserts.ContactIdPair ids = DatabaseAsserts.assertAndCreateContact(mResolver); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems()
86 RawContactUtil.delete(mResolver, ids.mRawContactId, true); in testMultiIdDataUsageFeedback_incrementsCorrectDataItems()
92 dataIds[0] = DataUtil.insertPhoneNumber(mResolver, rawContactId, "555-5555"); in setupRawContactDataItems()
93 dataIds[1] = DataUtil.insertPhoneNumber(mResolver, rawContactId, "555-5554"); in setupRawContactDataItems()
94 dataIds[2] = DataUtil.insertEmail(mResolver, rawContactId, "test@thisisfake.com"); in setupRawContactDataItems()
[all …]
DContactsContract_PhotoTest.java43 private ContentResolver mResolver; field in ContactsContract_PhotoTest
50 mResolver = mContext.getContentResolver(); in setUp()
52 mResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp()
66 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddPhoto()
67 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddPhoto()
68 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddPhoto()
78 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddPhoto()
79 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); in testAddPhoto()
80 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); in testAddPhoto()
87 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); in testAddEmptyPhoto()
[all …]
DContactsContract_PinnedPositionsTest.java48 private ContentResolver mResolver; field in ContactsContract_PinnedPositionsTest
53 mResolver = getContext().getContentResolver(); in setUp()
62 final DatabaseAsserts.ContactIdPair i1 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsUpdate()
63 final DatabaseAsserts.ContactIdPair i2 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsUpdate()
64 final DatabaseAsserts.ContactIdPair i3 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsUpdate()
65 final DatabaseAsserts.ContactIdPair i4 = DatabaseAsserts.assertAndCreateContact(mResolver); in testPinnedPositionsUpdate()
88 applyBatch(mResolver, operations); in testPinnedPositionsUpdate()
109 applyBatch(mResolver, operations); in testPinnedPositionsUpdate()
129 ContactUtil.delete(mResolver, i1.mContactId); in testPinnedPositionsUpdate()
130 ContactUtil.delete(mResolver, i2.mContactId); in testPinnedPositionsUpdate()
[all …]
DContactsContract_DeletedContacts.java40 private ContentResolver mResolver; field in ContactsContract_DeletedContacts
44 mResolver = getContext().getContentResolver(); in setUp()
49 DatabaseAsserts.assertDeleteIsUnsupported(mResolver, URI); in testDelete_isUnsupported()
52 DatabaseAsserts.assertDeleteIsUnsupported(mResolver, uri); in testDelete_isUnsupported()
56 DatabaseAsserts.assertInsertIsUnsupported(mResolver, URI); in testInsert_isUnsupported()
67 List<String[]> records = DeletedContactUtil.query(mResolver, projection); in testQuery_returnsProperColumns()
82 DeletedContactUtil.queryDeletedTimestampForContactId(mResolver, ids.mContactId)); in testQueryByContactId()
90 long startCount = DeletedContactUtil.getCount(mResolver); in testQueryAll()
96 long endCount = DeletedContactUtil.getCount(mResolver); in testQueryAll()
120 List<String[]> records = DeletedContactUtil.querySinceTimestamp(mResolver, projection, in testQuerySinceTimestamp()
[all …]
DContactsProvider2_AccountRemovalTest.java66 private ContentResolver mResolver; field in ContactsProvider2_AccountRemovalTest
72 mResolver = getContext().getContentResolver(); in setUp()
81 SimContacts.removeSimAccounts(mResolver, SIM_SLOT_0); in tearDown()
82 SimContacts.removeSimAccounts(mResolver, SIM_SLOT_1); in tearDown()
145 .createRawContactWithAutoGeneratedName(mResolver, deviceAccount); in testAccountRemoval_doesNotDeleteLocalAccountContacts()
153 assertTrue(RawContactUtil.rawContactExistsById(mResolver, deviceRawContactId)); in testAccountRemoval_doesNotDeleteLocalAccountContacts()
171 SimContacts.addSimAccount(mResolver, SIM_ACCT_NAME_1, SIM_ACCT_TYPE_1, SIM_SLOT_0, in testAccountRemoval_doesNotDeleteSimAccountContacts()
177 .createRawContactWithAutoGeneratedName(mResolver, in testAccountRemoval_doesNotDeleteSimAccountContacts()
187 assertTrue(RawContactUtil.rawContactExistsById(mResolver, simRawContactId)); in testAccountRemoval_doesNotDeleteSimAccountContacts()
198 SimContacts.addSimAccount(mResolver, SIM_ACCT_NAME_1, SIM_ACCT_TYPE_1, SIM_SLOT_0, in testRemoveSimAccount_deleteSimAccountContacts()
[all …]
DContactsContract_DumpFileProviderTest.java42 private ContentResolver mResolver; field in ContactsContract_DumpFileProviderTest
47 mResolver = getContext().getContentResolver(); in setUp()
61 mResolver.openFileDescriptor(uri, "r"); in testOpenFileDescriptor_worksWithValidFileName()
78 mResolver.query(uri, null, null, null, null); in testQuery_worksWithValidFileName()
84 mResolver.query(uri, null, null, null, null); in assertQueryThrowsError()
95 mResolver.openFileDescriptor(uri, "r"); in assertOpenFileDescriptorThrowsError()
DContactsContract_Subquery.java30 private ContentResolver mResolver; field in ContactsContract_Subquery
36 mResolver = getContext().getContentResolver(); in setUp()
38 mResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp()
56 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, null, null, null)) { in testProviderStatus_addedContacts()
61 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, in testProviderStatus_addedContacts()
67 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, in testProviderStatus_addedContacts()
DContactsContract_SimContactTest.java53 private ContentResolver mResolver; field in ContactsContract_SimContactTest
65 mResolver = getContext().getContentResolver(); in setUp()
74 SimContacts.removeSimAccounts(mResolver, SIM_SLOT_0); in tearDown()
75 SimContacts.removeSimAccounts(mResolver, SIM_SLOT_1); in tearDown()
86 SimContacts.addSimAccount(mResolver, SIM_ACCT_NAME_1, SIM_ACCT_TYPE_1, SIM_SLOT_0, in testAddSimAccount_returnedByGetSimAccounts()
88 SimContacts.addSimAccount(mResolver, SIM_ACCT_NAME_2, SIM_ACCT_TYPE_2, SIM_SLOT_1, in testAddSimAccount_returnedByGetSimAccounts()
92 List<SimAccount> simAccounts = SimContacts.getSimAccounts(mResolver); in testAddSimAccount_returnedByGetSimAccounts()
119 SimContacts.addSimAccount(mResolver, SIM_ACCT_NAME_1, SIM_ACCT_TYPE_1, SIM_SLOT_0, in testAddSimAccount_broadcastsChange()
135 SimContacts.addSimAccount(mResolver, SIM_ACCT_NAME_1, SIM_ACCT_TYPE_1, SIM_SLOT_0, in testRemoveSimAccount_broadcastsChange()
142 SimContacts.removeSimAccounts(mResolver, SIM_SLOT_0); in testRemoveSimAccount_broadcastsChange()
DContactsContract_AllUriTest.java205 private ContentResolver mResolver; field in ContactsContract_AllUriTest
214 mResolver = getContext().getContentResolver(); in setUp()
294 try (Cursor c = mResolver.query(uri, in getColumns()
308 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryExecutable()
317 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryExecutable()
326 try (Cursor c = mResolver.query( in checkQueryExecutable()
338 try (Cursor c = mResolver.query( in checkQueryExecutable()
356 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryNotExecutable()
552 try (Cursor c = mResolver.query( in checkColumnAccessible()
576 try (Cursor c = mResolver.query(uri, projection, selection, in checkColumnNotAccessibleInner()
[all …]
DContactsContract_StructuredPhoneticName.java44 private ContentResolver mResolver; field in ContactsContract_StructuredPhoneticName
52 mResolver = getContext().getContentResolver(); in setUp()
54 mResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp()
57 ContactsContract.SimContacts.addSimAccount(mResolver, "sim_acc", in setUp()
59 List<SimAccount> simAccounts = ContactsContract.SimContacts.getSimAccounts(mResolver); in setUp()
69 ContactsContract.SimContacts.removeSimAccounts(mResolver, mSimSlotIndex); in tearDown()
120 ContactUtil.setAggregationException(mResolver, AggregationExceptions.TYPE_KEEP_TOGETHER, in testPhoneticStructuredName_phoneticPriority1()
157 ContactUtil.setAggregationException(mResolver, AggregationExceptions.TYPE_KEEP_TOGETHER, in testPhoneticStructuredName_phoneticPriority2()
DContactsContract_ProviderStatus.java38 private ContentResolver mResolver; field in ContactsContract_ProviderStatus
44 mResolver = getContext().getContentResolver(); in setUp()
46 mResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp()
68 Cursor cursor = mResolver.query(ProviderStatus.CONTENT_URI, null, null, null, null); in testProviderStatus_addedContacts()
/cts/tests/tests/content/src/android/content/cts/
DContentResolverWrapTest.java89 private ContentResolver mResolver; field in ContentResolverWrapTest
101 mResolver = ContentResolver.wrap(mProvider); in setUp()
107 assertEquals(RESULTS, mResolver.applyBatch(AUTHORITY, OPERATIONS)); in testApplyBatch()
113 assertEquals(42, mResolver.bulkInsert(URI, VALUES_ARRAY)); in testBulkInsert()
119 assertEquals(EXTRAS, mResolver.call(AUTHORITY, METHOD, ARG, EXTRAS)); in testCall()
120 assertEquals(EXTRAS, mResolver.call(URI, METHOD, ARG, EXTRAS)); in testCall()
126 assertEquals(URI, mResolver.canonicalize(URI)); in testCanonicalize()
132 assertEquals(URI, mResolver.uncanonicalize(URI)); in testUncanonicalize()
138 assertEquals(TYPE, mResolver.getType(URI)); in testType()
144 assertEquals(TYPE_ARRAY, mResolver.getStreamTypes(URI, TYPE)); in testStreamTypes()
[all …]
/cts/tests/tests/simphonebookprovider/src/android/provider/cts/simphonebook/
DSimPhonebookContract_SimRecordsNoSimTest.java66 private ContentResolver mResolver; field in SimPhonebookContract_SimRecordsNoSimTest
71 mResolver = mContext.getContentResolver(); in setUp()
77 mResolver.getType(SimRecords.getContentUri(1, ElementaryFiles.EF_ADN))).isEqualTo( in getType_recordsDir()
80 mResolver.getType(SimRecords.getContentUri(1, ElementaryFiles.EF_FDN))).isEqualTo( in getType_recordsDir()
83 mResolver.getType(SimRecords.getContentUri(1, ElementaryFiles.EF_SDN))).isEqualTo( in getType_recordsDir()
90 mResolver.getType(SimRecords.getItemUri(1, ElementaryFiles.EF_ADN, 3))).isEqualTo( in getType_recordItem()
93 mResolver.getType(SimRecords.getItemUri(1, ElementaryFiles.EF_FDN, 3))).isEqualTo( in getType_recordItem()
96 mResolver.getType(SimRecords.getItemUri(1, ElementaryFiles.EF_SDN, 3))).isEqualTo( in getType_recordItem()
102 assertThat(mResolver.getType( in getType_invalidUri_returnsNull()
162 () -> mResolver.insert( in insert_nonAdnDirUris_throwsUnsupportedOperationException()
[all …]
DSimPhonebookContract_SimRecordsTest.java68 private ContentResolver mResolver; field in SimPhonebookContract_SimRecordsTest
75 mResolver = mContext.getContentResolver(); in setUp()
213 Uri uri = mResolver.insert(SimRecords.getContentUri(mDefaultSubscriptionId, EF_ADN), in insertAdn_addsRecordAndReturnsValidUri()
237 int count = mResolver.update(uri, values, null); in updateAdn_existingRecord_updatesRecordAndReturns1()
238 mResolver.update(uri, values, null, null); in updateAdn_existingRecord_updatesRecordAndReturns1()
260 int count = mResolver.update(uri, values, null); in updateAdn_unusedIndex_updatesRecordAndReturns1()
261 mResolver.update(SimRecords.getItemUri(mDefaultSubscriptionId, EF_ADN, 1), values, null, in updateAdn_unusedIndex_updatesRecordAndReturns1()
277 int count = mResolver.delete(uri, null); in deleteAdn_existingRecord_removesRecordAndReturns1()
278 mResolver.delete(uri, null, null); in deleteAdn_existingRecord_removesRecordAndReturns1()
292 mResolver.delete(uri2, null); in insertThenDeleteAdn_urisRemainValid()
[all …]
DSimPhonebookContract_ElementaryFilesNoSimTest.java54 private ContentResolver mResolver; field in SimPhonebookContract_ElementaryFilesNoSimTest
58 mResolver = ApplicationProvider.getApplicationContext().getContentResolver(); in setUp()
63 String mimeType = mResolver.getType(ElementaryFiles.CONTENT_URI); in getType_elementaryFiles()
70 String mimeType = mResolver.getType( in getType_itemUri()
78 assertThat(mResolver.getType( in getType_invalidUri_returnsNull()
136 () -> mResolver.insert(ElementaryFiles.CONTENT_URI, new ContentValues())); in insert_throwsUnsupportedOperationException()
142 () -> mResolver.update(ElementaryFiles.CONTENT_URI, new ContentValues(), null)); in update_throwsUnsupportedOperationException()
148 () -> mResolver.delete(ElementaryFiles.CONTENT_URI, null)); in delete_throwsUnsupportedOperationException()
154 mResolver.query(ElementaryFiles.CONTENT_URI, projection, null, null)); in query()
DSimPhonebookContract_ContentNotificationsTest.java75 private ContentResolver mResolver; field in SimPhonebookContract_ContentNotificationsTest
81 mResolver = context.getContentResolver(); in setUp()
83 mResolver.registerContentObserver(SimPhonebookContract.AUTHORITY_URI, false, mObserver); in setUp()
87 mResolver.getType(SimPhonebookContract.SimRecords.getContentUri(1, EF_ADN)); in setUp()
100 mResolver.unregisterContentObserver(mObserver); in tearDown()
107 mResolver.insert(SimPhonebookContract.SimRecords.getContentUri(mSubId, EF_ADN), values); in insert_notifiesObserver()
118 Uri itemUri = mResolver.insert( in update_notifiesObserver()
125 mResolver.update(itemUri, values, null); in update_notifiesObserver()
136 Uri itemUri = mResolver.insert( in delete_notifiesObserver()
142 mResolver.delete(itemUri, null); in delete_notifiesObserver()
DSimPhonebookContract_SimRecordsMultiSimTest.java58 private ContentResolver mResolver; field in SimPhonebookContract_SimRecordsMultiSimTest
66 mResolver = context.getContentResolver(); in setUp()
111 Uri uriSim1 = mResolver.insert(SimRecords.getContentUri(mSubscriptionId1, EF_ADN), values); in insertAdn_returnsUriForCorrectSim()
114 Uri uriSim2 = mResolver.insert(SimRecords.getContentUri(mSubscriptionId2, EF_ADN), values); in insertAdn_returnsUriForCorrectSim()
136 int count = mResolver.update(sim1Uri, values, null); in updateAdn_updatesCorrectRecord()
142 count = mResolver.update(sim2Uri, values, null); in updateAdn_updatesCorrectRecord()
160 int count = mResolver.delete(sim1Uri, null); in deleteAdn_deletesCorrectRecord()
172 count = mResolver.delete(sim2Uri, null); in deleteAdn_deletesCorrectRecord()
184 return Objects.requireNonNull(mResolver.query(uri, projection, null, null)); in query()
191 return mResolver.insert(SimRecords.getContentUri(subscriptionId, EF_ADN), values); in insertAdn()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_FilesTest.java66 private ContentResolver mResolver; field in MediaStore_FilesTest
83 mResolver = mContext.getContentResolver(); in setUp()
102 Uri fileUri = mResolver.insert(allFilesUri, values); in testGetContentUri()
120 assertEquals(1, mResolver.update(fileUri, values, null, null)); in testGetContentUri()
124 Uri foo = mResolver.insert(allFilesUri, values); in testGetContentUri()
128 assertEquals(1, mResolver.delete(fileUri, null, null)); in testGetContentUri()
132 Cursor cursor = mResolver.query(fileUri, null, null, null, null); in testGetContentUri()
147 fileUri = mResolver.insert(allFilesUri, values); in testGetContentUri()
148 cursor = mResolver.query(fileUri, new String[] { MediaStore.Files.FileColumns.PARENT }, in testGetContentUri()
156 cursor = mResolver.query(ContentUris.withAppendedId(allFilesUri, parentid), in testGetContentUri()
[all …]
DMediaStore_Video_ThumbnailsTest.java73 private ContentResolver mResolver; field in MediaStore_Video_ThumbnailsTest
93 mResolver = mContext.getContentResolver(); in setUp()
122 assertNull(Thumbnails.getThumbnail(mResolver, videoId, Thumbnails.MINI_KIND, null)); in testGetThumbnail()
129 assertNotNull(Thumbnails.getThumbnail(mResolver, videoId, Thumbnails.MINI_KIND, null)); in testGetThumbnail()
130 assertNotNull(Thumbnails.getThumbnail(mResolver, videoId, Thumbnails.MICRO_KIND, null)); in testGetThumbnail()
132 assertEquals(1, mResolver.delete(videoUri, null, null)); in testGetThumbnail()
150 assertNotNull(Thumbnails.getThumbnail(mResolver, Long.valueOf(uri.getLastPathSegment()), in testThumbnailGenerationAndCleanup()
154 mResolver.delete(uri, null /* where clause */, null /* where args */); in testThumbnailGenerationAndCleanup()
156 assertNull(Thumbnails.getThumbnail(mResolver, Long.valueOf(uri.getLastPathSegment()), in testThumbnailGenerationAndCleanup()
164 assertNotNull(Thumbnails.getThumbnail(mResolver, Long.valueOf(uri.getLastPathSegment()), in testThumbnailGenerationAndCleanup()
[all …]
DMediaStoreNotificationTest.java51 private ContentResolver mResolver; field in MediaStoreNotificationTest
69 mResolver = mContext.getContentResolver(); in setUp()
93 specificImage = mResolver.insert(mSpecificImages, values); in testSimple()
107 mResolver.update(specificImage, values, null, null); in testSimple()
114 mResolver.delete(specificImage, null, null); in testSimple()
120 try (Cursor si = mResolver.query(mSpecificImages, null, null, null); in testCursor()
121 Cursor sf = mResolver.query(mSpecificFiles, null, null, null); in testCursor()
122 Cursor gi = mResolver.query(mGenericImages, null, null, null); in testCursor()
123 Cursor gf = mResolver.query(mGenericFiles, null, null, null)) { in testCursor()
138 final Uri uri = mResolver.insert(mSpecificImages, values); in testCursor()
[all …]
DMediaStorePendingTest.java74 private ContentResolver mResolver; field in MediaStorePendingTest
92 mResolver = mContext.getContentResolver(); in setUp()
122 try (Cursor c = mResolver.query(pendingUri, in verifySuccessfulImageInsertion()
141 try (Cursor c = mResolver.query(publishUri, in verifySuccessfulImageInsertion()
156 try (InputStream in = mResolver.openInputStream(publishUri)) { in verifySuccessfulImageInsertion()
186 try (Cursor c = mResolver.query(pendingUri, in testSimple_Abandoned()
219 hash(mResolver.openInputStream(publishUri1))); in testDuplicates()
221 hash(mResolver.openInputStream(publishUri2))); in testDuplicates()
404 final Uri uri = mResolver.insert(mExternalImages, values); in testMutableColumns()
406 OutputStream out = mResolver.openOutputStream(uri)) { in testMutableColumns()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DDocumentsContractTest.java111 private ContentResolver mResolver; field in DocumentsContractTest
126 mResolver = ContentResolver.wrap(mProvider); in setUp()
271 assertEquals(URI_RESULT, createDocument(mResolver, URI_RED, MIME_TYPE, DISPLAY_NAME)); in testCreateDocument()
277 assertEquals(URI_RESULT, renameDocument(mResolver, URI_RED, DISPLAY_NAME)); in testRenameDocument()
283 assertEquals(true, deleteDocument(mResolver, URI_RED)); in testDeleteDocument()
290 deleteDocument(mResolver, URI_RED); in testDeleteDocument_Failure()
299 assertEquals(URI_RESULT, copyDocument(mResolver, URI_RED, URI_GREEN)); in testCopyDocument()
305 assertEquals(URI_RESULT, moveDocument(mResolver, URI_RED, URI_GREEN, URI_BLUE)); in testMoveDocument()
311 assertEquals(true, isChildDocument(mResolver, URI_RED, URI_GREEN)); in testIsChildDocument()
317 assertEquals(false, isChildDocument(mResolver, URI_RED, URI_GREEN)); in testIsChildDocument_Failure()
[all …]

12