Searched refs:getBytes (Results 1 – 17 of 17) sorted by relevance
64 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 …]
53 form.addFormFile("blah", "blah.xml.gz", "blah".getBytes()); in testContentBody()
120 stream.write(configStr.getBytes()); in createFileFromStr()
247 stream.write(blString.getBytes()); in createFileFromStr()
50 byte[] data = getBytes(input); in uploadResult()61 private static byte[] getBytes(InputStream input) throws IOException { in getBytes() method in ResultUploader
349 parser.setInput(new ByteArrayInputStream(result.getBytes(ENCODING)), ENCODING); in parse()
52 InputStream stdoutStream = new ByteArrayInputStream(stdout.getBytes()); in createMockProcess()53 InputStream stderrStream = new ByteArrayInputStream(stderr.getBytes()); in createMockProcess()
42 return new ByteArrayInputStream(result.getBytes(StandardCharsets.UTF_8)); in createBackupUtils()
273 stream.write(jsonStr.getBytes()); in createTestDeviceInfoJSONFile()288 stream.write(configStr.getBytes()); in createFileFromStr()
130 stream.write(configStr.getBytes()); in createFileFromStr()
228 InputStreamSource res = new ByteArrayInputStreamSource("fake bugreport".getBytes()); in testRunPreModuleCheck_failure()267 InputStreamSource res = new ByteArrayInputStreamSource("fake bugreport".getBytes()); in testRunPostModuleCheck_failure()
104 "application/json", new Gson().toJson(request).getBytes(Charsets.UTF_8)); in post()
113 Base64.getEncoder().encodeToString(message.build().toByteArray()).getBytes()); in Upload()
224 halInterfaceMsg.setHalReleaseLevel(ByteString.copyFrom(release_level.getBytes())); in addApiReportToTestPlanMessage()
281 baos.write(header.getBytes()); in postLogcat()
462 InputStreamSource fakeData = new ByteArrayInputStreamSource("test".getBytes()); in testTestLog()485 InputStreamSource fakeData = new ByteArrayInputStreamSource("test".getBytes()); in testTestLogWithDeviceInfo()
450 baos.write(header.getBytes());