/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 | 105 private ContentResolver mContentResolver; field in ContentResolverTest 113 mContentResolver = mContext.getContentResolver(); in setUp() 122 mContentResolver.insert(TABLE1_URI, values); in setUp() 123 mContentResolver.insert(REMOTE_TABLE1_URI, values); in setUp() 127 mContentResolver.insert(TABLE1_URI, values); in setUp() 128 mContentResolver.insert(REMOTE_TABLE1_URI, values); in setUp() 132 mContentResolver.insert(TABLE1_URI, values); in setUp() 133 mContentResolver.insert(REMOTE_TABLE1_URI, values); in setUp() 141 mContentResolver.delete(TABLE1_URI, null, null); in tearDown() 145 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/tests/provider/src/android/provider/cts/media/ |
D | MediaStore_Audio_AlbumsTest.java | 63 private ContentResolver mContentResolver; field in MediaStore_Audio_AlbumsTest 76 mContentResolver = mContext.getContentResolver(); in setUp() 84 assertNotNull(c = mContentResolver.query( in testGetContentUri() 95 mContentResolver.insert(audioAlbumsUri, new ContentValues()); in testStoreAudioAlbums() 103 Uri audioMediaUri = audio1.insert(mContentResolver, mVolumeName); in testStoreAudioAlbums() 109 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs, in testStoreAudioAlbums() 130 mContentResolver.update(audioAlbumsUri, albumValues, selection, selectionArgs); in testStoreAudioAlbums() 138 mContentResolver.delete(audioAlbumsUri, selection, selectionArgs); in testStoreAudioAlbums() 147 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums() 155 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums() [all …]
|
D | MediaStore_Audio_GenresTest.java | 54 private ContentResolver mContentResolver; field in MediaStore_Audio_GenresTest 67 mContentResolver = mContext.getContentResolver(); in setUp() 75 assertNotNull(c = mContentResolver.query( in testGetContentUri() 87 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresExternal() 92 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresExternal() 99 assertEquals(1, mContentResolver.delete(uri, null, null)); in testStoreAudioGenresExternal() 107 Uri audioUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testGetContentUriForAudioId() 115 Uri genreUri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testGetContentUriForAudioId() 124 cursor = mContentResolver.query(audioGenresUri, null, null, null, null); in testGetContentUriForAudioId() 131 assertNotNull(mContentResolver.insert(membersUri, values)); in testGetContentUriForAudioId() [all …]
|
D | MediaStore_Audio_Genres_MembersTest.java | 58 private ContentResolver mContentResolver; field in MediaStore_Audio_Genres_MembersTest 75 mContentResolver = mContext.getContentResolver(); in setUp() 79 Uri uri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in setUp() 80 Cursor c = mContentResolver.query(uri, null, null, null, null); in setUp() 85 uri = Audio2.getInstance().insert(mContentResolver, mVolumeName); in setUp() 86 c = mContentResolver.query(uri, null, null, null, null); in setUp() 96 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown() 98 mContentResolver.delete(Media.getContentUri(mVolumeName), in tearDown() 105 assertNotNull(c = mContentResolver.query( in testGetContentUri() 116 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresMembersExternal() [all …]
|
D | MediaStore_Images_ThumbnailsTest.java | 85 private ContentResolver mContentResolver; field in MediaStore_Images_ThumbnailsTest 106 mContentResolver.delete(row, null, null); in tearDown() 117 mContentResolver = mContext.getContentResolver(); in setUp() 147 Cursor c = Thumbnails.queryMiniThumbnails(mContentResolver, in testQueryExternalThumbnails() 161 Uri uri = mContentResolver.insert(Thumbnails.EXTERNAL_CONTENT_URI, values); in testQueryExternalThumbnails() 167 c = Thumbnails.queryMiniThumbnails(mContentResolver, uri, Thumbnails.MINI_KIND, null); in testQueryExternalThumbnails() 174 c = Thumbnails.queryMiniThumbnails(mContentResolver, Thumbnails.EXTERNAL_CONTENT_URI, in testQueryExternalThumbnails() 180 c = Thumbnails.query(mContentResolver, uri, null); in testQueryExternalThumbnails() 191 final ContentResolver resolver = mContentResolver; in testQueryExternalMiniThumbnails() 199 stringUrl = Media.insertImage(mContentResolver, src, "cts" + System.nanoTime(), null); in testQueryExternalMiniThumbnails() [all …]
|
D | MediaStore_Audio_ArtistsTest.java | 52 private ContentResolver mContentResolver; field in MediaStore_Audio_ArtistsTest 65 mContentResolver = mContext.getContentResolver(); in setUp() 73 assertNotNull(c = mContentResolver.query( in testGetContentUri() 84 mContentResolver.insert(artistsUri, new ContentValues()); in testStoreAudioArtists() 90 Uri uri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtists() 96 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists() 112 mContentResolver.update(artistsUri, artistValues, selection, selectionArgs); in testStoreAudioArtists() 120 mContentResolver.delete(artistsUri, selection, selectionArgs); in testStoreAudioArtists() 129 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists() 137 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists() [all …]
|
D | MediaStore_Audio_PlaylistsTest.java | 52 private ContentResolver mContentResolver; field in MediaStore_Audio_PlaylistsTest 65 mContentResolver = mContext.getContentResolver(); in setUp() 73 assertNotNull(c = mContentResolver.query( in testGetContentUri() 87 Uri uri = mContentResolver.insert(Playlists.getContentUri(mVolumeName), values); in testStoreAudioPlaylistsExternal() 92 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioPlaylistsExternal() 104 assertEquals(1, mContentResolver.delete(uri, null, null)); in testStoreAudioPlaylistsExternal() 122 final Uri playlist = mContentResolver in testName() 124 MediaStore.waitForIdle(mContentResolver); in testName() 125 try (Cursor c = mContentResolver.query(playlist, in testName() 134 mContentResolver.update(playlist, values, null); in testName() [all …]
|
D | MediaStore_Audio_Artists_AlbumsTest.java | 59 private ContentResolver mContentResolver; field in MediaStore_Audio_Artists_AlbumsTest 72 mContentResolver = mContext.getContentResolver(); in setUp() 81 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); in testGetContentUri() 88 Uri audioMediaUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtistsAlbums() 90 Cursor c = mContentResolver.query(audioMediaUri, new String[] { Media.ARTIST_ID }, null, in testStoreAudioArtistsAlbums() 98 mContentResolver.insert(artistsAlbumsUri, new ContentValues()); in testStoreAudioArtistsAlbums() 106 c = mContentResolver.query(artistsAlbumsUri, null, null, null, null); in testStoreAudioArtistsAlbums() 127 mContentResolver.update(artistsAlbumsUri, albumValues, null, null); in testStoreAudioArtistsAlbums() 135 mContentResolver.delete(artistsAlbumsUri, null, null); in testStoreAudioArtistsAlbums() 141 mContentResolver.delete(audioMediaUri, null, null); in testStoreAudioArtistsAlbums() [all …]
|
D | MediaStore_Audio_Playlists_MembersTest.java | 116 private ContentResolver mContentResolver; field in MediaStore_Audio_Playlists_MembersTest 133 Uri uri = which.insert(mContentResolver, mVolumeName); in insertAudioItem() 134 Cursor c = mContentResolver.query(uri, null, null, null, null); in insertAudioItem() 144 mContentResolver = mContext.getContentResolver(); in setUp() 158 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio1, null); in tearDown() 159 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio2, null); in tearDown() 160 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio3, null); in tearDown() 161 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio4, null); in tearDown() 162 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio5, null); in tearDown() 177 return mContentResolver.insert(playlistMembersUri, values); in insertPlaylistItem() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | BlockedNumberContractTest.java | 49 private ContentResolver mContentResolver; field in BlockedNumberContractTest 62 mContentResolver = mContext.getContentResolver(); in setUp() 70 mContentResolver.delete(row, null, null); in tearDown() 102 mAddedUris.add(mContentResolver.insert( in testProviderInteractionsAsRegularApp_fails() 109 mContentResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null); in testProviderInteractionsAsRegularApp_fails() 115 mContentResolver.update( in testProviderInteractionsAsRegularApp_fails() 138 mContentResolver.getType(BlockedNumbers.CONTENT_URI)); in testGetType() 140 mContentResolver.getType( in testGetType() 143 assertNull(mContentResolver.getType(BlockedNumberContract.AUTHORITY_URI)); in testGetType() 239 mAddedUris.add(mContentResolver.insert( in testInsert_failsWithInvalidInputs() [all …]
|
D | MultiAuthorityTest.java | 51 private ContentResolver mContentResolver; field in MultiAuthorityTest 56 mContentResolver = mContext.getContentResolver(); in setUp() 73 ContentProviderClient cpc = mContentResolver.acquireContentProviderClient(PROVIDER1); in testAuthority1() 80 ContentProviderClient cpc = mContentResolver.acquireContentProviderClient(PROVIDER2); in testAuthorityBoth() 83 cpc = mContentResolver.acquireContentProviderClient(PROVIDER1); in testAuthorityBoth() 91 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/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/ |
D | SmsTest.java | 47 private ContentResolver mContentResolver; field in SmsTest 66 mContentResolver = getInstrumentation().getContext().getContentResolver(); in setupTestEnvironment() 78 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsInsert() 94 int deletedRows = mContentResolver.delete(uri, null, null); in testSmsDelete() 98 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsDelete() 118 mContentResolver.update(uri, values, null, null); in testSmsUpdate() 130 Uri uri = mContentResolver.insert(Telephony.Sms.CONTENT_URI, values); in testInsertSmsFromSubid_verifySmsFromNotOtherSubId() 143 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSeen() 149 int cursorUpdate = mContentResolver.update(uri, updateValues, null, null); in testInsertSms_canUpdateSeen() 161 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSmsStatus() [all …]
|
D | LockedMessageTest.java | 47 private ContentResolver mContentResolver; field in LockedMessageTest 65 mContentResolver = getInstrumentation().getContext().getContentResolver(); in setupTestEnvironment() 81 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_atMostOneLockedMessage() 101 Cursor mmsCursor = mContentResolver.query(mmsUri, null, null, null); in testLockedMessage_getNoLockedMessage() 106 Cursor smCursor = mContentResolver.query(smsUri, null, null, null); in testLockedMessage_getNoLockedMessage() 109 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_getNoLockedMessage() 118 Cursor cursor = mContentResolver.query(mmsUri, null, null, null); in insertMmsWithLockedMessage() 125 int cursorUpdate = mContentResolver.update(mmsUri, updateValues, null, null); in insertMmsWithLockedMessage() 128 Cursor cursorAfterReadUpdate = mContentResolver.query(mmsUri, null, null, null); in insertMmsWithLockedMessage() 144 Cursor cursor = mContentResolver.query(smsUri, null, null, null); in insertSmsWithLockedMessage() [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 | 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()
|
D | SmsConversationTest.java | 46 private ContentResolver mContentResolver; field in SmsConversationTest 63 mContentResolver = getInstrumentation().getContext().getContentResolver(); in setupTestEnvironment() 77 Cursor cursor = mContentResolver in testQueryConversation_snippetEqualsMostRecentMessageBody() 81 Cursor conversationCursor = mContentResolver in testQueryConversation_snippetEqualsMostRecentMessageBody() 102 Cursor cursor = mContentResolver in testQueryConversation_returnsCorrectMessageCount() 106 Cursor conversationCursor = mContentResolver in testQueryConversation_returnsCorrectMessageCount() 120 Uri uri1 = mContentResolver.insert(Telephony.Sms.CONTENT_URI, values); in saveToTelephony()
|
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/ |
D | CalendarTest.java | 79 private ContentResolver mContentResolver; field in CalendarTest 918 mContentResolver = getInstrumentation().getTargetContext().getContentResolver(); in setUp() 927 CalendarHelper.deleteCalendarByAccount(mContentResolver, account); in testCalendarCreationAndDeletion() 943 CalendarHelper.deleteCalendarByAccount(mContentResolver, account); in testDefaultProjections() 949 c = mContentResolver.query(Calendars.CONTENT_URI, null, null, null, null); in testDefaultProjections() 952 c = mContentResolver.query(Events.CONTENT_URI, null, null, null, null); in testDefaultProjections() 956 c = mContentResolver.query(uri, null, null, null, null); in testDefaultProjections() 959 c = mContentResolver.query(Attendees.CONTENT_URI, null, null, null, null); in testDefaultProjections() 963 c = mContentResolver.query(uri, null, null, null, null); in testDefaultProjections() 966 c = mContentResolver.query(CalendarContract.CalendarAlerts.CONTENT_URI, in testDefaultProjections() [all …]
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | ApnDatabaseTest.java | 51 private ContentResolver mContentResolver; field in ApnDatabaseTest 100 mContentResolver = getContext().getContentResolver(); in setUp() 116 Uri newUri = mContentResolver.insert(uri, contentValues); in testValidCase() 132 mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase() 151 mContentResolver.update(uri, contentValues, selection, selectionArgs); in testValidCase() 155 cursor = mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase() 175 mContentResolver.delete(uri, selectionToDelete, selectionArgsToDelete); in testValidCase() 181 cursor = mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase() 205 Uri newUri = mContentResolver.insert(uri, contentValues); in testQueryConflictCase() 223 mContentResolver.query(uri, testProjection, selection, selectionArgs, null); in testQueryConflictCase() [all …]
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvContractTest.java | 124 private ContentResolver mContentResolver; field in TvContractTest 140 mContentResolver = getContext().getContentResolver(); in setUp() 150 mContentResolver.delete(Channels.CONTENT_URI, null, null); in tearDown() 151 mContentResolver.delete(RecordedPrograms.CONTENT_URI, null, null); in tearDown() 152 mContentResolver.delete(WatchNextPrograms.CONTENT_URI, null, null); in tearDown() 332 try (Cursor cursor = mContentResolver.query( in verifyChannel() 368 try (Cursor cursor = mContentResolver.query(channelUri, projection, null, null, null)) { in verifyNonExistingColumn() 389 Uri rowUri = mContentResolver.insert(mChannelsUri, values); in testChannelsTable() 399 mContentResolver.update(channelUri, values, null, null); in testChannelsTable() 403 mContentResolver.delete(mChannelsUri, null, null); in testChannelsTable() [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/tvprovider/src/android/tvprovider/cts/ |
D | TvProviderPerfTest.java | 57 private ContentResolver mContentResolver; field in TvProviderPerfTest 67 mContentResolver = getContext().getContentResolver(); in setUp() 75 mContentResolver.delete(Programs.CONTENT_URI, null, null); in tearDown() 76 mContentResolver.delete(Channels.CONTENT_URI, null, null); in tearDown() 92 mContentResolver.delete(Channels.CONTENT_URI, null, null); in testChannels() 109 mContentResolver.applyBatch(TvContract.AUTHORITY, operations); in testChannels() 123 try (final Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, in testChannels() 138 mContentResolver.applyBatch(TvContract.AUTHORITY, operations); in testChannels() 153 try (Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, null, null, in testChannels() 166 try (final Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, in testChannels() [all …]
|