Home
last modified time | relevance | path

Searched refs:mProvider (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/content/src/android/content/cts/
DContentResolverWrapTest.java86 private ContentProvider mProvider; field in ContentResolverWrapTest
92 mProvider = mock(ContentProvider.class, CALLS_REAL_METHODS); in setUp()
97 mProvider.attachInfo(mContext, pi); in setUp()
99 mResolver = ContentResolver.wrap(mProvider); in setUp()
104 doReturn(RESULTS).when(mProvider).applyBatch(AUTHORITY, OPERATIONS); in testApplyBatch()
110 doReturn(42).when(mProvider).bulkInsert(URI, VALUES_ARRAY); in testBulkInsert()
116 doReturn(EXTRAS).when(mProvider).call(AUTHORITY, METHOD, ARG, EXTRAS); in testCall()
123 doReturn(URI).when(mProvider).canonicalize(URI); in testCanonicalize()
129 doReturn(URI).when(mProvider).uncanonicalize(URI); in testUncanonicalize()
135 doReturn(TYPE).when(mProvider).getType(URI); in testType()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsTest.java53 private ContentProviderClient mProvider; field in ContactsTest
60 mProvider = mContentResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp()
89 mProvider.delete(People.CONTENT_URI, PeopleColumns.NAME + " = ?", in testPeopleTable()
99 Uri uri = mProvider.insert(People.CONTENT_URI, value); in testPeopleTable()
100 Cursor cursor = mProvider.query(People.CONTENT_URI, in testPeopleTable()
122 mProvider.update(uri, value, null, null); in testPeopleTable()
123 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testPeopleTable()
137 mProvider.delete(uri, null, null); in testPeopleTable()
138 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testPeopleTable()
171 Uri uri = mProvider.insert(Groups.CONTENT_URI, value); in testGroupsTable()
[all …]
DContacts_PeopleTest.java45 private ContentProviderClient mProvider; field in Contacts_PeopleTest
71 mProvider = mContentResolver.acquireContentProviderClient(Contacts.AUTHORITY); in setUp()
83 mPeopleRowsAdded.add(mProvider.insert(People.CONTENT_URI, value)); in setUp()
88 mGroupRowsAdded.add(mProvider.insert(Groups.CONTENT_URI, value)); in setUp()
90 mGroupRowsAdded.add(mProvider.insert(Groups.CONTENT_URI, value)); in setUp()
97 mProvider.delete(row, null, null); in tearDown()
102 mProvider.delete(row, null, null); in tearDown()
107 mProvider.delete(row, null, null); in tearDown()
120 mProvider.insert(Groups.CONTENT_URI, testValues); in testAddToGroup()
123 cursor = mProvider.query(mPeopleRowsAdded.get(0), PEOPLE_PROJECTION, in testAddToGroup()
[all …]
DContactsContract_TestDataBuilder.java45 private ContentProviderClient mProvider; field in ContactsContract_TestDataBuilder
73 Cursor cursor = mProvider.query(mUri, IdQuery.COLUMNS, null, null, null, null); in getId()
128 mUri = mProvider.insert(getContentUri(), mValues); in insertDependent()
135 int count = mProvider.delete(getUri(), null, null); in delete()
146 int count = mProvider.delete(uri, null, null); in deletePermanently()
156 mCursor = mProvider.query(getUri(), null, null, null, null, null); in load()
188 mCursor = mProvider.query(getContentUri(), null, in loadUsingValues()
355 this.mProvider = provider; in ContactsContract_TestDataBuilder()
/cts/tests/tests/provider/src/android/provider/cts/
DDocumentsContractTest.java107 private DocumentsProvider mProvider; field in DocumentsContractTest
113 mProvider = mock(DocumentsProvider.class, CALLS_REAL_METHODS); in setUp()
121 mProvider.attachInfo(mContext, pi); in setUp()
123 mResolver = ContentResolver.wrap(mProvider); in setUp()
231 doReturn(DOC_RESULT).when(mProvider).createDocument(DOC_RED, MIME_TYPE, DISPLAY_NAME); in testCreateDocument()
237 doReturn(DOC_RESULT).when(mProvider).renameDocument(DOC_RED, DISPLAY_NAME); in testRenameDocument()
243 doNothing().when(mProvider).deleteDocument(DOC_RED); in testDeleteDocument()
249 doThrow(new RuntimeException()).when(mProvider).deleteDocument(DOC_RED); in testDeleteDocument_Failure()
259 doReturn(DOC_RESULT).when(mProvider).copyDocument(DOC_RED, DOC_GREEN); in testCopyDocument()
265 doReturn(DOC_RESULT).when(mProvider).moveDocument(DOC_RED, DOC_GREEN, DOC_BLUE); in testMoveDocument()
[all …]
/cts/tests/tests/view/src/android/view/inspector/cts/
DStaticInspectionCompanionProviderTest.java45 private StaticInspectionCompanionProvider mProvider; field in StaticInspectionCompanionProviderTest
49 mProvider = new StaticInspectionCompanionProvider(); in setup()
54 InspectionCompanion<View> companion = mProvider.provide(View.class); in testViewWorks()
62 mProvider.provide(RelativeLayout.LayoutParams.class); in testRelativeLayoutWorks()
86 InspectionCompanion<NestedClassTest> companion = mProvider.provide(NestedClassTest.class); in testNestedClassLoading()
99 mProvider.provide(NonImplementingNestedClassTest.class); in testNonImplementingNestedClass()
108 InspectionCompanion<NoCompanionTest> companion = mProvider.provide(NoCompanionTest.class); in testNoCompanion()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DClipDataJobTest.java39 private ContentProviderClient mProvider; field in ClipDataJobTest
46 mProvider = getContext().getContentResolver().acquireContentProviderClient(mFirstUri); in setUp()
47 assertNotNull(mProvider); in setUp()
53 mProvider.close(); in tearDown()
65 mProvider.call("grant", MY_PACKAGE, mFirstUriBundle); in testClipDataGrant()
80 mProvider.call("revoke", MY_PACKAGE, mFirstUriBundle); in testClipDataGrant()
123 mProvider.call("grant", MY_PACKAGE, mFirstUriBundle); in testClipDataGrantReschedule()
138 mProvider.call("revoke", MY_PACKAGE, mFirstUriBundle); in testClipDataGrantReschedule()
DEnqueueJobWorkTest.java43 private ContentProviderClient mProvider; field in EnqueueJobWorkTest
50 mProvider = getContext().getContentResolver().acquireContentProviderClient(mFirstUri); in setUp()
56 mProvider.close(); in tearDown()
386 mProvider.call("grant", MY_PACKAGE, mFirstUriBundle); in testEnqueueMultipleUriGrantWork()
387 mProvider.call("grant", MY_PACKAGE, mSecondUriBundle); in testEnqueueMultipleUriGrantWork()
414 mProvider.call("revoke", MY_PACKAGE, mFirstUriBundle); in testEnqueueMultipleUriGrantWork()
415 mProvider.call("revoke", MY_PACKAGE, mSecondUriBundle); in testEnqueueMultipleUriGrantWork()
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/
DAppWidgetProviderCallbacks.java26 private AppWidgetProvider mProvider; field in AppWidgetProviderCallbacks
29 return mProvider; in getProvider()
33 mProvider = provider; in setProvider()
/cts/tests/tests/keystore/src/android/keystore/cts/
DPerformanceTestBase.java276 private final String mProvider; field in PerformanceTestBase.KeystoreKeyGenerator
282 mProvider = provider; in KeystoreKeyGenerator()
295 return mProvider; in getProvider()
304 KeyGenerator.getInstance(TestUtils.getKeyAlgorithm(mAlgorithm), mProvider); in getSecretKeyGenerator()
313 TestUtils.getKeyAlgorithm(mAlgorithm), mProvider); in getKeyPairGenerator()
/cts/tests/tests/location2/src/android/location2/cts/
DLocationManagerTest.java369 private String mProvider;
392 mProvider = null;
468 mProvider = provider; in onStatusChanged()
477 return mProvider; in getProvider()
/cts/tests/tests/location/src/android/location/cts/
DLocationManagerTest.java1236 private String mProvider; field in LocationManagerTest.MockLocationListener
1259 mProvider = null; in reset()
1331 mProvider = provider; in onStatusChanged()
1340 return mProvider; in getProvider()