| /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 | 51 ByteBuffer bytes = ICUBinary.getRequiredData("coll/ucadata.icu"); external variable declarations 53 CollationDataReader.read(null, bytes, t2);
|
| /external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
| CollationRoot.java | 49 ByteBuffer bytes = ICUBinary.getRequiredData("coll/ucadata.icu"); external variable declarations 51 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/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::__anon22563 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/libcups/cups/ |
| langprintf.c | 31 ssize_t bytes; /* Number of bytes formatted */ local 83 bytes = cupsUTF8ToCharset(output, (cups_utf8_t *)buffer, sizeof(output), 86 if (bytes > 0) 87 fwrite(output, 1, (size_t)bytes, stderr); 95 int /* O - Number of bytes written */ 102 ssize_t bytes; /* Number of bytes formatted */ local 136 bytes = cupsUTF8ToCharset(output, (cups_utf8_t *)buffer, sizeof(output), 140 * Write the string and return the number of bytes written.. 159 ssize_t bytes; \/* Number of bytes formatted *\/ local 215 ssize_t bytes; \/* Number of bytes formatted *\/ local [all...] |
| snprintf.c | 28 int /* O - Number of bytes formatted */ 47 int bytes; /* Total number of bytes needed */ local 56 bytes = 0; 68 bytes ++; 182 bytes += (int)templen; 213 bytes += (int)templen; 237 bytes += (int)templen; 255 bytes += width; 280 bytes += width 343 int bytes; \/* Number of bytes formatted *\/ local [all...] |
| /external/libcups/filter/ |
| commandtops.c | 136 ssize_t bytes; /* Number of bytes read */ local 299 while ((bytes = cupsBackChannelRead(bufptr, sizeof(buffer) - (size_t)(bufptr - buffer) - 1, 10.0)) > 0) 305 bufptr += bytes; 308 if (bytes == 0 || 316 bytes = bufptr - buffer; 333 fprintf(stderr, "DEBUG: Got %d bytes.\n", (int)bytes); 383 if (bytes <= 0)
|
| error.c | 54 ssize_t bytes; /* Bytes in message string */ local 60 bytes = vsnprintf(s, sizeof(s), f, ap); 63 if (bytes <= 0) 68 bytes ++; 70 if ((size_t)bytes >= sizeof(s)) 73 if (bytes > (ssize_t)(buf->end - buf->current)) 83 size = (size_t)(buf->end - buf->start + 2 * bytes + 1024); 106 memcpy(buf->current, s, (size_t)bytes); 107 buf->current += bytes - 1 [all...] |
| /external/libese/libese-hw/nxp/pn80t/ |
| nq_nci.c | 106 uint32_t bytes = 0; local 116 while (bytes < len) { 117 ssize_t ret = write(handle->fd, (void *)(buf + bytes), len - bytes); 127 bytes += ret; 150 uint32_t bytes = 0; local 151 while (bytes < len) { 152 ssize_t ret = read(handle->fd, (void *)(buf + bytes), len - bytes); 162 bytes += ret [all...] |
| /external/libmojo/base/android/linker/ |
| linker_jni.cc | 46 // Note: GetStringUTFChars() returns Java UTF-8 bytes. This is good 48 const char* bytes = env->GetStringUTFChars(str, nullptr); local 49 ::memcpy(ptr_, bytes, size_); 52 env->ReleaseStringUTFChars(str, bytes); 152 size_t bytes = kAddressSpaceReservationSize; local 156 bytes += kBreakpadGuardRegionBytes; 160 mmap(nullptr, bytes, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); 165 munmap(address, bytes);
|
| /external/libmojo/mojo/edk/system/ |
| message_for_transit.h | 70 const void* bytes() const { function in class:mojo::edk::MessageForTransit
|
| /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/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/ |
| 2-1.c | 218 ssize_t bytes; local 221 bytes = write(write_pipe, &send, 1); 222 if (bytes == -1) { 229 bytes = read(read_pipe, reply, 1); 230 if (bytes == -1) { 233 } else if (bytes == 0) {
|
| /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/ |
| 2-1.c | 164 ssize_t bytes; local 167 bytes = write(write_pipe, &send, 1); 168 if (bytes == -1) { 174 bytes = read(read_pipe, reply, 1); 175 if (bytes == -1) { 178 } else if (bytes == 0) {
|
| 2-2.c | 180 ssize_t bytes; local 182 bytes = write(write_pipe, &send, 1); 183 if (bytes == -1) { 189 bytes = read(read_pipe, reply, 1); 190 if (bytes == -1) { 193 } else if (bytes == 0) {
|
| /external/ltp/utils/ffsb-6.0-rc2/ |
| rand.c | 90 uint8_t bytes[4]; local 93 bytes[0] = genrand8(state); 94 bytes[1] = genrand8(state); 95 bytes[2] = genrand8(state); 96 bytes[3] = genrand8(state); 98 ret = *((uint32_t *) bytes); /* !!! hack */ 141 uint8_t bytes[4] = { 0, 0, 0, 0 }; local 157 bytes[i] = genrand8(state); 159 ret = (bytes[3] << 24) + (bytes[2] << 16) + (bytes[1] << 8) + bytes[0] [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:__anon28018 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:__anon28019 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());
|
| /external/pcre/dist2/src/ |
| pcre2_serialize.c | 76 uint8_t *bytes; local 109 bytes = memctl->malloc(total_size + sizeof(pcre2_memctl), memctl->memory_data); 110 if (bytes == NULL) return PCRE2_ERROR_NOMEMORY; 113 memcpy(bytes, memctl, sizeof(pcre2_memctl)); 114 bytes += sizeof(pcre2_memctl); 116 data = (pcre2_serialized_data *)bytes; 123 dst_bytes = bytes + sizeof(pcre2_serialized_data); 134 *serialized_bytes = bytes; 146 const uint8_t *bytes, pcre2_general_context *gcontext) 148 const pcre2_serialized_data *data = (const pcre2_serialized_data *)bytes; [all...] |
| /external/protobuf/conformance/ |
| ConformanceJava.java | 105 int bytes = readLittleEndianIntFromStdin(); local 107 if (bytes == -1) { 111 byte[] serializedInput = new byte[bytes]; 113 if (!readFromStdin(serializedInput, bytes)) {
|
| ConformanceJavaLite.java | 90 int bytes = readLittleEndianIntFromStdin(); local 92 if (bytes == -1) { 96 byte[] serializedInput = new byte[bytes]; 98 if (!readFromStdin(serializedInput, bytes)) {
|
| /external/skia/src/core/ |
| SkBigPicture.cpp | 66 size_t bytes = sizeof(*this) + fRecord->bytesUsed() + fApproxBytesUsedBySubPictures; local 67 if (fBBH) { bytes += fBBH->bytesUsed(); } 68 return bytes;
|