Home
last modified time | relevance | path

Searched refs:AdSelectionEncryptionKey (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/
DProtectedServersEncryptionConfigManagerBase.java69 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int adSelectionEncryptionKeyType, in getLatestOhttpKeyConfigOfType()
75 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int adSelectionKeyType, in fetchAndPersistActiveKeysOfType()
113 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int encryptionKeyType) { in parseKeyResponse()
115 case AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION: in parseKeyResponse()
117 case AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN: in parseKeyResponse()
119 case AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.UNASSIGNED: in parseKeyResponse()
125 protected AdSelectionEncryptionKey parseDbEncryptionKey(DBEncryptionKey dbEncryptionKey) { in parseDbEncryptionKey()
138 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int type) { in getKeyCountForType()
140 case AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION: in getKeyCountForType()
144 case AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN: in getKeyCountForType()
[all …]
DAdSelectionEncryptionKeyManager.java19 import static com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey.VALID_…
108 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int adSelectionEncryptionKeyType, in getLatestActiveOhttpKeyConfigOfType()
144 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int adSelectionEncryptionKeyType,
163 private AdSelectionEncryptionKey maybeRefreshAndGetLatestKeyFromDatabase(
164 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int adSelectionEncryptionKeyType,
166 AdSelectionEncryptionKey key =
185 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int adSelectionEncryptionKeyType,
228 public AdSelectionEncryptionKey getLatestActiveKeyOfType(
229 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType
251 public AdSelectionEncryptionKey getLatestKeyOfType(
[all …]
DProtectedServersEncryptionConfigManager.java19 import static com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey.VALID_…
108 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int adSelectionEncryptionKeyType, in getLatestOhttpKeyConfigOfType()
186 public AdSelectionEncryptionKey getLatestKeyFromDatabase(
187 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int adSelectionEncryptionKeyType,
206 private AdSelectionEncryptionKey maybeRefreshAndGetLatestKeyFromDatabase(
207 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int adSelectionEncryptionKeyType,
210 AdSelectionEncryptionKey key =
225 private AdSelectionEncryptionKey getLatestActiveKeyFromDatabase(
226 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int adSelectionEncryptionKeyType,
244 FluentFuture<AdSelectionEncryptionKey> fetchPersistAndGetActiveKey(
[all …]
DJoinEncryptionKeyParser.java49 public AdSelectionEncryptionKey parseDbEncryptionKey(DBEncryptionKey dbEncryptionKey) { in parseDbEncryptionKey()
56 return AdSelectionEncryptionKey.builder() in parseDbEncryptionKey()
58 .setKeyType(AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN) in parseDbEncryptionKey()
100 public ObliviousHttpKeyConfig getObliviousHttpKeyConfig(AdSelectionEncryptionKey key) in getObliviousHttpKeyConfig()
104 key.keyType() == AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN, in getObliviousHttpKeyConfig()
DAuctionEncryptionKeyParser.java61 public AdSelectionEncryptionKey parseDbEncryptionKey(DBEncryptionKey dbEncryptionKey) { in parseDbEncryptionKey()
68 return AdSelectionEncryptionKey.builder() in parseDbEncryptionKey()
69 .setKeyType(AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION) in parseDbEncryptionKey()
118 public ObliviousHttpKeyConfig getObliviousHttpKeyConfig(AdSelectionEncryptionKey key) in getObliviousHttpKeyConfig()
122 key.keyType() == AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION, in getObliviousHttpKeyConfig()
DEncryptionKeyParser.java30 AdSelectionEncryptionKey parseDbEncryptionKey(DBEncryptionKey dbEncryptionKey); in parseDbEncryptionKey()
39 ObliviousHttpKeyConfig getObliviousHttpKeyConfig(AdSelectionEncryptionKey key) in getObliviousHttpKeyConfig()
DAdSelectionEncryptionKey.java29 public abstract class AdSelectionEncryptionKey { class
74 public abstract AdSelectionEncryptionKey build(); in build()
DBackgroundKeyFetchWorker.java199 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION) in fetchNewKeys()
234 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN) in fetchNewKeys()
315 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION, in fetchAndPersistAuctionKeys()
331 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN, in fetchAndPersistJoinKey()
DKAnonObliviousHttpEncryptorImpl.java19 import static com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey.AdSele…
DObliviousHttpRequestContextMarshaller.java19 import static com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey.AdSele…
DObliviousHttpEncryptorImpl.java19 import static com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey.AdSele…
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/
DAdSelectionEncryptionKeyManagerTest.java145 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN)) in test_getLatestActiveJoinKey_noJoinKey_returnsNull()
153 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION)) in test_getLatestActiveAuctionKey_noAuctionKey_returnsNull()
165 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN)) in test_getLatestActiveJoinKey_noActiveJoinKey_returnsNull()
177 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION)) in test_getLatestActiveAuctionKey_noActiveAuctionKey_returnsNull()
185 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN)) in test_getLatestActiveJoinKey_returnsActiveJoinKey()
193 AdSelectionEncryptionKey actualKey = in test_getLatestActiveJoinKey_returnsActiveJoinKey()
195 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN); in test_getLatestActiveJoinKey_returnsActiveJoinKey()
210 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION)) in test_getLatestActiveAuctionKey_returnsActiveAuctionKey()
218 AdSelectionEncryptionKey actualKey = in test_getLatestActiveAuctionKey_returnsActiveAuctionKey()
220 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION); in test_getLatestActiveAuctionKey_returnsActiveAuctionKey()
[all …]
DProtectedServersEncryptionConfigManagerTest.java152 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN, in test_getLatestJoinKey_noJoinKey_returnsNull()
161 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION, in test_getLatestAuctionKey_noAuctionKey_returnsNull()
170 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN, in test_getLatestJoinKey_returnsJoinKey()
177 AdSelectionEncryptionKey actualKey = in test_getLatestJoinKey_returnsJoinKey()
179 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN, in test_getLatestJoinKey_returnsJoinKey()
196 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION, in test_getLatestAuctionKey_returnsAuctionKey()
203 AdSelectionEncryptionKey actualKey = in test_getLatestAuctionKey_returnsAuctionKey()
205 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION, in test_getLatestAuctionKey_returnsAuctionKey()
224 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION, in test_getAbsentAdSelectionEncryptionKeyTypes()
225 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN); in test_getAbsentAdSelectionEncryptionKeyTypes()
[all …]
DAuctionEncryptionKeyParserTest.java82 AdSelectionEncryptionKey.builder() in parseDbEncryptionKey_returnsSuccess()
84 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType in parseDbEncryptionKey_returnsSuccess()
149 AdSelectionEncryptionKey key = in getObliviousHttpKeyConfig_insufficientKeyLength_throwsError()
150 AdSelectionEncryptionKey.builder() in getObliviousHttpKeyConfig_insufficientKeyLength_throwsError()
151 .setKeyType(AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION) in getObliviousHttpKeyConfig_insufficientKeyLength_throwsError()
165 AdSelectionEncryptionKey key = in getObliviousHttpKeyConfig_keyNotHexadecimal_throwsError()
166 AdSelectionEncryptionKey.builder() in getObliviousHttpKeyConfig_keyNotHexadecimal_throwsError()
167 .setKeyType(AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION) in getObliviousHttpKeyConfig_keyNotHexadecimal_throwsError()
181 AdSelectionEncryptionKey key = in getObliviousHttpKeyConfig_convertsKmsKeyIdToOhttpKeyIdCorrectly()
182 AdSelectionEncryptionKey.builder() in getObliviousHttpKeyConfig_convertsKmsKeyIdToOhttpKeyIdCorrectly()
[all …]
DJoinEncryptionKeyParserTest.java81 AdSelectionEncryptionKey.builder() in parseDbEncryptionKey_returnsSuccess()
83 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN) in parseDbEncryptionKey_returnsSuccess()
134 AdSelectionEncryptionKey.builder() in getObliviousHttpKeyConfig_wrongFormat_throwsException()
137 AdSelectionEncryptionKey in getObliviousHttpKeyConfig_wrongFormat_throwsException()
149 AdSelectionEncryptionKey key = in getObliviousHttpKeyConfig_returnsKeyConfig()
150 AdSelectionEncryptionKey.builder() in getObliviousHttpKeyConfig_returnsKeyConfig()
152 .setKeyType(AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN) in getObliviousHttpKeyConfig_returnsKeyConfig()
DBackgroundKeyFetchWorkerTest.java237 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int adSelectionKeyType, in testRunBackgroundKeyFetch_longRuntime_throwsTimeoutDuringFetch()
346 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION,
347 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN);
392 .doesNotContain(AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN);
396 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN, 3);
443 .doesNotContain(AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION);
447 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION, 6);
490 set.add(AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION);
567 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION,
568 AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN);
[all …]
DKAnonObliviousHttpEncryptorImplTest.java19 import static com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey.AdSele…
DObliviousHttpEncryptorImplTest.java19 import static com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey.AdSele…
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/adselection/
DEncryptionKeyConstants.java21 import com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey;
47 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType in from()
50 case AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION: in from()
52 case AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN: in from()
54 case AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.UNASSIGNED: in from()
62 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType
66 return AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.AUCTION; in toAdSelectionEncryptionKeyType()
68 return AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.JOIN; in toAdSelectionEncryptionKeyType()
74 return AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.UNASSIGNED; in toAdSelectionEncryptionKeyType()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/adselection/datahandlers/
DEncryptionContext.java22 import com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey;
34 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType
55 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int encryptionKeyType); in setAdSelectionEncryptionKeyType()
DDBValidator.java20 import com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey;
37 != AdSelectionEncryptionKey.AdSelectionEncryptionKeyType.UNASSIGNED); in validateEncryptionContext()
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/
DObliviousHttpKeyConfig.java19 import static com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey.AdSele…
24 import com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey;
75 @AdSelectionEncryptionKey.AdSelectionEncryptionKeyType int keyType) { in useFledgeAuctionServerMediaTypeChange()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/
DObliviousHttpRequestTest.java19 import static com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey.AdSele…
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DObliviousHttpEncryptorWithSeedImpl.java19 import static com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey.AdSele…
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DObliviousHttpEncryptorWithSeedImplTest.java19 import static com.android.adservices.service.adselection.encryption.AdSelectionEncryptionKey.AdSele…

12