/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverWrapTest.java | 88 private ContentProvider mProvider; field in ContentResolverWrapTest 94 mProvider = mock(ContentProvider.class, CALLS_REAL_METHODS); in setUp() 99 mProvider.attachInfo(mContext, pi); in setUp() 101 mResolver = ContentResolver.wrap(mProvider); in setUp() 106 doReturn(RESULTS).when(mProvider).applyBatch(AUTHORITY, OPERATIONS); in testApplyBatch() 112 doReturn(42).when(mProvider).bulkInsert(URI, VALUES_ARRAY); in testBulkInsert() 118 doReturn(EXTRAS).when(mProvider).call(AUTHORITY, METHOD, ARG, EXTRAS); in testCall() 125 doReturn(URI).when(mProvider).canonicalize(URI); in testCanonicalize() 131 doReturn(URI).when(mProvider).uncanonicalize(URI); in testUncanonicalize() 137 doReturn(TYPE).when(mProvider).getType(URI); in testType() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ScrollFeedbackProviderTest.java | 65 private ScrollFeedbackProvider mProvider; field in ScrollFeedbackProviderTest 70 mProvider = ScrollFeedbackProvider.createProvider( in setup() 77 assertThat(mProvider).isNotNull(); in testDefaultProviderIsNotNull() 107 mProvider.onScrollLimit(deviceId, source, axis, /* isStart= */ true); in runScrollScenarios() 109 mProvider.onScrollProgress(deviceId, source, axis, /* deltaInPixels= */ 300); in runScrollScenarios() 110 mProvider.onScrollProgress(deviceId, source, axis, /* deltaInPixels= */ 0); in runScrollScenarios() 111 mProvider.onScrollProgress(deviceId, source, axis, /* deltaInPixels= */ -900); in runScrollScenarios() 113 mProvider.onScrollLimit(deviceId, source, axis, /* isStart= */ false); in runScrollScenarios() 115 mProvider.onSnapToItem(deviceId, source, axis); in runScrollScenarios() 117 mProvider.onScrollLimit(deviceId, source, axis, /* isStart= */ false); in runScrollScenarios() [all …]
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | ContactsTest.java | 67 private ContentProviderClient mProvider; field in ContactsTest 74 mProvider = mContentResolver.acquireContentProviderClient(ContactsContract.AUTHORITY); in setUp() 104 mProvider.delete(People.CONTENT_URI, PeopleColumns.NAME + " = ?", in testPeopleTable() 114 Uri uri = mProvider.insert(People.CONTENT_URI, value); in testPeopleTable() 115 Cursor cursor = mProvider.query(People.CONTENT_URI, in testPeopleTable() 137 mProvider.update(uri, value, null, null); in testPeopleTable() 138 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testPeopleTable() 152 mProvider.delete(uri, null, null); in testPeopleTable() 153 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testPeopleTable() 187 Uri uri = mProvider.insert(Groups.CONTENT_URI, value); in testGroupsTable() [all …]
|
D | Contacts_PeopleTest.java | 45 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 …]
|
D | ContactsContract_TestDataBuilder.java | 45 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()
|
D | CallLogProviderTest.java | 36 private ContentProviderClient mProvider; field in CallLogProviderTest 45 mProvider = mContentResolver.acquireContentProviderClient(CallLog.AUTHORITY); in setUp() 62 Cursor c = mProvider.query(Calls.CONTENT_URI, null, CallLog.Calls.NUMBER + " = ?", in testNoSubqueries()
|
/cts/tests/tests/view/src/android/view/inspector/cts/ |
D | StaticInspectionCompanionProviderTest.java | 47 private StaticInspectionCompanionProvider mProvider; field in StaticInspectionCompanionProviderTest 51 mProvider = new StaticInspectionCompanionProvider(); in setup() 56 InspectionCompanion<View> companion = mProvider.provide(View.class); in testViewWorks() 64 mProvider.provide(RelativeLayout.LayoutParams.class); in testRelativeLayoutWorks() 88 InspectionCompanion<NestedClassTest> companion = mProvider.provide(NestedClassTest.class); in testNestedClassLoading() 101 mProvider.provide(NonImplementingNestedClassTest.class); in testNonImplementingNestedClass() 110 InspectionCompanion<NoCompanionTest> companion = mProvider.provide(NoCompanionTest.class); in testNoCompanion()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | DocumentsContractTest.java | 110 private DocumentsProvider mProvider; field in DocumentsContractTest 116 mProvider = mock(DocumentsProvider.class, CALLS_REAL_METHODS); in setUp() 124 mProvider.attachInfo(mContext, pi); in setUp() 126 mResolver = ContentResolver.wrap(mProvider); in setUp() 270 doReturn(DOC_RESULT).when(mProvider).createDocument(DOC_RED, MIME_TYPE, DISPLAY_NAME); in testCreateDocument() 276 doReturn(DOC_RESULT).when(mProvider).renameDocument(DOC_RED, DISPLAY_NAME); in testRenameDocument() 282 doNothing().when(mProvider).deleteDocument(DOC_RED); in testDeleteDocument() 288 doThrow(new RuntimeException()).when(mProvider).deleteDocument(DOC_RED); in testDeleteDocument_Failure() 298 doReturn(DOC_RESULT).when(mProvider).copyDocument(DOC_RED, DOC_GREEN); in testCopyDocument() 304 doReturn(DOC_RESULT).when(mProvider).moveDocument(DOC_RED, DOC_GREEN, DOC_BLUE); in testMoveDocument() [all …]
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/ |
D | ClipDataJobTest.java | 39 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()
|
D | EnqueueJobWorkTest.java | 43 private ContentProviderClient mProvider; field in EnqueueJobWorkTest 50 mProvider = getContext().getContentResolver().acquireContentProviderClient(mFirstUri); in setUp() 56 mProvider.close(); in tearDown() 427 mProvider.call("grant", MY_PACKAGE, mFirstUriBundle); in testEnqueueMultipleUriGrantWork() 428 mProvider.call("grant", MY_PACKAGE, mSecondUriBundle); in testEnqueueMultipleUriGrantWork() 455 mProvider.call("revoke", MY_PACKAGE, mFirstUriBundle); in testEnqueueMultipleUriGrantWork() 456 mProvider.call("revoke", MY_PACKAGE, mSecondUriBundle); in testEnqueueMultipleUriGrantWork()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/ |
D | AppWidgetProviderCallbacks.java | 26 private AppWidgetProvider mProvider; field in AppWidgetProviderCallbacks 29 return mProvider; in getProvider() 33 mProvider = provider; in setProvider()
|
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/ |
D | TestAppQueryBuilder.java | 39 private final TestAppProvider mProvider; field in TestAppQueryBuilder 73 mProvider = null; in TestAppQueryBuilder() 80 mProvider = provider; in TestAppQueryBuilder() 245 if (mProvider == null) { in resolveQuery() 251 for (TestAppDetails details : mProvider.testApps()) { in resolveQuery() 256 mProvider.markTestAppUsed(details); in resolveQuery()
|
/cts/tests/tests/keystore/src/android/keystore/cts/performance/ |
D | PerformanceTestBase.java | 281 private final String mProvider; field in PerformanceTestBase.KeystoreKeyGenerator 287 mProvider = provider; in KeystoreKeyGenerator() 300 return mProvider; in getProvider() 309 KeyGenerator.getInstance(TestUtils.getKeyAlgorithm(mAlgorithm), mProvider); in getSecretKeyGenerator() 318 TestUtils.getKeyAlgorithm(mAlgorithm), mProvider); in getKeyPairGenerator()
|