/libcore/luni/src/main/native/ |
java_util_zip_Adler32.cpp | 27 ScopedByteArrayRO bytes(env, byteArray); 28 if (bytes.get() == NULL) { 31 return adler32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len);
|
java_util_zip_CRC32.cpp | 27 ScopedByteArrayRO bytes(env, byteArray); 28 if (bytes.get() == NULL) { 31 jlong result = crc32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len);
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
RandomImpl.java | 40 protected void engineNextBytes(byte[] bytes) { 42 for (int i = 0; i < bytes.length; i++) { 43 bytes[i] = (byte)(i + 0xF1);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
JpegConfig.java | 22 public static final int FORMAT_RGB = 0x003; // 3 bytes/pixel RGBRGBRGBRGB... 23 public static final int FORMAT_RGBA = 0x004; // 4 bytes/pixel RGBARGBARGBARGBA... 24 public static final int FORMAT_ABGR = 0x104; // 4 bytes/pixel ABGRABGRABGR...
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
CountingOutputStream.java | 23 * A decorating output stream that counts the number of bytes that have passed
33 /** The count of bytes that have passed. */
48 * keeping count of the number of bytes written.
50 * @param b the bytes to write, not null
61 * keeping count of the number of bytes written.
63 * @param b the bytes to write, not null
65 * @param len the maximum number of bytes to write
76 * number of bytes written.
89 * The number of bytes that have passed through this stream.
95 * @return the number of bytes accumulated [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
MD5Calculator.java | 34 final byte[] bytes = new byte[8192]; 36 while ((byteCount = in.read(bytes)) > 0) { 37 digester.update(bytes, 0, byteCount);
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/ |
byteswap.h | 29 /* Return a value with all bytes in the 16 bit argument swapped. */ 32 /* Return a value with all bytes in the 32 bit argument swapped. */ 36 /* Return a value with all bytes in the 64 bit argument swapped. */
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/ |
byteswap.h | 29 /* Return a value with all bytes in the 16 bit argument swapped. */ 32 /* Return a value with all bytes in the 32 bit argument swapped. */ 36 /* Return a value with all bytes in the 64 bit argument swapped. */
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/ |
byteswap.h | 29 /* Return a value with all bytes in the 16 bit argument swapped. */ 32 /* Return a value with all bytes in the 32 bit argument swapped. */ 36 /* Return a value with all bytes in the 64 bit argument swapped. */
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_pep263.py | 34 # Ensure that check_bom() restores all bytes in the right order if 36 # byte of a valid BOM, but next bytes are different 41 # two bytes in common with the UTF-8 BOM
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_pep263.py | 34 # Ensure that check_bom() restores all bytes in the right order if 36 # byte of a valid BOM, but next bytes are different 41 # two bytes in common with the UTF-8 BOM
|
/bionic/libc/upstream-netbsd/libc/isc/ |
ev_streams.c | 49 static void consume(evStream *str, size_t bytes); 233 consume(evStream *str, size_t bytes) { 234 while (bytes > 0U) { 235 if (bytes < (size_t)str->iovCur->iov_len) { 236 str->iovCur->iov_len -= bytes; 238 ((u_char *)str->iovCur->iov_base + bytes); 239 str->ioDone += bytes; 240 bytes = 0; 242 bytes -= str->iovCur->iov_len; 268 /* Dribble out some bytes on the stream. (Called by evDispatch().) * 272 int bytes; local 295 int bytes; local [all...] |
/frameworks/av/media/libstagefright/codecs/flac/enc/ |
SoftFlacEncoder.cpp | 244 ALOGE("Input buffer size must be at most %zu bytes", 349 size_t bytes, unsigned samples, unsigned current_frame) { 350 ALOGV("SoftFlacEncoder::onEncodedFlacAvailable(bytes=%d, samples=%d, curr_frame=%d)", 351 bytes, samples, current_frame); 355 ALOGI(" saving %d bytes of header", bytes); 356 memcpy(mHeader + mHeaderOffset, buffer, bytes); 357 mHeaderOffset += bytes;// will contain header size when finished receiving header 366 ALOGV("ignoring %d bytes of header data (samples=%d)", bytes, samples) [all...] |
/libcore/luni/src/main/java/java/io/ |
BufferedInputStream.java | 40 * The buffer containing the current bytes read from the target InputStream. 45 * The total number of bytes inside the byte array {@code buf}. 67 * of 8192 bytes. 80 * Constructs a new {@code BufferedInputStream}, providing {@code in} with {@code size} bytes 88 * @param size the size of buffer in bytes. 100 * Returns an estimated number of bytes that can be read or skipped without blocking for more 101 * input. This method returns the number of bytes available in the buffer 105 * @return the estimated number of bytes available 175 * indicates how many bytes can be read before a mark is invalidated. 179 * bytes to be supported [all...] |
ByteArrayOutputStream.java | 24 * (internal) byte array. As bytes are written to this stream, the byte array 25 * may be expanded to hold more bytes. When the writing is considered to be 32 * The byte array containing the bytes written. 37 * The number of bytes written. 42 * Constructs a new ByteArrayOutputStream with a default size of 32 bytes. 43 * If more than 32 bytes are written to this instance, the underlying byte 52 * {@code size} bytes. If more than {@code size} bytes are written to this 86 /* Can the buffer handle @i more bytes, if not expand it */ 98 * subsequent writes will overwrite any bytes previously stored in thi [all...] |
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
CodedInputStreamTest.java | 50 * Helper to construct a byte array from a bunch of bytes. The inputs are 54 private byte[] bytes(int... bytesAsInts) { method in class:CodedInputStreamTest 55 byte[] bytes = new byte[bytesAsInts.length]; 57 bytes[i] = (byte) bytesAsInts[i]; 59 return bytes; 63 * An InputStream which limits the number of bytes it reads at a time. 89 * Parses the given bytes using readRawVarint32() and readRawVarint64() and 123 * Parses the given bytes using readRawVarint32() and readRawVarint64() and 157 assertReadVarint(bytes(0x00), 0); 158 assertReadVarint(bytes(0x01), 1) [all...] |
/external/protobuf/java/src/test/java/com/google/protobuf/ |
CodedInputStreamTest.java | 50 * Helper to construct a byte array from a bunch of bytes. The inputs are 54 private byte[] bytes(int... bytesAsInts) { method in class:CodedInputStreamTest 55 byte[] bytes = new byte[bytesAsInts.length]; 57 bytes[i] = (byte) bytesAsInts[i]; 59 return bytes; 63 * An InputStream which limits the number of bytes it reads at a time. 89 * Parses the given bytes using readRawVarint32() and readRawVarint64() and 123 * Parses the given bytes using readRawVarint32() and readRawVarint64() and 157 assertReadVarint(bytes(0x00), 0); 158 assertReadVarint(bytes(0x01), 1) [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
MemberListParser.java | 59 * @param offset offset in {@code bytes} to the start of the list 118 ByteArray bytes = cf.getBytes(); local 119 return bytes.getUnsignedShort(offset); 177 ByteArray bytes = cf.getBytes(); local 181 observer.parsed(bytes, offset, 2, 187 int accessFlags = bytes.getUnsignedShort(at); 188 int nameIdx = bytes.getUnsignedShort(at + 2); 189 int descIdx = bytes.getUnsignedShort(at + 4); 194 observer.startParsingMember(bytes, at, name.getString(), 196 observer.parsed(bytes, at, 0, "\n" + humanName() [all...] |
/external/dropbear/ |
progressmeter.c | 63 static int bytes_per_second; /* current speed in bytes per second */ 77 format_rate(char *buf, int size, off_t bytes) 81 bytes *= 100; 82 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++) 83 bytes = (bytes + 512) / 1024; 86 bytes = (bytes + 512) / 1024; 89 (long long) (bytes + 5) / 100, 90 (long long) (bytes + 5) / 10 % 10 [all...] |
/external/iptables/extensions/ |
libxt_u32.man | 1 U32 tests whether quantities of up to 4 bytes extracted from a packet have 67 The IP header contains a total length field in bytes 2-3. 71 read bytes 0-3 73 AND that with 0xFFFF (giving bytes 2-3), and test whether that is in the range 84 read bytes 6-9, use \fB&\fP to throw away bytes 6-8 and compare the result to 99 The first 0 means read bytes 0-3, \fB>>22\fP means shift that 22 bits to the 103 then the IP header is 20 (4 x 5) bytes long. In this case, bytes 0-1 are (in 106 the packet, and read four bytes starting from there. This is the first 4 byte [all...] |
/external/llvm/test/CodeGen/SystemZ/ |
memset-02.ll | 8 ; No bytes, i32 version. 17 ; No bytes, i64 version. 44 ; 2 bytes, i32 version. 53 ; 2 bytes, i64 version. 62 ; 3 bytes, i32 version. 72 ; 3 bytes, i64 version. 82 ; 4 bytes, i32 version. 92 ; 4 bytes, i64 version. 102 ; 5 bytes, i32 version. 112 ; 5 bytes, i64 version [all...] |
/external/llvm/tools/llvm-mc/ |
Disassembler.cpp | 10 // This class implements the disassembler of strings of bytes written in 35 const ByteArrayTy &Bytes; 37 VectorMemoryObject(const ByteArrayTy &bytes) : Bytes(bytes) {} 40 uint64_t getExtent() const { return Bytes.size(); } 45 *Byte = Bytes[Addr].first; 52 const ByteArrayTy &Bytes, 56 VectorMemoryObject memoryObject(Bytes); 62 for (Index = 0; Index < Bytes.size(); Index += Size) [all...] |
/external/openssh/ |
progressmeter.c | 73 static int bytes_per_second; /* current speed in bytes per second */ 87 format_rate(char *buf, int size, off_t bytes) 91 bytes *= 100; 92 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++) 93 bytes = (bytes + 512) / 1024; 96 bytes = (bytes + 512) / 1024; 99 (long long) (bytes + 5) / 100, 100 (long long) (bytes + 5) / 10 % 10 [all...] |
/external/protobuf/java/src/main/java/com/google/protobuf/nano/ |
CodedOutputByteBufferNano.java | 64 * byte array. If more bytes are written than fit in the array, 74 * byte array slice. If more bytes are written than fit in the slice, 164 /** Write a {@code bytes} field, including tag, to the stream. */ 302 final byte[] bytes = value.getBytes("UTF-8"); 303 writeRawVarint32(bytes.length); 304 writeRawBytes(bytes); 318 /** Write a {@code bytes} field to the stream. */ 366 * Compute the number of bytes that would be needed to encode a 375 * Compute the number of bytes that would be needed to encode a 383 * Compute the number of bytes that would be needed to encode [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
CountingInputStream.java | 23 * A decorating input stream that counts the number of bytes that have passed
34 /** The count of bytes that have passed. */
48 * Reads a number of bytes into the byte array, keeping count of the
52 * @return the total number of bytes read into the buffer, -1 if end of stream
63 * Reads a number of bytes into the byte array at a specific offset,
68 * @param len the maximum number of bytes to read
69 * @return the total number of bytes read into the buffer, -1 if end of stream
80 * Reads the next byte of data adding to the count of bytes received
94 * Skips the stream over the specified number of bytes, adding the skipped
97 * @param length the number of bytes to skip [all...] |