HomeSort by relevance Sort by last modified time
    Searched defs:mResolver (Results 1 - 25 of 57) sorted by null

1 2 3

  /packages/apps/Browser/tests/src/com/android/browser/tests/utils/
ProviderTestCase3.java 44 private MockContentResolver2 mResolver;
116 mResolver = new MockContentResolver2();
125 mProviderContext = new IsolatedContext(mResolver, targetContextWrapper) {
137 mResolver.addProvider(auth, getProvider());
160 return mResolver;
173 mResolver.safeRegisterContentObserver(uri, notifyForDescendents, observer);
177 mResolver.safeUnregisterContentObserver(observer);
  /frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
ContentValuesVerifierElem.java 27 private final ImportTestResolver mResolver;
31 mResolver = new ImportTestResolver(androidTestCase);
32 mHandler = new VCardEntryCommitter(mResolver);
38 mResolver.addExpectedContentValues(contentValues);
43 mResolver.verify();
  /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;
  /packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
GalleryAppMock.java 29 ContentResolver mResolver;
36 mResolver = resolver;
47 public ContentResolver getContentResolver() { 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());
89 return mResolver;
ProviderTestCase2.java 75 private MockContentResolver mResolver;
132 mResolver = new MockContentResolver();
140 mProviderContext = new IsolatedContext(mResolver, targetContextWrapper);
145 mResolver.addProvider(mProviderAuthority, getProvider());
167 return mResolver;
IsolatedContext.java 53 private ContentResolver mResolver;
61 mResolver = resolver;
76 return mResolver;
  /packages/providers/CalendarProvider/src/com/android/providers/calendar/
CalendarReceiver.java 77 private ContentResolver mResolver;
81 mResolver = resolver;
89 mResolver.update(CalendarAlarmManager.SCHEDULE_ALARM_REMOVE_URI, null /* values */,
  /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,
281 mResolver.insert(DummyProvider.CONTENT_URI, values);
309 mResolver.update(DummyProvider.CONTENT_URI, values
    [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());
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
BatchOperation.java 37 private final ContentResolver mResolver;
43 mResolver = resolver;
63 ContentProviderResult[] results = mResolver.applyBatch(ContactsContract.AUTHORITY,
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
CallLogProviderTest.java 87 mResolver.delete(Calls.CONTENT_URI_WITH_VOICEMAIL, null, null);
93 Uri uri = mResolver.insert(Calls.CONTENT_URI, values);
119 mResolver.insert(Calls.CONTENT_URI, values);
124 Uri uri = mResolver.insert(Calls.CONTENT_URI_WITH_VOICEMAIL, values);
140 int count = mResolver.update(uri, values, null, null);
148 mResolver.delete(uri, null, null);
154 int count = mResolver.delete(Calls.CONTENT_URI, Calls._ID + "="
162 mResolver.insert(Calls.CONTENT_URI, values);
165 Cursor c = mResolver.query(filterUri, null, null, null, null);
172 c = mResolver.query(filterUri, null, null, null, null)
    [all...]
DirectoryTest.java 82 Cursor cursor = mResolver.query(contentUri,
107 Cursor cursor = mResolver.query(contentUri,
113 mResolver.delete(Data.CONTENT_URI,
117 cursor = mResolver.query(contentUri,
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...]
LegacyContactsProviderTest.java 73 Uri uri = mResolver.insert(People.CONTENT_URI, values);
82 Uri uri = mResolver.insert(People.CONTENT_URI, values);
89 mResolver.update(uri, values, null, null);
94 mResolver.update(People.CONTENT_URI, values, People._ID + "=" + personId, null);
101 Uri personId = mResolver.insert(People.CONTENT_URI, values);
102 mResolver.delete(personId, null, null);
104 Cursor c = mResolver.query(personId, null, People.NAME + "='John Doe'" , null, null);
109 mResolver.query(People.DELETED_CONTENT_URI, null, null, null, null);
118 mResolver.insert(People.CONTENT_URI, values);
122 mResolver.insert(People.CONTENT_URI, values)
    [all...]
  /packages/apps/Exchange/tests/src/com/android/exchange/adapter/
SyncAdapterTestCase.java 39 public ContentResolver mResolver;
54 mResolver = mContext.getContentResolver();
62 mResolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null,
  /packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
CalendarSyncTestingBase.java 44 protected ContentResolver mResolver;
77 mResolver = mTargetContext.getContentResolver();
129 Uri url = mResolver.insert(mEventsUri, m);
152 mResolver.update(uri, values, null, null);
162 mResolver.delete(uri, null, null);
190 mResolver.insert(CalendarContract.Calendars.CONTENT_URI, values);
200 cursor = mResolver.query(mEventsUri, null, null, null, null);
210 calendarsCursor = mResolver.query(CalendarContract.Calendars.CONTENT_URI, null, null, null,
  /development/apps/Development/src/com/android/development/
MediaScannerActivity.java 51 private ContentResolver mResolver;
93 mResolver = getContentResolver();
192 mResolver.bulkInsert(mAudioUri, mValues);
  /frameworks/base/core/java/android/text/method/
TextKeyListener.java 56 private WeakReference<ContentResolver> mResolver;
242 if (mResolver != null) {
243 final ContentResolver contentResolver = mResolver.get();
246 mResolver.clear();
249 mResolver = null;
256 mResolver = new WeakReference<ContentResolver>(contentResolver);
273 if (mResolver != null) {
274 final ContentResolver contentResolver = mResolver.get();
300 if (!mPrefsInited || mResolver.get() == null) {
  /packages/apps/Exchange/tests/src/com/android/exchange/provider/
MailboxUtilitiesTests.java 40 private ContentResolver mResolver;
54 mResolver = mProviderContext.getContentResolver();
64 mResolver.delete(
85 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null);
140 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null);
191 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null);
235 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null);
282 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null);
301 mResolver.delete(ContentUris.withAppendedId(Mailbox.CONTENT_URI, box3.mId), null, null);
335 mResolver.update(Mailbox.CONTENT_URI, mNullParentKey, null, null)
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
LocalAlbum.java 46 private final ContentResolver mResolver;
58 mResolver = application.getContentResolver();
96 Cursor cursor = mResolver.query(
205 Cursor cursor = mResolver.query(
244 mResolver.delete(mBaseUri, mWhereClause,
  /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);
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
AbstractDownloadManagerFunctionalTest.java 59 protected MockContentResolverWithNotify mResolver;
96 private ContentResolver mResolver;
110 mResolver = resolver;
118 assert mResolver != null;
119 return mResolver;
159 mTestContext.setResolver(mResolver);
176 Cursor cursor = mResolver.query(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI,
189 mResolver = new MockContentResolverWithNotify();
190 mResolver.addProvider(PROVIDER_AUTHORITY, provider);
197 if (mResolver == null)
    [all...]
  /frameworks/base/core/java/android/server/search/
SearchManagerService.java 122 private final ContentResolver mResolver;
126 mResolver = resolver;
127 mResolver.registerContentObserver(

Completed in 3506 milliseconds

1 2 3