/cts/tests/tests/content/src/android/content/cts/ |
D | ClipboardManagerTest.java | 160 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 …]
|
D | IntentTest.java | 262 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/ |
D | SliceProviderTest.kt | 47 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/ |
D | RGBZ.java | 54 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/ |
D | MediaStoreAudioTestHelper.java | 60 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/ |
D | ThreadsTest.java | 56 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()
|
D | LockedMessageTest.java | 56 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()
|
D | SmsConversationTest.java | 55 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() local 56 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
|
D | SmsTest.java | 55 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()
|
D | MmsPartTest.java | 60 ContentResolver contentResolver = getInstrumentation().getContext().getContentResolver(); in cleanup() local 61 contentResolver.delete(Telephony.Mms.Part.CONTENT_URI, null, null); in cleanup()
|
D | MmsTest.java | 64 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/ |
D | SensorFeaturesDeactivator.java | 100 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/ |
D | DevicePolicyLoggingTest.java | 109 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/ |
D | ContactsContract_GroupMembershipTest.java | 37 ContentResolver contentResolver = in setUp() local 40 contentResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp()
|
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/ |
D | DownloadManagerApi28Test.java | 181 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/ |
D | MultiUserStorageTest.java | 162 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/ |
D | TestUtils.java | 684 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/ |
D | SmsManagerTest.java | 432 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/ |
D | ClientTest.java | 440 final ContentResolver contentResolver = in testStartEphemeral() local 481 final Cursor testCursor = contentResolver.query( in testStartEphemeral()
|