/cts/tests/tests/provider/src/android/provider/cts/settings/ |
D | Settings_SystemTest.java | 60 private final ContentResolver mContentResolver = field in Settings_SystemTest 90 Cursor c = mContentResolver.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings() 94 System.getConfiguration(mContentResolver, cfg); in testSystemSettings() 98 final String originalIntValue = System.getString(mContentResolver, INT_FIELD); in testSystemSettings() 99 final String originalLongValue = System.getString(mContentResolver, LONG_FIELD); in testSystemSettings() 100 final String originalStringValue = System.getString(mContentResolver, STRING_FIELD); in testSystemSettings() 109 assertTrue(System.putInt(mContentResolver, INT_FIELD, 2)); in testSystemSettings() 110 assertTrue(System.putLong(mContentResolver, LONG_FIELD, 20L)); in testSystemSettings() 111 assertTrue(System.putFloat(mContentResolver, FLOAT_FIELD, 1.3f)); in testSystemSettings() 112 assertTrue(System.putString(mContentResolver, STRING_FIELD, stringValue)); in testSystemSettings() [all …]
|
D | Settings_MemoryUsageTest.java | 44 private ContentResolver mContentResolver; field in Settings_MemoryUsageTest 56 mContentResolver = context.getContentResolver(); in setUp() 57 assertNotNull(mContentResolver); in setUp() 58 mOldSettingValue = Settings.System.getString(mContentResolver, STRING_SETTING); in setUp() 63 Settings.System.putString(mContentResolver, STRING_SETTING, mOldSettingValue); in cleanUp() 64 assertEquals(mOldSettingValue, Settings.System.getString(mContentResolver, STRING_SETTING)); in cleanUp() 71 mContentResolver, STRING_SETTING, Strings.repeat("A", 30001))); in testMemoryUsageExceeded() 75 mContentResolver, STRING_SETTING, Strings.repeat("A", 30001))); in testMemoryUsageExceeded()
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | Contacts_SettingsTest.java | 24 private ContentResolver mContentResolver; field in Contacts_SettingsTest 29 mContentResolver = getInstrumentation().getTargetContext().getContentResolver(); in setUp() 37 Settings.setSetting(mContentResolver, "account", key1, value1); in testAccessSetting() 38 Settings.setSetting(mContentResolver, "account", key2, value2); in testAccessSetting() 39 assertEquals(value1, Settings.getSetting(mContentResolver, "account", key1)); in testAccessSetting() 40 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key2)); in testAccessSetting() 41 assertNull(Settings.getSetting(mContentResolver, "account", "key not exist")); in testAccessSetting() 43 Settings.setSetting(mContentResolver, "account", key1, value2); in testAccessSetting() 44 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key1)); in testAccessSetting()
|
D | CallLogProviderTest.java | 35 private ContentResolver mContentResolver; field in CallLogProviderTest 44 mContentResolver = getInstrumentation().getTargetContext().getContentResolver(); in setUp() 45 mProvider = mContentResolver.acquireContentProviderClient(CallLog.AUTHORITY); in setUp() 57 mContentResolver.insert(CallLog.Calls.CONTENT_URI, values); in testNoSubqueries() 78 Uri uri = mContentResolver.insert(CallLog.Calls.CONTENT_URI, values); in testUpdate() 83 mContentResolver.registerContentObserver( in testUpdate() 88 mContentResolver.unregisterContentObserver(this); in testUpdate() 96 int numUpdated = mContentResolver.update(uri, values, null, null); in testUpdate() 115 Cursor results = mContentResolver.query(uri, projection, null, null, null, null); in getLastModified() 128 Uri uri = mContentResolver.insert(CallLog.Calls.CONTENT_URI, values); in testDelete() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverTest.java | 119 private ContentResolver mContentResolver; field in ContentResolverTest 127 mContentResolver = mContext.getContentResolver(); in setUp() 136 mContentResolver.insert(TABLE1_URI, values); in setUp() 137 mContentResolver.insert(REMOTE_TABLE1_URI, values); in setUp() 141 mContentResolver.insert(TABLE1_URI, values); in setUp() 142 mContentResolver.insert(REMOTE_TABLE1_URI, values); in setUp() 146 mContentResolver.insert(TABLE1_URI, values); in setUp() 147 mContentResolver.insert(REMOTE_TABLE1_URI, values); in setUp() 155 mContentResolver.delete(TABLE1_URI, null, null); in tearDown() 159 mContentResolver.delete(REMOTE_TABLE1_URI, null, null); in tearDown() [all …]
|
/cts/hostsidetests/backup/PreservedSettingsApp/src/android/cts/backup/preservedsettingsapp/ |
D | PreservedSettingsRestoreTest.java | 62 private ContentResolver mContentResolver; field in PreservedSettingsRestoreTest 70 mContentResolver = mContext.getContentResolver(); in setUp() 88 assertThat(Settings.Secure.getString(mContentResolver, OVERRIDEABLE_SETTING)).isEqualTo( in testOnlyOverrideableSettingsAreOverridden() 91 assertThat(Settings.Secure.getString(mContentResolver, NON_OVERRIDEABLE_SETTING)).isEqualTo( in testOnlyOverrideableSettingsAreOverridden() 97 Settings.Secure.putString(mContentResolver, OVERRIDEABLE_SETTING, in modifySettings() 99 Settings.Secure.putString(mContentResolver, NON_OVERRIDEABLE_SETTING, in modifySettings() 105 setOriginalSettingValue(OVERRIDEABLE_SETTING, Settings.Secure.getString(mContentResolver, in setupDevice() 108 Settings.Secure.getString(mContentResolver, NON_OVERRIDEABLE_SETTING)); in setupDevice() 114 Settings.Global.putString(mContentResolver, in setupDevice() 117 Settings.Secure.putString(mContentResolver, OVERRIDEABLE_SETTING, in setupDevice() [all …]
|
/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaStore_Audio_AlbumsTest.java | 61 private ContentResolver mContentResolver; field in MediaStore_Audio_AlbumsTest 74 mContentResolver = mContext.getContentResolver(); in setUp() 82 assertNotNull(c = mContentResolver.query( in testGetContentUri() 93 mContentResolver.insert(audioAlbumsUri, new ContentValues()); in testStoreAudioAlbums() 101 Uri audioMediaUri = audio1.insert(mContentResolver, mVolumeName); in testStoreAudioAlbums() 107 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs, in testStoreAudioAlbums() 128 mContentResolver.update(audioAlbumsUri, albumValues, selection, selectionArgs); in testStoreAudioAlbums() 136 mContentResolver.delete(audioAlbumsUri, selection, selectionArgs); in testStoreAudioAlbums() 145 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums() 153 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums() [all …]
|
D | MediaStore_Audio_Genres_MembersTest.java | 57 private ContentResolver mContentResolver; field in MediaStore_Audio_Genres_MembersTest 74 mContentResolver = mContext.getContentResolver(); in setUp() 78 Uri uri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in setUp() 79 Cursor c = mContentResolver.query(uri, null, null, null, null); in setUp() 84 uri = Audio2.getInstance().insert(mContentResolver, mVolumeName); in setUp() 85 c = mContentResolver.query(uri, null, null, null, null); in setUp() 95 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown() 97 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown() 104 assertNotNull(c = mContentResolver.query( in testGetContentUri() 115 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresMembersExternal() [all …]
|
D | MediaStore_Audio_GenresTest.java | 53 private ContentResolver mContentResolver; field in MediaStore_Audio_GenresTest 66 mContentResolver = mContext.getContentResolver(); in setUp() 74 assertNotNull(c = mContentResolver.query( in testGetContentUri() 86 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresExternal() 91 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresExternal() 98 assertEquals(1, mContentResolver.delete(uri, null, null)); in testStoreAudioGenresExternal() 106 Uri audioUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testGetContentUriForAudioId() 114 Uri genreUri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testGetContentUriForAudioId() 123 cursor = mContentResolver.query(audioGenresUri, null, null, null, null); in testGetContentUriForAudioId() 130 assertNotNull(mContentResolver.insert(membersUri, values)); in testGetContentUriForAudioId() [all …]
|
D | MediaStore_Images_ThumbnailsTest.java | 80 private ContentResolver mContentResolver; field in MediaStore_Images_ThumbnailsTest 101 mContentResolver.delete(row, null, null); in tearDown() 112 mContentResolver = mContext.getContentResolver(); in setUp() 142 Cursor c = Thumbnails.queryMiniThumbnails(mContentResolver, in testQueryExternalThumbnails() 156 Uri uri = mContentResolver.insert(Thumbnails.EXTERNAL_CONTENT_URI, values); in testQueryExternalThumbnails() 162 c = Thumbnails.queryMiniThumbnails(mContentResolver, uri, Thumbnails.MINI_KIND, null); in testQueryExternalThumbnails() 169 c = Thumbnails.queryMiniThumbnails(mContentResolver, Thumbnails.EXTERNAL_CONTENT_URI, in testQueryExternalThumbnails() 175 c = Thumbnails.query(mContentResolver, uri, null); in testQueryExternalThumbnails() 186 final ContentResolver resolver = mContentResolver; in testQueryExternalMiniThumbnails() 194 stringUrl = Media.insertImage(mContentResolver, src, "cts" + System.nanoTime(), null); in testQueryExternalMiniThumbnails() [all …]
|
D | MediaStore_Audio_ArtistsTest.java | 51 private ContentResolver mContentResolver; field in MediaStore_Audio_ArtistsTest 64 mContentResolver = mContext.getContentResolver(); in setUp() 72 assertNotNull(c = mContentResolver.query( in testGetContentUri() 83 mContentResolver.insert(artistsUri, new ContentValues()); in testStoreAudioArtists() 89 Uri uri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtists() 95 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists() 111 mContentResolver.update(artistsUri, artistValues, selection, selectionArgs); in testStoreAudioArtists() 119 mContentResolver.delete(artistsUri, selection, selectionArgs); in testStoreAudioArtists() 128 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists() 136 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists() [all …]
|
D | MediaStore_Audio_PlaylistsTest.java | 51 private ContentResolver mContentResolver; field in MediaStore_Audio_PlaylistsTest 64 mContentResolver = mContext.getContentResolver(); in setUp() 72 assertNotNull(c = mContentResolver.query( in testGetContentUri() 86 Uri uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsExternal() 91 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioPlaylistsExternal() 107 assertEquals(1, mContentResolver.delete(uri, null, null)); in testStoreAudioPlaylistsExternal() 125 final Uri playlist = mContentResolver in testName() 127 MediaStore.waitForIdle(mContentResolver); in testName() 128 try (Cursor c = mContentResolver.query(playlist, in testName() 137 mContentResolver.update(playlist, values, null); in testName() [all …]
|
D | MediaStore_Audio_Artists_AlbumsTest.java | 58 private ContentResolver mContentResolver; field in MediaStore_Audio_Artists_AlbumsTest 71 mContentResolver = mContext.getContentResolver(); in setUp() 80 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); in testGetContentUri() 87 Uri audioMediaUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtistsAlbums() 89 Cursor c = mContentResolver.query(audioMediaUri, new String[] { Media.ARTIST_ID }, null, in testStoreAudioArtistsAlbums() 97 mContentResolver.insert(artistsAlbumsUri, new ContentValues()); in testStoreAudioArtistsAlbums() 105 c = mContentResolver.query(artistsAlbumsUri, null, null, null, null); in testStoreAudioArtistsAlbums() 126 mContentResolver.update(artistsAlbumsUri, albumValues, null, null); in testStoreAudioArtistsAlbums() 134 mContentResolver.delete(artistsAlbumsUri, null, null); in testStoreAudioArtistsAlbums() 140 mContentResolver.delete(audioMediaUri, null, null); in testStoreAudioArtistsAlbums() [all …]
|
D | MediaStore_Images_MediaTest.java | 84 private ContentResolver mContentResolver; field in MediaStore_Images_MediaTest 100 mContentResolver = mContext.getContentResolver(); in setUp() 128 Cursor c = Media.query(mContentResolver, mExternalImages, null, null, in testInsertImageWithImagePath() 136 stringUrl = Media.insertImage(mContentResolver, path, testTitle1, null); in testInsertImageWithImagePath() 148 stringUrl = Media.insertImage(mContentResolver, path, testTitle2, null); in testInsertImageWithImagePath() 158 c = Media.query(mContentResolver, Uri.parse(stringUrl), in testInsertImageWithImagePath() 168 c = Media.query(mContentResolver, mExternalImages, in testInsertImageWithImagePath() 181 c = Media.query(mContentResolver, Uri.parse(stringUrl), in testInsertImageWithImagePath() 200 stringUrl = Media.insertImage(mContentResolver, src, testTitle3, testDescription3); in testInsertImageWithBitmap() 207 Cursor c = Media.query(mContentResolver, Uri.parse(stringUrl), new String[]{Media.DATA}, in testInsertImageWithBitmap() [all …]
|
D | MediaStore_Audio_Playlists_MembersTest.java | 115 private ContentResolver mContentResolver; field in MediaStore_Audio_Playlists_MembersTest 132 Uri uri = which.insert(mContentResolver, mVolumeName); in insertAudioItem() 133 Cursor c = mContentResolver.query(uri, null, null, null, null); in insertAudioItem() 143 mContentResolver = mContext.getContentResolver(); in setUp() 157 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio1, null); in tearDown() 158 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio2, null); in tearDown() 159 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio3, null); in tearDown() 160 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio4, null); in tearDown() 161 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio5, null); in tearDown() 176 return mContentResolver.insert(playlistMembersUri, values); in insertPlaylistItem() [all …]
|
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/ |
D | SmsTest.java | 54 private ContentResolver mContentResolver; field in SmsTest 74 mContentResolver = getInstrumentation().getContext().getContentResolver(); in setupTestEnvironment() 86 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsInsert() 102 int deletedRows = mContentResolver.delete(uri, null, null); in testSmsDelete() 106 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsDelete() 126 mContentResolver.update(uri, values, null, null); in testSmsUpdate() 138 Uri uri = mContentResolver.insert(Telephony.Sms.CONTENT_URI, values); in testInsertSmsFromSubid_verifySmsFromNotOtherSubId() 151 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSeen() 157 int cursorUpdate = mContentResolver.update(uri, updateValues, null, null); in testInsertSms_canUpdateSeen() 169 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSmsStatus() [all …]
|
D | SmsTestHelper.java | 31 private ContentResolver mContentResolver; field in SmsTestHelper 36 mContentResolver = getInstrumentation().getContext().getContentResolver(); in SmsTestHelper() 43 return mContentResolver.insert(Telephony.Sms.CONTENT_URI, mContentValues); in insertTestSms() 57 return mContentResolver.insert(Telephony.Sms.CONTENT_URI, mContentValues); in insertTestSmsWithThread() 63 Cursor cursor = mContentResolver.query(uri, null, null, null); in assertSmsColumnEquals() 72 Cursor cursor = mContentResolver.query(Telephony.Sms.CONTENT_URI, null, null, null); in assertBulkSmsContentEqual() 90 int cursorUpdate = mContentResolver.update(uri, mContentValues, null, null); in assertUpdateSmsStatus() 93 Cursor cursorStatus = mContentResolver.query(uri, null, null, null); in assertUpdateSmsStatus() 105 int cursorUpdate = mContentResolver.update(uri, mContentValues, null, null); in assertUpdateSmsType() 108 Cursor cursorStatus = mContentResolver.query(uri, null, null, null); in assertUpdateSmsType()
|
D | LockedMessageTest.java | 49 private ContentResolver mContentResolver; field in LockedMessageTest 68 mContentResolver = getInstrumentation().getContext().getContentResolver(); in setupTestEnvironment() 84 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_atMostOneLockedMessage() 104 Cursor mmsCursor = mContentResolver.query(mmsUri, null, null, null); in testLockedMessage_getNoLockedMessage() 109 Cursor smCursor = mContentResolver.query(smsUri, null, null, null); in testLockedMessage_getNoLockedMessage() 112 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_getNoLockedMessage() 121 Cursor cursor = mContentResolver.query(mmsUri, null, null, null); in insertMmsWithLockedMessage() 128 int cursorUpdate = mContentResolver.update(mmsUri, updateValues, null, null); in insertMmsWithLockedMessage() 131 Cursor cursorAfterReadUpdate = mContentResolver.query(mmsUri, null, null, null); in insertMmsWithLockedMessage() 147 Cursor cursor = mContentResolver.query(smsUri, null, null, null); in insertSmsWithLockedMessage() [all …]
|
D | CellBroadcastProviderTest.java | 26 private ContentResolver mContentResolver; field in CellBroadcastProviderTest 32 mContentResolver = getInstrumentation().getContext().getContentResolver(); in setUp() 42 mContentResolver.query(Telephony.CellBroadcasts.CONTENT_URI, in testAccess() 55 mContentResolver.query(Telephony.CellBroadcasts.MESSAGE_HISTORY_URI, in testAccessMessageHistoryWithoutPermission()
|
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/ |
D | CalendarTest.java | 78 private ContentResolver mContentResolver; field in CalendarTest 917 mContentResolver = getInstrumentation().getTargetContext().getContentResolver(); in setUp() 926 CalendarHelper.deleteCalendarByAccount(mContentResolver, account); in testCalendarCreationAndDeletion() 942 CalendarHelper.deleteCalendarByAccount(mContentResolver, account); in testDefaultProjections() 948 c = mContentResolver.query(Calendars.CONTENT_URI, null, null, null, null); in testDefaultProjections() 951 c = mContentResolver.query(Events.CONTENT_URI, null, null, null, null); in testDefaultProjections() 955 c = mContentResolver.query(uri, null, null, null, null); in testDefaultProjections() 958 c = mContentResolver.query(Attendees.CONTENT_URI, null, null, null, null); in testDefaultProjections() 962 c = mContentResolver.query(uri, null, null, null, null); in testDefaultProjections() 965 c = mContentResolver.query(CalendarContract.CalendarAlerts.CONTENT_URI, in testDefaultProjections() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MultiAuthorityTest.java | 46 private ContentResolver mContentResolver; field in MultiAuthorityTest 50 mContentResolver = InstrumentationRegistry.getInstrumentation() in setUp() 68 ContentProviderClient cpc = mContentResolver.acquireContentProviderClient(PROVIDER1); in testAuthority1() 75 ContentProviderClient cpc = mContentResolver.acquireContentProviderClient(PROVIDER2); in testAuthorityBoth() 78 cpc = mContentResolver.acquireContentProviderClient(PROVIDER1); in testAuthorityBoth() 86 mContentResolver.acquireContentProviderClient(PROVIDER_NONEXISTENT); in testAuthorityNonExistent()
|
D | SmsBackupRestoreTest.java | 68 private ContentResolver mContentResolver; field in SmsBackupRestoreTest 80 mContentResolver = mContext.getContentResolver(); in setUp() 112 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1); in clearMessages() 113 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody2); in clearMessages() 115 mContentResolver.query(Telephony.Mms.CONTENT_URI, ID_PROJECTION, MMS_SELECTION, in clearMessages() 121 mContentResolver.delete(partUri, MMS_PART_SELECTION, in clearMessages() 125 mContentResolver.delete(addrUri, MMS_ADDR_SELECTION, in clearMessages() 129 mContentResolver.delete(Telephony.Mms.CONTENT_URI, MMS_SELECTION, new String[]{mmsSubject}); in clearMessages() 148 mContentResolver.bulkInsert(Telephony.Sms.CONTENT_URI, smsContentValues); in testSmsBackupRestore() 164 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1)); in testSmsBackupRestore() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStorageTest.java | 88 private ContentResolver mContentResolver; field in MediaStorageTest 97 mContentResolver = mContext.getContentResolver(); in setUp() 122 final Uri jpgUri = MediaStore.scanFile(mContentResolver, TEST_JPG); in testLegacy() 123 final Uri pdfUri = MediaStore.scanFile(mContentResolver, TEST_PDF); in testLegacy() 126 try (Cursor c = mContentResolver.query( in testLegacy() 149 assertNull(MediaStore.scanFile(mContentResolver, TEST_JPG)); in testClearFiles() 151 assertNull(MediaStore.scanFile(mContentResolver, TEST_PDF)); in testClearFiles() 162 try (Cursor c = mContentResolver.query(MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI, in testMediaNone() 166 try (Cursor c = mContentResolver.query(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, in testMediaNone() 170 try (Cursor c = mContentResolver.query(MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI, in testMediaNone() [all …]
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | ApnDatabaseTest.java | 53 private ContentResolver mContentResolver; field in ApnDatabaseTest 98 mContentResolver = getContext().getContentResolver(); in setUp() 114 Uri newUri = mContentResolver.insert(uri, contentValues); in testValidCase() 130 mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase() 149 mContentResolver.update(uri, contentValues, selection, selectionArgs); in testValidCase() 153 cursor = mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase() 173 mContentResolver.delete(uri, selectionToDelete, selectionArgsToDelete); in testValidCase() 179 cursor = mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase() 203 Uri newUri = mContentResolver.insert(uri, contentValues); in testQueryConflictCase() 221 mContentResolver.query(uri, testProjection, selection, selectionArgs, null); in testQueryConflictCase() [all …]
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvContractTest.java | 125 private ContentResolver mContentResolver; field in TvContractTest 141 mContentResolver = getContext().getContentResolver(); in setUp() 151 mContentResolver.delete(Channels.CONTENT_URI, null, null); in tearDown() 152 mContentResolver.delete(RecordedPrograms.CONTENT_URI, null, null); in tearDown() 153 mContentResolver.delete(WatchNextPrograms.CONTENT_URI, null, null); in tearDown() 339 try (Cursor cursor = mContentResolver.query( in verifyChannel() 376 try (Cursor cursor = mContentResolver.query(channelUri, projection, null, null, null)) { in verifyNonExistingColumn() 397 Uri rowUri = mContentResolver.insert(mChannelsUri, values); in testChannelsTable() 407 mContentResolver.update(channelUri, values, null, null); in testChannelsTable() 411 mContentResolver.delete(mChannelsUri, null, null); in testChannelsTable() [all …]
|