Home
last modified time | relevance | path

Searched refs:toByteArray (Results 1 – 24 of 24) sorted by relevance

/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DMetricsXmlSerializerTest.java60 assertEquals(HEADER.length(), mByteArrayOutputStream.toByteArray().length); in testSerialize_null()
68 assertEquals(HEADER.length(), mByteArrayOutputStream.toByteArray().length); in testSerialize_noData()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DResultUploader.java70 return byteOutput.toByteArray(); in getBytes()
DMultipartForm.java151 return byteOutput.toByteArray(); in getContentBody()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/events/
DEventLogMonitor.kt53 it.write("${EventLog.MAGIC_NUMBER}\n".toByteArray()) in doStop()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/report/
DScubaExportStrategy.kt94 it.write(resultProto.build().toString().toByteArray()) in reportResult()
101 it.write(resultProto.build().toByteArray()) in reportResult()
/platform_testing/libraries/flicker/utils/test/src/android/tools/monitors/
DScreenRecorderTest.kt159 return videoTrack.toByteArray() in getVideoTrack()
163 return metadataTrack.toByteArray() in getMetadataTrack()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/
DScreenRecordingRunnable.kt179 WINSCOPE_MAGIC_STRING.toByteArray().size + in writeMetadata()
188 .put(WINSCOPE_MAGIC_STRING.toByteArray()) in writeMetadata()
DPerfettoTraceMonitor.kt51 configFile.writeBytes(config.toByteArray()) in doStart()
/platform_testing/libraries/flicker/utils/test/src/android/tools/monitors/events/
DEventLogMonitorTest.kt48 Truth.assertThat(traceData.size).isAtLeast(MAGIC_NUMBER.toByteArray().size) in getMonitor()
49 Truth.assertThat(traceData.slice(0 until MAGIC_NUMBER.toByteArray().size)) in getMonitor()
50 .isEqualTo(MAGIC_NUMBER.toByteArray().asList()) in getMonitor()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DStatsdHelper.java77 getStatsManager().addConfig(configId, toByteArray(config)); in addEventConfig()
135 getStatsManager().addConfig(configId, toByteArray(config)); in addGaugeConfig()
412 private static byte[] toByteArray(StatsdConfigProto.StatsdConfig config) throws IOException { in toByteArray() method in StatsdHelper
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java136 return out.toByteArray(); in executeCommandBlocking()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DFileArtifact.kt138 return if (foundFile) outByteArray.toByteArray() else null in readBytes()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DThemeHelper.java83 byteArray = outStream.toByteArray(); in setWallpaper()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DInputDeviceRule.kt178 writeCommand(command.toByteArray()) in <lambda>()
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DRootcanalUtils.java418 return ret.toByteArray(); in readHciPacket()
483 rootcanalTestChannel.getOutputStream().write(msg.toByteArray()); in sendTestChannelCommand()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/setup/
DLayoutLibTestCallback.java158 parser.setInput(new ByteArrayInputStream(byteOutputStream.toByteArray()), null); in createXmlParserForFile()
/platform_testing/libraries/audio-test-harness/client-lib/src/main/java/com/android/media/audiotestharness/client/grpc/
DGrpcAudioCaptureStream.java301 mPipedOutputStream.write(value.getData().toByteArray()); in onNext()
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DUtils.kt179 return ByteStreams.toByteArray(inputStream) in readAsset()
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/javasound/
DJavaAudioCapturerTests.java156 assertArrayEquals(expectedBytes, byteArrayOutputStream.toByteArray()); in attachOutput_attachesOutputSuccessfully_outputStream()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DDumpsysMeminfoHelper.java288 return os.toByteArray(); in readInputStreamFully()
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/service/
DCaptureChunkStreamObserverOutputStreamTests.java362 writtenBytes.add(value.getData().toByteArray()); in createStreamObserverThatWritesTo()
/platform_testing/tests/perf/PerformanceAppTest/src/com/android/performanceapp/tests/
DAppLaunchTests.java223 fileOutputStream.write(stopStream.toByteArray()); in testAppLaunchPerformance()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBaseMetricListener.java344 return out.toByteArray(); in executeCommandBlocking()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DStatsdListener.java589 return outputStream.toByteArray(); in readInputStream()