Home
last modified time | relevance | path

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

/platform_testing/libraries/compatibility-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()
/platform_testing/libraries/compatibility-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()
/platform_testing/libraries/collectors-helper/adservices/test/src/com/android/helpers/
DMeasurementLatencyHelperTest.java71 .thenReturn(new ByteArrayInputStream(logcatOutput.getBytes())); in testInitTimeInLogcat()
82 .thenReturn(new ByteArrayInputStream(logcatOutput.getBytes())); in testWithNonMatchingInput()
91 .thenReturn(new ByteArrayInputStream("".getBytes())); in testWithEmptyLogcat()
DSelectAdsLatencyHelperTest.java93 .thenReturn(new ByteArrayInputStream(logcatOutput.getBytes())); in testInitTimeInLogcat()
109 .thenReturn(new ByteArrayInputStream(logcatOutput.getBytes())); in testWithNonMatchingInput()
118 .thenReturn(new ByteArrayInputStream("".getBytes())); in testWithEmptyLogcat()
DTopicsLatencyHelperTest.java71 InputStream targetStream = new ByteArrayInputStream(outputString.getBytes()); in testGetMetrics()
82 InputStream targetStream = new ByteArrayInputStream(outputString.getBytes()); in testEmptyLogcat_noMetrics()
DJSScriptEngineLatencyHelperTest.java76 .thenReturn(new ByteArrayInputStream(logcatOutput.getBytes())); in testInitTimeInLogcat()
89 .thenReturn(new ByteArrayInputStream("".getBytes())); in testWithEmptyLogcat()
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/
DDumpsysServiceHelper.java92 outputStream.write(res.getBytes()); in runDumpsysCmd()
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/
DTimingHelperTest.java65 InputStream is = new ByteArrayInputStream(logcat.getBytes("UTF-8")); in testGetTimingLogs()
DBugReportDurationHelperTest.java97 zos.write((line + "\n").getBytes()); in createArchive()
104 zos.write((line + "\n").getBytes()); in createArchive()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/setup/
DLayoutPullParser.java70 contents.getBytes(StandardCharsets.UTF_8))); in createFromString()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DFilesystemUtil.java112 fos.write(String.format("notes: %s\n\n", notes).getBytes()); in dumpMeminfo()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DArtifactSaver.java156 out.write(("\n\n" + cmd + "\n").getBytes()); in dumpCommandAndOutput()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DIncidentReportListenerTest.java60 private static final byte[] NONEMPTY_BYTE_ARRAY = "full".getBytes();
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DRootcanalUtils.java476 msg.write(cmd.getBytes("ASCII")); in sendTestChannelCommand()
480 msg.write(arg.getBytes("ASCII")); in sendTestChannelCommand()
/platform_testing/host_runners/boot/tests/src/com/android/boot/
DBootTimeTestTest.java244 return new ByteArrayInputStreamSource(log.getBytes()); in createInputStreamSource()
/platform_testing/libraries/collectors-helper/perfetto/src/com/android/helpers/
DPerfettoHelper.java169 outputStream.write(textProtoConfig.getBytes()); in startCollectingFromConfig()
/platform_testing/libraries/device-collectors/src/test/platform/android/device/collectors/
DStatsdListenerTest.java505 ByteArrayInputStream configStream = new ByteArrayInputStream("not a config".getBytes()); in testParsingConfigFromArguments_byName_malformedConfig()
588 Files.write(configFile.toPath(), "not a config".getBytes()); in testParsingConfigFromArguments_byPath_malformedConfig()