Home
last modified time | relevance | path

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

/cts/tests/tests/netpermission/updatestatspermission/src/android/net/cts/network/permission/
DUpdateStatsPermissionTest.java60 final int byteCount = 1024; in testUpdateDeviceStatsPermission() local
65 byte[] buf = new byte[byteCount]; in testUpdateDeviceStatsPermission()
73 + uidTxDeltaBytes + " >= " + byteCount, uidTxDeltaBytes >= byteCount); in testUpdateDeviceStatsPermission()
/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/src/android/media/cts/
DMidiSoloTest.java49 public int byteCount; field in MidiSoloTest.MyMidiReceiver
62 System.arraycopy(msg, offset, data, byteCount, count); in onSend()
66 byteCount += count; in onSend()
71 byteCount = 0; in onFlush()
192 assertEquals("MidiReceiver flush ", 0, myReceiver.byteCount); in checkReceivedData()
195 assertEquals("MidiReceiver count ", count, myReceiver.byteCount); in checkReceivedData()
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/
DTranscodeTestUtils.java135 static byte[] read(ParcelFileDescriptor parcelFileDescriptor, int byteCount, int fileOffset) in read() argument
137 assertThat(byteCount).isGreaterThan(-1); in read()
142 byte[] bytes = new byte[byteCount]; in read()
144 0 /* byteOffset */, byteCount); in read()
149 static void write(ParcelFileDescriptor parcelFileDescriptor, byte[] bytes, int byteCount, in write() argument
151 assertThat(byteCount).isGreaterThan(-1); in write()
157 0 /* byteOffset */, byteCount); in write()
159 assertThat(numBytesWritten).isEqualTo(byteCount); in write()
DTranscodeTest.java943 int byteCount = 512; in testWriteSuccessfulToTranscodedContent() local
944 int fileOffset = random.nextInt((int) pfdTranscodedContent.getStatSize() - byteCount); in testWriteSuccessfulToTranscodedContent()
945 byte[] readBytes = TranscodeTestUtils.read(pfdTranscodedContent, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
949 byte[] writeBytes = new byte[byteCount]; in testWriteSuccessfulToTranscodedContent()
950 for (int i = 0; i < byteCount; ++i) { in testWriteSuccessfulToTranscodedContent()
953 TranscodeTestUtils.write(pfdTranscodedContent, writeBytes, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
956 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.java360 int byteCount; in readUtf8String() local
361 while ((byteCount = inputStream.read(readBuffer)) != -1) { in readUtf8String()
362 baos.write(readBuffer, 0, byteCount); in readUtf8String()
/cts/tests/tests/graphics/src/android/graphics/cts/
DImageDecoderTest.java1890 int byteCount = test.getAllocationByteCount(); in testConserveMemoryPlusHardware() local
1895 assertEquals(normalByteCount, byteCount); in testConserveMemoryPlusHardware()
1899 assertTrue(byteCount < normalByteCount); in testConserveMemoryPlusHardware()