Home
last modified time | relevance | path

Searched refs:sContentResolver (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DStorageOwnedFilesTest.java80 private static final ContentResolver sContentResolver = getContentResolver(); field in StorageOwnedFilesTest
82 public static final OwnedFilesRule sFilesRule = new OwnedFilesRule(sContentResolver);
111 sContentResolver); in owned_listOwnership()
116 assertResolver_readWrite(mImageUri1, sContentResolver); in owned_canRead()
117 assertResolver_readWrite(mImageUri2, sContentResolver); in owned_canRead()
118 assertResolver_readWrite(mVideoUri1, sContentResolver); in owned_canRead()
126 assertResolver_canReadThumbnail(mImageUri1, sContentResolver); in owned_canReadThumbnail()
127 assertResolver_canReadThumbnail(mImageUri2, sContentResolver); in owned_canReadThumbnail()
134 doEscalation(MediaStore.createFavoriteRequest(sContentResolver, Arrays.asList(mImageUri1, in owned_createFavoriteRequest()
137 assertResolver_uriIsFavorite(mImageUri1, sContentResolver); in owned_createFavoriteRequest()
[all …]
DStorageOtherFilesTest.java99 private static final ContentResolver sContentResolver = getContentResolver(); field in StorageOtherFilesTest
102 public static final OtherAppFilesRule sFilesRule = new OtherAppFilesRule(sContentResolver);
138 Environment.DIRECTORY_DCIM, expectedValues, notExpected, sContentResolver); in other_listMediaFiles()
143 assertResolver_readOnly(mImageUriReadable, sContentResolver); in other_readVisualMediaFiles()
144 assertResolver_readOnly(mVideoUriReadable, sContentResolver); in other_readVisualMediaFiles()
145 assertResolver_noReadNoWrite(mImageUriNoAccess, sContentResolver); in other_readVisualMediaFiles()
146 assertResolver_noReadNoWrite(mVideoUriNoAccess, sContentResolver); in other_readVisualMediaFiles()
156 assertResolver_canReadThumbnail(mImageUriReadable, sContentResolver); in other_readThumbnails()
167 sContentResolver, Collections.singletonList(mImageUriReadable))); in other_createWriteRequest()
168 assertResolver_readWrite(mImageUriReadable, sContentResolver); in other_createWriteRequest()
[all …]
DStorageOtherAndOwnedFilesTest.java60 private static final ContentResolver sContentResolver = getContentResolver(); field in StorageOtherAndOwnedFilesTest
67 new OwnedAndOtherFilesRule(sContentResolver);
102 try (Cursor c = getResultForFilesQuery(sContentResolver, queryArgs)) { in test_latestSelectionOnly_noGrantsPresent()
115 try (Cursor c = getResultForFilesQuery(sContentResolver, null)) { in test_latestSelectionOnly_withOwnedAndGrantedItems()
131 try (Cursor c = getResultForFilesQuery(sContentResolver, null)) { in test_latestSelectionOnly_withOwnedAndGrantedItems()
141 try (Cursor c = getResultForFilesQuery(sContentResolver, null)) { in test_latestSelectionOnly_withOwnedAndGrantedItems()
152 try (Cursor c = getResultForFilesQuery(sContentResolver, queryArgs)) { in test_latestSelectionOnly_withOwnedAndGrantedItems()
157 final Uri expectedMediaUri = MediaStore.scanFile(sContentResolver, in test_latestSelectionOnly_withOwnedAndGrantedItems()
/cts/tests/tests/provider/src/android/provider/cts/settings/
DSettings_ConfigTest.java100 private static ContentResolver sContentResolver; field in Settings_ConfigTest
114 sContentResolver = sContext.getContentResolver(); in setUpContext()
414 sContentResolver.unregisterContentObserver(null); in testRegisterContentObserver()
429 Settings.Config.setMonitorCallback(sContentResolver, in testSetMonitorCallback()
462 Settings.Config.setMonitorCallback(sContentResolver, in testClearMonitorCallback()
464 Settings.Config.clearMonitorCallback(sContentResolver); in testClearMonitorCallback()