Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/core/tests/coretests/src/android/app/admin/
DPasswordMetricsTest.java97 PasswordMetrics.computeForPassword("6B~0z1Z3*8A".getBytes()); in testComputeForPassword_metrics()
109 assertEquals(4, PasswordMetrics.maxLengthSequence("1234".getBytes())); in testMaxLengthSequence()
110 assertEquals(5, PasswordMetrics.maxLengthSequence("13579".getBytes())); in testMaxLengthSequence()
111 assertEquals(4, PasswordMetrics.maxLengthSequence("1234abd".getBytes())); in testMaxLengthSequence()
112 assertEquals(3, PasswordMetrics.maxLengthSequence("aabc".getBytes())); in testMaxLengthSequence()
113 assertEquals(1, PasswordMetrics.maxLengthSequence("qwertyuio".getBytes())); in testMaxLengthSequence()
114 assertEquals(3, PasswordMetrics.maxLengthSequence("@ABC".getBytes())); in testMaxLengthSequence()
116 assertEquals(4, PasswordMetrics.maxLengthSequence(";;;;".getBytes())); in testMaxLengthSequence()
118 assertEquals(1, PasswordMetrics.maxLengthSequence(":;<=>".getBytes())); in testMaxLengthSequence()
136 PasswordMetrics.computeForPassword("1234".getBytes()).determineComplexity()); in testDetermineComplexity_lowNumeric()
[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/services/tests/servicestests/src/com/android/server/integrity/parser/
DBinaryFileOperationsTest.java24 import static com.android.server.integrity.utils.TestUtils.getBytes;
52 getBytes( in testGetStringValue()
66 getBytes( in testGetHashedStringValue()
76 APP_CERTIFICATE.getBytes(StandardCharsets.UTF_8))); in testGetHashedStringValue()
81 byte[] ruleBytes = getBytes(getValueBits(PACKAGE_NAME)); in testGetStringValue_withSizeAndHashingInfo()
93 byte[] ruleBytes = getBytes(getBits(randomValue, /* numOfBits= */ 32)); in testGetIntValue()
102 byte[] ruleBytes = getBytes(booleanValue); in testGetBooleanValue_true()
111 byte[] ruleBytes = getBytes(booleanValue); in testGetBooleanValue_false()
DRuleBinaryParserTest.java31 import static com.android.server.integrity.utils.TestUtils.getBytes;
95 getBytes(getBits(DEFAULT_FORMAT_VERSION, FORMAT_VERSION_BITS));
115 byte[] ruleBytes = getBytes(ruleBits); in testBinaryStream_validCompoundFormula_noIndexing()
154 byte[] ruleBytes = getBytes(ruleBits); in testBinaryString_validCompoundFormula_notConnector_noIndexing()
199 byte[] ruleBytes = getBytes(ruleBits); in testBinaryString_validCompoundFormula_andConnector_noIndexing()
247 byte[] ruleBytes = getBytes(ruleBits); in testBinaryString_validCompoundFormula_orConnector_noIndexing()
286 byte[] ruleBytes = getBytes(ruleBits); in testBinaryString_validAtomicFormula_stringValue_noIndexing()
318 byte[] ruleBytes = getBytes(ruleBits); in testBinaryString_validAtomicFormula_hashedValue_noIndexing()
330 appCertificate.getBytes(StandardCharsets.UTF_8)), in testBinaryString_validAtomicFormula_hashedValue_noIndexing()
350 byte[] ruleBytes = getBytes(ruleBits); in testBinaryString_validAtomicFormula_integerValue_noIndexing()
[all …]
/frameworks/base/packages/BackupEncryption/test/robolectric/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/core/tests/coretests/src/com/android/internal/os/
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()
DKernelWakelockReaderTest.java52 public byte[] getBytes() throws Exception { in getBytes() method in KernelWakelockReaderTest.ProcFileBuilder
54 byte[] data = mStringBuilder.toString().getBytes(Charset.forName("UTF-8")); in getBytes()
110 byte[] buffer = new ProcFileBuilder().getBytes(); in testOnlyHeader()
122 .getBytes(); in testOneWakelock()
141 .getBytes(); in testTwoWakelocks()
157 .getBytes(); in testDuplicateWakelocksAccumulate()
176 .getBytes(); in testWakelocksBecomeStale()
185 .getBytes(); in testWakelocksBecomeStale()
291 .getBytes(); in testAggregateStatsNoNativeWakelocks()
330 .getBytes(); in testAggregateStatsBothKernelAndNativeWakelocks()
[all …]
/frameworks/base/wifi/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()
/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()
170 KeySyncTask.hashCredentialsBySaltedSha256(salt, credentials.getBytes()), in hashCredentialsBySaltedSha256_returnsSameHashForSameCredentialsAndSalt()
171 KeySyncTask.hashCredentialsBySaltedSha256(salt, credentials.getBytes())); in hashCredentialsBySaltedSha256_returnsSameHashForSameCredentialsAndSalt()
180 KeySyncTask.hashCredentialsBySaltedSha256(salt, "password1234".getBytes()), in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentCredentials()
181 KeySyncTask.hashCredentialsBySaltedSha256(salt, "password12345".getBytes()))); in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentCredentials()
191 credentials.getBytes()), in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentSalt()
193 credentials.getBytes()))); in hashCredentialsBySaltedSha256_returnsDifferentHashForDifferentSalt()
201 "4567".getBytes()), in hashCredentialsBySaltedSha256_returnsDifferentHashEvenIfConcatIsSame()
[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/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()
/frameworks/base/core/java/com/android/internal/util/
DTraceBuffer.java67 byte[] getBytes(P proto); in getBytes() method
87 public byte[] getBytes(ProtoOutputStream proto) { in getBytes() method in TraceBuffer.ProtoOutputStreamProvider
88 return proto.getBytes(); in getBytes()
94 os.write(encapsulatingProto.getBytes()); in write()
96 byte[] protoBytes = protoOutputStream.getBytes(); in write()
153 .anyMatch(p -> Arrays.equals(mProtoProvider.getBytes(p), other)); in contains()
/frameworks/base/keystore/java/android/security/keystore/
DAttestationUtils.java187 Build.getSerial().getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
195 imei.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
204 meid.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
216 brand.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
218 Build.DEVICE.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
220 Build.PRODUCT.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
222 Build.MANUFACTURER.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
224 Build.MODEL.getBytes(StandardCharsets.UTF_8)); in prepareAttestationArguments()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java330 Files.write(getStateFile(mTransport, PM_PACKAGE), "pmState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
331 Files.write(getStateFile(mTransport, PACKAGE_1), "packageState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
336 .isEqualTo("pmState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
338 .isEqualTo("packageState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles()
456 Files.write(getStateFile(mTransport, PACKAGE_1), "oldState".getBytes()); in testRunTask_whenPackageWithOldStateAndIncremental_passesOldStateToAgent()
460 assertThat(agentMock.oldState).isEqualTo("oldState".getBytes()); in testRunTask_whenPackageWithOldStateAndIncremental_passesOldStateToAgent()
469 Files.write(getStateFile(mTransport, PACKAGE_1), "oldState".getBytes()); in testRunTask_whenPackageWithOldStateAndNonIncremental_passesEmptyOldStateToAgent()
524 Files.write(getStateFile(mTransport, PACKAGE_2), "package2State".getBytes()); in testRunTask_whenOnePackageAndNoPmState_initializesTransportAndResetsState()
543 Files.write(getStateFile(mTransport, PACKAGE_2), "package2State".getBytes()); in testRunTask_whenOnePackageAndWithPmState_doesNotInitializeTransportOrResetState()
549 .isEqualTo("package2State".getBytes()); in testRunTask_whenOnePackageAndWithPmState_doesNotInitializeTransportOrResetState()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java52 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResult()
68 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithAnqpLines()
83 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in convertScanResultWithoutWifiSsid()
145 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testPskSha256SaeTransitionModeCheck()
164 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testPskSaeTransitionModeCheck()
183 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testPskNotInTransitionModeCheck()
202 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testSaeNotInTransitionModeCheck()
222 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testFilsSha256AkmSupportedNetwork()
242 createIE(InformationElement.EID_SSID, ssid.getBytes(StandardCharsets.UTF_8)) in testFilsSha384AkmSupportedNetwork()
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/
DTraceBufferTest.java97 byte[] toWrite1Bytes = toWrite1.getBytes(); in test_addItemMustOverwriteOne()
102 byte[] toWrite2Bytes = toWrite2.getBytes(); in test_addItemMustOverwriteOne()
109 byte[] toWrite3Bytes = toWrite3.getBytes(); in test_addItemMustOverwriteOne()
137 byte[] toWriteSmall1Bytes = toWriteSmall1.getBytes(); in test_addItemMustOverwriteMultiple()
142 byte[] toWriteSmall2Bytes = toWriteSmall2.getBytes(); in test_addItemMustOverwriteMultiple()
149 byte[] toWriteBigBytes = toWriteBig.getBytes(); in test_addItemMustOverwriteMultiple()
/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/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()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/serializer/
DRuleBinarySerializerTest.java36 import static com.android.server.integrity.utils.TestUtils.getBytes;
99 getBytes(getBits(DEFAULT_FORMAT_VERSION, FORMAT_VERSION_BITS));
144 getBytes( in testBinaryString_emptyRules()
191 expectedRuleOutputStream.write(getBytes(expectedBits)); in testBinaryStream_serializeValidCompoundFormula()
206 DEFAULT_FORMAT_VERSION_BYTES.length + getBytes(expectedBits).length, in testBinaryStream_serializeValidCompoundFormula()
209 getBytes( in testBinaryStream_serializeValidCompoundFormula()
247 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidCompoundFormula_notConnector()
297 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidCompoundFormula_andConnector()
347 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidCompoundFormula_orConnector()
380 byteArrayOutputStream.write(getBytes(expectedBits)); in testBinaryString_serializeValidAtomicFormula_stringValue()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothUtilsTest.java85 BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET)).thenReturn("false".getBytes()); in getBtRainbowDrawableWithDescription_normalHeadset_returnAdaptiveIcon()
98 STRING_METADATA.getBytes()); in getStringMetaData_hasMetaData_getCorrectMetaData()
108 INT_METADATA.getBytes()); in getIntMetaData_hasMetaData_getCorrectMetaData()
129 BOOL_METADATA.getBytes()); in getBooleanMetaData_hasMetaData_getCorrectMetaData()
139 STRING_METADATA.getBytes()); in getUriMetaData_hasMetaData_getCorrectMetaData()

12345678910>>...15