Home
last modified time | relevance | path

Searched refs:getBytes (Results 1 – 25 of 686) sorted by relevance

12345678910>>...28

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkCallbackAidlImplTest.java97 0, "subject".getBytes(), "certHash".getBytes(), "cert".getBytes()); in testOnCertificateSuccess()
113 -1, "subject".getBytes(), "certHash".getBytes(), "cert".getBytes()); in testOnCertificateIllegalInput()
119 101, "subject".getBytes(), "certHash".getBytes(), "cert".getBytes()); in testOnCertificateIllegalInput()
125 0, null, "certHash".getBytes(), "cert".getBytes()); in testOnCertificateIllegalInput()
131 0, "subject".getBytes(), null, "cert".getBytes()); in testOnCertificateIllegalInput()
137 0, "subject".getBytes(), "certHash".getBytes(), null); in testOnCertificateIllegalInput()
148 0, "subject".getBytes(), "certHash".getBytes(), "cert".getBytes()); in testOnCertificateWithCertificateException()
159 0, "subject".getBytes(), "certHash".getBytes(), "cert".getBytes()); in testOnCertificateWithIllegalArgumentException()
DSsidTranslatorTest.java90 WifiSsid utf8Ssid = WifiSsid.fromBytes("安卓".getBytes(StandardCharsets.UTF_8)); in testGetTranslatedSsid()
91 WifiSsid iso8859_8Ssid = WifiSsid.fromBytes("שלום".getBytes("ISO-8859-8")); in testGetTranslatedSsid()
92 WifiSsid gbkSsid = WifiSsid.fromBytes("安卓".getBytes("GBK")); in testGetTranslatedSsid()
93 WifiSsid eucKrSsid = WifiSsid.fromBytes("안드로이드".getBytes("EUC-KR")); in testGetTranslatedSsid()
100 .isEqualTo(WifiSsid.fromBytes("שלום".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid()
110 .isEqualTo(WifiSsid.fromBytes("安卓".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid()
113 .isEqualTo(WifiSsid.fromBytes("救靛肺捞靛".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid()
124 .isEqualTo(WifiSsid.fromBytes("안드로이드".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid()
127 .isEqualTo(WifiSsid.fromBytes("갛六".getBytes(StandardCharsets.UTF_8))); in testGetTranslatedSsid()
178 WifiSsid utf8Ssid = WifiSsid.fromBytes("これはSSIDです。".getBytes(StandardCharsets.UTF_8)); in testGetAllPossibleOriginalSsids()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/
DOhttpJniWrapperTest.java87 byte[] seedBytes = KEM_SEED.getBytes(StandardCharsets.US_ASCII); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret()
97 BaseEncoding.base16().lowerCase().encode(enc.getBytes())); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret()
109 byte[] seedBytes = KEM_SEED.getBytes(StandardCharsets.US_ASCII); in hpkeCtxSetupSenderWithSeed_returnsCorrectSharedSecret_withServerAuctionMediaTypeChange()
119 BaseEncoding.base16().lowerCase().encode(enc.getBytes())); 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()
153 .encode(response.encapsulatedSharedSecret().getBytes())); 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()
191 .encode(response.encapsulatedSharedSecret().getBytes())); in hpkeEncrypt_returnsCorrectResponse_withServerAuctionMediaTypeChange()
[all …]
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 …]
DObliviousHttpClientTest.java109 byte[] plainTextBytes = plainText.getBytes(StandardCharsets.US_ASCII); in createObliviousHttpRequest_testAllTestVectors()
110 byte[] seedBytes = testVector.seed.getBytes(StandardCharsets.US_ASCII); in createObliviousHttpRequest_testAllTestVectors()
123 .getBytes())); 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()
153 .getBytes())); 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()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderControllerTest.java125 BluetoothDevice.DEVICE_TYPE_WATCH.getBytes()); in refresh_connectedWatch_behaveAsExpected()
128 String.valueOf(false).getBytes()); in refresh_connectedWatch_behaveAsExpected()
146 BluetoothDevice.DEVICE_TYPE_WATCH.getBytes()); in refresh_connectedWatch_unknownBatteryLevel_shouldNotShowBatteryLevel()
149 String.valueOf(false).getBytes()); in refresh_connectedWatch_unknownBatteryLevel_shouldNotShowBatteryLevel()
152 String.valueOf(BluetoothUtils.META_INT_ERROR).getBytes()); in refresh_connectedWatch_unknownBatteryLevel_shouldNotShowBatteryLevel()
172 BluetoothDevice.DEVICE_TYPE_STYLUS.getBytes()); in refresh_connectedStylus_behaveAsExpected()
175 String.valueOf(false).getBytes()); in refresh_connectedStylus_behaveAsExpected()
192 "UNKNOWN_TYPE".getBytes()); in refresh_connectedUnknownType_behaveAsExpected()
195 String.valueOf(false).getBytes()); in refresh_connectedUnknownType_behaveAsExpected()
212 BluetoothDevice.DEVICE_TYPE_UNTETHERED_HEADSET.getBytes()); in refresh_connectedUntetheredHeadset_behaveAsExpected()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/bhttp/
DBinaryHttpMessageTest.java174 .setContent("Some body that I used to post.\r\n".getBytes()) in testEncodeAndDecodeRequestPostBody()
192 .setContent("hello, world!\r\n".getBytes()) in testRequestEquals()
205 .setContent("hello, world!\r\n".getBytes()) in testRequestEquals()
221 .setContent("hello, world!\r\n".getBytes()) in testRequestNotEqual()
234 .setContent("hello, world!\r\n".getBytes()) in testRequestNotEqual()
248 .setContent("hello, world!\r\n".getBytes()) in testRequestNotEqual()
261 .setContent("hello, world!\r\n".getBytes()) in testRequestNotEqual()
275 .setContent("goodbye, world!\r\n".getBytes()) in testRequestNotEqual()
337 .setContent("Hello, world!\r\n".getBytes()) in testEncodeAndDecodeResponseWithBody()
443 "Hello World! My content includes a trailing CRLF.\r\n".getBytes()) in testEncodeAndDecodeMultiInformationalWithBody()
[all …]
DFieldsTest.java43 fieldName1.getBytes(), in testDeserialize_normal()
45 fieldValue1.getBytes(), in testDeserialize_normal()
47 fieldName2.getBytes(), in testDeserialize_normal()
49 fieldValue2.getBytes()); in testDeserialize_normal()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiSsidTest.java44 TEST_SSID_UTF_8.getBytes(StandardCharsets.UTF_8);
49 "服務集識別碼".getBytes(Charset.forName("GBK"));
60 assertThat(wifiSsidUtf8.getBytes()).isEqualTo(TEST_SSID_UTF_8_BYTES); in testFromByteArray()
66 assertThat(wifiSsidNonUtf8.getBytes()).isEqualTo(TEST_SSID_NON_UTF_8_BYTES); in testFromByteArray()
72 assertThat(wifiSsidEmpty.getBytes()).isEmpty(); in testFromByteArray()
78 assertThat(wifiSsidNull.getBytes()).isEmpty(); in testFromByteArray()
90 assertThat(wifiSsidUtf8.getBytes()).isEqualTo(TEST_SSID_UTF_8_BYTES); in testFromUtf8String()
96 assertThat(wifiSsidEmpty.getBytes()).isEmpty(); in testFromUtf8String()
102 assertThat(wifiSsidNull.getBytes()).isEmpty(); in testFromUtf8String()
114 assertThat(wifiSsidUtf8.getBytes()).isEqualTo(TEST_SSID_UTF_8_BYTES); in testFromString()
[all …]
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/block/
DBlockFileTest.java58 byte[] block1ExtraBytes = "Extra bytes 1".getBytes(StandardCharsets.UTF_8); in testReadWrite()
59 byte[] block1DataBytes = "Block 1 bytes".getBytes(StandardCharsets.UTF_8); in testReadWrite()
60 byte[] block2ExtraBytes = "Extra bytes 2".getBytes(StandardCharsets.UTF_8); in testReadWrite()
61 byte[] block2DataBytes = "Block 2 bytes".getBytes(StandardCharsets.UTF_8); in testReadWrite()
80 assertArrayEquals(block1DataBytes, block1Data.getBytes(0, block1DataBytes.length)); in testReadWrite()
93 assertArrayEquals(block2DataBytes, block2Data.getBytes(0, block2DataBytes.length)); in testReadWrite()
101 byte[] block1DataBytes = "Block 1 bytes".getBytes(StandardCharsets.UTF_8); in blockIdBounds()
102 byte[] block2DataBytes = "Block 2 bytes".getBytes(StandardCharsets.UTF_8); in blockIdBounds()
124 byte[] block1ExtraBytes = "Extra bytes 1".getBytes(StandardCharsets.UTF_8); in visit()
125 byte[] block1DataBytes = "Block 1 bytes".getBytes(StandardCharsets.UTF_8); in visit()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/
DUwbCountryCodeTest.java164 DEFAULT_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetDefaultCountryCodeWhenNoCountryCodeAvailable()
173 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testInitializeCountryCodeFromTelephony()
189 ISO_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListEmptyAndFlagEnabled()
205 ISO_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testInitializeCountryCodeFromTelephonyWhenSubscriptionListNullAndFlagEnabled()
237 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testInitializeCountryCodeFromTelephonyVerifyListener()
246 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetCountryCodeFromTelephony()
254 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetCountryCodeFromTelephony()
271 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetCountryCodeFromLocation()
279 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetCountryCodeFromLocation()
302 TEST_COUNTRY_CODE.getBytes(StandardCharsets.UTF_8)); in testSetCountryCodeWithForceUpdateFromTelephony()
[all …]
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/
DObliviousHttpClient.java104 recipientKeyInfo.getBytes(), in createObliviousHttpRequest()
148 byte[] keyContext = sAeadKeyContext.getBytes(StandardCharsets.US_ASCII); in decryptObliviousHttpResponse()
154 byte[] nonceContext = sAeadNonceContext.getBytes(StandardCharsets.US_ASCII); in decryptObliviousHttpResponse()
163 hkdfKeyResponse.getBytes(), in decryptObliviousHttpResponse()
164 hkdfNonceResponse.getBytes(), in decryptObliviousHttpResponse()
208 .getBytes(StandardCharsets.US_ASCII); in export()
224 recipientKeyInfo.getBytes(), in export()
230 return exportResponse.getBytes(); in export()
236 outputStream.write(requestContext.encapsulatedSharedSecret().getBytes()); in concatSalt()
248 return extractResponse.getBytes(); in extract()
DObliviousHttpGateway.java140 return decrypted.getBytes(); in decrypt()
236 .getBytes(StandardCharsets.US_ASCII); in encrypt()
246 byte[] salt = concatByteArrays(encapsulatedSharedSecret.getBytes(), responseNonce); in encrypt()
250 byte[] prk = extract(jniWrapper, messageDigest, secret.getBytes(), salt); 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()
268 hkdfKeyResponse.getBytes(), in encrypt()
269 hkdfNonceResponse.getBytes(), in encrypt()
283 return extractResponse.getBytes(); in extract()
348 .getBytes(StandardCharsets.US_ASCII); in createRecipientKeyInfo()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/
DConfigParserTest.java130 "application/x-wifi-config", configStr.getBytes()); in parseConfigFile()
143 "application/wifi-config", configStr.getBytes())); in parseConfigFileWithInvalidMimeType()
155 "application/x-wifi-config", configStr.getBytes())); in parseConfigFileWithUnencodedData()
167 "application/x-wifi-config", configStr.getBytes())); in parseConfigFileWithInvalidPart()
179 "application/x-wifi-config", configStr.getBytes())); in parseConfigFileWithMissingBoundary()
192 "application/x-wifi-config", configStr.getBytes())); in parseConfigFileWithInvalidContentType()
204 "application/x-wifi-config", configStr.getBytes())); in parseConfigFileWithoutPasspointProfile()
219 "application/x-wifi-config", configStr.getBytes()); in parseConfigFileWithUpdateIdentifier()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DMsrpSerializer.java53 outputStream.write(chunk.transactionId().getBytes()); in writeRequestLine()
57 outputStream.write(chunk.method().name().getBytes(UTF_8)); in writeRequestLine()
60 (chunk.responseCode() + " " + chunk.responseReason()).getBytes(UTF_8)); in writeRequestLine()
68 outputStream.write(header.name().getBytes(UTF_8)); in writeHeader()
70 outputStream.write(header.value().getBytes(UTF_8)); in writeHeader()
77 outputStream.write(chunk.transactionId().getBytes(UTF_8)); in writeEndLine()
DMsrpConstants.java25 public static final byte[] HEADER_DELIMITER_BYTES = ": ".getBytes();
27 public static final byte[] MSRP_PROTOCOL_BYTES = MSRP_PROTOCOL.getBytes(UTF_8);
29 public static final byte[] NEW_LINE_BYTES = NEW_LINE.getBytes(UTF_8);
31 public static final byte[] END_MSRP_MSG_BYTES = END_MSRP_MSG.getBytes(UTF_8);
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/examplestore/
DExampleConsumptionRecorderTest.java45 byte[] token1 = "token1".getBytes(Charset.defaultCharset()); in testIncrementSameTaskNameAndCriteria()
49 byte[] token2 = "token2".getBytes(Charset.defaultCharset()); in testIncrementSameTaskNameAndCriteria()
67 byte[] token1 = "token1".getBytes(Charset.defaultCharset()); in testIncrementWithCollectionUri()
71 byte[] token2 = "token2".getBytes(Charset.defaultCharset()); in testIncrementWithCollectionUri()
89 byte[] token1 = "token1".getBytes(Charset.defaultCharset()); in testIncrementDifferentTaskName()
94 byte[] token2 = "token2".getBytes(Charset.defaultCharset()); in testIncrementDifferentTaskName()
/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/Uwb/service/java/com/android/server/uwb/params/
DTlvUtil.java23 public static final byte[] getBytes(byte data) { in getBytes() method in TlvUtil
28 public static final byte[] getBytes(short data) { in getBytes() method in TlvUtil
40 public static final byte[] getBytes(int data) { in getBytes() method in TlvUtil
52 public static final byte[] getBytes(long data) { in getBytes() method in TlvUtil
72 public static final byte[] getBytes(int data, int start, int length) { in getBytes() method in TlvUtil
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/
DUpdateParameter.java327 if (mServerUri.getBytes(StandardCharsets.UTF_8).length > MAX_URI_BYTES) { in validate()
329 + mServerUri.getBytes(StandardCharsets.UTF_8).length); in validate()
337 if (mUsername.getBytes(StandardCharsets.UTF_8).length > MAX_USERNAME_BYTES) { in validate()
339 + mUsername.getBytes(StandardCharsets.UTF_8).length); in validate()
347 if (mBase64EncodedPassword.getBytes(StandardCharsets.UTF_8).length > MAX_PASSWORD_BYTES) { in validate()
349 + mBase64EncodedPassword.getBytes(StandardCharsets.UTF_8).length); in validate()
363 if (mTrustRootCertUrl.getBytes(StandardCharsets.UTF_8).length > MAX_URL_BYTES) { in validate()
365 + mTrustRootCertUrl.getBytes(StandardCharsets.UTF_8).length); in validate()
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/http/
DHttpClientTest.java84 InputStream mockStream = new ByteArrayInputStream(successMessage.getBytes(UTF_8)); in testPerformGetRequestSuccess()
98 assertThat(response.getPayload()).isEqualTo(successMessage.getBytes(UTF_8)); in testPerformGetRequestSuccess()
104 InputStream mockStream = new ByteArrayInputStream(failureMessage.getBytes(UTF_8)); in testPerformGetRequestFails()
116 assertThat(response.getPayload()).isEqualTo(failureMessage.getBytes(UTF_8)); in testPerformGetRequestFails()
123 .then(invocation -> new ByteArrayInputStream(failureMessage.getBytes(UTF_8))); in testPerformGetRequestFailsWithRetry()
136 assertThat(response.getPayload()).isEqualTo(failureMessage.getBytes(UTF_8)); in testPerformGetRequestFailsWithRetry()
142 InputStream mockStream = new ByteArrayInputStream(failureMessage.getBytes(UTF_8)); in testPerformGetRequestSuccessWithRetry()
183 "payload".getBytes(UTF_8)); in testPerformPostRequestSuccess()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/signature/
DThreadUnsafeByteArrayOutputStreamTest.java51 assertThat(mOutputStream.getBytes()).isEqualTo(data); in testWriteBytes()
57 assertThat(mOutputStream.getBytes()).isEqualTo(new byte[] {1}); in testWriteSingleByte()
65 assertThat(mOutputStream.getBytes().length).isEqualTo(100000); in testCapacityExpansion()
72 byte[] retrievedData = mOutputStream.getBytes(); in testGetBytesReturnsCopy()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/
DAggregateCryptoConverterTest.java441 PLAIN_TEXT.getBytes(), in testEncryptWithHpke_successfully()
442 SHARED_INFO.getBytes()); in testEncryptWithHpke_successfully()
448 AggregateCryptoFixture.getPrivateKey(), encoded, SHARED_INFO.getBytes()); in testEncryptWithHpke_successfully()
457 "".getBytes(), PLAIN_TEXT.getBytes(), SHARED_INFO.getBytes()); in testEncryptWithHpke_invalidPublicKey()
463 String encoded = AggregateCryptoConverter.encodeWithBase64("-".getBytes()); in testEncodeWithBase64_successfully()
472 ? AggregateCryptoFixture.getSharedInfoPrefix().getBytes() in assertEncryptedPayload()
473 : (AggregateCryptoFixture.getSharedInfoPrefix() + sharedInfo).getBytes(); in assertEncryptedPayload()
535 1, ((ByteString) map.get(new UnicodeString(name))).getBytes())); in isFound()
540 .getBytes() in getBytesLength()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/bhttp/
DRequestControlData.java69 byte[] method = getMethod().getBytes(StandardCharsets.UTF_8); in knownLengthSerialize()
70 byte[] scheme = getScheme().getBytes(StandardCharsets.UTF_8); in knownLengthSerialize()
71 byte[] authority = getAuthority().getBytes(StandardCharsets.UTF_8); in knownLengthSerialize()
72 byte[] path = getPath().getBytes(StandardCharsets.UTF_8); in knownLengthSerialize()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java98 private static final byte[] TEST_BYTE_ARRAY = "TEST_VALUE".getBytes();
410 byte[] value = "input value".getBytes(); in testSetGetCustomMeta()
929 assertColumnBlobData(cursor, "manufacturer_name", testString.getBytes()); in testDatabaseMigration_101_102()
930 assertColumnBlobData(cursor, "model_name", testString.getBytes()); in testDatabaseMigration_101_102()
931 assertColumnBlobData(cursor, "software_version", testString.getBytes()); in testDatabaseMigration_101_102()
932 assertColumnBlobData(cursor, "hardware_version", testString.getBytes()); in testDatabaseMigration_101_102()
933 assertColumnBlobData(cursor, "companion_app", testString.getBytes()); in testDatabaseMigration_101_102()
934 assertColumnBlobData(cursor, "main_icon", testString.getBytes()); in testDatabaseMigration_101_102()
935 assertColumnBlobData(cursor, "is_untethered_headset", testString.getBytes()); in testDatabaseMigration_101_102()
936 assertColumnBlobData(cursor, "untethered_left_icon", testString.getBytes()); in testDatabaseMigration_101_102()
[all …]

12345678910>>...28