Home
last modified time | relevance | path

Searched refs:contentResolver (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerTest.java160 ContentResolver contentResolver = mContext.getContentResolver(); in testSetPrimaryClip_multipleMimeTypes() local
174 clipData.addItem(contentResolver, new Item("More Text")); in testSetPrimaryClip_multipleMimeTypes()
175 clipData.addItem(contentResolver, new Item(intent)); in testSetPrimaryClip_multipleMimeTypes()
176 clipData.addItem(contentResolver, new Item(uri)); in testSetPrimaryClip_multipleMimeTypes()
177 clipData.addItem(contentResolver, new Item(contentUri1)); in testSetPrimaryClip_multipleMimeTypes()
178 clipData.addItem(contentResolver, new Item(contentUri2)); in testSetPrimaryClip_multipleMimeTypes()
179 clipData.addItem(contentResolver, new Item(contentUri3)); in testSetPrimaryClip_multipleMimeTypes()
180 clipData.addItem(contentResolver, new Item(contentUri4)); in testSetPrimaryClip_multipleMimeTypes()
181 clipData.addItem(contentResolver, new Item(contentUri5)); in testSetPrimaryClip_multipleMimeTypes()
182 clipData.addItem(contentResolver, new Item(contentUri6)); in testSetPrimaryClip_multipleMimeTypes()
[all …]
DIntentTest.java262 final ContentResolver contentResolver = mContext.getContentResolver(); in testResolveType1() local
268 assertEquals(contentResolver.getType(TEST_URI), mIntent.resolveType(mContext)); in testResolveType1()
274 final ContentResolver contentResolver = mContext.getContentResolver(); in testResolveType2() local
275 assertNull(mIntent.resolveType(contentResolver)); in testResolveType2()
277 assertEquals(TEST_TYPE, mIntent.resolveType(contentResolver)); in testResolveType2()
280 assertEquals(contentResolver.getType(TEST_URI), mIntent.resolveType(contentResolver)); in testResolveType2()
282 assertNull(mIntent.resolveType(contentResolver)); in testResolveType2()
382 ContentResolver contentResolver = mContext.getContentResolver(); in testResolveTypeIfNeeded() local
383 assertNull(mIntent.resolveTypeIfNeeded(contentResolver)); in testResolveTypeIfNeeded()
385 assertEquals(TEST_TYPE, mIntent.resolveTypeIfNeeded(contentResolver)); in testResolveTypeIfNeeded()
[all …]
/cts/tests/tests/slice/src/android/slice/cts/
DSliceProviderTest.kt47 private lateinit var contentResolver: ContentResolver variable in android.slice.cts.SliceProviderTest
51 contentResolver = activityTestRule.activity.contentResolver in setUp()
74 val result = contentResolver.call( in doQuery()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRGBZ.java54 public RGBZ(Uri uri, ContentResolver contentResolver, Context context) throws IOException { in RGBZ() argument
55 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uri)); in RGBZ()
72 public RGBZ(Uri uriImage, Uri uriDepthmap, ContentResolver contentResolver, in RGBZ() argument
74 preview = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); in RGBZ()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStoreAudioTestHelper.java60 public Uri insert(ContentResolver contentResolver, String volumeName) { in insert() argument
63 contentResolver.delete(dirUri, MediaStore.Audio.Media.DATA + "=?", new String[] { in insert()
67 final Uri itemUri = contentResolver.insert(dirUri, values); in insert()
72 public int delete(ContentResolver contentResolver, Uri uri) { in delete() argument
73 return contentResolver.delete(uri, null, null); in delete()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DThreadsTest.java56 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() local
57 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
58 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
DLockedMessageTest.java56 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() local
57 contentResolver.delete(Telephony.Mms.CONTENT_URI, null, null); in cleanup()
58 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
DSmsConversationTest.java55 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() local
56 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
DSmsTest.java55 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() local
56 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
57 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
DMmsPartTest.java60 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() local
61 contentResolver.delete(Telephony.Mms.Part.CONTENT_URI, null, null); in cleanup()
DMmsTest.java64 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() local
65 contentResolver.delete(Telephony.Mms.CONTENT_URI, null, null); in cleanup()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DSensorFeaturesDeactivator.java100 ContentResolver contentResolver = mStateContainer.getContentResolver(); in getSettingMode() local
104 .getInt(contentResolver, Settings.System.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
107 .getInt(contentResolver, Settings.Global.AIRPLANE_MODE_ON, defaultValue); in getSettingMode()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDevicePolicyLoggingTest.java109 final ContentResolver contentResolver = mContext.getContentResolver(); in testSetSecureSettingLogged() local
111 Settings.Secure.getInt(contentResolver, SKIP_FIRST_USE_HINTS, 0); in testSetSecureSettingLogged()
120 Settings.Secure.getString(contentResolver, DEFAULT_INPUT_METHOD); in testSetSecureSettingLogged()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_GroupMembershipTest.java37 ContentResolver contentResolver = in setUp() local
40 contentResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp()
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/
DDownloadManagerApi28Test.java181 final ContentResolver contentResolver = mContext.getContentResolver(); in testDownloadManager_mediaStoreEntry() local
182 assertArrayEquals(hash(contentResolver.openInputStream(downloadUri)), in testDownloadManager_mediaStoreEntry()
183 hash(contentResolver.openInputStream(mediaStoreUri))); in testDownloadManager_mediaStoreEntry()
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/
DMultiUserStorageTest.java162 ContentResolver contentResolver = mContext.getContentResolver(); in testMediaProviderUserIsolation() local
166 contentResolver.insert(Uri.parse(URI_MEDIA_STRING), cv); in testMediaProviderUserIsolation()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTestUtils.java684 public static Uri insertContact(ContentResolver contentResolver, String phoneNumber) in insertContact() argument
708 return contentResolver.applyBatch(ContactsContract.AUTHORITY, ops)[0].uri; in insertContact()
711 public static int deleteContact(ContentResolver contentResolver, Uri deleteUri) { in deleteContact() argument
712 return contentResolver.delete(deleteUri, null, null); in deleteContact()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsManagerTest.java432 ContentResolver contentResolver = context.getContentResolver(); in testContentProviderAccessRestriction() local
449 return contentResolver.insert(Telephony.Sms.CONTENT_URI, contentValues); in testContentProviderAccessRestriction()
458 executeWithShellPermissionIdentity(() -> contentResolver.delete(finalDummySmsUri, in testContentProviderAccessRestriction()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java440 final ContentResolver contentResolver = in testStartEphemeral() local
481 final Cursor testCursor = contentResolver.query( in testStartEphemeral()