Home
last modified time | relevance | path

Searched refs:mContentResolver (Results 1 – 25 of 48) sorted by relevance

12

/cts/tests/tests/content/src/android/content/cts/
DContentResolverTest.java88 private ContentResolver mContentResolver; field in ContentResolverTest
96 mContentResolver = mContext.getContentResolver(); in setUp()
105 mContentResolver.insert(TABLE1_URI, values); in setUp()
106 mContentResolver.insert(REMOTE_TABLE1_URI, values); in setUp()
110 mContentResolver.insert(TABLE1_URI, values); in setUp()
111 mContentResolver.insert(REMOTE_TABLE1_URI, values); in setUp()
115 mContentResolver.insert(TABLE1_URI, values); in setUp()
116 mContentResolver.insert(REMOTE_TABLE1_URI, values); in setUp()
124 mContentResolver.delete(TABLE1_URI, null, null); in tearDown()
128 mContentResolver.delete(REMOTE_TABLE1_URI, null, null); in tearDown()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Audio_AlbumsTest.java60 private ContentResolver mContentResolver; field in MediaStore_Audio_AlbumsTest
73 mContentResolver = mContext.getContentResolver(); in setUp()
81 assertNotNull(c = mContentResolver.query( in testGetContentUri()
92 mContentResolver.insert(audioAlbumsUri, new ContentValues()); in testStoreAudioAlbums()
100 Uri audioMediaUri = audio1.insert(mContentResolver, mVolumeName); in testStoreAudioAlbums()
106 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs, in testStoreAudioAlbums()
127 mContentResolver.update(audioAlbumsUri, albumValues, selection, selectionArgs); in testStoreAudioAlbums()
135 mContentResolver.delete(audioAlbumsUri, selection, selectionArgs); in testStoreAudioAlbums()
144 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums()
152 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums()
[all …]
DCalendarTest.java79 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 …]
DMediaStore_Audio_Genres_MembersTest.java57 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()
114 Uri uri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testStoreAudioGenresMembersExternal()
[all …]
DMediaStore_Images_ThumbnailsTest.java78 private ContentResolver mContentResolver; field in MediaStore_Images_ThumbnailsTest
99 mContentResolver.delete(row, null, null); in tearDown()
110 mContentResolver = mContext.getContentResolver(); in setUp()
141 Cursor c = Thumbnails.queryMiniThumbnails(mContentResolver, in testQueryExternalThumbnails()
155 Uri uri = mContentResolver.insert(Thumbnails.EXTERNAL_CONTENT_URI, values); in testQueryExternalThumbnails()
161 c = Thumbnails.queryMiniThumbnails(mContentResolver, uri, Thumbnails.MINI_KIND, null); in testQueryExternalThumbnails()
168 c = Thumbnails.queryMiniThumbnails(mContentResolver, Thumbnails.EXTERNAL_CONTENT_URI, in testQueryExternalThumbnails()
174 c = Thumbnails.query(mContentResolver, uri, null); in testQueryExternalThumbnails()
185 final ContentResolver resolver = mContentResolver; in testQueryExternalMiniThumbnails()
193 stringUrl = Media.insertImage(mContentResolver, src, "cts" + System.nanoTime(), null); in testQueryExternalMiniThumbnails()
[all …]
DBlockedNumberContractTest.java47 private ContentResolver mContentResolver; field in BlockedNumberContractTest
60 mContentResolver = mContext.getContentResolver(); in setUp()
68 mContentResolver.delete(row, null, null); in tearDown()
89 mAddedUris.add(mContentResolver.insert( in testProviderInteractionsAsRegularApp_fails()
96 mContentResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null); in testProviderInteractionsAsRegularApp_fails()
102 mContentResolver.update( in testProviderInteractionsAsRegularApp_fails()
125 mContentResolver.getType(BlockedNumbers.CONTENT_URI)); in testGetType()
127 mContentResolver.getType( in testGetType()
130 assertNull(mContentResolver.getType(BlockedNumberContract.AUTHORITY_URI)); in testGetType()
226 mAddedUris.add(mContentResolver.insert( in testInsert_failsWithInvalidInputs()
[all …]
DMediaStore_Audio_GenresTest.java54 private ContentResolver mContentResolver; field in MediaStore_Audio_GenresTest
67 mContentResolver = mContext.getContentResolver(); in setUp()
75 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()
105 Uri audioUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testGetContentUriForAudioId()
113 Uri genreUri = mContentResolver.insert(Genres.getContentUri(mVolumeName), values); in testGetContentUriForAudioId()
122 cursor = mContentResolver.query(audioGenresUri, null, null, null, null); in testGetContentUriForAudioId()
129 assertNotNull(mContentResolver.insert(membersUri, values)); in testGetContentUriForAudioId()
[all …]
DMediaStore_Audio_Playlists_MembersTest.java114 private ContentResolver mContentResolver; field in MediaStore_Audio_Playlists_MembersTest
131 Uri uri = which.insert(mContentResolver, mVolumeName); in insertAudioItem()
132 Cursor c = mContentResolver.query(uri, null, null, null, null); in insertAudioItem()
142 mContentResolver = mContext.getContentResolver(); in setUp()
156 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio1, null); in tearDown()
157 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio2, null); in tearDown()
158 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio3, null); in tearDown()
159 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio4, null); in tearDown()
160 mContentResolver.delete(uri, Media._ID + "=" + mIdOfAudio5, null); in tearDown()
175 return mContentResolver.insert(playlistMembersUri, values); in insertPlaylistItem()
[all …]
DMediaStore_Images_MediaTest.java74 private ContentResolver mContentResolver; field in MediaStore_Images_MediaTest
89 mContentResolver = mContext.getContentResolver(); in setUp()
106 Cursor c = Media.query(mContentResolver, mExternalImages, null, null, in testInsertImageWithImagePath()
118 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE1, null); in testInsertImageWithImagePath()
134 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE2, null); in testInsertImageWithImagePath()
144 c = Media.query(mContentResolver, Uri.parse(stringUrl), in testInsertImageWithImagePath()
154 c = Media.query(mContentResolver, mExternalImages, in testInsertImageWithImagePath()
167 c = Media.query(mContentResolver, Uri.parse(stringUrl), in testInsertImageWithImagePath()
186 stringUrl = Media.insertImage(mContentResolver, src, TEST_TITLE3, TEST_DESCRIPTION3); in testInsertImageWithBitmap()
193 Cursor c = Media.query(mContentResolver, Uri.parse(stringUrl), new String[] { Media.DATA }, in testInsertImageWithBitmap()
[all …]
DMediaStore_Audio_ArtistsTest.java50 private ContentResolver mContentResolver; field in MediaStore_Audio_ArtistsTest
63 mContentResolver = mContext.getContentResolver(); in setUp()
71 assertNotNull(c = mContentResolver.query( in testGetContentUri()
82 mContentResolver.insert(artistsUri, new ContentValues()); in testStoreAudioArtists()
88 Uri uri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtists()
94 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists()
110 mContentResolver.update(artistsUri, artistValues, selection, selectionArgs); in testStoreAudioArtists()
118 mContentResolver.delete(artistsUri, selection, selectionArgs); in testStoreAudioArtists()
127 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists()
135 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists()
[all …]
DSmsBackupRestoreTest.java68 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 …]
DMediaStore_Audio_MediaTest.java53 private ContentResolver mContentResolver; field in MediaStore_Audio_MediaTest
68 mContentResolver = mContext.getContentResolver(); in setUp()
77 assertNotNull(c = mContentResolver.query( in testGetContentUri()
87 … assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(externalPath), null, null, in testGetContentUriForPath()
92 … assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(internalPath), null, null, in testGetContentUriForPath()
103 Uri uri = mContentResolver.insert(mediaUri, values); in testStoreAudioMedia()
111 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioMedia()
150 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioMedia()
158 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioMedia()
163 int result = mContentResolver.delete(uri, null, null); in testStoreAudioMedia()
[all …]
DMediaStore_Video_MediaTest.java73 private ContentResolver mContentResolver; field in MediaStore_Video_MediaTest
88 mContentResolver = mContext.getContentResolver(); in setUp()
97 assertNotNull(c = mContentResolver.query(Media.getContentUri("internal"), null, null, null, in testGetContentUri()
100 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri()
106 mContentResolver.delete(mExternalVideo, "_data=?", new String[] { path }); in cleanExternalMediaFile()
149 Uri uri = mContentResolver.insert(mExternalVideo, values); in testStoreVideoMediaExternal()
154 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreVideoMediaExternal()
182 assertEquals(1, mContentResolver.delete(uri, null, null)); in testStoreVideoMediaExternal()
191 mContentResolver.delete(videoUri, null, null); in testStoreVideoMediaExternal()
236 try (ParcelFileDescriptor pfd = mContentResolver.openFile(publishUri, "r", null); in testLocationRedaction()
[all …]
DMediaStore_Audio_Artists_AlbumsTest.java53 private ContentResolver mContentResolver; field in MediaStore_Audio_Artists_AlbumsTest
66 mContentResolver = mContext.getContentResolver(); in setUp()
75 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); in testGetContentUri()
82 Uri audioMediaUri = Audio1.getInstance().insert(mContentResolver, mVolumeName); in testStoreAudioArtistsAlbums()
84 Cursor c = mContentResolver.query(audioMediaUri, new String[] { Media.ARTIST_ID }, null, in testStoreAudioArtistsAlbums()
92 mContentResolver.insert(artistsAlbumsUri, new ContentValues()); in testStoreAudioArtistsAlbums()
100 c = mContentResolver.query(artistsAlbumsUri, null, null, null, null); in testStoreAudioArtistsAlbums()
120 mContentResolver.update(artistsAlbumsUri, albumValues, null, null); in testStoreAudioArtistsAlbums()
128 mContentResolver.delete(artistsAlbumsUri, null, null); in testStoreAudioArtistsAlbums()
134 mContentResolver.delete(audioMediaUri, null, null); in testStoreAudioArtistsAlbums()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContacts_SettingsTest.java24 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()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DRingtoneSyncTest.java37 private ContentResolver mContentResolver; field in RingtoneSyncTest
42 mContentResolver = mContext.getContentResolver(); in setUp()
54 String defaultRingtone = Settings.System.getString(mContentResolver, in testRingtoneSync()
56 String defaultNotification = Settings.System.getString(mContentResolver, in testRingtoneSync()
58 String defaultAlarm = Settings.System.getString(mContentResolver, in testRingtoneSync()
79 Settings.Secure.putInt(mContentResolver, SYNC_PARENT_SOUNDS, 1); in testSoundDisableSync()
87 assertEquals(1, Settings.Secure.getInt(mContentResolver, SYNC_PARENT_SOUNDS)); in testSoundDisableSync()
90 assertEquals(0, Settings.Secure.getInt(mContentResolver, SYNC_PARENT_SOUNDS)); in testSoundDisableSync()
94 Settings.Secure.putInt(mContentResolver, SYNC_PARENT_SOUNDS, 1); in testSoundDisableSync()
104 Settings.Secure.putInt(mContentResolver, SYNC_PARENT_SOUNDS, 0); in testSoundDisableSync()
[all …]
/cts/hostsidetests/backup/OtherSoundsSettingsApp/src/android/cts/backup/othersoundssettingsapp/
DOtherSoundsSettingsTest.java52 private ContentResolver mContentResolver; field in OtherSoundsSettingsTest
57 mContentResolver = getInstrumentation().getTargetContext().getContentResolver(); in setUp()
83 mContentResolver, Settings.System.DTMF_TONE_WHEN_DIALING, -1); in testOtherSoundsSettings_dialPadTones()
90 mContentResolver, Settings.System.DTMF_TONE_WHEN_DIALING, in testOtherSoundsSettings_dialPadTones()
98 mContentResolver, Settings.System.DTMF_TONE_WHEN_DIALING, -1); in testOtherSoundsSettings_dialPadTones()
116 mContentResolver, Settings.System.SOUND_EFFECTS_ENABLED, -1); in testOtherSoundsSettings_touchSounds()
123 mContentResolver, Settings.System.SOUND_EFFECTS_ENABLED, 1 - originalValue); in testOtherSoundsSettings_touchSounds()
130 mContentResolver, Settings.System.SOUND_EFFECTS_ENABLED, -1); in testOtherSoundsSettings_touchSounds()
148 mContentResolver, Settings.System.HAPTIC_FEEDBACK_ENABLED, -1); in testOtherSoundsSettings_touchVibration()
155 mContentResolver, Settings.System.HAPTIC_FEEDBACK_ENABLED, in testOtherSoundsSettings_touchVibration()
[all …]
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContractTest.java112 private ContentResolver mContentResolver; field in TvContractTest
123 mContentResolver = getContext().getContentResolver(); in setUp()
133 mContentResolver.delete(Channels.CONTENT_URI, null, null); in tearDown()
134 mContentResolver.delete(RecordedPrograms.CONTENT_URI, null, null); in tearDown()
135 mContentResolver.delete(WatchNextPrograms.CONTENT_URI, null, null); in tearDown()
312 try (Cursor cursor = mContentResolver.query( in verifyChannel()
343 try (Cursor cursor = mContentResolver.query(channelUri, projection, null, null, null)) { in verifyNonExistingColumn()
364 Uri rowUri = mContentResolver.insert(mChannelsUri, values); in testChannelsTable()
374 mContentResolver.update(channelUri, values, null, null); in testChannelsTable()
378 mContentResolver.delete(mChannelsUri, null, null); in testChannelsTable()
[all …]
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DApnDatabaseTest.java53 private ContentResolver mContentResolver; field in ApnDatabaseTest
101 mContentResolver = InstrumentationRegistry.getContext().getContentResolver(); in setUp()
130 Uri newUri = mContentResolver.insert(uri, contentValues); in testValidCase()
140 Cursor cursor = mContentResolver.query( in testValidCase()
158 final int updateCount = mContentResolver.update(uri, contentValues, selection, in testValidCase()
163 cursor = mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase()
175 int numRowsDeleted = mContentResolver.delete( in testValidCase()
180 cursor = mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase()
204 Uri newUri = mContentResolver.insert(uri, contentValues); in testQueryConflictCase()
221 Cursor cursor = mContentResolver.query( in testQueryConflictCase()
[all …]
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DLockedMessageTest.java47 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 …]
DSmsTestHelper.java31 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()
DSmsTest.java45 private ContentResolver mContentResolver; field in SmsTest
64 mContentResolver = getInstrumentation().getContext().getContentResolver(); in setupTestEnvironment()
76 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsInsert()
92 int deletedRows = mContentResolver.delete(uri, null, null); in testSmsDelete()
96 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsDelete()
116 mContentResolver.update(uri, values, null, null); in testSmsUpdate()
128 Uri uri = mContentResolver.insert(Telephony.Sms.CONTENT_URI, values); in testInsertSmsFromSubid_verifySmsFromNotOtherSubId()
141 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSeen()
147 int cursorUpdate = mContentResolver.update(uri, updateValues, null, null); in testInsertSms_canUpdateSeen()
159 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSmsStatus()
[all …]
DMmsTest.java55 private ContentResolver mContentResolver; field in MmsTest
72 mContentResolver = getInstrumentation().getContext().getContentResolver(); in setupTestEnvironment()
83 Cursor cursor = mContentResolver.query(uri, null, null, null); in testMmsInsert_insertSendReqSucceeds()
100 int deletedRows = mContentResolver.delete(uri, null, null); in testMmsDelete()
104 Cursor cursor = mContentResolver.query(uri, null, null, null); in testMmsDelete()
134 Cursor mmsCursor = mContentResolver.query(mmsUri, null, null, null); in testMmsInsert_canInsertTextMms()
140 Cursor partCursor = mContentResolver.query(partUri, null, null, null); in testMmsInsert_canInsertTextMms()
164 Cursor msgCursor = mContentResolver.query(Sent.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsSent()
183 Cursor msgCursor = mContentResolver.query(Draft.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsDraft()
202 Cursor msgCursor = mContentResolver.query(Inbox.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsInbox()
[all …]
/cts/tests/tvprovider/src/android/tvprovider/cts/
DTvProviderPerfTest.java57 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 …]
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java76 private ContentResolver mContentResolver; field in MediaStorageTest
85 mContentResolver = mContext.getContentResolver(); in setUp()
148 try (Cursor c = mContentResolver.query( in doSandboxed()
175 try (Cursor c = mContentResolver.query(MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI, in testMediaNone()
179 try (Cursor c = mContentResolver.query(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, in testMediaNone()
183 try (Cursor c = mContentResolver.query(MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI, in testMediaNone()
198 try (Cursor c = mContentResolver.query(collection, in doMediaNone()
208 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaNone()
210 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaNone()
214 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaNone()
[all …]

12