/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/provider/src/android/provider/cts/ |
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_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_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_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...] |
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_Video_MediaTest.java | 38 private ContentResolver mContentResolver; 44 mContentResolver = getContext().getContentResolver(); 49 assertNotNull(c = mContentResolver.query(Media.getContentUri("internal"), null, null, null, 52 assertNotNull(c = mContentResolver.query(Media.getContentUri("external"), null, null, null, 58 assertNull(mContentResolver.query(Media.getContentUri(volume), null, null, null, null)); 62 mContentResolver.delete(Media.EXTERNAL_CONTENT_URI, "_data=?", new String[] { path }); 106 Uri uri = mContentResolver.insert(Media.EXTERNAL_CONTENT_URI, values); 111 Cursor c = mContentResolver.query(uri, null, null, null, null); 163 assertEquals(1, mContentResolver.update(uri, values, null, null)); 165 c = mContentResolver.query(uri, null, null, null, null) [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...] |
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 });
|
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_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_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...] |
MediaStore_Images_MediaTest.java | 58 private ContentResolver mContentResolver; 65 mContentResolver.delete(row, null, null); 77 mContentResolver = mContext.getContentResolver(); 91 Cursor c = Media.query(mContentResolver, Media.EXTERNAL_CONTENT_URI, null, null, 100 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE1, TEST_DESCRIPTION1); 114 stringUrl = Media.insertImage(mContentResolver, path, TEST_TITLE2, TEST_DESCRIPTION2); 125 c = Media.query(mContentResolver, Uri.parse(stringUrl), 136 c = Media.query(mContentResolver, Media.EXTERNAL_CONTENT_URI, 151 c = Media.query(mContentResolver, Uri.parse(stringUrl), 166 stringUrl = Media.insertImage(mContentResolver, src, TEST_TITLE3, TEST_DESCRIPTION3) [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,
|
/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);
|
/packages/apps/Gallery/src/com/android/camera/ |
DeleteImage.java | 44 private ContentResolver mContentResolver; 57 mContentResolver = getContentResolver(); 76 mContentResolver.delete(uri, null, null);
|
/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);
|
/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/Exchange/src/com/android/exchange/adapter/ |
SearchParser.java | 28 private final ContentResolver mContentResolver; 40 mContentResolver = resolver; 84 EmailSyncParser parser = new EmailSyncParser(this, mContext, mContentResolver, 105 mContentResolver.applyBatch(EmailContent.AUTHORITY, ops);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
ObscureSpeechDelegate.java | 39 private final ContentResolver mContentResolver; 43 mContentResolver = context.getContentResolver(); 88 if (Settings.Secure.getInt(mContentResolver,
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/test/ |
InjectedServices.java | 34 private ContentResolver mContentResolver; 40 this.mContentResolver = contentResolver; 44 return mContentResolver;
|
/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...] |
/developers/build/prebuilts/gradle/BasicSyncAdapter/BasicSyncAdapterSample/src/main/java/com/example/android/basicsyncadapter/ |
SyncAdapter.java | 83 private final ContentResolver mContentResolver; 107 mContentResolver = context.getContentResolver(); 116 mContentResolver = context.getContentResolver(); 284 mContentResolver.applyBatch(FeedContract.CONTENT_AUTHORITY, batch); 285 mContentResolver.notifyChange(
|
/developers/samples/android/connectivity/sync/BasicSyncAdapter/BasicSyncAdapterSample/src/main/java/com/example/android/basicsyncadapter/ |
SyncAdapter.java | 83 private final ContentResolver mContentResolver; 107 mContentResolver = context.getContentResolver(); 116 mContentResolver = context.getContentResolver(); 284 mContentResolver.applyBatch(FeedContract.CONTENT_AUTHORITY, batch); 285 mContentResolver.notifyChange(
|
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/ |
SyncAdapter.java | 83 private final ContentResolver mContentResolver; 107 mContentResolver = context.getContentResolver(); 116 mContentResolver = context.getContentResolver(); 284 mContentResolver.applyBatch(FeedContract.CONTENT_AUTHORITY, batch); 285 mContentResolver.notifyChange(
|