Home
last modified time | relevance | path

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

/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/io/write/
DTypedOutputStream.java47 public void writeVarByteValue(int byteCount, long value) throws IOException { in writeVarByteValue() argument
48 if (byteCount < 1 || byteCount > 8) { in writeVarByteValue()
49 throw new IllegalArgumentException("byteCount " + byteCount + " out of range"); in writeVarByteValue()
53 if (byteCount < 8) { in writeVarByteValue()
54 long unusedBits = value & BitwiseUtils.getHighBitsMask((8 - byteCount) * 8); in writeVarByteValue()
62 for (int i = byteCount - 1; i >= 0; i--) { in writeVarByteValue()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DTrafficStatsTest.java118 final int byteCount = 1024; in testTrafficStatsForLocalhost() local
132 final byte[] buf = new byte[byteCount]; in testTrafficStatsForLocalhost()
160 final byte[] buf = new byte[byteCount]; in testTrafficStatsForLocalhost()
161 while (read < byteCount * packetCount) { in testTrafficStatsForLocalhost()
169 assertTrue("Not all data read back", read >= byteCount * packetCount); in testTrafficStatsForLocalhost()
234 final long pktBytes = tcpPacketToIpBytes(packetCount, byteCount); in testTrafficStatsForLocalhost()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dbyte_array_utils.h235 int byteCount = 0; in calculateRequiredByteCountToStoreCodePoints() local
243 byteCount += 3; in calculateRequiredByteCountToStoreCodePoints()
246 byteCount += 1; in calculateRequiredByteCountToStoreCodePoints()
251 byteCount += 1; in calculateRequiredByteCountToStoreCodePoints()
253 return byteCount; in calculateRequiredByteCountToStoreCodePoints()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFingerprint.java81 public static Fingerprint fromInputStream(InputStream stream, long[] byteCount) in fromInputStream() argument
97 if ((byteCount != null) && (byteCount.length > 0)) byteCount[0] = count; in fromInputStream()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMD5Calculator.java35 int byteCount; in checksum() local
36 while ((byteCount = in.read(bytes)) > 0) { in checksum()
37 digester.update(bytes, 0, byteCount); in checksum()
/packages/apps/DevCamera/src/com/android/devcamera/
DMediaSaver.java75 int byteCount = 0; in saveDepth() local
77 byteCount = channel.write(depthCloudData); in saveDepth()
78 if (0 == byteCount) { in saveDepth()
81 bytesWritten += byteCount; in saveDepth()
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/block/write/
DBlockFileWriter.java170 int byteCount = Math.min(buffer.length, byteBuffer.remaining()); in copyAll() local
171 byteBuffer.get(buffer, 0, byteCount); in copyAll()
172 outputStream.writeBytes(buffer, 0, byteCount); in copyAll()
173 totalByteCount += byteCount; in copyAll()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/block/read/
DBlockData.java88 public byte[] getBytes(int byteOffset, int byteCount) { in getBytes() argument
89 byte[] bytes = new byte[byteCount]; in getBytes()
90 for (int i = 0; i < byteCount; i++) { in getBytes()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
DJPEGInputStream.java137 public long skip(long byteCount) throws IOException { in skip() argument
138 if (byteCount <= 0) { in skip()
142 int flag = skipDecodedBytes((int) (0x7FFFFFFF & byteCount)); in skip()
/packages/providers/MediaProvider/tests/transcode/src/com/android/providers/media/transcode/
DTranscodeTest.java874 int byteCount = 512; in testWriteSuccessfulToTranscodedContent() local
875 int fileOffset = random.nextInt((int) pfdTranscodedContent.getStatSize() - byteCount); in testWriteSuccessfulToTranscodedContent()
876 byte[] readBytes = TranscodeTestUtils.read(pfdTranscodedContent, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
880 byte[] writeBytes = new byte[byteCount]; in testWriteSuccessfulToTranscodedContent()
881 for (int i = 0; i < byteCount; ++i) { in testWriteSuccessfulToTranscodedContent()
884 TranscodeTestUtils.write(pfdTranscodedContent, writeBytes, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
887 readBytes = TranscodeTestUtils.read(pfdTranscodedContent, byteCount, fileOffset); in testWriteSuccessfulToTranscodedContent()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java910 private static String readAsciiString(@NonNull final ByteBuffer buf, int byteCount, in readAsciiString() argument
912 final byte[] bytes = new byte[byteCount]; in readAsciiString()