/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/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/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/base/services/core/java/com/android/server/ |
H A D | SyntheticPasswordManager.java | 92 private static final byte[] PERSONALISATION_SECDISCARDABLE = "secdiscardable-transform".getBytes(); 93 private static final byte[] PERSONALIZATION_KEY_STORE_PASSWORD = "keystore-password".getBytes(); 94 private static final byte[] PERSONALIZATION_USER_GK_AUTH = "user-gk-authentication".getBytes(); 95 private static final byte[] PERSONALIZATION_SP_GK_AUTH = "sp-gk-authentication".getBytes(); 96 private static final byte[] PERSONALIZATION_FBE_KEY = "fbe-key".getBytes(); 97 private static final byte[] PERSONALIZATION_SP_SPLIT = "sp-split".getBytes(); 98 private static final byte[] PERSONALIZATION_E0 = "e0-encryption".getBytes(); 118 PERSONALIZATION_KEY_STORE_PASSWORD, syntheticPassword.getBytes())); 123 syntheticPassword.getBytes()); 128 syntheticPassword.getBytes()); [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | SyntheticPasswordTests.java | 248 long handle = mService.addEscrowToken(TOKEN.getBytes(), PRIMARY_USER_ID); 254 mService.setLockCredentialWithToken(PATTERN, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, handle, TOKEN.getBytes(), PRIMARY_USER_ID); 268 long handle = mService.addEscrowToken(TOKEN.getBytes(), PRIMARY_USER_ID); 274 mService.setLockCredentialWithToken(null, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, handle, TOKEN.getBytes(), PRIMARY_USER_ID); 275 mService.setLockCredentialWithToken(PATTERN, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, handle, TOKEN.getBytes(), PRIMARY_USER_ID); 290 long handle = mService.addEscrowToken(TOKEN.getBytes(), PRIMARY_USER_ID); 298 mService.setLockCredentialWithToken(NEWPASSWORD, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, handle, TOKEN.getBytes(), PRIMARY_USER_ID); 308 long handle = mService.addEscrowToken(TOKEN.getBytes(), PRIMARY_USER_ID); 317 long handle = mService.addEscrowToken(TOKEN.getBytes(), PRIMARY_USER_ID); 332 long handle = mService.addEscrowToken(TOKEN.getBytes(), PRIMARY_USER_I [all...] |
/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/hotspot2/anqp/ |
H A D | I18NameTest.java | 52 stream.write(language.getBytes(StandardCharsets.US_ASCII)); 54 stream.write(text.getBytes(StandardCharsets.UTF_8));
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
H A D | WifiAwareStateManagerTest.java | 1050 .setServiceSpecificInfo(ssi.getBytes()) 1085 mDut.onMatchNotification(subscribeId, requestorId, peerMac, peerSsi.getBytes(), 1086 peerMatchFilter.getBytes()); 1088 inOrder.verify(mockSessionCallback).onMatch(requestorId, peerSsi.getBytes(), 1089 peerMatchFilter.getBytes()); 1092 mDut.onMessageReceivedNotification(subscribeId, requestorId, peerMac, peerMsg.getBytes()); 1094 inOrder.verify(mockSessionCallback).onMessageReceived(requestorId, peerMsg.getBytes()); 1097 mDut.sendMessage(clientId, sessionId.getValue(), requestorId, ssi.getBytes(), messageId, 0); 1100 eq(requestorId), eq(peerMac), eq(ssi.getBytes()), eq(messageId)); 1106 mDut.sendMessage(clientId, sessionId.getValue(), requestorId, ssi.getBytes(), messageId [all...] |
/frameworks/base/wifi/tests/src/android/net/wifi/aware/ |
H A D | WifiAwareManagerTest.java | 294 publishSession.getValue().sendMessage(peerHandle, messageId, string1.getBytes()); 295 sessionProxyCallback.getValue().onMatch(peerHandle.peerId, string1.getBytes(), matchFilter); 296 sessionProxyCallback.getValue().onMessageReceived(peerHandle.peerId, string1.getBytes()); 302 eq(peerHandle.peerId), eq(string1.getBytes()), eq(messageId), eq(0)); 304 eq(string1.getBytes()), 318 eq(string1.getBytes())); 442 subscribeSession.getValue().sendMessage(peerHandle, messageId, string1.getBytes()); 443 sessionProxyCallback.getValue().onMatch(peerHandle.peerId, string1.getBytes(), matchFilter); 444 sessionProxyCallback.getValue().onMessageReceived(peerHandle.peerId, string1.getBytes()); 450 eq(peerHandle.peerId), eq(string1.getBytes()), e [all...] |
/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();
|