/libcore/luni/src/main/java/java/lang/ |
UnsafeByteSequence.java | 32 private byte[] bytes; field in class:UnsafeByteSequence 36 this.bytes = new byte[initialCapacity]; 52 if (count + length >= bytes.length) { 54 System.arraycopy(bytes, 0, newBytes, 0, count); 55 bytes = newBytes; 57 System.arraycopy(buffer, offset, bytes, count, length); 62 if (count == bytes.length) { 64 System.arraycopy(bytes, 0, newBytes, 0, count); 65 bytes = newBytes; 67 bytes[count++] = (byte) b [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
CollationKeyICU.java | 22 private final byte[] bytes; field in class:CollationKeyICU 29 CollationKeyICU(String source, byte[] bytes) { 31 this.bytes = bytes; 35 // Get the bytes from the other collation key. 38 rhsBytes = ((CollationKeyICU) other).bytes; 43 if (bytes == null || bytes.length == 0) { 54 int count = Math.min(bytes.length, rhsBytes.length); 56 int s = bytes[i] & 0xff [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
BitString.java | 38 public final byte[] bytes; field in class:BitString 44 * @param bytes array of bytes that represents bit string, 49 public BitString(byte[] bytes, int unusedBits) { 55 if (bytes.length == 0 && unusedBits != 0) { 59 this.bytes = bytes; 69 bytes = new byte[size]; 78 return (bytes[index] & SET_MASK[offset]) != 0; 85 bytes[index] |= SET_MASK[offset] [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
ByteArray.java | 25 private final byte[] bytes; field in class:ByteArray 28 ByteArray(byte[] bytes) { 29 this.bytes = bytes; 30 this.hashCode = Arrays.hashCode(bytes); 42 return Arrays.equals(bytes, lhs.bytes);
|
/libcore/luni/src/main/java/libcore/io/ |
IoUtils.java | 117 UnsafeByteSequence bytes = new UnsafeByteSequence((int) f.length()); local 122 return bytes; 124 bytes.write(buffer, 0, byteCount);
|
Streams.java | 57 * Fills 'dst' with bytes from 'in', throwing EOFException if insufficient bytes are available. 64 * Reads exactly 'byteCount' bytes from 'in' (into 'dst' at offset 'offset'), and throws 65 * EOFException if insufficient bytes are available. 105 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 109 bytes.write(buffer, 0, count); 111 return bytes.toByteArray(); 139 * {@code byteCount} bytes have been read. 175 * Copies all of the bytes from {@code in} to {@code out}. Neither stream is closed. 176 * Returns the total number of bytes transferred [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
DataOutputStreamTest.java | 26 private ByteArrayOutputStream bytes = new ByteArrayOutputStream(); field in class:DataOutputStreamTest 27 private DataOutputStream os = new DataOutputStream(bytes); 32 assertEquals("[01, 00]", toHexString(bytes.toByteArray())); 42 assertEquals("[ff, 00, 01, 81, 34]", toHexString(bytes.toByteArray())); 48 assertEquals("[30, 34, 31]", toHexString(bytes.toByteArray())); 55 assertEquals("[00, 30, 12, 34]", toHexString(bytes.toByteArray())); 61 assertEquals("[00, 30, 12, 34, 00, 31]", toHexString(bytes.toByteArray())); 66 assertEquals("[01, 23, 45, 67, 89, ab, cd, ef]", toHexString(bytes.toByteArray())); 71 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())); 76 assertEquals("[01, 23, 45, 67]", toHexString(bytes.toByteArray())) [all...] |
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/action/ |
ShareMockupAction.java | 54 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 55 mockup.compress(Bitmap.CompressFormat.PNG, 100, bytes); 61 fo.write(bytes.toByteArray());
|
/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...] |
/bootable/recovery/applypatch/ |
main.c | 38 size_t bytes = strtol(argv[2], &endptr, 10); local 39 if (bytes == 0 && endptr == argv[2]) { 43 return CacheSizeCheck(bytes); 188 " or %s -s <bytes>\n"
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
DERInteger.java | 11 byte[] bytes; field in class:DERInteger 73 bytes = BigInteger.valueOf(value).toByteArray(); 79 bytes = value.toByteArray(); 83 byte[] bytes) 85 this.bytes = bytes; 90 return new BigInteger(bytes); 99 return new BigInteger(1, bytes); 109 return 1 + StreamUtil.calculateBodyLength(bytes.length) + bytes.length [all...] |
/external/chromium/base/ |
string_number_conversions_unittest.cc | 439 unsigned char bytes[] = {0x01, 0xff, 0x02, 0xfe, 0x03, 0x80, 0x81}; local 440 hex = HexEncode(bytes, sizeof(bytes));
|
/external/chromium/chrome/browser/ui/webui/ |
screenshot_source.cc | 63 std::vector<unsigned char> bytes; local 66 &bytes, &read_complete)); 68 return bytes;
|
/external/dhcpcd/ |
bpf.c | 167 ssize_t bytes; local 180 bytes = read(fd, iface->buffer, iface->buffer_size); 181 if (bytes == -1) 183 else if ((size_t)bytes < sizeof(packet)) 185 iface->buffer_len = bytes; 188 bytes = -1; 197 bytes = packet.bh_caplen - ETHER_HDR_LEN; 198 if (bytes > len) 199 bytes = len; 200 memcpy(data, payload, bytes); [all...] |
/external/guava/guava/src/com/google/common/hash/ |
HashCodes.java | 26 * Creates a 32-bit {@code HashCode}, of which the bytes will form the passed int, interpreted 62 * Creates a 64-bit {@code HashCode}, of which the bytes will form the passed long, interpreted 106 static HashCode fromBytes(byte[] bytes) { 107 return new BytesHashCode(bytes); 111 final byte[] bytes; field in class:HashCodes.BytesHashCode 113 BytesHashCode(byte[] bytes) { 114 this.bytes = bytes; 118 return bytes.length * 8; 122 return bytes.clone() [all...] |
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
ReserializingTestCollectionGenerator.java | 55 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 56 ObjectOutputStream out = new ObjectOutputStream(bytes); 59 new ByteArrayInputStream(bytes.toByteArray()));
|
/external/libvorbis/doc/ |
02-bitpacking.tex | 19 \subsubsection{octets, bytes and words} 23 seven, ten, eleven and sixteen bit 'bytes' have been used. For 29 bytes as the fundamental atom of storage). A 'word' is an integer 34 bytes (16, 32 or 64 bits). Note however that the Vorbis bitpacking 52 Words are native groupings of multiple bytes. Several byte orderings 63 Logically, bytes are always coded and decoded in order from byte zero 78 coded. When packing the bits into bytes, the encoder begins by 149 byte n [ ] bytestream length == 2 bytes 166 byte n [ ] bytestream length == 4 bytes 185 byte 3 [0 0 0 0 0 1 1 0] bytestream length == 4 bytes [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
DecoderSpecificInfo.java | 34 byte[] bytes;
field in class:DecoderSpecificInfo 39 bytes = new byte[sizeOfInstance];
40 bb.get(bytes);
45 return bytes.length;
49 ByteBuffer out = ByteBuffer.wrap(bytes);
58 sb.append("{bytes=").append(bytes == null ? "null" : Hex.encodeHex(bytes));
74 if (!Arrays.equals(bytes, that.bytes)) {
[all...] |
/external/openssh/ |
bufbn.c | 56 * by (bits+7)/8 bytes of binary data, msb first. 76 /* Store the number of bits in the buffer in two bytes, msb first. */ 101 u_int bits, bytes; local 110 /* Compute the number of binary bytes that follow. */ 111 bytes = (bits + 7) / 8; 112 if (bytes > 8 * 1024) { 113 error("buffer_get_bignum_ret: cannot handle BN of size %d", bytes); 116 if (buffer_len(buffer) < bytes) { 121 if (BN_bin2bn(bin, bytes, value) == NULL) { 125 if (buffer_consume_ret(buffer, bytes) == -1) 145 u_int bytes; local [all...] |
/external/openssl/crypto/bn/ |
bn_rand.c | 121 int ret=0,bit,bytes,mask; local 130 bytes=(bits+7)/8; 134 buf=(unsigned char *)OPENSSL_malloc(bytes); 147 if (RAND_pseudo_bytes(buf, bytes) == -1) 152 if (RAND_bytes(buf, bytes) <= 0) 164 for (i = 0; i < bytes; i++) 198 buf[bytes-1]|=1; 199 if (!BN_bin2bn(buf,bytes,rnd)) goto err; 204 OPENSSL_cleanse(buf,bytes);
|
/external/skia/legacy/include/core/ |
SkData.h | 18 * but the actual ptr that is returned (by data() or bytes()) is guaranteed 24 * Returns the number of bytes stored. 37 const uint8_t* bytes() const { function in class:SkData 43 * Returns the actual number of bytes copied, after clamping offset and 45 * only the computed number of bytes is returned. 98 * SkData. If the SkData is null, data(), bytes() and size() will return 0. 116 const uint8_t* bytes() const { function in class:SkAutoDataUnref
|
/external/skia/legacy/src/utils/ |
SkBase64.cpp | 45 unsigned char bytes[4]; local 56 bytes[byte] = decoded; 80 int one = (uint8_t) (bytes[0] << 2); 81 two = bytes[1]; 84 three = bytes[2]; 87 three |= bytes[3];
|
/external/skia/src/utils/ |
SkBase64.cpp | 45 unsigned char bytes[4]; local 56 bytes[byte] = decoded; 80 int one = (uint8_t) (bytes[0] << 2); 81 two = bytes[1]; 84 three = bytes[2]; 87 three |= bytes[3];
|
/external/smack/src/org/xbill/DNS/ |
NSAPRecord.java | 32 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 46 bytes.write(current); 57 return bytes.toByteArray();
|
/external/valgrind/main/coregrind/ |
pub_core_aspacemgr.h | 295 also ensure that at least abs(EXTRA) extra free bytes will remain 305 mapping by DELTA bytes, taking the space from a reservation section 320 the mapping forwards only by DELTA bytes, and trashes whatever was 357 HChar bytes[VG_STACK_GUARD_SZB member in struct:__anon16924 372 /* Figure out how many bytes of the stack's active area have not been
|