HomeSort by relevance Sort by last modified time
    Searched refs:mContentResolver (Results 1 - 25 of 153) sorted by null

1 2 3 4 5 6 7

  /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 39 private ContentResolver mContentResolver;
45 mContentResolver = mContext.getContentResolver();
50 assertNotNull(c = mContentResolver.query(
54 assertNotNull(c = mContentResolver.query(
61 assertNull(mContentResolver.query(Albums.getContentUri(volume), null, null, null, null));
76 mContentResolver.insert(audioAlbumsUri, new ContentValues());
84 Uri audioMediaUri = isInternal ? audio1.insertToInternal(mContentResolver)
85 : audio1.insertToExternal(mContentResolver);
91 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs,
126 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...]
BlockedNumberContractTest.java 44 private ContentResolver mContentResolver;
56 mContentResolver = mContext.getContentResolver();
63 mContentResolver.delete(row, null, null);
73 mAddedUris.add(mContentResolver.insert(
80 mContentResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null);
86 mContentResolver.update(
109 mContentResolver.getType(BlockedNumbers.CONTENT_URI));
111 mContentResolver.getType(
114 assertNull(mContentResolver.getType(BlockedNumberContract.AUTHORITY_URI));
165 mAddedUris.add(mContentResolver.insert
    [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();
63 // Uri uri2 = mContentResolver.insert(uri, values2);
70 // int rowCnt = mContentResolver.update(uri2, values, null, null);
73 // ParcelFileDescriptor pfd = mContentResolver.openFileDescriptor(uri2, "rw");
92 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI,
MediaStore_VideoTest.java 40 private ContentResolver mContentResolver;
47 mContentResolver.delete(row, null, null);
57 mContentResolver = mContext.getContentResolver();
67 Uri newUri = mContentResolver.insert(Video.Media.INTERNAL_CONTENT_URI, values);
72 Cursor c = Video.query(mContentResolver, newUri, new String[] { VideoColumns.DATA });
UserDictionary_WordsTest.java 35 private ContentResolver mContentResolver;
52 mContentResolver = mContext.getContentResolver();
59 mContentResolver.delete(row, null, null);
73 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION,
91 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION,
SmsBackupRestoreTest.java 66 private ContentResolver mContentResolver;
78 mContentResolver = mContext.getContentResolver();
110 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1);
111 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody2);
113 mContentResolver.query(Telephony.Mms.CONTENT_URI, ID_PROJECTION, MMS_SELECTION,
119 mContentResolver.delete(partUri, MMS_PART_SELECTION,
123 mContentResolver.delete(addrUri, MMS_ADDR_SELECTION,
127 mContentResolver.delete(Telephony.Mms.CONTENT_URI, MMS_SELECTION, new String[]{mmsSubject});
146 mContentResolver.bulkInsert(Telephony.Sms.CONTENT_URI, smsContentValues);
162 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1))
    [all...]
MediaStore_Images_ThumbnailsTest.java 46 private ContentResolver mContentResolver;
54 mContentResolver.delete(row, null, null);
70 mContentResolver = mContext.getContentResolver();
77 Cursor c = Thumbnails.queryMiniThumbnails(mContentResolver,
87 Uri uri = mContentResolver.insert(Thumbnails.INTERNAL_CONTENT_URI, values);
93 c = Thumbnails.queryMiniThumbnails(mContentResolver, uri, Thumbnails.MINI_KIND, null);
100 c = Thumbnails.queryMiniThumbnails(mContentResolver, Thumbnails.INTERNAL_CONTENT_URI,
106 c = Thumbnails.query(mContentResolver, uri, null);
121 stringUrl = Media.insertImage(mContentResolver, src, null, null);
130 Cursor c = mContentResolver.query(Uri.parse(stringUrl)
    [all...]
CalendarTest.java 78 private ContentResolver mContentResolver;
    [all...]
  /packages/apps/Camera2/src/com/android/camera/session/
StackSaverFactory.java 29 private final ContentResolver mContentResolver;
41 mContentResolver = contentResolver;
53 return new StackSaverImpl(new File(mCameraDirectory, mTitle), location, mContentResolver);
  /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
ManagedProfileSettingsTask.java 28 private final ContentResolver mContentResolver;
31 mContentResolver = context.getContentResolver();
37 Settings.Secure.putIntForUser(mContentResolver, MANAGED_PROFILE_CONTACT_REMOTE_SEARCH,
  /frameworks/base/core/tests/coretests/src/android/content/
ContentResolverTest.java 26 private ContentResolver mContentResolver;
31 mContentResolver = mContext.getContentResolver();
40 mContentResolver.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);
  /cts/tests/tests/content/src/android/content/cts/
ContentResolverTest.java 86 private ContentResolver mContentResolver;
94 mContentResolver = mContext.getContentResolver();
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);
113 mContentResolver.insert(TABLE1_URI, values);
114 mContentResolver.insert(REMOTE_TABLE1_URI, values);
119 mContentResolver.delete(TABLE1_URI, null, null);
123 mContentResolver.delete(REMOTE_TABLE1_URI, null, null)
    [all...]
  /packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
ContactsMockContext.java 36 private MockContentResolver mContentResolver;
48 mContentResolver = new MockContentResolver();
50 mContentResolver.addProvider(authority, mContactsProvider);
52 mContentResolver.addProvider(Settings.AUTHORITY, mSettingsProvider);
57 return mContentResolver;
  /packages/apps/ContactsCommon/src/com/android/contacts/common/testing/
InjectedServices.java 35 private ContentResolver mContentResolver;
41 this.mContentResolver = contentResolver;
45 return mContentResolver;
  /packages/apps/Dialer/tests/src/com/android/dialer/compat/
FilteredNumberCompatInstrumentationTest.java 42 private ContentResolver mContentResolver;
52 mContentResolver = getActivity().getContentResolver();
54 mContentResolver.delete(BlockedNumbersSdkCompat.CONTENT_URI,
65 mContentResolver.insert(BlockedNumbers.CONTENT_URI, values);
72 .showBlockNumberDialogFlow(mContentResolver, null, NUMBER, COUNTRY_ISO,
  /packages/apps/Messaging/tests/src/com/android/messaging/
FakeContext.java 43 private final MockContentResolver mContentResolver;
50 mContentResolver = new MockContentResolver();
89 return mContentResolver;
93 mContentResolver.addProvider(name, provider);
98 mContentResolver.addProvider(uri.getAuthority(), provider);
  /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;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
TunerService.java 67 private ContentResolver mContentResolver;
73 mContentResolver = mContext.getContentResolver();
105 Settings.Secure.putStringForUser(mContentResolver,
114 return Settings.Secure.getStringForUser(mContentResolver, setting, mCurrentUser);
118 Settings.Secure.putStringForUser(mContentResolver, setting, value, mCurrentUser);
122 return Settings.Secure.getIntForUser(mContentResolver, setting, def, mCurrentUser);
126 Settings.Secure.putIntForUser(mContentResolver, setting, value, mCurrentUser);
143 mContentResolver.registerContentObserver(uri, false, mObserver, mCurrentUser);
146 String value = Settings.Secure.getStringForUser(mContentResolver, key, mCurrentUser);
160 mContentResolver.unregisterContentObserver(mObserver)
    [all...]

Completed in 940 milliseconds

1 2 3 4 5 6 7