/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
VoicemailProviderTest.java | 80 Uri uri = mResolver.insert(voicemailUri(), getTestVoicemailValues()); 91 OutputStream out = mResolver.openOutputStream(uri); 96 InputStream in = mResolver.openInputStream(uri); 115 int count = mResolver.update(uri, values, null, null); 122 int count = mResolver.delete(voicemailUri(), Voicemails._ID + "=" 131 mResolver.getType(ContentUris.withAppendedId(Voicemails.CONTENT_URI, 100))); 135 Uri uri = mResolver.insert(voicemailUri(), values); 136 assertEquals(Voicemails.ITEM_TYPE, mResolver.getType(uri)); 140 assertEquals(Voicemails.DIR_TYPE, mResolver.getType(Voicemails.CONTENT_URI)); 141 assertEquals(Voicemails.DIR_TYPE, mResolver.getType(Voicemails.buildSourceUri("foo"))) [all...] |
VoicemailCleanupServiceTest.java | 76 mCleanupService.handleIntentInternal(packageIntent, mResolver); 82 mResolver.insert(Voicemails.buildSourceUri(sourcePackage), values); 83 mResolver.insert(Status.buildSourceUri(sourcePackage), values); 93 Cursor cursor = mResolver.query( 96 cursor = mResolver.query( 102 Cursor cursor = mResolver.query( 105 cursor = mResolver.query(
|
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...] |
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...] |
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...] |
VCardTest.java | 42 getContext(), mResolver, VCardConfig.VCARD_TYPE_DEFAULT, null, true);
|
BaseContactsProvider2Test.java | 77 protected MockContentResolver mResolver; 98 mResolver = mActor.resolver; 186 Uri contactUri = mResolver.insert(uri, values); 198 return mResolver.update(uri, values, null, null); 230 return ContentUris.parseId(mResolver.insert(uri, values)); 248 mResolver.insert(Settings.CONTENT_URI, values); 273 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); 289 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); 312 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); 336 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values) [all...] |
SqlInjectionDetectionTest.java | 88 final Cursor c = mResolver.query(Phone.CONTENT_URI, PHONE_ID_PROJECTION, null, null, null); 99 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); 108 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder);
|
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,
|
/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; }
|
/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/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;
|
/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/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...] |
DownloadManagerFunctionalTest.java | 101 InputStream inputStream = mResolver.openInputStream(downloadUri); 135 Cursor cursor = mResolver.query(downloadUri, columns, null, null, null); 152 return mResolver.insert(Downloads.Impl.CONTENT_URI, values); 161 int numChanged = mResolver.update(downloadUri, values, null, null);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
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());
|
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());
|
/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/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
CalendarProvider2Test.java | 95 private MockContentResolver mResolver; 270 Cursor cursor = mResolver.query(mEventsUri, null, null, null, null); 286 Cursor cursor = mResolver.query(mEventsUri, null, null, null, null); [all...] |
/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...] |
/frameworks/base/core/java/android/server/search/ |
SearchManagerService.java | 122 private final ContentResolver mResolver; 126 mResolver = resolver; 127 mResolver.registerContentObserver(
|
/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,
|