/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/ |
D | BackupUtilsTest.java | 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 …]
|
D | MultipartFormTest.java | 53 form.addFormFile("blah", "blah.xml.gz", "blah".getBytes()); in testContentBody()
|
D | DynamicConfigTest.java | 120 stream.write(configStr.getBytes()); in createFileFromStr()
|
D | BusinessLogicTest.java | 247 stream.write(blString.getBytes()); in createFileFromStr()
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | ResultUploader.java | 50 byte[] data = getBytes(input); in uploadResult() 61 private static byte[] getBytes(InputStream input) throws IOException { in getBytes() method in ResultUploader
|
D | ReportLog.java | 349 parser.setInput(new ByteArrayInputStream(result.getBytes(ENCODING)), ENCODING); in parse()
|
/platform_testing/libraries/collectors-helper/adservices/test/src/com/android/helpers/ |
D | MeasurementLatencyHelperTest.java | 71 .thenReturn(new ByteArrayInputStream(logcatOutput.getBytes())); in testInitTimeInLogcat() 82 .thenReturn(new ByteArrayInputStream(logcatOutput.getBytes())); in testWithNonMatchingInput() 91 .thenReturn(new ByteArrayInputStream("".getBytes())); in testWithEmptyLogcat()
|
D | SelectAdsLatencyHelperTest.java | 93 .thenReturn(new ByteArrayInputStream(logcatOutput.getBytes())); in testInitTimeInLogcat() 109 .thenReturn(new ByteArrayInputStream(logcatOutput.getBytes())); in testWithNonMatchingInput() 118 .thenReturn(new ByteArrayInputStream("".getBytes())); in testWithEmptyLogcat()
|
D | TopicsLatencyHelperTest.java | 71 InputStream targetStream = new ByteArrayInputStream(outputString.getBytes()); in testGetMetrics() 82 InputStream targetStream = new ByteArrayInputStream(outputString.getBytes()); in testEmptyLogcat_noMetrics()
|
D | JSScriptEngineLatencyHelperTest.java | 76 .thenReturn(new ByteArrayInputStream(logcatOutput.getBytes())); in testInitTimeInLogcat() 89 .thenReturn(new ByteArrayInputStream("".getBytes())); in testWithEmptyLogcat()
|
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/ |
D | DumpsysServiceHelper.java | 92 outputStream.write(res.getBytes()); in runDumpsysCmd()
|
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/ |
D | TimingHelperTest.java | 65 InputStream is = new ByteArrayInputStream(logcat.getBytes("UTF-8")); in testGetTimingLogs()
|
D | BugReportDurationHelperTest.java | 97 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/ |
D | LayoutPullParser.java | 70 contents.getBytes(StandardCharsets.UTF_8))); in createFromString()
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | FilesystemUtil.java | 112 fos.write(String.format("notes: %s\n\n", notes).getBytes()); in dumpMeminfo()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | ArtifactSaver.java | 156 out.write(("\n\n" + cmd + "\n").getBytes()); in dumpCommandAndOutput()
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | IncidentReportListenerTest.java | 60 private static final byte[] NONEMPTY_BYTE_ARRAY = "full".getBytes();
|
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/ |
D | RootcanalUtils.java | 476 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/ |
D | BootTimeTestTest.java | 244 return new ByteArrayInputStreamSource(log.getBytes()); in createInputStreamSource()
|
/platform_testing/libraries/collectors-helper/perfetto/src/com/android/helpers/ |
D | PerfettoHelper.java | 169 outputStream.write(textProtoConfig.getBytes()); in startCollectingFromConfig()
|
/platform_testing/libraries/device-collectors/src/test/platform/android/device/collectors/ |
D | StatsdListenerTest.java | 505 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()
|