HomeSort by relevance Sort by last modified time
    Searched refs:mMockResolver (Results 1 - 4 of 4) sorted by null

  /development/samples/NotePad/tests/src/com/example/android/notepad/
NotePadProviderTest.java 52 private MockContentResolver mMockResolver;
114 mMockResolver = getMockContentResolver();
165 String mimeType = mMockResolver.getType(NotePad.Notes.CONTENT_URI);
169 mimeType = mMockResolver.getType(NotePad.Notes.LIVE_FOLDER_URI);
176 mimeType = mMockResolver.getType(noteIdUri);
180 mimeType = mMockResolver.getType(INVALID_URI);
191 assertNull(mMockResolver.getStreamTypes(NotePad.Notes.CONTENT_URI, MIME_TYPES_ALL));
195 assertNull(mMockResolver.getStreamTypes(NotePad.Notes.LIVE_FOLDER_URI, MIME_TYPES_ALL));
207 String mimeType[] = mMockResolver.getStreamTypes(testUri, MIME_TYPES_ALL);
218 mimeType = mMockResolver.getStreamTypes(testUri, MIME_TYPES_NONE)
    [all...]
  /packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
TestProviderTests.java 38 MockContentResolver mMockResolver;
62 mMockResolver = (MockContentResolver)mMockContext.getContentResolver();
63 mMockResolver.addProvider(CANHAZ_AUTHORITY, new TestProvider(mMockContext));
94 return mMockResolver.applyBatch(TestProvider.AUTHORITY, ops);
114 Cursor c = mMockResolver.query(TestProvider.uri(uri), PONY_PROJECTION, null, null, null);
141 assertEquals(1, mMockResolver.delete(ContentUris.withAppendedId(TestProvider.uri(uri),
143 c = mMockResolver.query(TestProvider.uri(uri), PONY_PROJECTION, null, null, null);
155 Cursor c = mMockResolver.query(TestProvider.uri(uri), PONY_PROJECTION, null, null, null);
161 assertEquals(2, mMockResolver.update(TestProvider.uri(uri), cv, null, null));
162 c = mMockResolver.query(TestProvider.uri(uri), PONY_PROJECTION, null, null, null)
    [all...]
ConversationCursorTests.java 44 MockContentResolver mMockResolver;
53 return mMockResolver;
62 mMockResolver = (MockContentResolver)mMockContext.getContentResolver();
63 mMockResolver.addProvider(TestProvider.AUTHORITY, new TestProvider(mMockContext));
118 ContentProviderResult[] results = mMockResolver.applyBatch(TestProvider.AUTHORITY, ops);
127 mMockResolver.applyBatch(TestProvider.AUTHORITY, ops);
  /packages/apps/Email/tests/src/com/android/email/provider/
AttachmentProviderTests.java 56 ContentResolver mMockResolver;
66 mMockResolver = mMockContext.getContentResolver();
72 ((MockContentResolver) mMockResolver)
102 Cursor c = mMockResolver.query(attachment1Uri, (String[])null, null, (String[])null, null);
130 c = mMockResolver.query(
146 c = mMockResolver.query(
266 String type = mMockResolver.getType(attachment1Uri);
298 type = mMockResolver.getType(uri);
301 type = mMockResolver.getType(uri);
304 type = mMockResolver.getType(uri)
    [all...]

Completed in 72 milliseconds