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 42 MockContentResolver mMockResolver;
51 return mMockResolver;
60 mMockResolver = (MockContentResolver)mMockContext.getContentResolver();
61 mMockResolver.addProvider(TestProvider.AUTHORITY, new TestProvider(mMockContext));
116 ContentProviderResult[] results = mMockResolver.applyBatch(TestProvider.AUTHORITY, ops);
125 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)
103 Cursor c = mMockResolver.query(attachment1Uri, (String[])null, null, (String[])null, null);
131 c = mMockResolver.query(
147 c = mMockResolver.query(
268 String type = mMockResolver.getType(attachment1Uri);
300 type = mMockResolver.getType(uri);
303 type = mMockResolver.getType(uri);
306 type = mMockResolver.getType(uri)
    [all...]

Completed in 120 milliseconds