/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | FileBridgeTest.java | 90 client.write("meow".getBytes(StandardCharsets.UTF_8)); 92 assertContents("meow".getBytes(StandardCharsets.UTF_8)); 97 client.write("cake".getBytes(StandardCharsets.UTF_8)); 100 assertContents("cake".getBytes(StandardCharsets.UTF_8)); 105 client.write("meow".getBytes(StandardCharsets.UTF_8)); 107 client.write("cake".getBytes(StandardCharsets.UTF_8)); 109 assertContents("meowcake".getBytes(StandardCharsets.UTF_8)); 121 client.write("meow".getBytes(StandardCharsets.UTF_8)); 124 client.write("cake".getBytes(StandardCharsets.UTF_8)); 128 assertContents("meow".getBytes(StandardCharset [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
H A D | BackupUtilsTest.java | 37 sigs[i] = new Signature(signatures[i].getBytes()); 53 "abc".getBytes())); 55 "abc".getBytes(), "def".getBytes())); 86 final byte[] sig1 = "abc".getBytes(); 87 final byte[] sig2 = "def".getBytes(); 104 "abc".getBytes(), "def".getBytes())); 107 new Signature("abc".getBytes()), new Signature("def".getBytes())}); [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | KernelWakelockReaderTest.java | 49 public byte[] getBytes() throws Exception { method in class:KernelWakelockReaderTest.ProcFileBuilder 51 byte[] data = mStringBuilder.toString().getBytes(Charset.forName("UTF-8")); 77 byte[] buffer = new ProcFileBuilder().getBytes(); 87 .getBytes(); 103 .getBytes(); 116 .getBytes(); 131 .getBytes(); 140 .getBytes();
|
H A D | LoggingPrintStreamTest.java | 136 out.write(expected.getBytes("UTF-8")); 143 for (byte b : expected.getBytes()) { 152 out.write(expected.getBytes()); 159 byte[] bytes = expected.getBytes(); 175 out.write(toWrite.getBytes());
|
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | AttestationUtils.java | 133 Build.getSerial().getBytes(StandardCharsets.UTF_8)); 141 imei.getBytes(StandardCharsets.UTF_8)); 150 meid.getBytes(StandardCharsets.UTF_8)); 158 Build.BRAND.getBytes(StandardCharsets.UTF_8)); 160 Build.DEVICE.getBytes(StandardCharsets.UTF_8)); 162 Build.PRODUCT.getBytes(StandardCharsets.UTF_8)); 164 Build.MANUFACTURER.getBytes(StandardCharsets.UTF_8)); 166 Build.MODEL.getBytes(StandardCharsets.UTF_8));
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
H A D | IconInfoTestUtil.java | 55 out.write(TEST_LANGUAGE.getBytes(StandardCharsets.US_ASCII)); 57 writeByteArrayWithLength(out, TEST_TYPE.getBytes(StandardCharsets.US_ASCII)); 58 writeByteArrayWithLength(out, TEST_FILENAME.getBytes(StandardCharsets.UTF_8));
|
H A D | OsuProviderInfoTestUtil.java | 109 writeByteArrayWithLength(out, TEST_SERVER_URI.getBytes(StandardCharsets.UTF_8)); 122 writeByteArrayWithLength(out, TEST_NAI.getBytes(StandardCharsets.UTF_8)); 151 out.write(value.getLanguage().getBytes(StandardCharsets.US_ASCII)); 153 out.write(value.getText().getBytes(StandardCharsets.UTF_8));
|
H A D | I18NameTest.java | 52 stream.write(language.getBytes(StandardCharsets.US_ASCII)); 54 stream.write(text.getBytes(StandardCharsets.UTF_8));
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/ |
H A D | ConfigParserTest.java | 127 "application/x-wifi-config", configStr.getBytes()); 140 "application/wifi-config", configStr.getBytes())); 152 "application/x-wifi-config", configStr.getBytes())); 164 "application/x-wifi-config", configStr.getBytes())); 176 "application/x-wifi-config", configStr.getBytes())); 189 "application/x-wifi-config", configStr.getBytes())); 201 "application/x-wifi-config", configStr.getBytes()));
|
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
H A D | WifiP2pUpnpServiceRequest.java | 79 sb.append(WifiP2pServiceInfo.bin2HexStr(st.getBytes()));
|
H A D | WifiP2pDnsSdServiceInfo.java | 129 byte[] data = instanceName.getBytes(); 219 sb.append(WifiP2pServiceInfo.bin2HexStr(dnsName.getBytes())); 229 sb.append(WifiP2pServiceInfo.bin2HexStr(name.getBytes()));
|
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/ |
H A D | CertPinInstallReceiverTest.java | 131 byte[] encoded = content.getBytes(); 142 byte[] derKey = Base64.decode(TEST_KEY.getBytes(), Base64.DEFAULT); 149 byte[] derCert = Base64.decode(TEST_CERT.getBytes(), Base64.DEFAULT); 157 fw.write(content.getBytes(), 0, content.length()); 166 signer.update(content.trim().getBytes()); 167 signer.update(version.trim().getBytes()); 168 signer.update(requiredHash.getBytes()); 179 signer.update(content.trim().getBytes()); 180 signer.update(version.trim().getBytes()); 181 signer.update(requiredPrevious.trim().getBytes()); [all...] |
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/ |
H A D | UpdateParameter.java | 297 if (mServerUri.getBytes(StandardCharsets.UTF_8).length > MAX_URI_BYTES) { 299 + mServerUri.getBytes(StandardCharsets.UTF_8).length); 307 if (mUsername.getBytes(StandardCharsets.UTF_8).length > MAX_USERNAME_BYTES) { 309 + mUsername.getBytes(StandardCharsets.UTF_8).length); 317 if (mBase64EncodedPassword.getBytes(StandardCharsets.UTF_8).length > MAX_PASSWORD_BYTES) { 319 + mBase64EncodedPassword.getBytes(StandardCharsets.UTF_8).length); 333 if (mTrustRootCertUrl.getBytes(StandardCharsets.UTF_8).length > MAX_URL_BYTES) { 335 + mTrustRootCertUrl.getBytes(StandardCharsets.UTF_8).length);
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
H A D | SendReq.java | 35 setContentType("application/vnd.wap.multipart.related".getBytes()); 36 setFrom(new EncodedStringValue(PduHeaders.FROM_INSERT_ADDRESS_TOKEN_STR.getBytes())); 47 return transactionId.getBytes();
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/ |
H A D | OutputStreamTarget.java | 53 data = ByteBuffer.wrap(stringVal.getBytes());
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | SmsRawData.java | 50 public byte[] getBytes() { method in class:SmsRawData
|
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
H A D | SmsManagerPermissionTest.java | 60 MSG_CONTENTS.getBytes(), null, null);
|
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/ |
H A D | FileUtil.java | 45 fos.write(sDateFormat.format(new Date()).getBytes());
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
H A D | WifiSsidTest.java | 33 private static final byte[] TEST_SSID_BYTES = TEST_SSID.getBytes(StandardCharsets.US_ASCII);
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableString.java | 49 byte[] arr = value.getBytes(PreloadHolder.UTF8_CHARSET); 57 byte[] arr = value.getBytes(PreloadHolder.UTF8_CHARSET);
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
H A D | BackupDataTest.java | 85 writeEntity(bdo, KEY1, DATA1.getBytes()); 93 readAndVerifyEntity(bdi, KEY1, DATA1.getBytes()); 105 writeEntity(bdo, KEYS[i], DATA[i].getBytes()); 114 readAndVerifyEntity(bdi, KEYS[count], DATA[count].getBytes()); 149 writeEntity(bdo, KEYS[i], DATA[i].getBytes()); i++; 150 writeEntity(bdo, KEYS[i], DATA[i].getBytes()); i++; 161 readAndVerifyEntity(bdi, KEYS[out], DATA[out].getBytes()); out++; 163 readAndVerifyEntity(bdi, KEYS[out], DATA[out].getBytes()); out++;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | Wap230WspContentTypeTest.java | 267 out.write(testType.getBytes("US-ASCII")); 283 out.write(testType.getBytes("US-ASCII")); 451 out.write(testType.getBytes("US-ASCII")); 476 out.write(testType.getBytes("US-ASCII")); 494 out.write(testType.getBytes("US-ASCII")); 537 out.write("wdstechnology.com".getBytes("US-ASCII")); 562 out.write("wdstechnology.com".getBytes("US-ASCII")); 587 out.write("wdstechnology.com".getBytes("US-ASCII")); 655 out.write("imapc".getBytes("US-ASCII")); 676 out.write("MYPARAM".getBytes("U [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | MacAuthenticatedInputStreamTest.java | 32 private static final SecretKey HMAC_KEY_1 = new SecretKeySpec("test_key_1".getBytes(), "HMAC"); 34 private static final byte[] TEST_STRING_1 = "Hello, World!".getBytes();
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | NetworkListStoreDataTest.java | 269 return (openNetworkXml + eapNetworkXml).getBytes(StandardCharsets.UTF_8); 421 openNetwork.shared, openNetwork.creatorUid).getBytes(StandardCharsets.UTF_8); 438 .getBytes(StandardCharsets.UTF_8); 459 deserializeData(xmlString.getBytes(StandardCharsets.UTF_8), true /* shared */); 481 .getBytes(StandardCharsets.UTF_8); 507 .getBytes(StandardCharsets.UTF_8); 532 .getBytes(StandardCharsets.UTF_8); 551 .getBytes(StandardCharsets.UTF_8);
|
/frameworks/base/core/java/android/content/pm/ |
H A D | InstantAppResolveInfo.java | 170 final byte[] hostBytes = hostName.getBytes(); 177 digests.add(digest.digest(hostName.getBytes())); 180 hostName.substring(prevDot + 1, hostName.length()).getBytes(); 186 hostName.substring(prevDot + 1, hostName.length()).getBytes();
|