Home
last modified time | relevance | path

Searched refs:hasMediaTypeChanged (Results 1 – 13 of 13) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/
DOhttpJniWrapperTest.java82 boolean hasMediaTypeChanged = false; in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret()
88 byte[] recipientKeyInfoBytes = createRecipientKeyInfoBytes(hasMediaTypeChanged); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret()
104 boolean hasMediaTypeChanged = true; in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret_withServerAuctionMediaTypeChange()
110 byte[] recipientKeyInfoBytes = createRecipientKeyInfoBytes(hasMediaTypeChanged); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret_withServerAuctionMediaTypeChange()
124 boolean hasMediaTypeChanged = false; in hpkeEncrypt_returnsCorrectResponse()
130 byte[] recipientKeyInfoBytes = createRecipientKeyInfoBytes(hasMediaTypeChanged); in hpkeEncrypt_returnsCorrectResponse()
162 boolean hasMediaTypeChanged = true; in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange()
168 byte[] recipientKeyInfoBytes = createRecipientKeyInfoBytes(hasMediaTypeChanged); in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange()
199 boolean hasMediaTypeChanged = false; in hpkeEncrypt_emptyPlainText_returnsNullCipherText()
205 byte[] recipientKeyInfoBytes = createRecipientKeyInfoBytes(hasMediaTypeChanged); in hpkeEncrypt_emptyPlainText_returnsNullCipherText()
[all …]
DObliviousHttpGatewayTest.java52 boolean hasMediaTypeChanged = false; in decrypt_canDecryptPayloadsEncryptedByOhttpClient()
54 getTestVectors(hasMediaTypeChanged); in decrypt_canDecryptPayloadsEncryptedByOhttpClient()
63 plainTextBytes, seedBytes, hasMediaTypeChanged); in decrypt_canDecryptPayloadsEncryptedByOhttpClient()
78 boolean hasMediaTypeChanged = true; in decrypt_canDecryptPayloadsEncryptedByOhttpClient_withServerAuctionMediaTypeChange()
80 getTestVectors(hasMediaTypeChanged); in decrypt_canDecryptPayloadsEncryptedByOhttpClient_withServerAuctionMediaTypeChange()
89 plainTextBytes, seedBytes, hasMediaTypeChanged); in decrypt_canDecryptPayloadsEncryptedByOhttpClient_withServerAuctionMediaTypeChange()
103 boolean hasMediaTypeChanged = false; in encrypt_canBeDecryptedByOhttpClient()
105 getTestVectors(hasMediaTypeChanged); in encrypt_canBeDecryptedByOhttpClient()
114 plainTextBytes, seedBytes, hasMediaTypeChanged); in encrypt_canBeDecryptedByOhttpClient()
135 boolean hasMediaTypeChanged = true; in encrypt_canBeDecryptedByOhttpClient_withServerAuctionMediaTypeChange()
[all …]
DObliviousHttpClientTest.java103 boolean hasMediaTypeChanged = false; in createObliviousHttpRequest_testAllTestVectors()
105 getTestVectors(hasMediaTypeChanged); in createObliviousHttpRequest_testAllTestVectors()
114 plainTextBytes, seedBytes, hasMediaTypeChanged); in createObliviousHttpRequest_testAllTestVectors()
133 boolean hasMediaTypeChanged = true; in createObliviousHttpRequest_testAllTestVectors_withServerAuctionMediaTypeChange()
135 getTestVectors(hasMediaTypeChanged); in createObliviousHttpRequest_testAllTestVectors_withServerAuctionMediaTypeChange()
144 plainTextBytes, seedBytes, hasMediaTypeChanged); in createObliviousHttpRequest_testAllTestVectors_withServerAuctionMediaTypeChange()
163 boolean hasMediaTypeChanged = false; in decryptObliviousHttpResponse_testAllTestVectors()
165 getTestVectors(hasMediaTypeChanged); in decryptObliviousHttpResponse_testAllTestVectors()
174 plainTextBytes, seedBytes, hasMediaTypeChanged); in decryptObliviousHttpResponse_testAllTestVectors()
189 boolean hasMediaTypeChanged = true; in decryptObliviousHttpResponse_testAllTestVectors_withServerAuctionMediaTypeChange()
[all …]
DObliviousHttpKeyConfigTest.java142 boolean hasMediaTypeChanged = false; in createRecipientKeyInfoBytes_returnsCorrectInfo()
149 RecipientKeyInfo response = keyConfig.createRecipientKeyInfo(hasMediaTypeChanged); in createRecipientKeyInfoBytes_returnsCorrectInfo()
159 boolean hasMediaTypeChanged = true; in createRecipientKeyInfoBytes_returnsCorrectInfo_withServerAuctionMediaTypeChange()
166 RecipientKeyInfo response = keyConfig.createRecipientKeyInfo(hasMediaTypeChanged); in createRecipientKeyInfoBytes_returnsCorrectInfo_withServerAuctionMediaTypeChange()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/ohttp/
DObliviousHttpTestFixtures.java38 public static List<OhttpTestVector> getTestVectors(boolean hasMediaTypeChanged) in getTestVectors() argument
45 if (hasMediaTypeChanged) { in getTestVectors()
72 if (hasMediaTypeChanged) { in getTestVectors()
99 if (hasMediaTypeChanged) { in getTestVectors()
126 if (hasMediaTypeChanged) { in getTestVectors()
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/
DObliviousHttpClient.java74 byte[] plainText, boolean hasMediaTypeChanged) throws IOException { in createObliviousHttpRequest() argument
76 return createObliviousHttpRequest(plainText, seed, hasMediaTypeChanged); in createObliviousHttpRequest()
87 byte[] plainText, byte[] seed, boolean hasMediaTypeChanged) throws IOException { in createObliviousHttpRequest() argument
95 mObliviousHttpKeyConfig.createRecipientKeyInfo(hasMediaTypeChanged); in createObliviousHttpRequest()
114 hasMediaTypeChanged); in createObliviousHttpRequest()
207 ObliviousHttpKeyConfig.getOhttpResponseLabel(requestContext.hasMediaTypeChanged()) in export()
216 requestContext.hasMediaTypeChanged()); in export()
DObliviousHttpRequestContext.java41 public abstract boolean hasMediaTypeChanged(); in hasMediaTypeChanged() method in ObliviousHttpRequestContext
48 boolean hasMediaTypeChanged) { in create() argument
49 return new AutoValue_ObliviousHttpRequestContext(keyConfig, enc, seed, hasMediaTypeChanged); in create()
DObliviousHttpKeyConfig.java199 public RecipientKeyInfo createRecipientKeyInfo(boolean hasMediaTypeChanged) throws IOException { in createRecipientKeyInfo() argument
202 getOhttpRequestLabel(hasMediaTypeChanged).getBytes(StandardCharsets.US_ASCII); in createRecipientKeyInfo()
DObliviousHttpRequest.java62 if (requestContext().hasMediaTypeChanged()) { in serialize()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/adselection/
DDBEncryptionContext.java96 boolean hasMediaTypeChanged) { in create() argument
104 .setHasMediaTypeChanged(hasMediaTypeChanged) in create()
132 public abstract Builder setHasMediaTypeChanged(boolean hasMediaTypeChanged); in setHasMediaTypeChanged() argument
DEncryptionContextDao.java75 .setHasMediaTypeChanged(requestContext.hasMediaTypeChanged()) in persistEncryptionContext()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/
DObliviousHttpRequestContextMarshaller.java91 .setHasMediaTypeChanged(requestContext.hasMediaTypeChanged()) in insertAuctionEncryptionContext()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/
DObliviousHttpRequestContextMarshallerTest.java160 assertThat(expectedOhttpContext.hasMediaTypeChanged()).isEqualTo(HAS_MEDIA_TYPE_CHANGED); in test_getContext_success()