/prebuilts/ndk/current/platforms/android-8/arch-arm/usr/include/linux/netfilter_ipv4/ |
ipt_sctp.h | 47 #define bytes(type) (sizeof(type) * 8) macro 49 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 51 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 53 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/prebuilts/ndk/current/platforms/android-9/arch-arm/usr/include/linux/netfilter/ |
xt_sctp.h | 49 #define bytes(type) (sizeof(type) * 8) macro 51 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 53 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/prebuilts/ndk/current/platforms/android-9/arch-arm/usr/include/linux/netfilter_ipv4/ |
ipt_sctp.h | 47 #define bytes(type) (sizeof(type) * 8) macro 49 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 51 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 53 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/prebuilts/ndk/current/platforms/android-9/arch-mips/usr/include/linux/netfilter/ |
xt_sctp.h | 49 #define bytes(type) (sizeof(type) * 8) macro 51 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 53 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/prebuilts/ndk/current/platforms/android-9/arch-mips/usr/include/linux/netfilter_ipv4/ |
ipt_sctp.h | 47 #define bytes(type) (sizeof(type) * 8) macro 49 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 51 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 53 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/prebuilts/ndk/current/platforms/android-9/arch-x86/usr/include/linux/netfilter/ |
xt_sctp.h | 49 #define bytes(type) (sizeof(type) * 8) macro 51 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 53 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 55 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/prebuilts/ndk/current/platforms/android-9/arch-x86/usr/include/linux/netfilter_ipv4/ |
ipt_sctp.h | 47 #define bytes(type) (sizeof(type) * 8) macro 49 #define SCTP_CHUNKMAP_SET(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] |= 1 << (type % bytes(u_int32_t)); } while (0) 51 #define SCTP_CHUNKMAP_CLEAR(chunkmap, type) do { chunkmap[type / bytes(u_int32_t)] &= ~(1 << (type % bytes(u_int32_t))); } while (0) 53 #define SCTP_CHUNKMAP_IS_SET(chunkmap, type) ({ (chunkmap[type / bytes (u_int32_t)] & (1 << (type % bytes (u_int32_t)))) ? 1: 0; })
|
/system/connectivity/shill/net/ |
byte_string.cc | 75 vector<uint8_t> bytes; local 76 if (!base::HexStringToBytes(hex_string, &bytes)) { 79 return ByteString(&bytes.front(), bytes.size());
|
/system/core/debuggerd/ |
utility.cpp | 115 // Align the address to sizeof(long) and start 32 bytes before the address. 133 // Dump 256 bytes 136 size_t bytes = backtrace->Read(addr, reinterpret_cast<uint8_t*>(data), sizeof(data)); local 137 if (bytes % sizeof(uintptr_t) != 0) { 139 ALOGE("Bytes read %zu, is not a multiple of %zu", bytes, sizeof(uintptr_t)); 140 bytes &= ~(sizeof(uintptr_t) - 1); 145 if (bytes == 0) { 156 if (bytes < MEMORY_BYTES_TO_DUMP && !skip_2nd_read) { 161 // to contain at least one page, and the total number of bytes to dum [all...] |
/system/core/fastboot/ |
socket.cpp | 55 ssize_t bytes = Receive(reinterpret_cast<char*>(data) + total, length - total, timeout_ms); local 57 if (bytes == -1) { 63 total += bytes; 205 // Adjust the buffers to skip past the bytes we've just sent.
|
/system/core/include/utils/ |
String8.h | 67 inline size_t bytes() const; 274 inline size_t String8::bytes() const function in class:android::String8
|
/system/core/libziparchive/ |
zip_archive_stream_entry.cc | 86 size_t bytes = (length_ > data_.size()) ? data_.size() : length_; local 89 if (!android::base::ReadFully(archive->fd, data_.data(), bytes)) { 99 if (bytes < data_.size()) { 100 data_.resize(bytes); 103 length_ -= bytes; 206 size_t bytes = (compressed_length_ > in_.size()) ? in_.size() : compressed_length_; local 209 if (!android::base::ReadFully(archive->fd, in_.data(), bytes)) { 218 compressed_length_ -= bytes; 220 z_stream_.avail_in = bytes;
|
/system/extras/memtrack/ |
memtrack.cpp | 70 ssize_t bytes; local 73 bytes = read(fd_, data_ + len_, max_ - len_); 74 if (bytes == 0 || bytes == -1) { 78 len_ += bytes; 137 ssize_t bytes = read(fd, cmd_name_, sizeof(cmd_name_)); local 139 if (bytes == -1 || bytes == 0) {
|
/system/extras/verity/ |
verify_boot_signature.c | 90 * @param offset Receives the offset in bytes 228 ssize_t bytes = 0; local 254 bytes = BUFFER_SIZE; 257 bytes = length - total; 260 if ((bytes = read(fd, buffer, bytes)) == -1) { 265 EVP_DigestUpdate(ctx, buffer, bytes); 266 total += bytes; 269 if ((bytes = i2d_AuthAttrs((AuthAttrs *) aa, NULL)) < 0) { 274 if ((attrs = OPENSSL_malloc(bytes)) == NULL) [all...] |
/system/webservd/webservd/ |
log_manager.cc | 75 auto bytes = reinterpret_cast<const uint8_t*>(&addr_in6->sin6_addr); local 77 bytes[12], bytes[13], bytes[14], bytes[15]);
|
/toolchain/binutils/binutils-2.25/bfd/ |
i386os9k.c | 36 mh_com *bytes = (mh_com *) raw_bytes; local 39 /* Now fill in fields in the execp, from the bytes in the raw data. */ 40 execp->a_info = H_GET_16 (abfd, bytes->m_sync); 42 execp->a_entry = H_GET_32 (abfd, bytes->m_exec); 47 dload = H_GET_32 (abfd, bytes->m_idata); 61 execp->a_bss = H_GET_32 (abfd, bytes->m_data) - execp->a_data;
|
/external/jetty/src/java/org/eclipse/jetty/servlets/ |
MultiPartFilter.java | 71 * the setCharacterEncoding mechanism is respected when converting bytes to Strings. 182 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 183 IO.copy(p.getInputStream(), bytes); local 184 params.add(p.getName(), bytes.toByteArray()); 356 private String getParameterBytesAsString (String name, byte[] bytes) 369 return new String(bytes,contentType);
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
PacManager.java | 217 throw new IOException("PAC too big: " + contentLength + " bytes"); 219 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 223 bytes.write(buffer, 0, count); 224 if (bytes.size() > MAX_PAC_SIZE) { 228 return bytes.toString();
|
/frameworks/support/core-utils/tests/java/android/support/v4/content/ |
FileProviderTest.java | 395 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 399 bytes.write(buffer, 0, count); 401 return bytes.toByteArray();
|
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/ |
MyDocumentsProvider.java | 393 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 397 bytes.write(buffer, 0, count); 399 return bytes.toByteArray();
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
RBBIDataWrapper.java | 108 int fLength; // Total length in bytes of this RBBI Data, 114 // All offsets are bytes from the start of the RBBIDataHeader. 115 // All sizes are in bytes. 167 static RBBIDataWrapper get(ByteBuffer bytes) throws IOException { 170 ICUBinary.readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); 171 This.isBigEndian = bytes.order() == ByteOrder.BIG_ENDIAN; 175 This.fHeader.fMagic = bytes.getInt(); 176 // Read the same 4 bytes as an int and as a byte array: The data format could be 179 This.fHeader.fVersion = bytes.getInt(bytes.position()) [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
RBBIDataWrapper.java | 107 int fLength; // Total length in bytes of this RBBI Data, 113 // All offsets are bytes from the start of the RBBIDataHeader. 114 // All sizes are in bytes. 166 static RBBIDataWrapper get(ByteBuffer bytes) throws IOException { 169 ICUBinary.readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); 170 This.isBigEndian = bytes.order() == ByteOrder.BIG_ENDIAN; 174 This.fHeader.fMagic = bytes.getInt(); 175 // Read the same 4 bytes as an int and as a byte array: The data format could be 178 This.fHeader.fVersion = bytes.getInt(bytes.position()) [all...] |
/external/libgdx/extensions/gdx-setup/src/com/badlogic/gdx/setup/ |
GdxSetup.java | 386 ByteArrayOutputStream bytes = new ByteArrayOutputStream();
local 392 bytes.write(buffer, 0, read);
394 return bytes.toByteArray();
408 ByteArrayOutputStream bytes = new ByteArrayOutputStream();
local 414 bytes.write(buffer, 0, read);
416 return bytes.toByteArray();
443 private void writeFile (File outFile, byte[] bytes) {
448 out.write(bytes);
|
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/ |
SimpleWebServer.java | 78 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); typedefs 84 bytes.write(buffer, 0, count); 86 text = bytes.toString("UTF-8"); 337 msg.append(len).append(" bytes"); 355 response.addHeader("Accept-Ranges", "bytes"); 482 if (range.startsWith("bytes=")) { 483 range = range.substring("bytes=".length()); 530 res.addHeader("Accept-Ranges", "bytes"); 532 res.addHeader("Content-Range", "bytes " + startFrom + "-" + endAt + "/" + fileLen); 541 res.addHeader("Content-Range", "bytes */" + fileLen) [all...] |
/external/opencv3/modules/java/common_test/src/org/opencv/test/utils/ |
ConvertersTest.java | 259 List<Byte> bytes = new ArrayList<Byte>(); local 264 bytes.add(new Byte(value1)); 265 bytes.add(new Byte(value2)); 266 bytes.add(new Byte(value3)); 267 bytes.add(new Byte(value4)); 269 dst = Converters.vector_char_to_Mat(bytes); 469 List<Byte> bytes = new ArrayList<Byte>(); local 474 bytes.add(new Byte(value1)); 475 bytes.add(new Byte(value2)); 476 bytes.add(new Byte(value3)) [all...] |