HomeSort by relevance Sort by last modified time
    Searched defs:bytes (Results 801 - 825 of 3342) sorted by null

<<31323334353637383940>>

  /libcore/luni/src/test/java/libcore/java/util/
BitSetTest.java 39 // 2^28 bytes for the bits in the BitSet, plus extra bytes for everything else
97 private static void assertBitSet(BitSet bs, byte[] bytes, String s) {
98 for (int i = 0; i < 8 * bytes.length; ++i) {
99 assertEquals(bs.toString(), ((bytes[i / 8] & (1L << (i % 8))) != 0), bs.get(i));
102 for (int i = 0; i < bytes.length; ++i) {
103 cardinality += Integer.bitCount(((int) bytes[i]) & 0xff);
111 assertEquals(roundUp(8 * bytes.length, 64), bs.size());
119 private static void assertBitSet(byte[] bytes, String s) {
121 assertBitSet(BitSet.valueOf(bytes), bytes, s) local
123 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(bytes)), bytes, s); local
128 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(paddedBytes, 1, bytes.length)), bytes, s); local
    [all...]
  /libcore/ojluni/src/main/java/sun/security/provider/certpath/
X509CertPath.java 256 * @return the bytes read from the InputStream
272 * @return the encoded bytes
291 DerOutputStream bytes = new DerOutputStream(); local
303 bytes.write(encoded);
308 derout.write(DerValue.tag_SequenceOf, bytes);
342 * @return the encoded bytes
  /libcore/ojluni/src/main/java/sun/security/util/
