| /system/update_engine/ |
| fake_file_writer.h | 44 virtual ssize_t Write(const void* bytes, size_t count) { 47 const char* char_bytes = reinterpret_cast<const char*>(bytes); 59 const brillo::Blob& bytes() { function in class:chromeos_update_engine::FakeFileWriter 64 // The internal store of all bytes that have been written
|
| /frameworks/base/services/core/java/com/android/server/location/ |
| GpsXtraDownloader.java | 133 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 137 bytes.write(buffer, 0, count); 138 if (bytes.size() > MAXIMUM_CONTENT_LENGTH_BYTES) { 143 return bytes.toByteArray();
|
| /libcore/luni/src/main/java/libcore/io/ |
| 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(); 138 * Skip <b>at most</b> {@code byteCount} bytes from {@code in} by calling read 139 * repeatedly until either the stream is exhausted or we read fewer bytes than 176 * Copies all of the bytes from {@code in} to {@code out}. Neither stream is closed [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());
|
| /art/runtime/gc/allocator/ |
| rosalloc-inl.h | 47 uint8_t* bytes = reinterpret_cast<uint8_t*>(m); local 49 DCHECK_EQ(bytes[i], 0);
|
| /bionic/libc/upstream-netbsd/lib/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...] |
| /bionic/linker/ |
| linker_block_allocator.cpp | 32 uint8_t bytes[PAGE_SIZE - 16] __attribute__((aligned(16))); member in struct:LinkerBlockAllocatorPage 79 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes; 118 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes);
|
| /bootable/recovery/applypatch/ |
| main.cpp | 41 size_t bytes = strtol(argv[2], &endptr, 10); local 42 if (bytes == 0 && endptr == argv[2]) { 46 return CacheSizeCheck(bytes); 174 " or %s -s <bytes>\n"
|
| /external/ImageMagick/coders/ |
| url.c | 216 bytes; 229 while ((bytes=xmlNanoHTTPRead(context,buffer,MaxBufferExtent)) > 0) 230 count=(ssize_t) fwrite(buffer,bytes,1,file); 214 bytes; local
|
| /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Method/ |
| BytecodesTest.java | 69 int bytes = reply.getNextValueAsInt(); local 70 logWriter.println("bytes = " + bytes); 72 byte[] bytecode = new byte[bytes]; 73 for (int j = 0; j < bytes; j++) {
|
| /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
| ASN1Integer.java | 14 private final byte[] bytes; field in class:ASN1Integer 75 bytes = BigInteger.valueOf(value).toByteArray(); 81 bytes = value.toByteArray(); 85 byte[] bytes) 87 this(bytes, true); 90 ASN1Integer(byte[] bytes, boolean clone) 92 this.bytes = (clone) ? Arrays.clone(bytes) : bytes; 97 return new BigInteger(bytes); [all...] |
| /external/caliper/caliper/src/main/java/com/google/caliper/bridge/ |
| CommandLineSerializer.java | 43 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 45 ObjectOutputStream out = new ObjectOutputStream(bytes); 48 return BaseEncoding.base64().encode(bytes.toByteArray());
|
| /external/dbus/dbus/ |
| dbus-types.h | 34 /* boolean size must be fixed at 4 bytes due to wire protocol! */ 143 dbus_uint32_t first32; /**< first 32 bits in the 8 bytes (beware endian issues) */ 144 dbus_uint32_t second32; /**< second 32 bits in the 8 bytes (beware endian issues) */ 148 * A simple value union that lets you access bytes as if they 155 * than 8 bytes. 159 unsigned char bytes[8]; /**< as 8 individual bytes */ member in union:__anon8785
|
| /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/guava/guava-tests/test/com/google/common/io/ |
| TestByteSource.java | 35 private final byte[] bytes; field in class:TestByteSource 41 TestByteSource(byte[] bytes, TestOption... options) { 42 this.bytes = checkNotNull(bytes); 65 super(new ByteArrayInputStream(bytes), options);
|
| /external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
| CollationRoot.java | 49 ByteBuffer bytes = ICUBinary.getRequiredData("coll/ucadata.icu"); typedefs 51 CollationDataReader.read(null, bytes, t2);
|
| /external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
| CollationRoot.java | 47 ByteBuffer bytes = ICUBinary.getRequiredData("coll/ucadata.icu"); typedefs 49 CollationDataReader.read(null, bytes, t2);
|
| /external/libcap/libcap/ |
| cap_extint.c | 25 __u8 bytes[CAP_SET_SIZE][NUMBER_OF_CAP_SETS]; member in struct:cap_ext_struct 66 result->bytes[j++][i] = val & 0xFF; 67 result->bytes[j++][i] = (val >>= 8) & 0xFF; 68 result->bytes[j++][i] = (val >>= 8) & 0xFF; 69 result->bytes[j++][i] = (val >> 8) & 0xFF; 108 val = export->bytes[bno++][set]; 110 val |= export->bytes[bno++][set] << 8; 112 val |= export->bytes[bno++][set] << 16; 114 val |= export->bytes[bno++][set] << 24;
|
| /external/libchrome/base/memory/ |
| ref_counted_memory.cc | 43 RefCountedBytes* bytes = new RefCountedBytes; local 44 bytes->data_.swap(*to_destroy); 45 return bytes;
|
| /external/libchrome/base/metrics/ |
| bucket_ranges.cc | 13 // Static table of checksums for all possible 8 bit bytes. 84 unsigned char bytes[sizeof(HistogramBase::Sample)]; member in union:base::__anon14305 88 sum = kCrcTable[(sum & 0xff) ^ converter.bytes[i]] ^ (sum >> 8); 92 // and we don't care about edge cases since we have an even number of bytes.
|
| /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/nanopb-c/tests/decode_unittests/ |
| decode_unittests.c | 33 if (byte != ref->bytes[i]) 171 struct { size_t size; uint8_t bytes[5]; } d; member in struct:__anon19897 176 TEST((s = S("\x01\xFF"), pb_dec_bytes(&s, &f, &d) && d.size == 1 && d.bytes[0] == 0xFF)) 180 /* Note: the size limit on bytes-fields is not strictly obeyed, as 185 * 6 bytes should error out. 252 struct { size_t size; uint8_t bytes[10]; } ref; member in struct:__anon19898 258 ref.size = 1; ref.bytes[0] = 0x55; 261 ref.size = 3; ref.bytes[0] = ref.bytes[1] = ref.bytes[2] = 0x55 [all...] |
| /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
| ResponseBody.java | 37 * Returns the number of bytes in that will returned by {@link #bytes}, or 48 public final byte[] bytes() throws IOException { method in class:ResponseBody 55 byte[] bytes; 57 bytes = source.readByteArray(); 61 if (contentLength != -1 && contentLength != bytes.length) { 64 return bytes; 83 return new String(bytes(), charset().name());
|