/cts/tests/tests/provider/src/android/provider/cts/ |
Contacts_SettingsTest.java | 24 private ContentResolver mContentResolver; 29 mContentResolver = getInstrumentation().getTargetContext().getContentResolver(); 37 Settings.setSetting(mContentResolver, "account", key1, value1); 38 Settings.setSetting(mContentResolver, "account", key2, value2); 39 assertEquals(value1, Settings.getSetting(mContentResolver, "account", key1)); 40 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key2)); 41 assertNull(Settings.getSetting(mContentResolver, "account", "key not exist")); 43 Settings.setSetting(mContentResolver, "account", key1, value2); 44 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key1));
|
MediaStore_Audio_GenresTest.java | 32 private ContentResolver mContentResolver; 38 mContentResolver = getInstrumentation().getContext().getContentResolver(); 43 assertNotNull(c = mContentResolver.query( 48 assertNotNull(c = mContentResolver.query( 59 assertNull(mContentResolver.query(Genres.getContentUri(volume), null, null, null, null)); 66 Uri uri = mContentResolver.insert(Genres.EXTERNAL_CONTENT_URI, values); 71 Cursor c = mContentResolver.query(uri, null, null, null, null); 81 assertEquals(1, mContentResolver.update(uri, values, null, null)); 82 c = mContentResolver.query(uri, null, null, null, null); 87 assertEquals(1, mContentResolver.delete(uri, null, null)) [all...] |
MediaStoreTest.java | 35 private ContentResolver mContentResolver; 40 mContentResolver = getInstrumentation().getContext().getContentResolver(); 41 Cursor c = mContentResolver.query(mScannerUri, PROJECTION, null, null, null); 55 mContentResolver.insert(mScannerUri, values); 67 assertNull(mContentResolver.query(mScannerUri, PROJECTION, 73 mContentResolver.insert(mScannerUri, values)); 76 Cursor c = mContentResolver.query(mScannerUri, PROJECTION, 84 assertEquals(1, mContentResolver.delete(mScannerUri, null, null)); 85 assertNull(mContentResolver.query(mScannerUri, PROJECTION, null, null, null));
|
MediaStore_Audio_ArtistsTest.java | 30 private ContentResolver mContentResolver; 36 mContentResolver = getInstrumentation().getContext().getContentResolver(); 41 assertNotNull(c = mContentResolver.query( 45 assertNotNull(c = mContentResolver.query( 52 assertNull(mContentResolver.query(Artists.getContentUri(volume), null, null, null, null)); 67 mContentResolver.insert(artistsUri, new ContentValues()); 73 Uri uri = isInternal ? Audio1.getInstance().insertToInternal(mContentResolver) 74 : Audio1.getInstance().insertToExternal(mContentResolver); 80 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); 96 mContentResolver.update(artistsUri, artistValues, selection, selectionArgs) [all...] |
MediaStore_Audio_AlbumsTest.java | 38 private ContentResolver mContentResolver; 44 mContentResolver = mContext.getContentResolver(); 49 assertNotNull(c = mContentResolver.query( 53 assertNotNull(c = mContentResolver.query( 60 assertNull(mContentResolver.query(Albums.getContentUri(volume), null, null, null, null)); 75 mContentResolver.insert(audioAlbumsUri, new ContentValues()); 83 Uri audioMediaUri = isInternal ? audio1.insertToInternal(mContentResolver) 84 : audio1.insertToExternal(mContentResolver); 90 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs, 125 mContentResolver.update(audioAlbumsUri, albumValues, selection, selectionArgs) [all...] |
MediaStore_Audio_Artists_AlbumsTest.java | 32 private ContentResolver mContentResolver; 38 mContentResolver = getInstrumentation().getContext().getContentResolver(); 45 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); 50 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); 55 assertNull(mContentResolver.query(MediaStore.Audio.Artists.Albums.getContentUri(volume, 1), 69 Uri audioMediaUri = isInternal ? Audio1.getInstance().insertToInternal(mContentResolver) 70 : Audio1.getInstance().insertToExternal(mContentResolver); 72 Cursor c = mContentResolver.query(audioMediaUri, new String[] { Media.ARTIST_ID }, null, 82 mContentResolver.insert(artistsAlbumsUri, new ContentValues()); 90 c = mContentResolver.query(artistsAlbumsUri, null, null, null, null) [all...] |
MediaStore_Audio_Genres_MembersTest.java | 33 private ContentResolver mContentResolver; 43 mContentResolver = getInstrumentation().getContext().getContentResolver(); 44 Uri uri = Audio1.getInstance().insertToExternal(mContentResolver); 45 Cursor c = mContentResolver.query(uri, null, null, null, null); 50 uri = Audio2.getInstance().insertToExternal(mContentResolver); 51 c = mContentResolver.query(uri, null, null, null, null); 61 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mAudioIdOfJam, null); 62 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, Media._ID + "=" + mAudioIdOfJamLive, 69 assertNotNull(c = mContentResolver.query( 75 assertNotNull(c = mContentResolver.query [all...] |
MediaStore_Audio_PlaylistsTest.java | 32 private ContentResolver mContentResolver; 38 mContentResolver = getInstrumentation().getContext().getContentResolver(); 43 assertNotNull(c = mContentResolver.query( 50 assertNotNull(c = mContentResolver.query( 60 assertNull(mContentResolver.query(Playlists.getContentUri(volume), null, null, null, 74 Uri uri = mContentResolver.insert(Playlists.EXTERNAL_CONTENT_URI, values); 79 Cursor c = mContentResolver.query(uri, null, null, null, null); 97 assertEquals(1, mContentResolver.update(uri, values, null, null)); 98 c = mContentResolver.query(uri, null, null, null, null); 108 assertEquals(1, mContentResolver.delete(uri, null, null)) [all...] |
TelephonyProviderTest.java | 39 private ContentResolver mContentResolver; 50 mContentResolver = getInstrumentation().getContext().getContentResolver(); 60 Uri uri2 = mContentResolver.insert(uri, values2); 67 int rowCnt = mContentResolver.update(uri2, values, null, null); 70 ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(uri2, "rw"); 89 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI,
|
MediaStore_Images_ThumbnailsTest.java | 43 private ContentResolver mContentResolver; 51 mContentResolver.delete(row, null, null); 67 mContentResolver = mContext.getContentResolver(); 81 Cursor c = Thumbnails.queryMiniThumbnails(mContentResolver, 91 Uri uri = mContentResolver.insert(Thumbnails.INTERNAL_CONTENT_URI, values); 97 c = Thumbnails.queryMiniThumbnails(mContentResolver, uri, Thumbnails.MINI_KIND, null); 104 c = Thumbnails.queryMiniThumbnails(mContentResolver, Thumbnails.INTERNAL_CONTENT_URI, 110 c = Thumbnails.query(mContentResolver, uri, null); 123 stringUrl = Media.insertImage(mContentResolver, src, null, null); 132 Cursor c = mContentResolver.query(Uri.parse(stringUrl) [all...] |
MediaStore_VideoTest.java | 39 private ContentResolver mContentResolver; 46 mContentResolver.delete(row, null, null); 56 mContentResolver = mContext.getContentResolver(); 66 Uri newUri = mContentResolver.insert(Video.Media.INTERNAL_CONTENT_URI, values); 71 Cursor c = Video.query(mContentResolver, newUri, new String[] { VideoColumns.DATA });
|
CalendarTest.java | 79 private ContentResolver mContentResolver; [all...] |
UserDictionary_WordsTest.java | 31 private ContentResolver mContentResolver; 48 mContentResolver = mContext.getContentResolver(); 55 mContentResolver.delete(row, null, null); 69 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, 93 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION,
|
/frameworks/base/core/tests/coretests/src/android/content/ |
ContentResolverTest.java | 24 private ContentResolver mContentResolver; 29 mContentResolver = mContext.getContentResolver(); 38 mContentResolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
|
/cts/tests/tests/content/src/android/content/cts/ |
ContentResolverTest.java | 81 private ContentResolver mContentResolver; 89 mContentResolver = mContext.getContentResolver(); 91 android.provider.Settings.System.putInt(mContentResolver, "__cts_crash_on_launch", 0); 98 mContentResolver.insert(TABLE1_URI, values); 99 mContentResolver.insert(REMOTE_TABLE1_URI, values); 103 mContentResolver.insert(TABLE1_URI, values); 104 mContentResolver.insert(REMOTE_TABLE1_URI, values); 108 mContentResolver.insert(TABLE1_URI, values); 109 mContentResolver.insert(REMOTE_TABLE1_URI, values); 114 mContentResolver.delete(TABLE1_URI, null, null) [all...] |
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/ |
ContactsMockContext.java | 36 private MockContentResolver mContentResolver; 44 mContentResolver = new MockContentResolver(); 46 mContentResolver.addProvider(ContactsContract.AUTHORITY, mContactsProvider); 50 mContentResolver.addProvider(Settings.AUTHORITY, mSettingsProvider); 55 return mContentResolver;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/test/ |
InjectedServices.java | 34 private ContentResolver mContentResolver; 40 this.mContentResolver = contentResolver; 44 return mContentResolver;
|
/frameworks/base/core/java/android/content/ |
ContentProviderClient.java | 58 private final ContentResolver mContentResolver; 73 mContentResolver = contentResolver; 132 mContentResolver.unstableProviderDied(mContentProvider); 147 mContentResolver.unstableProviderDied(mContentProvider); 162 mContentResolver.unstableProviderDied(mContentProvider); 177 mContentResolver.unstableProviderDied(mContentProvider); 192 mContentResolver.unstableProviderDied(mContentProvider); 207 mContentResolver.unstableProviderDied(mContentProvider); 222 mContentResolver.unstableProviderDied(mContentProvider); 238 mContentResolver.unstableProviderDied(mContentProvider) [all...] |
DefaultDataHandler.java | 85 private ContentResolver mContentResolver; 89 mContentResolver = contentResolver; 95 mContentResolver = contentResolver; 128 Uri u = mContentResolver.insert(mUris.lastElement(), mValues); 187 mContentResolver.delete(u, atts.getValue(1), selectionArgs); 189 mContentResolver.delete(u, atts.getValue(1), null); 191 mContentResolver.delete(u, null, null);
|
/packages/apps/Contacts/src/com/android/contacts/ |
ContactsActivity.java | 38 private ContentResolver mContentResolver; 42 if (mContentResolver == null) { 45 mContentResolver = services.getContentResolver(); 47 if (mContentResolver == null) { 48 mContentResolver = super.getContentResolver(); 51 return mContentResolver;
|
/packages/providers/DownloadProvider/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/ |
PublicApiAccessTest.java | 47 private ContentResolver mContentResolver; 53 mContentResolver = getContext().getContentResolver(); 54 mManager = new DownloadManager(mContentResolver, getContext().getPackageName()); 59 if (mContentResolver != null) { 60 mContentResolver.delete(Downloads.Impl.CONTENT_URI, null, null); 66 mContentResolver.insert(Downloads.Impl.CONTENT_URI, buildValidValues()); 78 mContentResolver.insert(Downloads.Impl.CONTENT_URI, values); 135 mContentResolver.insert(Downloads.Impl.CONTENT_URI, values);
|
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardEntryCommitter.java | 43 private final ContentResolver mContentResolver; 50 mContentResolver = resolver; 71 mOperationList = vcardEntry.constructInsertOperations(mContentResolver, mOperationList); 83 final ContentProviderResult[] results = mContentResolver.applyBatch(
|
/packages/apps/Gallery/src/com/android/camera/ |
DeleteImage.java | 44 private ContentResolver mContentResolver; 57 mContentResolver = getContentResolver(); 76 mContentResolver.delete(uri, null, null);
|
/packages/apps/PhoneCommon/src/com/android/phone/common/ |
HapticFeedback.java | 76 private ContentResolver mContentResolver; 96 mContentResolver = context.getContentResolver(); 110 int val = mSystemSettings.getInt(mContentResolver, System.HAPTIC_FEEDBACK_ENABLED, 0);
|
/packages/providers/DownloadProvider/tests/permission/src/com/android/providers/downloads/permission/tests/ |
DownloadProviderPermissionsTest.java | 38 private ContentResolver mContentResolver; 43 mContentResolver = getContext().getContentResolver(); 79 mContentResolver.insert(Downloads.Impl.CONTENT_URI, values);
|