DerOutputStream.java 165 byte[] buf = i.toByteArray(); // least number of bytes
189 byte[] bytes = new byte[4];
192 // Obtain the four bytes of the int
194 bytes[3] = (byte) (i & 0xff);
195 bytes[2] = (byte)((i & 0xff00) >>> 8);
196 bytes[1] = (byte)((i & 0xff0000) >>> 16);
197 bytes[0] = (byte)((i & 0xff000000) >>> 24);
199 // Reduce them to the least number of bytes needed to
202 if (bytes[0] == (byte)0xff) {
207 if ((bytes[j] == (byte)0xff) &
301 DerOutputStream bytes = new DerOutputStream(); local
318 DerOutputStream bytes = new DerOutputStream(); local
389 DerOutputStream bytes = new DerOutputStream(); local
    [all...]
  /packages/apps/DocumentsUI/src/com/android/documentsui/archives/
ReadableArchive.java 199 int bytes; local
200 while ((bytes = inputStream.read(buffer)) != -1) {
201 outputStream.write(buffer, 0, bytes);
  /packages/apps/Gallery2/src/com/android/photos/data/
SparseArrayBitmapPool.java 55 * @param capacityBytes Maximum capacity of the pool in bytes.
127 * @return Capacity of the pool in bytes.
134 * @return Total size in bytes of the bitmaps stored in the pool.
170 int bytes = b.getByteCount(); local
171 freeUpCapacity(bytes);
201 mSizeBytes += bytes;
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
JavaNetHttpHelper.java 162 int bytes; local
163 while ((bytes = reader.read(chars)) != -1) {
164 string.append(chars, 0, bytes);
  /packages/apps/UnifiedEmail/src/org/apache/commons/io/
FileSystemUtils.java 114 * bytes on Windows, 512 byte units on OS X and kilobytes on Unix.
229 // non-empty line (the free space bytes should be in the last element
249 * @return the number of bytes
256 // numeric character inclusive is our free space bytes count
264 // the free space bytes count
274 // beginning of the free space bytes count
286 // remove commas and dots in the bytes count
356 * Parses the bytes from a string.
360 * @return the number of bytes
365 long bytes = Long.parseLong(freeSpace) local
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/mtd/
ubi-user.h 76 * this number of bytes to the volume character device. The update is finished
77 * when the claimed number of bytes is passed. So, the volume update sequence
99 * user is expected to write the requested amount of bytes (similarly to what
251 * 512 in case of a 512 bytes page NAND flash with no sub-page support. Or
260 * be 2KiB-64 bytes = 1984. Note, that this position is not even 512-bytes
276 * @bytes: volume size in bytes
305 __s64 bytes; member in struct:ubi_mkvol_req
316 * @bytes: new size of the volume in byte
325 __s64 bytes; member in struct:ubi_rsvol_req
381 __s32 bytes; member in struct:ubi_leb_change_req
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/mtd/
ubi-user.h 76 * this number of bytes to the volume character device. The update is finished
77 * when the claimed number of bytes is passed. So, the volume update sequence
99 * user is expected to write the requested amount of bytes (similarly to what
253 * 512 in case of a 512 bytes page NAND flash with no sub-page support. Or
262 * be 2KiB-64 bytes = 1984. Note, that this position is not even 512-bytes
278 * @bytes: volume size in bytes
307 __s64 bytes; member in struct:ubi_mkvol_req
318 * @bytes: new size of the volume in byte
327 __s64 bytes; member in struct:ubi_rsvol_req
383 __s32 bytes; member in struct:ubi_leb_change_req
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/lib2to3/pgen2/
tokenize.py 42 bytes
44 # Support bytes type in Python <= 2.5, so 2to3 turns itself into
46 bytes = str variable
259 (as a string) and a list of any lines (left as bytes) it has read
277 return bytes()
  /prebuilts/gdb/darwin-x86/lib/python2.7/
uuid.py 38 # get the raw 16 bytes of the UUID
39 >>> x.bytes
43 >>> uuid.UUID(bytes=x.bytes)
61 of 16 bytes (with all the integer fields in big-endian order) as an
62 argument named 'bytes', or a string of 16 bytes (with the first three
68 bytes the UUID as a 16-byte string (containing the six
101 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
104 a string of 16 bytes as the 'bytes' argument, a string of 16 byte
208 bytes = property(get_bytes) variable in class:UUID
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/lib2to3/pgen2/
tokenize.py 42 bytes
44 # Support bytes type in Python <= 2.5, so 2to3 turns itself into
46 bytes = str variable
259 (as a string) and a list of any lines (left as bytes) it has read
277 return bytes()
  /prebuilts/gdb/linux-x86/lib/python2.7/
uuid.py 38 # get the raw 16 bytes of the UUID
39 >>> x.bytes
43 >>> uuid.UUID(bytes=x.bytes)
61 of 16 bytes (with all the integer fields in big-endian order) as an
62 argument named 'bytes', or a string of 16 bytes (with the first three
68 bytes the UUID as a 16-byte string (containing the six
101 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
104 a string of 16 bytes as the 'bytes' argument, a string of 16 byte
208 bytes = property(get_bytes) variable in class:UUID
    [all...]
  /prebuilts/go/darwin-x86/src/bytes/
bytes.go 5 // Package bytes implements functions for the manipulation of byte slices.
7 package bytes package
26 // explode splits s into a slice of UTF-8 sequences, one per Unicode code point (still slices of bytes),
27 // up to a maximum of n byte slices. Invalid UTF-8 sequences are chopped into individual bytes.
221 // including sepSave bytes of sep in the subslices.
373 nbytes := 0 // number of bytes encoded in b
411 panic("bytes: negative Repeat count")
413 panic("bytes: Repeat count causes overflow")
596 // given ASCII character in the set. The 128-bits of the lower 16 bytes,
599 // 128 ASCII characters. The 128-bits of the upper 16 bytes will be zeroed
    [all...]
  /prebuilts/go/darwin-x86/src/math/big/
nat.go 1182 // bytes writes the value of z into buf using big-endian encoding.
1184 // slice buf[i:]. The number i of unused bytes at the beginning of
1186 func (z nat) bytes(buf []byte) (i int) { func
1203 // setBytes interprets buf as the bytes of a big-endian unsigned
  /prebuilts/go/linux-x86/src/bytes/
bytes.go 5 // Package bytes implements functions for the manipulation of byte slices.
7 package bytes package
26 // explode splits s into a slice of UTF-8 sequences, one per Unicode code point (still slices of bytes),
27 // up to a maximum of n byte slices. Invalid UTF-8 sequences are chopped into individual bytes.
221 // including sepSave bytes of sep in the subslices.
373 nbytes := 0 // number of bytes encoded in b
411 panic("bytes: negative Repeat count")
413 panic("bytes: Repeat count causes overflow")
596 // given ASCII character in the set. The 128-bits of the lower 16 bytes,
599 // 128 ASCII characters. The 128-bits of the upper 16 bytes will be zeroed
    [all...]
  /prebuilts/go/linux-x86/src/math/big/
nat.go 1182 // bytes writes the value of z into buf using big-endian encoding.
1184 // slice buf[i:]. The number i of unused bytes at the beginning of
1186 func (z nat) bytes(buf []byte) (i int) { func
1203 // setBytes interprets buf as the bytes of a big-endian unsigned
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/pgen2/
tokenize.py 42 bytes
44 # Support bytes type in Python <= 2.5, so 2to3 turns itself into
46 bytes = str variable
259 (as a string) and a list of any lines (left as bytes) it has read
277 return bytes()
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
uuid.py 38 # get the raw 16 bytes of the UUID
39 >>> x.bytes
43 >>> uuid.UUID(bytes=x.bytes)
61 of 16 bytes (with all the integer fields in big-endian order) as an
62 argument named 'bytes', or a string of 16 bytes (with the first three
68 bytes the UUID as a 16-byte string (containing the six
101 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
104 a string of 16 bytes as the 'bytes' argument, a string of 16 byte
208 bytes = property(get_bytes) variable in class:UUID
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/pgen2/
tokenize.py 42 bytes
44 # Support bytes type in Python <= 2.5, so 2to3 turns itself into
46 bytes = str variable
259 (as a string) and a list of any lines (left as bytes) it has read
277 return bytes()
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
uuid.py 38 # get the raw 16 bytes of the UUID
39 >>> x.bytes
43 >>> uuid.UUID(bytes=x.bytes)
61 of 16 bytes (with all the integer fields in big-endian order) as an
62 argument named 'bytes', or a string of 16 bytes (with the first three
68 bytes the UUID as a 16-byte string (containing the six
101 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
104 a string of 16 bytes as the 'bytes' argument, a string of 16 byte
208 bytes = property(get_bytes) variable in class:UUID
    [all...]
  /system/core/fastboot/
udp.cpp 60 static uint16_t ExtractUint16(const uint8_t* bytes) {
61 return (static_cast<uint16_t>(bytes[0]) << 8) | bytes[1];
71 const uint8_t* bytes() const { return bytes_; } function in class:udp::Header
119 // Sends |length| bytes from |data| and waits for the response packet up to |attempts| times.
121 // Excess bytes that cannot fit in |rx_data| are dropped.
122 // On success, returns the number of response data bytes received, which may be greater than
168 // The first two bytes contain the next expected sequence number.
183 // The first two data bytes contain the version, the second two bytes contain the target ma
228 ssize_t bytes = SendSinglePacketHelper(&header, tx_data, packet_data_length, rx_data, local
266 ssize_t bytes = 0; local
330 ssize_t bytes = SendData(kIdFastboot, nullptr, 0, reinterpret_cast<uint8_t*>(data), length, local
348 ssize_t bytes = SendData(kIdFastboot, reinterpret_cast<const uint8_t*>(data), length, nullptr, local
    [all...]
  /system/core/libmemunreachable/
MemUnreachable.cpp 401 ALOGE("%zu bytes in %zu allocation%s unreachable out of %zu bytes in %zu allocation%s",
412 oss << " bytes unreachable at ";
417 oss << " referencing " << referenced_size << " unreachable bytes";
423 oss << " and " << similar_size << " similar unreachable bytes";
427 oss << " referencing " << similar_referenced_size << " unreachable bytes";
435 const size_t bytes = std::min(size, contents_length); local
437 if (bytes == size) {
440 oss << " first " << bytes << " bytes of contents:" << std::endl
    [all...]
  /test/vts/hals/light/bullhead/
lights.c 67 int bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); local
68 int amt = write(fd, buffer, bytes);
88 int bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", on, off); local
89 int amt = write(fd, buffer, bytes);
  /toolchain/binutils/binutils-2.25/libiberty/
md5.c 57 /* This array contains the bytes used to pad the buffer to the next
76 /* Put result from CTX in first 16 bytes following RESBUF. The result
96 /* Process the remaining bytes in the internal buffer and the usual
104 /* Take yet unprocessed bytes into account. */
105 md5_uint32 bytes = ctx->buflen; local
109 /* Now count remaining bytes. */
110 ctx->total[0] += bytes;
111 if (ctx->total[0] < bytes)
114 pad = bytes >= 56 ? 64 + 56 - bytes : 56 - bytes
    [all...]

Completed in 2266 milliseconds

<<31323334353637383940>>