Home
last modified time | relevance | path

Searched refs:DBEncryptionKey (Results 1 – 21 of 21) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/
DEncryptionKeyDaoTest.java45 private static final DBEncryptionKey ENCRYPTION_KEY_AUCTION =
46 DBEncryptionKey.builder()
53 private static final DBEncryptionKey ENCRYPTION_KEY_JOIN =
54 DBEncryptionKey.builder()
61 private static final DBEncryptionKey ENCRYPTION_KEY_QUERY =
62 DBEncryptionKey.builder()
68 private static final DBEncryptionKey ENCRYPTION_KEY_AUCTION_TTL_5SECS =
69 DBEncryptionKey.builder()
76 private static final DBEncryptionKey ENCRYPTION_KEY_JOIN_TTL_5SECS =
77 DBEncryptionKey.builder()
[all …]
DDBEncryptionKeyTest.java43 DBEncryptionKey dBEncryptionKey = in testBuildValidEncryptionKey_success()
44 DBEncryptionKey.builder() in testBuildValidEncryptionKey_success()
62 DBEncryptionKey.builder() in testBuildEncryptionKey_unsetKeyIdentifier_throws()
74 DBEncryptionKey.builder() in testBuildEncryptionKey_unsetPublicKey_throws()
86 DBEncryptionKey.builder() in testBuildEncryptionKey_unsetEncryptionKeyType_throws()
98 DBEncryptionKey.builder() in testBuildEncryptionKey_unsetExpiryTtlSeconds_throws()
107 DBEncryptionKey encryptionKey = in testBuildEncryptionKey_expiryInstantSetCorrectly()
108 DBEncryptionKey.builder() in testBuildEncryptionKey_expiryInstantSetCorrectly()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DDBEncryptionKeyFixture.java22 import com.android.adservices.data.adselection.DBEncryptionKey;
33 public static final DBEncryptionKey.Builder ENCRYPTION_KEY_AUCTION_TTL_5SECS =
34 DBEncryptionKey.builder()
42 public static final DBEncryptionKey.Builder ENCRYPTION_KEY_JOIN_TTL_5SECS =
43 DBEncryptionKey.builder()
50 public static List<DBEncryptionKey> getKeysExpiringInTtl( in getKeysExpiringInTtl()
DAuctionEncryptionKeyFixture.java21 import com.android.adservices.data.adselection.DBEncryptionKey;
46 public static final DBEncryptionKey ENCRYPTION_KEY_AUCTION =
47 DBEncryptionKey.builder()
53 public static final DBEncryptionKey ENCRYPTION_KEY_AUCTION_TTL_1SECS =
54 DBEncryptionKey.builder()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/adselection/
DEncryptionKeyDao.java41 public abstract List<DBEncryptionKey> getLatestExpiryNKeysOfType( in getLatestExpiryNKeysOfType()
58 public abstract List<DBEncryptionKey> getLatestExpiryNActiveKeysOfType( in getLatestExpiryNActiveKeysOfType()
76 public abstract List<DBEncryptionKey> getExpiredKeysForType( in getExpiredKeysForType()
87 public abstract List<DBEncryptionKey> getExpiredKeys(Instant now); in getExpiredKeys()
100 public abstract void insertAllKeys(List<DBEncryptionKey> keys); in insertAllKeys()
DDBEncryptionKey.java36 public abstract class DBEncryptionKey { class
86 public static DBEncryptionKey.Builder builder() { in builder()
96 public static DBEncryptionKey create( in create()
139 abstract DBEncryptionKey autoBuild(); in autoBuild()
142 public final DBEncryptionKey build() { in build()
DAdSelectionServerDatabase.java38 DBEncryptionKey.class,
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/
DJoinEncryptionKeyTestUtil.java21 import com.android.adservices.data.adselection.DBEncryptionKey;
44 static final DBEncryptionKey ENCRYPTION_KEY_JOIN =
45 DBEncryptionKey.builder()
61 static final DBEncryptionKey ENCRYPTION_KEY_JOIN_TTL_1SECS =
62 DBEncryptionKey.builder()
DAuctionEncryptionKeyParserTest.java33 import com.android.adservices.data.adselection.DBEncryptionKey;
106 List<DBEncryptionKey> keys = in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
122 List<DBEncryptionKey> keys = in getDbEncryptionKeys_parsesSingleKey()
140 List<DBEncryptionKey> keys = in getDbEncryptionKeys_parsesMultipleKeys()
DBackgroundKeyFetchWorkerTest.java52 import com.android.adservices.data.adselection.DBEncryptionKey;
236 public FluentFuture<List<DBEncryptionKey>> fetchAndPersistActiveKeysOfType( in testRunBackgroundKeyFetch_longRuntime_throwsTimeoutDuringFetch()
394 List<DBEncryptionKey> joinKeys =
445 List<DBEncryptionKey> auctionKeys =
498 Futures.immediateFuture(new ArrayList<DBEncryptionKey>())));
570 List<DBEncryptionKey> auctionKeys =
574 List<DBEncryptionKey> joinKeys =
620 List<DBEncryptionKey> auctionKeys =
624 List<DBEncryptionKey> joinKeys =
DJoinEncryptionKeyParserTest.java31 import com.android.adservices.data.adselection.DBEncryptionKey;
117 List<DBEncryptionKey> keys = in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
DAdSelectionEncryptionKeyManagerTest.java49 import com.android.adservices.data.adselection.DBEncryptionKey;
417 List<DBEncryptionKey> keys = in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey()
449 List<DBEncryptionKey> keys = in test_getLatestOhttpKeyConfig_refreshFlagOff_withExpiredKey_returnsExpiredKey()
597 List<DBEncryptionKey> keys = in test_getLatestActiveOhttpKeyConfig_withExpiredKey_shouldFetchAndPersistAndReturnNewKey()
DProtectedServersEncryptionConfigManagerTest.java51 import com.android.adservices.data.adselection.DBEncryptionKey;
438 List<DBEncryptionKey> actualKeys = in test_fetchAndPersistActiveKeysOfType_persistsJey()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/
DJoinEncryptionKeyParser.java19 import com.android.adservices.data.adselection.DBEncryptionKey;
49 public AdSelectionEncryptionKey parseDbEncryptionKey(DBEncryptionKey dbEncryptionKey) { in parseDbEncryptionKey()
65 public List<DBEncryptionKey> getDbEncryptionKeys(AdServicesHttpClientResponse response) { in getDbEncryptionKeys()
79 DBEncryptionKey.Builder keyBuilder = DBEncryptionKey.builder(); in getDbEncryptionKeys()
DProtectedServersEncryptionConfigManager.java31 import com.android.adservices.data.adselection.DBEncryptionKey;
268 public FluentFuture<List<DBEncryptionKey>> fetchAndPersistActiveKeysOfType(
324 DBEncryptionKey key, String coordinatorUrl) {
336 private DBEncryptionKey toDbEncryptionKey(DBProtectedServersEncryptionConfig key) {
337 DBEncryptionKey.Builder builder = DBEncryptionKey.builder();
346 private AdSelectionEncryptionKey selectRandomDbKeyAndParse(List<DBEncryptionKey> keys) {
348 DBEncryptionKey randomKey = keys.get(random.nextInt(keys.size()));
DAuctionEncryptionKeyParser.java22 import com.android.adservices.data.adselection.DBEncryptionKey;
61 public AdSelectionEncryptionKey parseDbEncryptionKey(DBEncryptionKey dbEncryptionKey) { in parseDbEncryptionKey()
85 public List<DBEncryptionKey> getDbEncryptionKeys(AdServicesHttpClientResponse response) { in getDbEncryptionKeys()
95 ImmutableList.Builder<DBEncryptionKey> dbKeys = ImmutableList.builder(); in getDbEncryptionKeys()
98 DBEncryptionKey.Builder keyBuilder = DBEncryptionKey.builder(); in getDbEncryptionKeys()
DEncryptionKeyParser.java19 import com.android.adservices.data.adselection.DBEncryptionKey;
30 AdSelectionEncryptionKey parseDbEncryptionKey(DBEncryptionKey dbEncryptionKey); in parseDbEncryptionKey()
33 List<DBEncryptionKey> getDbEncryptionKeys(AdServicesHttpClientResponse response); in getDbEncryptionKeys()
DAdSelectionEncryptionKeyManager.java32 import com.android.adservices.data.adselection.DBEncryptionKey;
233 List<DBEncryptionKey> keys =
256 List<DBEncryptionKey> keys =
292 public FluentFuture<List<DBEncryptionKey>> fetchAndPersistActiveKeysOfType(
342 private AdSelectionEncryptionKey selectRandomDbKeyAndParse(List<DBEncryptionKey> keys) {
DProtectedServersEncryptionConfigManagerBase.java31 import com.android.adservices.data.adselection.DBEncryptionKey;
74 abstract FluentFuture<List<DBEncryptionKey>> fetchAndPersistActiveKeysOfType( in fetchAndPersistActiveKeysOfType()
111 protected List<DBEncryptionKey> parseKeyResponse( in parseKeyResponse()
125 protected AdSelectionEncryptionKey parseDbEncryptionKey(DBEncryptionKey dbEncryptionKey) { in parseDbEncryptionKey()
DBackgroundKeyFetchWorker.java31 import com.android.adservices.data.adselection.DBEncryptionKey;
181 List<ListenableFuture<List<DBEncryptionKey>>> keyFetchFutures = new ArrayList<>(); in fetchNewKeys()
306 private ListenableFuture<List<DBEncryptionKey>> fetchAndPersistAuctionKeys( in fetchAndPersistAuctionKeys()
324 private ListenableFuture<List<DBEncryptionKey>> fetchAndPersistJoinKey( in fetchAndPersistJoinKey()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DAuctionServerE2ETest.java113 import com.android.adservices.data.adselection.DBEncryptionKey;
1828 DBEncryptionKey dbEncryptionKey = in testPersistAdSelectionResult_withDecrypt_validRequest_successEmptyUri()
1829 DBEncryptionKey.builder() in testPersistAdSelectionResult_withDecrypt_validRequest_successEmptyUri()
2714 DBEncryptionKey dbEncryptionKey = in testGetAdSelectionData_withOhttpGatewayDecryption()
2715 DBEncryptionKey.builder() in testGetAdSelectionData_withOhttpGatewayDecryption()
2827 DBEncryptionKey dbEncryptionKey = in testGetAdSelectionData_withOhttpGatewayDecryption_withServerAuctionMediaTypeChanged()
2828 DBEncryptionKey.builder() in testGetAdSelectionData_withOhttpGatewayDecryption_withServerAuctionMediaTypeChanged()
3333 DBEncryptionKey dbEncryptionKey = in testGetAdSelectionData_multiCloudOff_refreshFlagOn_fetchesNewKey()
3334 DBEncryptionKey.builder() in testGetAdSelectionData_multiCloudOff_refreshFlagOn_fetchesNewKey()
3342 List<DBEncryptionKey> encryptionConfigs = in testGetAdSelectionData_multiCloudOff_refreshFlagOn_fetchesNewKey()
[all …]