Home
last modified time | relevance | path

Searched refs:getInstanceForTest (Results 1 – 25 of 57) sorted by relevance

123

/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/data/
DODPAuthorizationTokenDaoTest.java61 mODPAuthorizationTokenDao = ODPAuthorizationTokenDao.getInstanceForTest(mContext); in setUp()
66 FederatedComputeDbHelper dbHelper = FederatedComputeDbHelper.getInstanceForTest(mContext); in cleanUp()
75 FederatedComputeDbHelper.getInstanceForTest(mContext).getReadableDatabase(); in testInsertAuthToken_notExist_success()
95 FederatedComputeDbHelper.getInstanceForTest(mContext).getReadableDatabase(); in testInsertAuthToken_preExist_success()
168 FederatedComputeDbHelper.getInstanceForTest(mContext).getReadableDatabase(); in testDeleteAuthToken_exist_success()
DFederatedComputeEncryptionKeyDaoTest.java62 mEncryptionKeyDao = FederatedComputeEncryptionKeyDao.getInstanceForTest(mContext); in setUp()
67 FederatedComputeDbHelper dbHelper = FederatedComputeDbHelper.getInstanceForTest(mContext); in cleanUp()
82 FederatedComputeDbHelper.getInstanceForTest(mContext).getReadableDatabase(); in testInsertEncryptionKey_success()
DFederatedComputeDbHelperTest.java90 FederatedComputeDbHelper dbHelper = FederatedComputeDbHelper.getInstanceForTest(mContext); in onCreate()
118 spy(FederatedComputeDbHelper.getInstanceForTest(mContext)); in testSafeGetReadableDatabase_exceptionOccurs_validatesErrorLogging()
135 spy(FederatedComputeDbHelper.getInstanceForTest(mContext)); in testSafeGetWriteDatabase_exceptionOccurs_validatesErrorLogging()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/reset/
DResetDataTaskTest.java63 mDao = OnDevicePersonalizationVendorDataDao.getInstanceForTest(mContext, TEST_OWNER, in setup()
65 mLocalDao = OnDevicePersonalizationLocalDataDao.getInstanceForTest(mContext, TEST_OWNER, in setup()
67 mEventsDao = EventsDao.getInstanceForTest(mContext); in setup()
73 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext); in cleanup()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/user/
DUserDataDao.java70 public static UserDataDao getInstanceForTest(@NonNull Context context, Clock clock) { in getInstanceForTest() method in UserDataDao
74 OnDevicePersonalizationDbHelper.getInstanceForTest(context); in getInstanceForTest()
83 public static UserDataDao getInstanceForTest(@NonNull Context context) { in getInstanceForTest() method in UserDataDao
87 OnDevicePersonalizationDbHelper.getInstanceForTest(context); in getInstanceForTest()
DUserDataCollector.java120 public static UserDataCollector getInstanceForTest(Context context, UserDataDao userDataDao) { in getInstanceForTest() method in UserDataCollector
126 public static UserDataCollector getInstanceForTest(Context context) { in getInstanceForTest() method in UserDataCollector
130 new UserDataCollector(context, UserDataDao.getInstanceForTest(context)); in getInstanceForTest()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/scheduling/
DDeleteExpiredJobServiceTest.java109 mSpyAuthTokenDao = spy(ODPAuthorizationTokenDao.getInstanceForTest(mContext)); in setUp()
110 mTrainingTaskDao = FederatedTrainingTaskDao.getInstanceForTest(mContext); in setUp()
120 FederatedComputeDbHelper dbHelper = FederatedComputeDbHelper.getInstanceForTest(mContext); in tearDown()
144 FederatedComputeDbHelper.getInstanceForTest(mContext).getReadableDatabase(); in deleteExpiredAuthToken_success()
167 FederatedComputeDbHelper.getInstanceForTest(mContext).getReadableDatabase(); in deleteExpiredAuthToken_failure()
DFederatedComputeLearningJobScheduleOrchestratorTest.java69 mTrainingTaskDao = FederatedTrainingTaskDao.getInstanceForTest(mContext); in setUp()
78 FederatedComputeDbHelper dbHelper = FederatedComputeDbHelper.getInstanceForTest(mContext); in tearDown()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/vendor/
DOnDevicePersonalizationVendorDataDaoTest.java79 mDao = OnDevicePersonalizationVendorDataDao.getInstanceForTest(mContext, TEST_OWNER, in setup()
81 mEventsDao = EventsDao.getInstanceForTest(mContext); in setup()
82 mOtherDao = OnDevicePersonalizationVendorDataDao.getInstanceForTest(mContext, OTHER_OWNER, in setup()
154 SQLiteDatabase db = OnDevicePersonalizationDbHelper.getInstanceForTest( in testInsertNewSyncToken()
229 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext); in cleanup()
DOnDevicePersonalizationLocalDataDaoTest.java54 mLocalDao = OnDevicePersonalizationLocalDataDao.getInstanceForTest(mContext, TEST_OWNER, in setup()
56 mVendorDao = OnDevicePersonalizationVendorDataDao.getInstanceForTest(mContext, TEST_OWNER, in setup()
150 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext); in cleanup()
/packages/modules/OnDevicePersonalization/tests/manualtests/src/com/android/ondevicepersonalization/services/download/
DOnDevicePersonalizationDataProcessingAsyncCallableManualTests.java79 OnDevicePersonalizationVendorDataDao.getInstanceForTest(mContext, mService, in setup()
96 OnDevicePersonalizationVendorDataDao.getInstanceForTest(mContext, mService, in testRun()
132 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext); in cleanup()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/serviceflow/
DAppRequestFlowTest.java80 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext);
206 EventsDao.getInstanceForTest(mContext).insertQuery( in setUpTestData()
214 EventsDao.getInstanceForTest(mContext); in setUpTestData()
217 .getInstanceForTest(mContext, in setUpTestData()
DRenderFlowTest.java75 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext);
188 EventsDao.getInstanceForTest(mContext).insertQuery( in setUpTestDate()
191 EventsDao.getInstanceForTest(mContext); in setUpTestDate()
DWebTriggerFlowTest.java69 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext);
243 EventsDao.getInstanceForTest(mContext).insertQuery( in setUpTestData()
246 EventsDao.getInstanceForTest(mContext); in setUpTestData()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/user/
DUserDataCollectorTest.java88 mUserDataDao = UserDataDao.getInstanceForTest(mContext, mMockClock); in setup()
89 mCollector = UserDataCollector.getInstanceForTest(mContext, mUserDataDao); in setup()
97 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext); in cleanUp()
DUserDataDaoTest.java51 mUserDataDao = UserDataDao.getInstanceForTest(mContext, mClock); in setup()
58 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext); in cleanUp()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/federatedcompute/
DFederatedComputeServiceImplTest.java243 EventsDao.getInstanceForTest(mApplicationContext) in testCancel()
266 EventsDao.getInstanceForTest(mApplicationContext) in testCancelErr()
287 OnDevicePersonalizationDbHelper.getInstanceForTest(mApplicationContext); in cleanup()
319 return EventsDao.getInstanceForTest(context); in getEventsDao()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/download/
DOnDevicePersonalizationDataProcessingAsyncCallableTests.java136 OnDevicePersonalizationVendorDataDao.getInstanceForTest(mContext, mService, in setup()
164 OnDevicePersonalizationVendorDataDao.getInstanceForTest(mContext, mService, in testRun()
224 OnDevicePersonalizationVendorDataDao.getInstanceForTest(mContext, mService, in testRunOldDataDownloaded()
299 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext); in cleanup()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/maintenance/
DOnDevicePersonalizationMaintenanceJobServiceTest.java168 OnDevicePersonalizationVendorDataDao.getInstanceForTest( in setup()
172 mDao = OnDevicePersonalizationVendorDataDao.getInstanceForTest(mContext, in setup()
175 mEventsDao = EventsDao.getInstanceForTest(mContext); in setup()
298 var localDao = OnDevicePersonalizationLocalDataDao.getInstanceForTest(mContext, in testLocalDataCleanup()
348 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext); in cleanup()
DOnDevicePersonalizationMaintenanceJobTest.java133 OnDevicePersonalizationVendorDataDao.getInstanceForTest( in setup()
137 OnDevicePersonalizationVendorDataDao.getInstanceForTest( in setup()
141 mEventsDao = EventsDao.getInstanceForTest(sContext); in setup()
147 OnDevicePersonalizationDbHelper.getInstanceForTest(sContext); in teardown()
315 OnDevicePersonalizationLocalDataDao.getInstanceForTest( in testLocalDataCleanup()
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/data/
DFederatedComputeEncryptionKeyDao.java73 public static FederatedComputeEncryptionKeyDao getInstanceForTest(Context context) { in getInstanceForTest() method in FederatedComputeEncryptionKeyDao
78 FederatedComputeDbHelper.getInstanceForTest(context); in getInstanceForTest()
DODPAuthorizationTokenDao.java69 public static ODPAuthorizationTokenDao getInstanceForTest(Context context) { in getInstanceForTest() method in ODPAuthorizationTokenDao
74 FederatedComputeDbHelper.getInstanceForTest(context), in getInstanceForTest()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/display/
DDisplayHelperTest.java69 mDao = OnDevicePersonalizationVendorDataDao.getInstanceForTest( in setup()
139 OnDevicePersonalizationDbHelper.getInstanceForTest(mContext); in cleanup()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/
DOnDevicePersonalizationDbHelperTest.java123 mDbHelper = OnDevicePersonalizationDbHelper.getInstanceForTest(mContext); in setup()
220 spy(OnDevicePersonalizationDbHelper.getInstanceForTest(mContext)); in testSafeGetReadableDatabase_exceptionOccurs_validatesErrorLogging()
237 spy(OnDevicePersonalizationDbHelper.getInstanceForTest(mContext)); in testSafeGetWritableDatabase_exceptionOccurs_validatesErrorLogging()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DFastScrollingIndexCacheTest.java56 mCache = FastScrollingIndexCache.getInstanceForTest(mPrefs); in setUp()
143 FastScrollingIndexCache cache2 = FastScrollingIndexCache.getInstanceForTest(mPrefs); in testPutAndGet()

123