Home
last modified time | relevance | path

Searched refs:US_ASCII (Results 1 – 25 of 65) sorted by relevance

123

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/
DObliviousHttpGatewayTest.java58 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in decrypt_canDecryptPayloadsEncryptedByOhttpClient()
59 byte[] seedBytes = testVector.seed.getBytes(StandardCharsets.US_ASCII); in decrypt_canDecryptPayloadsEncryptedByOhttpClient()
84 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in decrypt_canDecryptPayloadsEncryptedByOhttpClient_withServerAuctionMediaTypeChange()
85 byte[] seedBytes = testVector.seed.getBytes(StandardCharsets.US_ASCII); in decrypt_canDecryptPayloadsEncryptedByOhttpClient_withServerAuctionMediaTypeChange()
109 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in encrypt_canBeDecryptedByOhttpClient()
110 byte[] seedBytes = testVector.seed.getBytes(StandardCharsets.US_ASCII); in encrypt_canBeDecryptedByOhttpClient()
121 testVector.responsePlainText.getBytes(StandardCharsets.US_ASCII)); in encrypt_canBeDecryptedByOhttpClient()
141 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in encrypt_canBeDecryptedByOhttpClient_withServerAuctionMediaTypeChange()
142 byte[] seedBytes = testVector.seed.getBytes(StandardCharsets.US_ASCII); in encrypt_canBeDecryptedByOhttpClient_withServerAuctionMediaTypeChange()
153 testVector.responsePlainText.getBytes(StandardCharsets.US_ASCII)); in encrypt_canBeDecryptedByOhttpClient_withServerAuctionMediaTypeChange()
[all …]
DOhttpJniWrapperTest.java87 byte[] seedBytes = KEM_SEED.getBytes(StandardCharsets.US_ASCII); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret()
109 byte[] seedBytes = KEM_SEED.getBytes(StandardCharsets.US_ASCII); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret_withServerAuctionMediaTypeChange()
129 byte[] seedBytes = KEM_SEED.getBytes(StandardCharsets.US_ASCII); in hpkeEncrypt_returnsCorrectResponse()
133 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in hpkeEncrypt_returnsCorrectResponse()
167 byte[] seedBytes = KEM_SEED.getBytes(StandardCharsets.US_ASCII); in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange()
171 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange()
204 byte[] seedBytes = KEM_SEED.getBytes(StandardCharsets.US_ASCII); in hpkeEncrypt_emptyPlainText_returnsNullCipherText()
238 byte[] seedBytes = KEM_SEED.getBytes(StandardCharsets.US_ASCII); in hpkeEncrypt_emptyPlainText_returnsNullCipherText_withServerAuctionMediaTypeChange()
271 byte[] seedBytes = KEM_SEED.getBytes(StandardCharsets.US_ASCII); in hpkeCtxSetupSenderWithSeed_nullContext_throwsException()
297 byte[] seedBytes = KEM_SEED.getBytes(StandardCharsets.US_ASCII); in hpkeCtxSetupSenderWithSeed_nullContext_throwsException_withServerAuctionMediaChange()
[all …]
DObliviousHttpClientTest.java109 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in createObliviousHttpRequest_testAllTestVectors()
110 byte[] seedBytes = testVector.seed.getBytes(StandardCharsets.US_ASCII); in createObliviousHttpRequest_testAllTestVectors()
139 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in createObliviousHttpRequest_testAllTestVectors_withServerAuctionMediaTypeChange()
140 byte[] seedBytes = testVector.seed.getBytes(StandardCharsets.US_ASCII); in createObliviousHttpRequest_testAllTestVectors_withServerAuctionMediaTypeChange()
169 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in decryptObliviousHttpResponse_testAllTestVectors()
170 byte[] seedBytes = testVector.seed.getBytes(StandardCharsets.US_ASCII); in decryptObliviousHttpResponse_testAllTestVectors()
195 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in decryptObliviousHttpResponse_testAllTestVectors_withServerAuctionMediaTypeChange()
196 byte[] seedBytes = testVector.seed.getBytes(StandardCharsets.US_ASCII); in decryptObliviousHttpResponse_testAllTestVectors_withServerAuctionMediaTypeChange()
225 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in decryptObliviousHttpResponse_withAuctionResult()
227 byte[] seedBytes = seed.getBytes(StandardCharsets.US_ASCII); in decryptObliviousHttpResponse_withAuctionResult()
[all …]
DObliviousHttpRequestTest.java66 byte[] cipherTextBytes = cipherText.getBytes(StandardCharsets.US_ASCII); in serialize_serializesCorrectly()
70 plainText.getBytes(StandardCharsets.US_ASCII), in serialize_serializesCorrectly()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DObliviousHttpEncryptorWithSeedImplTest.java98 byte[] seedBytes = seed.getBytes(StandardCharsets.US_ASCII); in test_encryptBytes_success()
107 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_encryptBytes_success()
138 byte[] seedBytes = seed.getBytes(StandardCharsets.US_ASCII); in test_encryptBytes_success_withServerAuctionMediaTypeChange()
147 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_encryptBytes_success_withServerAuctionMediaTypeChange()
173 byte[] seedBytes = seed.getBytes(StandardCharsets.US_ASCII); in test_decryptBytes_invalidEncryptedBytes()
191 byte[] seedBytes = seed.getBytes(StandardCharsets.US_ASCII); in test_decryptBytes_success()
200 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_decryptBytes_success()
231 byte[] seedBytes = seed.getBytes(StandardCharsets.US_ASCII); in test_decryptBytes_success_withServerAuctionMediaTypeChange()
240 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_decryptBytes_success_withServerAuctionMediaTypeChange()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DByteBufferReaderTest.java122 ByteBufferReader.readString(ByteBuffer.wrap(new byte[10]), -1, StandardCharsets.US_ASCII); in readStringWithNegativeSize()
133 ByteBuffer.wrap(new byte[10]), 0, StandardCharsets.US_ASCII); in readStringWithZeroSize()
146 ByteBuffer buffer = ByteBuffer.wrap(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readString()
148 buffer, buffer.remaining(), StandardCharsets.US_ASCII); in readString()
163 buffer.put(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readStringWithByteLength()
167 ByteBufferReader.readStringWithByteLength(buffer, StandardCharsets.US_ASCII); in readStringWithByteLength()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/util/encryption/
DCryptorMicImp.java54 StandardCharsets.US_ASCII);
56 StandardCharsets.US_ASCII);
58 "V1 derived salt".getBytes(StandardCharsets.US_ASCII);
60 "Unsigned Section metadata key HMAC key".getBytes(StandardCharsets.US_ASCII);
62 StandardCharsets.US_ASCII);
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/
DKAnonObliviousHttpEncryptorImplTest.java97 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_encryptBytes_success()
125 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_encryptBytes_success_withServerAuctionMediaTypeNoChange()
179 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_decryptBytes_success()
206 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_decryptBytes_success_withServerAuctionMediaTypeNoChange()
DObliviousHttpEncryptorImplTest.java111 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_encryptBytes_success()
139 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_encryptBytes_success_withServerAuctionMediaTypeChange()
187 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_decryptBytes_success()
215 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in test_decryptBytes_success_withServerAuctionMediaTypeChange()
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/
DObliviousHttpGateway.java236 .getBytes(StandardCharsets.US_ASCII); in encrypt()
253 byte[] keyContext = AEAD_KEY_CONTEXT.getBytes(StandardCharsets.US_ASCII); in encrypt()
259 byte[] nonceContext = AEAD_NONCE_CONTEXT.getBytes(StandardCharsets.US_ASCII); in encrypt()
348 .getBytes(StandardCharsets.US_ASCII); in createRecipientKeyInfo()
DObliviousHttpClient.java148 byte[] keyContext = sAeadKeyContext.getBytes(StandardCharsets.US_ASCII); in decryptObliviousHttpResponse()
154 byte[] nonceContext = sAeadNonceContext.getBytes(StandardCharsets.US_ASCII); in decryptObliviousHttpResponse()
208 .getBytes(StandardCharsets.US_ASCII); in export()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DIconInfoTestUtil.java55 out.write(TEST_LANGUAGE.getBytes(StandardCharsets.US_ASCII)); in getTestData()
57 writeByteArrayWithLength(out, TEST_TYPE.getBytes(StandardCharsets.US_ASCII)); in getTestData()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DExifTag.java63 private static final Charset US_ASCII = Charset.forName("US-ASCII"); field in ExifTag
287 byte[] buf = value.getBytes(US_ASCII); in setValue()
397 return new String((byte[]) value, US_ASCII); in forceGetValueAsString()
450 return new String((byte[]) value, US_ASCII); in getString()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifTag.java70 private static Charset US_ASCII = Charset.forName("US-ASCII"); field in ExifTag
332 byte[] buf = value.getBytes(US_ASCII); in setValue()
546 return new String((byte[]) mValue, US_ASCII); in getValueAsString()
752 return new String((byte[]) mValue, US_ASCII); in forceGetValueAsString()
809 return new String((byte[]) mValue, US_ASCII); in getString()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifTag.java70 private static Charset US_ASCII = Charset.forName("US-ASCII"); field in ExifTag
332 byte[] buf = value.getBytes(US_ASCII); in setValue()
546 return new String((byte[]) mValue, US_ASCII); in getValueAsString()
752 return new String((byte[]) mValue, US_ASCII); in forceGetValueAsString()
809 return new String((byte[]) mValue, US_ASCII); in getString()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifTag.java70 private static Charset US_ASCII = Charset.forName("US-ASCII"); field in ExifTag
332 byte[] buf = value.getBytes(US_ASCII); in setValue()
546 return new String((byte[]) mValue, US_ASCII); in getValueAsString()
752 return new String((byte[]) mValue, US_ASCII); in forceGetValueAsString()
809 return new String((byte[]) mValue, US_ASCII); in getString()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DCharacterSets.java32 public static final int US_ASCII = 0x03; field in CharacterSets
58 US_ASCII,
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DIconInfo.java73 payload, LANGUAGE_CODE_LENGTH, StandardCharsets.US_ASCII).trim(); in parse()
76 ByteBufferReader.readStringWithByteLength(payload, StandardCharsets.US_ASCII); in parse()
/packages/modules/NetworkStack/tests/unit/src/android/net/util/
DHostnameTransliteratorTest.java92 0x10 /* backspace */}, StandardCharsets.US_ASCII); in testHostnameOnlyUnsupportedAsciiSymbols()
99 'b', 0x10 /* backspace */}, StandardCharsets.US_ASCII); in testHostnameMixedAsciiSymbols()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsServiceInfo.java46 private static final Charset US_ASCII = Charset.forName("us-ascii"); field in MdnsServiceInfo
392 return new TextEntry(new String(textBytes, US_ASCII), (byte[]) null); in fromBytes()
397 new String(Arrays.copyOf(textBytes, delimitPos), US_ASCII), in fromBytes()
427 final byte[] keyBytes = key.getBytes(US_ASCII); in toBytes()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DCharacterSets.java280 public static final int US_ASCII = 0x03; field in CharacterSets
314 US_ASCII,
/packages/modules/Connectivity/framework-t/src/android/net/nsd/
DNsdServiceInfo.java310 StandardCharsets.US_ASCII); in setTxtRecords()
323 key = new String(txtRecordsRawBytes, pos, recordLen, StandardCharsets.US_ASCII); in setTxtRecords()
451 System.arraycopy(key.getBytes(StandardCharsets.US_ASCII), 0, txtRecord, ptr, in getTxtRecord()
612 return new String(txtValue, StandardCharsets.US_ASCII); in getPrintableTxtValue()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeAudioContentMetadata.java204 language = new String(bytes, 0, LANGUAGE_LENGTH, StandardCharsets.US_ASCII); in fromRawBytes()
298 byte[] languageBytes = cleanedLanguage.getBytes(StandardCharsets.US_ASCII); in build()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcDispatcherTest.java187 .getBytes(StandardCharsets.US_ASCII)); in testPeripheralHandoverBTParing()
189 when(ndefRecord.getPayload()).thenReturn(btOobPayload.getBytes(StandardCharsets.US_ASCII)); in testPeripheralHandoverBTParing()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/
DServerInterface.java391 return StandardCharsets.US_ASCII; in getCharsetFromContentTypeHeader()
397 return StandardCharsets.US_ASCII; in getCharsetFromContentTypeHeader()
405 return StandardCharsets.US_ASCII; in getCharsetFromContentTypeHeader()

123