Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsServiceTests.java99 mService.setLockCredential("newpwd".getBytes(), CREDENTIAL_TYPE_PASSWORD, in testChangePasswordFailPrimaryUser()
100 "badpwd".getBytes(), PASSWORD_QUALITY_ALPHABETIC, PRIMARY_USER_ID, false); in testChangePasswordFailPrimaryUser()
111 mService.setLockCredential(null, CREDENTIAL_TYPE_NONE, PASSWORD.getBytes(), in testClearPasswordPrimaryUser()
121 mService.setLockCredential(firstUnifiedPassword.getBytes(), in testManagedProfileUnifiedChallenge()
141 firstUnifiedPassword.getBytes(), LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, 0, in testManagedProfileUnifiedChallenge()
157 mService.setLockCredential(secondUnifiedPassword.getBytes(), in testManagedProfileUnifiedChallenge()
158 LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, firstUnifiedPassword.getBytes(), in testManagedProfileUnifiedChallenge()
166 secondUnifiedPassword.getBytes(), PASSWORD_QUALITY_UNSPECIFIED, PRIMARY_USER_ID, in testManagedProfileUnifiedChallenge()
176 mService.setLockCredential(primaryPassword.getBytes(), in testManagedProfileSeparateChallenge()
184 mService.setLockCredential(profilePassword.getBytes(), in testManagedProfileSeparateChallenge()
[all …]
DSyntheticPasswordTests.java73 final byte[] password = "user-password".getBytes(); in testPasswordBasedSyntheticPassword()
74 final byte[] badPassword = "bad-password".getBytes(); in testPasswordBasedSyntheticPassword()
106 final byte[] password = "testPasswordMigration-password".getBytes(); in testPasswordMigration()
139 final byte[] password = "testSyntheticPasswordChangeCredential-password".getBytes(); in testSyntheticPasswordChangeCredential()
140 final byte[] newPassword = "testSyntheticPasswordChangeCredential-newpassword".getBytes(); in testSyntheticPasswordChangeCredential()
153 final byte[] password = "testSyntheticPasswordVerifyCredential-password".getBytes(); in testSyntheticPasswordVerifyCredential()
154 final byte[] badPassword = "testSyntheticPasswordVerifyCredential-badpassword".getBytes(); in testSyntheticPasswordVerifyCredential()
167 final byte[] password = "testSyntheticPasswordClearCredential-password".getBytes(); in testSyntheticPasswordClearCredential()
168 final byte[] badPassword = "testSyntheticPasswordClearCredential-newpassword".getBytes(); in testSyntheticPasswordClearCredential()
188 "testSyntheticPasswordChangeCredentialKeepsAuthSecret-password".getBytes(); in testSyntheticPasswordChangeCredentialKeepsAuthSecret()
[all …]
DCachedSyntheticPasswordTests.java62 final byte[] password = "testSyntheticPasswordClearCredential-password".getBytes(); in testSyntheticPasswordClearCredentialUntrusted()
63 final byte[] newPassword = "testSyntheticPasswordClearCredential-newpassword".getBytes(); in testSyntheticPasswordClearCredentialUntrusted()
82 final byte[] password = "testSyntheticPasswordClearCredential-password".getBytes(); in testSyntheticPasswordChangeCredentialUntrusted()
83 final byte[] newPassword = "testSyntheticPasswordClearCredential-newpassword".getBytes(); in testSyntheticPasswordChangeCredentialUntrusted()
100 "testUntrustedCredentialChangeMaintainsAuthSecret-password".getBytes(); in testUntrustedCredentialChangeMaintainsAuthSecret()
102 "testUntrustedCredentialChangeMaintainsAuthSecret-newpassword".getBytes(); in testUntrustedCredentialChangeMaintainsAuthSecret()
122 "testUntrustedCredentialChangeBlockedIfSpNotCached-password".getBytes(); in testUntrustedCredentialChangeBlockedIfSpNotCached()
124 "testUntrustedCredentialChangeBlockedIfSpNotCached-newpassword".getBytes(); in testUntrustedCredentialChangeBlockedIfSpNotCached()
DLockSettingsShellCommandTest.java90 when(mLockPatternUtils.checkPassword("1234".getBytes(), mUserId)).thenReturn(false); in testWrongPassword()
102 when(mLockPatternUtils.checkPassword("1234".getBytes(), mUserId)).thenReturn(true); in testChangePin()
106 verify(mLockPatternUtils).saveLockPassword("4321".getBytes(), "1234".getBytes(), in testChangePin()
124 when(mLockPatternUtils.checkPassword("1234".getBytes(), mUserId)).thenReturn(true); in testChangePassword()
128 verify(mLockPatternUtils).saveLockPassword("4321".getBytes(), "1234".getBytes(), in testChangePassword()
150 verify(mLockPatternUtils).saveLockPattern(stringToPattern("4321"), "1234".getBytes(), in testChangePattern()
172 verify(mLockPatternUtils).clearLock("1234".getBytes(), mUserId); in testClear()
/frameworks/base/core/tests/coretests/src/android/app/admin/
DPasswordMetricsTest.java103 PasswordMetrics.computeForPassword("6B~0z1Z3*8A".getBytes()); in testComputeForPassword_metrics()
116 PasswordMetrics.computeForPassword("a1".getBytes()).quality); in testComputeForPassword_quality()
118 PasswordMetrics.computeForPassword("a".getBytes()).quality); in testComputeForPassword_quality()
120 PasswordMetrics.computeForPassword("*~&%$".getBytes()).quality); in testComputeForPassword_quality()
122 PasswordMetrics.computeForPassword("1".getBytes()).quality); in testComputeForPassword_quality()
125 PasswordMetrics.computeForPassword("1234".getBytes()).quality); in testComputeForPassword_quality()
127 PasswordMetrics.computeForPassword("".getBytes()).quality); in testComputeForPassword_quality()
132 assertEquals(4, PasswordMetrics.maxLengthSequence("1234".getBytes())); in testMaxLengthSequence()
133 assertEquals(5, PasswordMetrics.maxLengthSequence("13579".getBytes())); in testMaxLengthSequence()
134 assertEquals(4, PasswordMetrics.maxLengthSequence("1234abd".getBytes())); in testMaxLengthSequence()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DFileBridgeTest.java90 client.write("meow".getBytes(StandardCharsets.UTF_8)); in testWriteNoSync()
92 assertContents("meow".getBytes(StandardCharsets.UTF_8)); in testWriteNoSync()
97 client.write("cake".getBytes(StandardCharsets.UTF_8)); in testWriteSync()
100 assertContents("cake".getBytes(StandardCharsets.UTF_8)); in testWriteSync()
105 client.write("meow".getBytes(StandardCharsets.UTF_8)); in testWriteSyncWrite()
107 client.write("cake".getBytes(StandardCharsets.UTF_8)); in testWriteSyncWrite()
109 assertContents("meowcake".getBytes(StandardCharsets.UTF_8)); in testWriteSyncWrite()
121 client.write("meow".getBytes(StandardCharsets.UTF_8)); in testWriteAfterClose()
124 client.write("cake".getBytes(StandardCharsets.UTF_8)); in testWriteAfterClose()
128 assertContents("meow".getBytes(StandardCharsets.UTF_8)); in testWriteAfterClose()
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DCsvParserTest.java64 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEmpty()
76 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testOnlyNewline()
88 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testTwoLines()
103 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedEmpty()
116 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedText()
129 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedQuotes()
142 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedCommas()
155 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedQuotesAndCommas()
168 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testNoNewline()
181 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testNoNewlineWithCommas()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelWakelockReaderTest.java50 public byte[] getBytes() throws Exception { in getBytes() method in KernelWakelockReaderTest.ProcFileBuilder
52 byte[] data = mStringBuilder.toString().getBytes(Charset.forName("UTF-8")); in getBytes()
78 byte[] buffer = new ProcFileBuilder().getBytes(); in testOnlyHeader()
88 .getBytes(); in testOneWakelock()
104 .getBytes(); in testTwoWakelocks()
117 .getBytes(); in testDuplicateWakelocksAccumulate()
132 .getBytes(); in testWakelocksBecomeStale()
141 .getBytes(); in testWakelocksBecomeStale()
DProcTimeInStateReaderTest.java60 Files.write(initialTimeInStateFile, "1 2\n3 4\n5 6\n7 8\n".getBytes()); in testSimple()
77 Files.write(initialTimeInStateFile, "header1\n1 2\nheader2:\n3 4\n5 6\n7 8\n".getBytes()); in testHeaderFormat()
93 Files.write(initialTimeInStateFile, "1 2\n3 4\n5 6\n7 8\n".getBytes()); in testDifferentFile()
97 Files.write(timeInStateFile, "1 20\n3 40\n5 60\n7 80\n".getBytes()); in testDifferentFile()
107 Files.write(initialTimeInStateFile, "1 2\n3 4\n5 6\n7 8\n".getBytes()); in testWrongLength()
111 Files.write(timeInStateFile, "1 2\n3 4\n5 6\n".getBytes()); in testWrongLength()
118 Files.write(initialTimeInStateFile, "".getBytes()); in testEmptyInitialFails()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/cdc/
DRabinFingerprint64Test.java54 computeFingerprintAtPosition(getBytes(TEST_STRINGS.get(0)), WINDOW_SIZE - 1); in computeFingerprint64_forSameWindow_returnsSameFingerprint()
57 getBytes(TEST_STRINGS.get(1), TEST_STRINGS.get(0)), WINDOW_SIZE * 2 - 1); in computeFingerprint64_forSameWindow_returnsSameFingerprint()
60 getBytes(TEST_STRINGS.get(2), TEST_STRINGS.get(3), TEST_STRINGS.get(0)), in computeFingerprint64_forSameWindow_returnsSameFingerprint()
65 getBytes(stub, TEST_STRINGS.get(0)), WINDOW_SIZE + stub.length() - 1); in computeFingerprint64_forSameWindow_returnsSameFingerprint()
99 private byte[] getBytes(String... strings) { in getBytes() method in RabinFingerprint64Test
104 return sb.toString().getBytes(UTF_8); in getBytes()
130 return computeFingerprintAtPosition(s.getBytes(UTF_8), WINDOW_SIZE - 1); in computeFingerprintOf()
DContentDefinedChunkerTest.java51 private static final byte[] CHUNK_BOUNDARY_BYTES = CHUNK_BOUNDARY.getBytes(UTF_8);
122 (CHUNK_1 + CHUNK_BOUNDARY + CHUNK_2 + CHUNK_BOUNDARY + CHUNK_3).getBytes(UTF_8); in chunkify_withLargeChunks_splitsIntoChunksAcrossBoundaries()
137 (SMALL_CHUNK + CHUNK_BOUNDARY + CHUNK_2 + CHUNK_BOUNDARY + CHUNK_3).getBytes(UTF_8); in chunkify_withSmallChunks_combinesChunksUntilMinSize()
153 Arrays.fill(largeInput, "a".getBytes(UTF_8)[0]); in chunkify_doesNotProduceChunksLargerThanMaxSize()
160 Arrays.fill(expectedChunkBytes, "a".getBytes(UTF_8)[0]); in chunkify_doesNotProduceChunksLargerThanMaxSize()
183 byte[] input = (SMALL_CHUNK + CHUNK_BOUNDARY + CHUNK_2).getBytes(UTF_8); in chunkify_withInputStreamReturningZeroAvailability_returnsChunks()
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
DConfigParserTest.java128 "application/x-wifi-config", configStr.getBytes()); in parseConfigFile()
141 "application/wifi-config", configStr.getBytes())); in parseConfigFileWithInvalidMimeType()
153 "application/x-wifi-config", configStr.getBytes())); in parseConfigFileWithUnencodedData()
165 "application/x-wifi-config", configStr.getBytes())); in parseConfigFileWithInvalidPart()
177 "application/x-wifi-config", configStr.getBytes())); in parseConfigFileWithMissingBoundary()
190 "application/x-wifi-config", configStr.getBytes())); in parseConfigFileWithInvalidContentType()
202 "application/x-wifi-config", configStr.getBytes())); in parseConfigFileWithoutPasspointProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DSecureBoxTest.java70 private static final byte[] VAULT_CHALLENGE = getBytes("Not a real vault challenge");
71 private static final byte[] THM_KF_HASH = getBytes("12345678901234567890123456789012");
95 private static final byte[] KEY_CLAIMANT = getBytes("asdfasdfasdfasdf");
124 private static final byte[] TEST_SHARED_SECRET = getBytes("TEST_SHARED_SECRET");
125 private static final byte[] TEST_HEADER = getBytes("TEST_HEADER");
126 private static final byte[] TEST_PAYLOAD = getBytes("TEST_PAYLOAD");
179 SecureBox.concat(getBytes("V1 KF_claim"), VAULT_PARAMS, VAULT_CHALLENGE), in decryptRecoveryClaim()
189 SecureBox.concat(getBytes("V1 THM_encrypted_recovery_key"), VAULT_PARAMS), in decryptRecoveryKey_doesNotThrowForValidAuthenticationTag()
359 private static byte[] getBytes(String str) { in getBytes() method in SecureBoxTest
360 return str.getBytes(StandardCharsets.UTF_8); in getBytes()
DKeySyncTaskTest.java97 "mdata".getBytes(StandardCharsets.UTF_8);
102 "V1 THM_encrypted_recovery_key".getBytes(StandardCharsets.UTF_8);
142 TEST_CREDENTIAL.getBytes(), in setUp()
166 assertTrue(KeySyncTask.isPin("3298432574398654376547".getBytes())); in isPin_isTrueForNumericString()
171 assertFalse(KeySyncTask.isPin("398i54369548654".getBytes())); in isPin_isFalseForStringContainingLetters()
176 assertFalse(KeySyncTask.isPin("-3987543643".getBytes())); in isPin_isFalseForStringContainingSymbols()
185 KeySyncTask.hashCredentialsBySaltedSha256(salt, credentials.getBytes()), in hashCredentialsBySaltedSha256_returnsSameHashForSameCredentialsAndSalt()
186 KeySyncTask.hashCredentialsBySaltedSha256(salt, credentials.getBytes())); in hashCredentialsBySaltedSha256_returnsSameHashForSameCredentialsAndSalt()
195 KeySyncTask.hashCredentialsBySaltedSha256(salt, "password1234".getBytes()), in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentCredentials()
196 KeySyncTask.hashCredentialsBySaltedSha256(salt, "password12345".getBytes()))); in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentCredentials()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java131 byte[] encoded = content.getBytes(); in getCurrentHash()
142 byte[] derKey = Base64.decode(TEST_KEY.getBytes(), Base64.DEFAULT); in createKey()
149 byte[] derCert = Base64.decode(TEST_CERT.getBytes(), Base64.DEFAULT); in createCertificate()
157 fw.write(content.getBytes(), 0, content.length()); in makeTemporaryContentFile()
166 signer.update(content.trim().getBytes()); in createSignature()
167 signer.update(version.trim().getBytes()); in createSignature()
168 signer.update(requiredHash.getBytes()); in createSignature()
179 signer.update(content.trim().getBytes()); in verifySignature()
180 signer.update(version.trim().getBytes()); in verifySignature()
181 signer.update(requiredPrevious.trim().getBytes()); in verifySignature()
[all …]
/frameworks/base/keystore/java/android/security/keystore/
DAttestationUtils.java179 Build.getSerial().getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
187 imei.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
196 meid.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
204 brand.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
206 Build.DEVICE.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
208 Build.PRODUCT.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
210 Build.MANUFACTURER.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
212 Build.MODEL.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTracingTest.java164 "TEST_WHERE".getBytes(StandardCharsets.UTF_8))); in tracing_endsUpInFile()
166 "TEST_WM_PROTO".getBytes(StandardCharsets.UTF_8))); in tracing_endsUpInFile()
188 byte[] haystack = "hello_world".getBytes(StandardCharsets.UTF_8); in test_containsBytes()
190 "hello".getBytes(StandardCharsets.UTF_8))); in test_containsBytes()
192 "world".getBytes(StandardCharsets.UTF_8))); in test_containsBytes()
194 "world".getBytes(StandardCharsets.UTF_8))); in test_containsBytes()
196 "world_".getBytes(StandardCharsets.UTF_8))); in test_containsBytes()
198 "absent".getBytes(StandardCharsets.UTF_8))); in test_containsBytes()
DWindowTraceBufferTest.java96 byte[] toWrite1Bytes = toWrite1.getBytes(); in test_addItemMustOverwriteOne()
101 byte[] toWrite2Bytes = toWrite2.getBytes(); in test_addItemMustOverwriteOne()
108 byte[] toWrite3Bytes = toWrite3.getBytes(); in test_addItemMustOverwriteOne()
136 byte[] toWriteSmall1Bytes = toWriteSmall1.getBytes(); in test_addItemMustOverwriteMultiple()
141 byte[] toWriteSmall2Bytes = toWriteSmall2.getBytes(); in test_addItemMustOverwriteMultiple()
148 byte[] toWriteBigBytes = toWriteBig.getBytes(); in test_addItemMustOverwriteMultiple()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java327 Files.write(getStateFile(mTransport, PM_PACKAGE), "pmState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
328 Files.write(getStateFile(mTransport, PACKAGE_1), "packageState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
333 .isEqualTo("pmState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
335 .isEqualTo("packageState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
455 Files.write(getStateFile(mTransport, PACKAGE_1), "oldState".getBytes()); in testRunTask_whenPackageWithOldStateAndIncremental_passesOldStateToAgent()
459 assertThat(agentMock.oldState).isEqualTo("oldState".getBytes()); in testRunTask_whenPackageWithOldStateAndIncremental_passesOldStateToAgent()
468 Files.write(getStateFile(mTransport, PACKAGE_1), "oldState".getBytes()); in testRunTask_whenPackageWithOldStateAndNonIncremental_passesEmptyOldStateToAgent()
523 Files.write(getStateFile(mTransport, PACKAGE_2), "package2State".getBytes()); in testRunTask_whenOnePackageAndNoPmState_initializesTransportAndResetsState()
542 Files.write(getStateFile(mTransport, PACKAGE_2), "package2State".getBytes()); in testRunTask_whenOnePackageAndWithPmState_doesNotInitializeTransportOrResetState()
548 .isEqualTo("package2State".getBytes()); in testRunTask_whenOnePackageAndWithPmState_doesNotInitializeTransportOrResetState()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsShellCommand.java193 byte[] oldBytes = mOld != null ? mOld.getBytes() : null; in runSetPattern()
199 byte[] newBytes = mNew != null ? mNew.getBytes() : null; in runSetPassword()
200 byte[] oldBytes = mOld != null ? mOld.getBytes() : null; in runSetPassword()
207 byte[] newBytes = mNew != null ? mNew.getBytes() : null; in runSetPin()
208 byte[] oldBytes = mOld != null ? mOld.getBytes() : null; in runSetPin()
215 byte[] oldBytes = mOld != null ? mOld.getBytes() : null; in runClear()
243 byte[] passwordBytes = mOld != null ? mOld.getBytes() : null; in checkCredential()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
DCertUtilsTest.java124 assertThat(CertUtils.decodeBase64("VEVTVA==")).isEqualTo("TEST".getBytes(UTF_8)); in decodeBase64_succeeds()
139 Element root = CertUtils.getXmlRootNode(XML_STR.getBytes(UTF_8)); in getXmlRootNode_succeeds()
150 Element root = CertUtils.getXmlRootNode(XML_STR.getBytes(UTF_8)); in getXmlNodeContents_singleLevel_succeeds()
157 Element root = CertUtils.getXmlRootNode(XML_STR.getBytes(UTF_8)); in getXmlNodeContents_multipleLevels_succeeds()
164 Element root = CertUtils.getXmlRootNode(XML_STR.getBytes(UTF_8)); in getXmlNodeContents_mustExistFalse_succeedsIfNotExist()
173 Element root = CertUtils.getXmlRootNode(XML_STR.getBytes(UTF_8)); in getXmlNodeContents_mustExistAtLeastOne_throwsIfNotExist()
186 Element root = CertUtils.getXmlRootNode(XML_STR.getBytes(UTF_8)); in getXmlNodeContents_mustExistExactlyOne_throwsIfNotExist()
199 Element root = CertUtils.getXmlRootNode(XML_STR.getBytes(UTF_8)); in getXmlNodeContents_mustExistExactlyOne_throwsIfMultipleExist()
214 SIGNED_STR.getBytes(UTF_8)); in verifyRsaSha256Signature_succeeds()
219 byte[] modifiedBytes = SIGNED_STR.getBytes(UTF_8); in verifyRsaSha256Signature_throwsIfMismatchSignature()
[all …]
/frameworks/base/wifi/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()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunk/
DChunkTest.java54 byte[] protoBytes = out.getBytes(); in testReadFromProto_readsCorrectly()
71 byte[] protoBytes = out.getBytes(); in testReadFromProto_whenFieldsWrittenInReversedOrder_readsCorrectly()
95 byte[] protoBytes = out.getBytes(); in testReadFromProto_whenOnlyHashSet_returnsChunkWithOnlyHash()
109 byte[] protoBytes = out.getBytes(); in testReadFromProto_whenOnlyLengthSet_returnsChunkWithOnlyLength()
120 Arrays.copyOf(name.getBytes(Charsets.UTF_8), ChunkHash.HASH_LENGTH_BYTES)); in getHash()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtils.java54 "V1 THM_encrypted_recovery_key".getBytes(StandardCharsets.UTF_8);
56 "V1 locally_encrypted_recovery_key".getBytes(StandardCharsets.UTF_8);
58 "V1 encrypted_application_key".getBytes(StandardCharsets.UTF_8);
60 "V1 KF_claim".getBytes(StandardCharsets.UTF_8);
62 "V1 reencrypted_recovery_key".getBytes(StandardCharsets.UTF_8);
64 private static final byte[] THM_KF_HASH_PREFIX = "THM_KF_hash".getBytes(StandardCharsets.UTF_8);
/frameworks/opt/net/wifi/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()
58 writeByteArrayWithLength(out, TEST_FILENAME.getBytes(StandardCharsets.UTF_8)); in getTestData()

12345678910>>...14