Home
last modified time | relevance | path

Searched refs:mContentResolver (Results 1 – 25 of 40) 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/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()
DContacts_PeopleTest.java44 private ContentResolver mContentResolver; field in Contacts_PeopleTest
70 mContentResolver = getInstrumentation().getTargetContext().getContentResolver(); in setUp()
71 mProvider = mContentResolver.acquireContentProviderClient(Contacts.AUTHORITY); in setUp()
128 mRowsAdded.add(People.addToMyContactsGroup(mContentResolver, personId)); in testAddToGroup()
134 cursor = People.queryGroups(mContentResolver, personId); in testAddToGroup()
151 mRowsAdded.add(People.createPersonInMyContactsGroup(mContentResolver, values)); in testAddToGroup()
164 cursor = People.queryGroups(mContentResolver, personId); in testAddToGroup()
181 mRowsAdded.add(People.addToGroup(mContentResolver, personId, groupId)); in testAddToGroup()
182 cursor = People.queryGroups(mContentResolver, personId); in testAddToGroup()
202 mRowsAdded.add(People.addToGroup(mContentResolver, personId, groupName)); in testAddToGroup()
[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 …]
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 …]
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_Images_ThumbnailsTest.java79 private ContentResolver mContentResolver; field in MediaStore_Images_ThumbnailsTest
100 mContentResolver.delete(row, null, null); in tearDown()
111 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 …]
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_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_Images_MediaTest.java71 private ContentResolver mContentResolver; field in MediaStore_Images_MediaTest
86 mContentResolver = mContext.getContentResolver(); in setUp()
103 Cursor c = Media.query(mContentResolver, mExternalImages, null, null, in testInsertImageWithImagePath()
115 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE1, null); in testInsertImageWithImagePath()
131 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE2, null); in testInsertImageWithImagePath()
141 c = Media.query(mContentResolver, Uri.parse(stringUrl), in testInsertImageWithImagePath()
151 c = Media.query(mContentResolver, mExternalImages, in testInsertImageWithImagePath()
164 c = Media.query(mContentResolver, Uri.parse(stringUrl), in testInsertImageWithImagePath()
183 stringUrl = Media.insertImage(mContentResolver, src, TEST_TITLE3, TEST_DESCRIPTION3); in testInsertImageWithBitmap()
190 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 …]
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_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 …]
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.java70 private ContentResolver mContentResolver; field in MediaStore_Video_MediaTest
85 mContentResolver = mContext.getContentResolver(); in setUp()
94 assertNotNull(c = mContentResolver.query(Media.getContentUri("internal"), null, null, null, in testGetContentUri()
97 assertNotNull(c = mContentResolver.query(Media.getContentUri(mVolumeName), null, null, null, in testGetContentUri()
103 mContentResolver.delete(mExternalVideo, "_data=?", new String[] { path }); in cleanExternalMediaFile()
146 Uri uri = mContentResolver.insert(mExternalVideo, values); in testStoreVideoMediaExternal()
151 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreVideoMediaExternal()
179 assertEquals(1, mContentResolver.delete(uri, null, null)); in testStoreVideoMediaExternal()
188 mContentResolver.delete(videoUri, null, null); in testStoreVideoMediaExternal()
233 try (ParcelFileDescriptor pfd = mContentResolver.openFile(publishUri, "r", null); in testLocationRedaction()
[all …]
DMediaStore_DownloadsTest.java72 private ContentResolver mContentResolver; field in MediaStore_DownloadsTest
92 mContentResolver = mContext.getContentResolver(); in setUp()
138 assertNotNull(c = mContentResolver.query(mExternalDownloads, in testGetContentUri()
155 try (Cursor cursor = mContentResolver.query(mExternalDownloads, in testMediaInDownloadsDir()
163 assertEquals(1, mContentResolver.delete(insertUri, null, null)); in testMediaInDownloadsDir()
164 try (Cursor cursor = mContentResolver.query(mExternalDownloads, in testMediaInDownloadsDir()
196 try (Cursor cursor = mContentResolver.query(publishUri, null, null, null, null)) { in testInsertDownload()
211 try (InputStream in = mContentResolver.openInputStream(publishUri)) { in testInsertDownload()
244 assertEquals(1, mContentResolver.update(publishUri, updateValues, null, null)); in testUpdateDownload()
246 try (Cursor cursor = mContentResolver.query(publishUri, in testUpdateDownload()
[all …]
/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/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/tv/src/android/media/tv/cts/
DTvContractTest.java111 private ContentResolver mContentResolver; field in TvContractTest
122 mContentResolver = getContext().getContentResolver(); in setUp()
132 mContentResolver.delete(Channels.CONTENT_URI, null, null); in tearDown()
133 mContentResolver.delete(RecordedPrograms.CONTENT_URI, null, null); in tearDown()
134 mContentResolver.delete(WatchNextPrograms.CONTENT_URI, null, null); in tearDown()
311 try (Cursor cursor = mContentResolver.query( in verifyChannel()
341 try (Cursor cursor = mContentResolver.query(channelUri, projection, null, null, null)) { in verifyNonExistingColumn()
358 Uri rowUri = mContentResolver.insert(mChannelsUri, values); in testChannelsTable()
368 mContentResolver.update(channelUri, values, null, null); in testChannelsTable()
372 mContentResolver.delete(mChannelsUri, null, null); in testChannelsTable()
[all …]
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java75 private ContentResolver mContentResolver; field in MediaStorageTest
81 mContentResolver = mContext.getContentResolver(); in setUp()
144 try (Cursor c = mContentResolver.query( in doSandboxed()
171 try (Cursor c = mContentResolver.query(MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI, in testMediaNone()
175 try (Cursor c = mContentResolver.query(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, in testMediaNone()
179 try (Cursor c = mContentResolver.query(MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI, in testMediaNone()
194 try (Cursor c = mContentResolver.query(collection, in doMediaNone()
204 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(red, "rw")) { in doMediaNone()
206 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "r")) { in doMediaNone()
210 try (ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(blue, "w")) { in doMediaNone()
[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/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DMmsTest.java40 private ContentResolver mContentResolver; field in MmsTest
50 mContentResolver = getInstrumentation().getContext().getContentResolver(); in setupTestEnvironment()
67 Cursor cursor = mContentResolver.query(uri, null, null, null); in testMmsInsert_insertSendReqSucceeds()
84 int deletedRows = mContentResolver.delete(uri, null, null); in testMmsDelete()
88 Cursor cursor = mContentResolver.query(uri, null, null, null); in testMmsDelete()
123 Cursor cursor = mContentResolver.query(uriReturnedFromInsert, null, null, null); in assertThatMmsInsertFailed()
137 Cursor cursor = mContentResolver.query(uriReturnedFromInsert, null, null, null); in assertThatMmsInsertSucceeded()
158 return mContentResolver.insert(uri, values); in insertTestMms()
DTelephonyProviderTest.java25 private ContentResolver mContentResolver; field in TelephonyProviderTest
38 mContentResolver = getInstrumentation().getContext().getContentResolver(); in setUp()
48 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testAccessToApns()
60 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testNoAccessToPassword()

12