Home
last modified time | relevance | path

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

/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DBackupUtilsTest.java64 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testEnableBackup_whenEnableTrueAndEnabled_returnsTrue()
83 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testEnableBackup_whenEnableTrueAndDisabled_returnsFalse()
102 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testEnableBackup_whenEnableFalseAndEnabled_returnsTrue()
121 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testEnableBackup_whenEnableFalseAndDisabled_returnsFalse()
141 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testEnableBackup_whenEnableTrueAndEnabledAndCommandsReturnMultipleLines()
161 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testEnableBackup_whenQueryCommandThrows_propagatesException()
189 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testEnableBackup_whenSetCommandThrows_propagatesException()
217 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testEnableBackup_whenQueryCommandReturnsInvalidString_throwsException()
245 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testEnableBackup_whenQueryCommandReturnsEmptyString_throwsException()
270 return new ByteArrayInputStream(output.getBytes("UTF-8")); in testWaitForBackupInitialization_whenEnabled()
[all …]
DMultipartFormTest.java53 form.addFormFile("blah", "blah.xml.gz", "blah".getBytes()); in testContentBody()
DDynamicConfigTest.java120 stream.write(configStr.getBytes()); in createFileFromStr()
DBusinessLogicTest.java247 stream.write(blString.getBytes()); in createFileFromStr()
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DResultUploader.java50 byte[] data = getBytes(input); in uploadResult()
61 private static byte[] getBytes(InputStream input) throws IOException { in getBytes() method in ResultUploader
DReportLog.java349 parser.setInput(new ByteArrayInputStream(result.getBytes(ENCODING)), ENCODING); in parse()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/util/
DProcessHelperTest.java52 InputStream stdoutStream = new ByteArrayInputStream(stdout.getBytes()); in createMockProcess()
53 InputStream stderrStream = new ByteArrayInputStream(stderr.getBytes()); in createMockProcess()
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DBackupHostSideUtils.java42 return new ByteArrayInputStream(result.getBytes(StandardCharsets.UTF_8)); in createBackupUtils()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
DBusinessLogicPreparerTest.java273 stream.write(jsonStr.getBytes()); in createTestDeviceInfoJSONFile()
288 stream.write(configStr.getBytes()); in createFileFromStr()
/test/suite_harness/common/host-side/util/tests/src/com/android/compatibility/common/util/
DDynamicConfigHandlerTest.java130 stream.write(configStr.getBytes()); in createFileFromStr()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/
DCompatibilityTestTest.java228 InputStreamSource res = new ByteArrayInputStreamSource("fake bugreport".getBytes()); in testRunPreModuleCheck_failure()
267 InputStreamSource res = new ByteArrayInputStreamSource("fake bugreport".getBytes()); in testRunPostModuleCheck_failure()
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/
DVtsDashboardApiTransport.java104 "application/json", new Gson().toJson(request).getBytes(Charsets.UTF_8)); in post()
DVtsDashboardUtil.java113 Base64.getEncoder().encodeToString(message.build().toByteArray()).getBytes()); in Upload()
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/
DVtsTestPlanResultReporter.java224 halInterfaceMsg.setHalReleaseLevel(ByteString.copyFrom(release_level.getBytes())); in addApiReportToTestPlanMessage()
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/testtype/
DAppLaunchTest.java281 baos.write(header.getBytes()); in postLogcat()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/
DResultReporterTest.java462 InputStreamSource fakeData = new ByteArrayInputStreamSource("test".getBytes()); in testTestLog()
485 InputStreamSource fakeData = new ByteArrayInputStreamSource("test".getBytes()); in testTestLogWithDeviceInfo()
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/
DAppCompatibilityTest.java450 baos.write(header.getBytes());