/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
BatchOperation.java | 35 private final ContentResolver mResolver; 40 mResolver = resolver; 58 mResolver.applyBatch(ContactsContract.AUTHORITY, mOperations);
|
/packages/apps/Camera/src/com/android/camera/ |
RecordLocationPreference.java | 36 private final ContentResolver mResolver; 40 mResolver = context.getContentResolver(); 45 return get(getSharedPreferences(), mResolver) ? VALUE_ON : VALUE_OFF;
|
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/ |
ContentValuesVerifierElem.java | 34 private final ImportTestResolver mResolver; 39 mResolver = new ImportTestResolver(androidTestCase); 40 mHandler = new VCardEntryCommitter(mResolver); 46 mResolver.addExpectedContentValues(contentValues); 73 mResolver.verify();
|
VCardVerifier.java | 58 final ContentResolver mResolver; 60 mResolver = resolver; 65 return mResolver;
|
/frameworks/base/test-runner/src/android/test/ |
ProviderTestCase.java | 42 private MockContentResolver mResolver; 62 mResolver = new MockContentResolver(); 68 mProviderContext = new IsolatedContext(mResolver, targetContextWrapper); 73 mResolver.addProvider(mProviderAuthority, getProvider()); 77 return mResolver;
|
ProviderTestCase2.java | 75 private MockContentResolver mResolver; 127 mResolver = new MockContentResolver(); 135 mProviderContext = new IsolatedContext(mResolver, targetContextWrapper); 140 mResolver.addProvider(mProviderAuthority, getProvider()); 150 return mResolver;
|
IsolatedContext.java | 53 private ContentResolver mResolver; 61 mResolver = resolver; 76 return mResolver;
|
/cts/tests/tests/content/src/android/content/cts/ |
ContentQueryMapTest.java | 58 private ContentResolver mResolver; 65 mResolver = mContext.getContentResolver(); 70 mResolver.insert(DummyProvider.CONTENT_URI, values0); 75 mResolver.insert(DummyProvider.CONTENT_URI, values1); 77 mCursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, null); 92 mResolver.delete(DummyProvider.CONTENT_URI, null, null); 186 mResolver.update(DummyProvider.CONTENT_URI, values, 237 mResolver.update(DummyProvider.CONTENT_URI, values, 274 mResolver.insert(DummyProvider.CONTENT_URI, values); 295 mResolver.update(DummyProvider.CONTENT_URI, values [all...] |
AsyncQueryHandlerTest.java | 77 private ContentResolver mResolver; 83 mResolver = mContext.getContentResolver(); 87 mResolver.insert(DummyProvider.CONTENT_URI, values0); 91 mResolver.insert(DummyProvider.CONTENT_URI, values1); 95 mResolver.insert(DummyProvider.CONTENT_URI, values2); 100 mResolver.delete(DummyProvider.CONTENT_URI, null, null); 111 new AsyncQueryHandler(mResolver) {}; 165 cursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, ORDER_BY); 288 cursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, ORDER_BY); 351 cursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, ORDER_BY) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_RawContactsTest.java | 35 private ContentResolver mResolver; 41 mResolver = getInstrumentation().getTargetContext().getContentResolver(); 42 IContentProvider provider = mResolver.acquireProvider(ContactsContract.AUTHORITY); 72 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri()); 96 Uri lookupUri = RawContacts.getContactLookupUri(mResolver, rawContact.getUri());
|
ContactsContract_DataTest.java | 37 private ContentResolver mResolver; 43 mResolver = getInstrumentation().getTargetContext().getContentResolver(); 44 IContentProvider provider = mResolver.acquireProvider(ContactsContract.AUTHORITY); 74 Uri lookupUri = Data.getContactLookupUri(mResolver, data.getUri()); 98 Uri lookupUri = Data.getContactLookupUri(mResolver, data.getUri());
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
AbstractDownloadManagerFunctionalTest.java | 59 protected MockContentResolverWithNotify mResolver; 88 private ContentResolver mResolver; 102 mResolver = resolver; 110 assert mResolver != null; 111 return mResolver; 152 mTestContext.setResolver(mResolver); 168 Cursor cursor = mResolver.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, 181 mResolver = new MockContentResolverWithNotify(); 182 mResolver.addProvider(PROVIDER_AUTHORITY, provider); 189 if (mResolver == null) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
GroupsTest.java | 165 mResolver.update(updateUri, values, null, null); 178 assertEquals(1, mResolver.update(uri, values, null, null)); 189 mResolver.delete(uri, null, null); 194 mResolver.delete(permanentDeletionUri, null, null); 205 mResolver.delete(permanentDeletionUri, null, null); 216 mResolver.update(uri, values, null, null); 242 final Cursor cursor = mResolver.query(Contacts.CONTENT_URI, new String[] { 279 mResolver.applyBatch(ContactsContract.AUTHORITY, oper); 284 mResolver.applyBatch(ContactsContract.AUTHORITY, oper); 312 mResolver.update(AggregationExceptions.CONTENT_URI, values, null, null) [all...] |
CallLogProviderTest.java | 65 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); 73 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); 84 int count = mResolver.update(uri, values, null, null); 92 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); 94 mResolver.delete(uri, null, null); 100 int count = mResolver.delete(Calls.CONTENT_URI, Calls._ID + "=" 109 mResolver.insert(Calls.CONTENT_URI, values); 112 Cursor c = mResolver.query(filterUri, null, null, null, null); 119 c = mResolver.query(filterUri, null, null, null, null);
|
LegacyContactsProviderTest.java | 69 Uri uri = mResolver.insert(People.CONTENT_URI, values); 78 Uri uri = mResolver.insert(People.CONTENT_URI, values); 85 mResolver.update(uri, values, null, null); 90 mResolver.update(People.CONTENT_URI, values, People._ID + "=" + personId, null); 97 Uri personId = mResolver.insert(People.CONTENT_URI, values); 98 mResolver.delete(personId, null, null); 100 Cursor c = mResolver.query(personId, null, People.NAME + "='John Doe'" , null, null); 105 mResolver.query(People.DELETED_CONTENT_URI, null, null, null, null); 114 mResolver.insert(People.CONTENT_URI, values); 118 mResolver.insert(People.CONTENT_URI, values) [all...] |
BaseContactsProvider2Test.java | 73 protected MockContentResolver mResolver; 96 mResolver = mActor.resolver; 179 Uri contactUri = mResolver.insert(uri, values); 193 return ContentUris.parseId(mResolver.insert(uri, values)); 202 mResolver.insert(Settings.CONTENT_URI, values); 227 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); 243 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); 261 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); 285 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); 296 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values) [all...] |
/frameworks/base/core/java/android/text/method/ |
TextKeyListener.java | 56 private WeakReference<ContentResolver> mResolver; 234 if (mResolver != null) { 235 final ContentResolver contentResolver = mResolver.get(); 238 mResolver.clear(); 241 mResolver = null; 248 mResolver = new WeakReference<ContentResolver>(contentResolver); 265 if (mResolver != null) { 266 final ContentResolver contentResolver = mResolver.get(); 292 if (!mPrefsInited || mResolver.get() == null) {
|
/cts/tests/tests/app/src/android/app/cts/ |
AlertDialog_BuilderTest.java | 558 final ContentResolver mResolver = mContext.getContentResolver(); 559 mResolver.delete(People.CONTENT_URI, null, null); 563 mResolver.insert(People.CONTENT_URI, valuse);
|
/frameworks/base/core/tests/coretests/src/android/content/ |
SyncQueueTest.java | 148 ContentResolver mResolver; 152 mResolver = resolver; 161 return mResolver;
|
SyncStorageEngineTest.java | 391 ContentResolver mResolver; 398 mResolver = resolver; 416 return mResolver;
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
CalendarSyncTestingBase.java | 44 protected ContentResolver mResolver; 78 mResolver = mTargetContext.getContentResolver(); 130 Uri url = mResolver.insert(mEventsUri, m); 153 mResolver.update(uri, values, null, null); 163 mResolver.delete(uri, null, null); 191 mResolver.insert(Calendar.Calendars.CONTENT_URI, values); 201 cursor = mResolver.query(mEventsUri, null, null, null, null); 211 calendarsCursor = mResolver.query(Calendar.Calendars.CONTENT_URI, null, null, null, null);
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
CdmaSMSDispatcher.java | 263 cursor = mResolver.query(mRawUri, RAW_PROJECTION, where.toString(), whereArgs, null); 276 mResolver.insert(mRawUri, values); 300 mResolver.delete(mRawUri, where.toString(), whereArgs);
|
/frameworks/base/core/java/android/content/ |
AsyncQueryHandler.java | 42 /* package */ final WeakReference<ContentResolver> mResolver; 67 final ContentResolver resolver = mResolver.get(); 126 mResolver = new WeakReference<ContentResolver>(cr);
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
CallerInfoTest.java | 141 private ContentResolver mResolver; 145 mResolver = new android.test.mock.MockContentResolver(); 151 return mResolver;
|
/packages/apps/Calendar/src/com/android/calendar/ |
EventLoader.java | 40 private ContentResolver mResolver; 79 ContentResolver cr = eventLoader.mResolver; 202 mResolver = context.getContentResolver();
|