Searched refs:mEncoderPersistenceDao (Results 1 – 6 of 6) sorted by relevance
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/ |
D | EncoderPersistenceDaoTest.java | 52 private EncoderPersistenceDao mEncoderPersistenceDao; field in EncoderPersistenceDaoTest 59 mEncoderPersistenceDao = EncoderPersistenceDao.getInstance(CONTEXT); in setup() 64 mEncoderPersistenceDao.deleteAllEncoders(); in tearDown() 71 mEncoderPersistenceDao, in testPersistenceIsSingleton() 79 mEncoderPersistenceDao.generateFileNameForBuyer(BUYER_1)); in testGenerateFileName() 87 encoderDir = mEncoderPersistenceDao.createEncodersDirectoryIfDoesNotExist(); in testCreateEncoderDirectory() 97 File encoderDir = mEncoderPersistenceDao.createEncodersDirectoryIfDoesNotExist(); in testCreateFileInDirectory() 98 String fileName = mEncoderPersistenceDao.generateFileNameForBuyer(BUYER_1); in testCreateFileInDirectory() 103 encoderFile = mEncoderPersistenceDao.createFileInDirectory(encoderDir, fileName); in testCreateFileInDirectory() 113 assertTrue(mEncoderPersistenceDao.persistEncoder(BUYER_1, ENCODER)); in testPersistAndGetEncoder() [all …]
|
D | EncoderLogicHandlerTest.java | 79 @Mock private EncoderPersistenceDao mEncoderPersistenceDao; field in EncoderLogicHandlerTest 101 mEncoderPersistenceDao, in setup() 148 when(mEncoderPersistenceDao.persistEncoder(buyer, body)).thenReturn(true); in testDownloadAndUpdate_success() 179 mAdServicesHttpsClient, mEncoderPersistenceDao, mEncoderLogicMetadataDao); in testDownloadAndUpdate_skipped() 205 when(mEncoderPersistenceDao.persistEncoder(buyer, body)).thenReturn(true); in testExtractAndPersistEncoder_Success() 223 when(mEncoderPersistenceDao.persistEncoder(buyer, body)).thenReturn(true); in testExtractAndPersistEncoder_MissingVersionFallback() 252 when(mEncoderPersistenceDao.persistEncoder(buyer, body)).thenReturn(true); in testExtractAndPersistEncoder_UnreadableVersionFallback() 282 when(mEncoderPersistenceDao.persistEncoder(buyer, body)).thenReturn(false); in testExtractAndPersistEncoderFailed_SkipUpdate() 307 verify(mEncoderPersistenceDao).deleteEncoder(buyer); in testDeleteEncoderForBuyer() 322 verify(mEncoderPersistenceDao).deleteEncoder(buyer1); in testDeleteEncodersForBuyers() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/signals/ |
D | EncoderLogicHandler.java | 75 @NonNull private final EncoderPersistenceDao mEncoderPersistenceDao; field in EncoderLogicHandler 110 mEncoderPersistenceDao = encoderPersistenceDao; in EncoderLogicHandler() 232 updateSucceeded = mEncoderPersistenceDao.persistEncoder(buyer, encoderLogicBody); in extractAndPersistEncoder() 275 return mEncoderPersistenceDao.getEncoder(buyer); in getEncoder() 308 mEncoderPersistenceDao.deleteEncoder(buyer); in deleteEncoderForBuyer()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/ |
D | SignalsEncodingE2ETest.java | 169 private EncoderPersistenceDao mEncoderPersistenceDao; field in SignalsEncodingE2ETest 204 mEncoderPersistenceDao = EncoderPersistenceDao.getInstance(mContextSpy); in setup() 211 mEncoderPersistenceDao, in setup() 309 if (mEncoderPersistenceDao != null) { in teardown() 310 mEncoderPersistenceDao.deleteAllEncoders(); in teardown() 412 mEncoderPersistenceDao.getEncoder(BUYER)); in testSignalsEncoding_Success() 641 mEncoderPersistenceDao.getEncoder(BUYER)); in testPeriodicEncodingUpdatesEncoders_Success()
|
D | SignalsIntakeE2ETest.java | 151 private EncoderPersistenceDao mEncoderPersistenceDao; field in SignalsIntakeE2ETest 184 mEncoderPersistenceDao = EncoderPersistenceDao.getInstance(mContextSpy); in setup() 188 mEncoderPersistenceDao, in setup()
|
D | PeriodicEncodingJobWorkerTest.java | 125 @Mock private EncoderPersistenceDao mEncoderPersistenceDao; field in PeriodicEncodingJobWorkerTest 572 when(mEncoderPersistenceDao.getEncoder(any())).thenReturn(encoderLogic); in testEncodeProtectedSignalsAlsoUpdatesEncodersIsNotAffectedByEncodingFailures()
|