/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpKeyConfigTest.java | 48 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in create_configuresKeyCorrectly() 54 String publicKeyHex = BaseEncoding.base16().lowerCase().encode(keyConfig.getPublicKey()); in create_configuresKeyCorrectly() 64 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in create_emptyKeyConfig_throwsError() 74 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in create_wrongKemIdLength_throwsError() 84 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in create_unsupportedKemId_throwsError() 95 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in create_wrongPublicKeyLength_throwsError() 106 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in create_wrongAlgorithmsLength_throwsError() 118 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in create_incompleteAlgorithmsList_throwsError() 130 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in serializeOhttpPayloadHeader_returnsCorrectHeader() 136 BaseEncoding.base16().lowerCase().encode(ohttpPayloadHeader), "01002000010001"); in serializeOhttpPayloadHeader_returnsCorrectHeader() [all …]
|
D | OhttpJniWrapperTest.java | 89 byte[] keyBytes = BaseEncoding.base16().lowerCase().decode(SERVER_PUBLIC_KEY); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret() 97 BaseEncoding.base16().lowerCase().encode(enc.getBytes())); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret() 111 byte[] keyBytes = BaseEncoding.base16().lowerCase().decode(SERVER_PUBLIC_KEY); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret_withServerAuctionMediaTypeChange() 119 BaseEncoding.base16().lowerCase().encode(enc.getBytes())); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret_withServerAuctionMediaTypeChange() 131 byte[] keyBytes = BaseEncoding.base16().lowerCase().decode(SERVER_PUBLIC_KEY); in hpkeEncrypt_returnsCorrectResponse() 151 BaseEncoding.base16() in hpkeEncrypt_returnsCorrectResponse() 156 BaseEncoding.base16().lowerCase().encode(response.cipherText())); in hpkeEncrypt_returnsCorrectResponse() 169 byte[] keyBytes = BaseEncoding.base16().lowerCase().decode(SERVER_PUBLIC_KEY); in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange() 189 BaseEncoding.base16() in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange() 194 BaseEncoding.base16().lowerCase().encode(response.cipherText())); in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange() [all …]
|
D | ObliviousHttpClientTest.java | 54 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in create_unsupportedAlgorithms_throwsError() 118 BaseEncoding.base16() in createObliviousHttpRequest_testAllTestVectors() 126 BaseEncoding.base16().lowerCase().encode(request.serialize())); in createObliviousHttpRequest_testAllTestVectors() 148 BaseEncoding.base16() in createObliviousHttpRequest_testAllTestVectors_withServerAuctionMediaTypeChange() 156 BaseEncoding.base16().lowerCase().encode(request.serialize())); in createObliviousHttpRequest_testAllTestVectors_withServerAuctionMediaTypeChange() 177 BaseEncoding.base16().lowerCase().decode(testVector.responseCipherText), in decryptObliviousHttpResponse_testAllTestVectors() 204 BaseEncoding.base16().lowerCase().decode(testVector.responseCipherText), in decryptObliviousHttpResponse_testAllTestVectors_withServerAuctionMediaTypeChange() 221 BaseEncoding.base16().lowerCase().decode(keyConfigString)); in decryptObliviousHttpResponse_withAuctionResult() 242 BaseEncoding.base16().lowerCase().decode(cipherText), in decryptObliviousHttpResponse_withAuctionResult() 265 BaseEncoding.base16().lowerCase().decode(keyConfigString)); in decryptObliviousHttpResponse_withAuctionResult_withServerAuctionMediaTypeChange() [all …]
|
D | ObliviousHttpRequestTest.java | 51 byte[] keyConfigBytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in serialize_serializesCorrectly() 57 BaseEncoding.base16().lowerCase().decode(encString)); in serialize_serializesCorrectly() 76 BaseEncoding.base16().lowerCase().encode(cipherTextBytes); in serialize_serializesCorrectly() 78 BaseEncoding.base16().lowerCase().encode(request.serialize()), in serialize_serializesCorrectly()
|
D | ObliviousHttpGatewayTest.java | 65 byte[] keyBytes = BaseEncoding.base16().lowerCase().decode(SERVER_PRIVATE_KEY); in decrypt_canDecryptPayloadsEncryptedByOhttpClient() 91 byte[] keyBytes = BaseEncoding.base16().lowerCase().decode(SERVER_PRIVATE_KEY); in decrypt_canDecryptPayloadsEncryptedByOhttpClient_withServerAuctionMediaTypeChange() 116 byte[] keyBytes = BaseEncoding.base16().lowerCase().decode(SERVER_PRIVATE_KEY); in encrypt_canBeDecryptedByOhttpClient() 148 byte[] keyBytes = BaseEncoding.base16().lowerCase().decode(SERVER_PRIVATE_KEY); in encrypt_canBeDecryptedByOhttpClient_withServerAuctionMediaTypeChange()
|
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/ |
D | PendingOperationalDatasetTest.java | 21 import static com.google.common.io.BaseEncoding.base16; 166 base16().lowerCase() in fromThreadTlvs_openthreadTlvs_success() 185 .isEqualTo(base16().lowerCase().decode("a74182f4d3f4de41")); in fromThreadTlvs_openthreadTlvs_success() 189 .isEqualTo(base16().lowerCase().decode("ed916e454d96fd00184f10a6f5c9e1d3")); in fromThreadTlvs_openthreadTlvs_success() 193 .isEqualTo(base16().lowerCase().decode("264f78414adc683191863d968f72d1b7")); in fromThreadTlvs_openthreadTlvs_success() 207 base16().decode("3308000000000001000034040000012C"); in fromThreadTlvs_completePendingDatasetTlvs_success() 225 final byte[] pendingTimestampAndDelayTimerTlvs = base16().decode("34040000012C"); in fromThreadTlvs_PendingTimestampTlvIsMissing_throwsIllegalArgument() 239 final byte[] pendingTimestampAndDelayTimerTlvs = base16().decode("33080000000000010000"); in fromThreadTlvs_delayTimerTlvIsMissing_throwsIllegalArgument()
|
D | ActiveOperationalDatasetTest.java | 23 import static com.google.common.io.BaseEncoding.base16; 78 base16().decode( 108 return Bytes.concat(dataset, base16().decode(tlvHex)); in addTlv() 416 base16().decode( in fromThreadTlvs_validFullDataset_success() 426 .isEqualTo(base16().decode("F26B3153760F519A63BAFDDFFC80D2AF")); in fromThreadTlvs_validFullDataset_success() 428 assertThat(dataset.getExtendedPanId()).isEqualTo(base16().decode("ACC214689BC40BDF")); in fromThreadTlvs_validFullDataset_success() 432 .isEqualTo(base16().decode("A245479C836D551B9CA557F7B9D351B4")); in fromThreadTlvs_validFullDataset_success() 453 String newDatasetTlvsHex = base16().encode(newDatasetTlvs); in fromThreadTlvs_containsUnknownTlvs_unknownTlvsRetained() 587 byte[] pskc = base16().decode("A245479C836D551B9CA557F7B9D351B4"); in builder_setValidPskc_success() 596 byte[] tooLongPskc = base16().decode("A245479C836D551B9CA557F7B9D351B400"); in builder_setTooLongPskc_throwsIllegalArgument()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/ |
D | ObliviousHttpEncryptorImplTest.java | 114 BaseEncoding.base16() in test_encryptBytes_success() 142 BaseEncoding.base16() in test_encryptBytes_success_withServerAuctionMediaTypeChange() 172 BaseEncoding.base16().lowerCase().decode(responseCipherText); in test_decryptBytes_noEncryptionContext_throwsException() 202 BaseEncoding.base16().lowerCase().decode(responseCipherText); in test_decryptBytes_success() 230 BaseEncoding.base16().lowerCase().decode(responseCipherText); in test_decryptBytes_success_withServerAuctionMediaTypeChange() 239 BaseEncoding.base16().lowerCase().encode(keyId) in getKeyConfig() 244 BaseEncoding.base16().lowerCase().decode(keyConfigHex)); in getKeyConfig()
|
D | KAnonObliviousHttpEncryptorImplTest.java | 100 BaseEncoding.base16() in test_encryptBytes_success() 128 BaseEncoding.base16() in test_encryptBytes_success_withServerAuctionMediaTypeNoChange() 162 BaseEncoding.base16().lowerCase().decode(responseCipherText); in test_decryptBytes_noEncryptionContext_throwsException() 229 BaseEncoding.base16().lowerCase().encode(keyId) in getKeyConfig() 234 BaseEncoding.base16().lowerCase().decode(keyConfigHex)); in getKeyConfig()
|
D | JoinEncryptionKeyParserTest.java | 86 BaseEncoding.base16() in parseDbEncryptionKey_returnsSuccess() 148 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in getObliviousHttpKeyConfig_returnsKeyConfig() 158 assertThat(BaseEncoding.base16().lowerCase().encode(keyConfig.getPublicKey())) in getObliviousHttpKeyConfig_returnsKeyConfig()
|
D | ObliviousHttpRequestContextMarshallerTest.java | 55 BaseEncoding.base16().lowerCase().decode(INPUT_KEY_CONFIG_HEX_WITH_MULTIPLE_ALGORITHMS); 61 BaseEncoding.base16().lowerCase().decode(STORED_KEY_CONFIG_HEX_WITH_SINGLE_ALGORITHM);
|
/packages/services/Telephony/src/com/android/phone/callcomposer/ |
D | DigestAuthUtils.java | 113 return base16(md5Digest.digest()); in computeResponse() 120 return base16(clientNonceBytes); in makeClientNonce() 131 return base16(md5Digest.digest()); in generateA1Hash() 137 return base16(md5Digest.digest()); in generateA2Hash() 140 private static String base16(byte[] input) { in base16() method in DigestAuthUtils 141 return BaseEncoding.base16().encode(input).toLowerCase(Locale.ROOT); in base16()
|
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/ |
D | Utils.java | 19 import static com.google.common.io.BaseEncoding.base16; 28 public static final byte[] BUMBLE_IRK = base16().decode("1F66F4B5F0C742F807DD0DDBF64E9213"); 46 return base16().upperCase().withSeparator(":", 2).decode(address.toUpperCase(Locale.US)); in addressBytesFromString()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | ObliviousHttpEncryptorWithSeedImplTest.java | 114 BaseEncoding.base16() in test_encryptBytes_success() 153 BaseEncoding.base16() in test_encryptBytes_success_withServerAuctionMediaTypeChange() 213 BaseEncoding.base16().lowerCase().decode(responseCipherText); in test_decryptBytes_success() 253 BaseEncoding.base16().lowerCase().decode(responseCipherText); in test_decryptBytes_success_withServerAuctionMediaTypeChange() 267 BaseEncoding.base16().lowerCase().encode(keyId) in getKeyConfig() 272 BaseEncoding.base16().lowerCase().decode(keyConfigHex)); in getKeyConfig()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/algorithms/ |
D | HpkeAlgorithmSpecTest.java | 36 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in fromKeyConfig_createsHpkeAlgorithmSpec() 51 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in fromKeyConfig_unsupportedKdf_throwsError() 64 byte[] bytes = BaseEncoding.base16().lowerCase().decode(keyConfigHex); in fromKeyConfig_unsupportedAead_throwsError()
|
/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/ |
D | ActiveOperationalDatasetTest.java | 19 import static com.google.common.io.BaseEncoding.base16; 54 base16().decode( 67 return Bytes.concat(dataset, base16().decode(tlvHex)); in addTlv()
|
D | OperationalDatasetTimestampTest.java | 19 import static com.google.common.io.BaseEncoding.base16; 46 OperationalDatasetTimestamp.fromTlvValue(base16().decode("FFEEDDCCBBAA9989")); in fromTlvValue_goodValue_success()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/kanon/ |
D | KeyAttestationCertificateChainRecordTest.java | 39 BaseEncoding.base16().lowerCase().decode("aabbccddee"); 40 private static final byte[] FAKE_CERT_2 = BaseEncoding.base16().lowerCase().decode("112233"); 42 BaseEncoding.base16().lowerCase().decode("11223322aabbddeeff4e");
|
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpRequestContext.java | 54 return BaseEncoding.base16().lowerCase().encode(seed); in serializeSeed() 59 return BaseEncoding.base16().lowerCase().decode(serializedSeed); in deserializeSeed()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | DBEncryptionContextTest.java | 56 BaseEncoding.base16().lowerCase().decode(KEY_CONFIG_HEX)); in testBuildEncryptionContext_success() 70 .isEqualTo(BaseEncoding.base16().lowerCase().decode(KEY_CONFIG_HEX)); in testBuildEncryptionContext_success()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/ohttp/ |
D | ObliviousHttpTestFixtures.java | 190 BaseEncoding.base16().lowerCase().encode(keyId) in getKeyConfig() 195 BaseEncoding.base16().lowerCase().decode(keyConfigHex)); in getKeyConfig()
|
/packages/modules/Connectivity/thread/demoapp/java/com/android/threadnetwork/demoapp/ |
D | ThreadNetworkSettingsFragment.java | 19 import static com.google.common.io.BaseEncoding.base16; 69 base16().lowerCase() 254 ? base16().encode(mActiveDataset.getExtendedPanId()) in updateState()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/ |
D | JoinEncryptionKeyParser.java | 60 BaseEncoding.base16().lowerCase().decode(dbEncryptionKey.getPublicKey())) in parseDbEncryptionKey() 90 .setPublicKey(BaseEncoding.base16().lowerCase().encode(keyInBytes)) in getDbEncryptionKeys()
|
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/ |
D | ThreadNetworkShellCommandTest.java | 19 import static com.google.common.io.BaseEncoding.base16; 233 base16().decode(DEFAULT_ACTIVE_DATASET_TLVS)); in join_controllerServiceJoinIsCalled() 270 base16().decode(DEFAULT_ACTIVE_DATASET_TLVS))); in migrate_controllerServiceMigrateIsCalled()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/cobalt/ |
D | CobaltApiKeys.java | 34 : ByteString.copyFrom(BaseEncoding.base16().lowerCase().decode(apiKey)); in copyFromHexApiKey()
|