Home
last modified time | relevance | path

Searched refs:byteCount (Results 1 – 7 of 7) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/
DBaseNetworkService.java149 final int byteCount = 1024;
174 byte[] buf = new byte[byteCount];
192 byte[] buf = new byte[byteCount];
193 while (read < byteCount * packetCount) {
204 if (read != (byteCount * packetCount)) {
206 + (byteCount * packetCount) + ", received" + read, null);
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DMidiSoloTest.java47 public int byteCount; field in MidiSoloTest.MyMidiReceiver
60 System.arraycopy(msg, offset, data, byteCount, count); in onSend()
64 byteCount += count; in onSend()
69 byteCount = 0; in onFlush()
218 assertEquals("MidiReceiver flush ", 0, myReceiver.byteCount); in checkReceivedData()
221 assertEquals("MidiReceiver count ", count, myReceiver.byteCount); in checkReceivedData()
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java141 static byte[] read(ParcelFileDescriptor parcelFileDescriptor, int byteCount, int fileOffset) in read() argument
143 assertThat(byteCount).isGreaterThan(-1); in read()
148 byte[] bytes = new byte[byteCount]; in read()
150 0 /* byteOffset */, byteCount); in read()
155 static void write(ParcelFileDescriptor parcelFileDescriptor, byte[] bytes, int byteCount, in write() argument
157 assertThat(byteCount).isGreaterThan(-1); in write()
163 0 /* byteOffset */, byteCount); in write()
165 assertThat(numBytesWritten).isEqualTo(byteCount); in write()
DTranscodeTest.java925 int byteCount = 512; in testWriteSuccessfulToTranscodedContent() local
926 int fileOffset = random.nextInt((int) pfdTranscodedContent.getStatSize() - byteCount); in testWriteSuccessfulToTranscodedContent()
927 byte[] readBytes = TranscodeTestUtils.read(pfdTranscodedContent, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
931 byte[] writeBytes = new byte[byteCount]; in testWriteSuccessfulToTranscodedContent()
932 for (int i = 0; i < byteCount; ++i) { in testWriteSuccessfulToTranscodedContent()
935 TranscodeTestUtils.write(pfdTranscodedContent, writeBytes, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
938 readBytes = TranscodeTestUtils.read(pfdTranscodedContent, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DReadElf.java435 private long readX(int byteCount) throws IOException { in readX() argument
436 mFile.readFully(mBuffer, 0, byteCount); in readX()
440 for (int i = byteCount - 1; i >= 0; i--) { in readX()
444 final int N = byteCount - 1; in readX()
/cts/tests/tests/util/src/android/util/cts/
DStrictJarFileTest.java367 int byteCount; in readUtf8String() local
368 while ((byteCount = inputStream.read(readBuffer)) != -1) { in readUtf8String()
369 baos.write(readBuffer, 0, byteCount); in readUtf8String()
/cts/tests/tests/graphics/src/android/graphics/cts/
DImageDecoderTest.java2009 int byteCount = test.getAllocationByteCount(); in testConserveMemoryPlusHardware() local
2016 assertTrue(byteCount < (normalByteCount * 1.1)); in testConserveMemoryPlusHardware()
2017 assertTrue(byteCount >= (normalByteCount * 0.9)); in testConserveMemoryPlusHardware()
2021 assertTrue(byteCount < normalByteCount); in testConserveMemoryPlusHardware()