/device/google/contexthub/util/nanotool/ |
androidcontexthub.cpp | 59 const uint8_t *bytes = (const uint8_t *) data; local 61 buffer.push_back(bytes[i]); 66 sp<JSONObject> json, std::vector<uint8_t>& bytes) { 72 AppendBytes(&val, sizeof(uint32_t), bytes); 81 std::vector<uint8_t>& bytes) { 88 success = CopyInt32Array(key, json, bytes); 96 AppendBytes(&value, sizeof(float), bytes); 104 success = CopyInt32Array(key, json, bytes); 109 AppendBytes(&value, sizeof(int32_t), bytes); 195 LOGD("Writing %zu bytes", message.size()) [all...] |
/device/huawei/angler/liblight/ |
lights.c | 104 int bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); local 105 ssize_t amt = write(fd, buffer, (size_t)bytes); 126 int bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", on, off); local 127 int amt = write(fd, buffer, bytes);
|
/external/avahi/avahi-core/ |
iface-pfroute.c | 264 ssize_t bytes; local 273 if((bytes = recv(nl->fd, msg, 2048, MSG_DONTWAIT)) < 0) { 281 while (bytes > 0);
|
/external/bison/lib/ |
abitset.c | 318 size_t bytes; local 320 bytes = sizeof (bitset_word) * dst->b.csize; 322 memset (dstp, -1, bytes); 331 size_t bytes; local 333 bytes = sizeof (bitset_word) * dst->b.csize; 335 memset (dstp, 0, bytes); 788 size_t bytes; local 794 bytes = header_size + size * sizeof (bitset_word); 800 bytes += bitset_alignment - 1; 801 bytes -= bytes % bitset_alignment [all...] |
bitset.c | 36 /* Return number of bytes required to create a N_BIT bitset 37 of TYPE. The bitset may grow to require more bytes than this. */ 41 size_t bytes; local 52 bytes = abitset_bytes (n_bits); 56 bytes = lbitset_bytes (n_bits); 60 bytes = ebitset_bytes (n_bits); 64 bytes = vbitset_bytes (n_bits); 68 return bytes; 136 size_t bytes; local 139 bytes = bitset_bytes (type, n_bits) 156 size_t bytes; local [all...] |
vbitset.c | 345 unsigned int bytes; local 347 bytes = sizeof (bitset_word) * VBITSET_SIZE (dst); 349 memset (dstp, -1, bytes); 358 unsigned int bytes; local 360 bytes = sizeof (bitset_word) * VBITSET_SIZE (dst); 362 memset (dstp, 0, bytes);
|
/external/boringssl/src/crypto/bn/ |
convert.c | 184 /* Write the bytes out one by one. Serialization is done without branching on 242 /* decode_hex decodes |in_len| bytes of hex data from |in| and updates |bn|. */ 289 /* decode_dec decodes |in_len| bytes of decimal data from |in| and updates |bn|. */ 529 const size_t bytes = (bits + 7) / 8; local 533 if (bytes != 0 && (bits & 0x07) == 0) { 537 const size_t len = bytes + extend; 538 if (len < bytes ||
|
/external/boringssl/src/crypto/bytestring/ |
cbs.c | 292 CBS bytes; local 296 if (!CBS_get_asn1(cbs, &bytes, CBS_ASN1_INTEGER)) { 301 data = CBS_data(&bytes); 302 len = CBS_len(&bytes);
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/demos/echo/ |
services.py | 79 bytes = messages.BytesField(13, repeated=True) variable in class:EchoData
|
/external/curl/lib/ |
security.c | 163 /* Write |len| bytes from the buffer |to| to the socket |fd|. Return a 268 /* Send |length| bytes from |from| to the |fd| socket taking care of encoding 274 int bytes, htonl_bytes; /* 32-bit integers for htonl */ local 290 bytes = conn->mech->encode(conn->app_data, from, length, prot_level, 292 if(!buffer || bytes <= 0) 296 error = Curl_base64_encode(conn->data, buffer, curlx_sitouz(bytes), 318 htonl_bytes = htonl(bytes); 320 socket_write(conn, fd, buffer, curlx_sitouz(bytes));
|
/external/dbus/dbus/ |
dbus-keyring.c | 284 DBusString bytes; local 294 if (!_dbus_string_init (&bytes)) 307 if (!_dbus_generate_random_bytes (&bytes, 4)) 313 s = (const unsigned char*) _dbus_string_get_const_data (&bytes); 322 _dbus_string_set_length (&bytes, 0); 331 _dbus_string_set_length (&bytes, 0); 332 if (!_dbus_generate_random_bytes (&bytes, KEY_LENGTH_BYTES)) 360 if (!_dbus_string_move (&bytes, 0, 375 _dbus_string_free (&bytes);
|
/external/dbus/test/ |
break-loader.c | 640 DBusString bytes; local 647 if (!_dbus_string_init (&bytes)) 654 if (_dbus_read (fd, &bytes, 4) != 4) 659 s = _dbus_string_get_const_data (&bytes); 676 _dbus_string_free (&bytes);
|
dbus-daemon-eavesdrop.c | 139 gssize bytes; local 143 bytes = read (address_fd, buf, sizeof (buf)); 145 if (bytes > 0) 146 g_string_append_len (address, buf, bytes);
|
dbus-daemon.c | 105 gssize bytes; local 109 bytes = read (address_fd, buf, sizeof (buf)); 111 if (bytes > 0) 112 g_string_append_len (address, buf, bytes);
|
/external/deqp/external/vulkancts/framework/vulkan/ |
vkBinaryRegistry.cpp | 166 deUint8 bytes[4]; local 167 deMemcpy(bytes, &word, sizeof(word)); 168 return bytes[3] == 0; 422 vector<deUint8> bytes (progSize); 424 TCU_CHECK_INTERNAL(!bytes.empty()); 426 progRes->read(&bytes[0], progSize); 428 return new ProgramBinary(vk::PROGRAM_FORMAT_SPIRV, bytes.size(), &bytes[0]);
|
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/ |
CstString.java | 36 /** {@code non-null;} the UTF-8 value as bytes */ 37 private final ByteArray bytes; field in class:CstString 44 * @return {@code non-null;} the UTF-8 bytes for it 48 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate. 54 bytes[outAt] = (byte) c; 57 bytes[outAt] = (byte) (((c >> 6) & 0x1f) | 0xc0); 58 bytes[outAt + 1] = (byte) ((c & 0x3f) | 0x80); 61 bytes[outAt] = (byte) (((c >> 12) & 0x0f) | 0xe0); 62 bytes[outAt + 1] = (byte) (((c >> 6) & 0x3f) | 0x80); 63 bytes[outAt + 2] = (byte) ((c & 0x3f) | 0x80) [all...] |
/external/dhcpcd-6.8.2/ |
arp.c | 129 ssize_t bytes; local 139 bytes = if_readrawpacket(ifp, ETHERTYPE_ARP, 141 if (bytes == -1) { 148 if ((size_t)bytes < sizeof(ar)) 168 if ((hw_t + ar.ar_hln + ar.ar_pln) - arp_buffer > bytes)
|
control.c | 106 ssize_t bytes; local 110 bytes = read(fd->fd, buffer, sizeof(buffer) - 1); 111 if (bytes == -1 || bytes == 0) { 117 buffer[bytes] = '\0'; 119 e = buffer + bytes;
|
/external/e2fsprogs/e2fsck/ |
ea_refcount.c | 52 size_t bytes; local 62 bytes = (size_t) (size * sizeof(struct ea_refcount_el)); 64 printf("Refcount allocated %d entries, %d bytes.\n", 65 refcount->size, bytes); 67 retval = ext2fs_get_mem(bytes, &refcount->list); 70 memset(refcount->list, 0, bytes);
|
/external/elfutils/libdwfl/ |
linux-core-attach.c | 76 unsigned bytes = ebl_get_elfclass (process->ebl) == ELFCLASS64 ? 8 : 4; local 77 if (addr < start || addr + bytes > end) 81 bytes, ELF_T_ADDR); 87 assert (data->d_size == bytes); 88 if (bytes == 8)
|
/external/fio/engines/ |
windowsaio.c | 372 DWORD bytes; local 378 if (!GetQueuedCompletionStatus(ctx->iocp, &bytes, &ulKey, &ovl, 250) && ovl == NULL)
|
/external/flac/libFLAC/ |
bitwriter.c | 53 /* SWAP_BE_WORD_TO_HOST swaps bytes in a uint32_t (which is always big-endian) if necessary to match host byte order */ 202 size_t bytes; local 206 if(!FLAC__bitwriter_get_buffer(bw, &buffer, &bytes)) 209 *crc = (FLAC__uint16)FLAC__crc16(buffer, bytes); 217 size_t bytes; local 221 if(!FLAC__bitwriter_get_buffer(bw, &buffer, &bytes)) 224 *crc = FLAC__crc8(buffer, bytes); 239 FLAC__bool FLAC__bitwriter_get_buffer(FLAC__BitWriter *bw, const FLAC__byte **buffer, size_t *bytes) 255 *bytes = (FLAC__BYTES_PER_WORD * bw->words) + (bw->bits >> 3);
|
/external/freetype/src/pshinter/ |
pshrec.h | 98 FT_Byte* bytes; member in struct:PS_MaskRec_
|
/external/google-breakpad/src/client/mac/tests/ |
exception_handler_test.cc | 198 // Ensure that minidump file exists and is > 0 bytes. 217 // Ensure that minidump file exists and is > 0 bytes. 288 // Ensure that minidump file exists and is > 0 bytes. 314 const uint32_t kMemorySize = 256; // bytes 336 // bytes on either side of the instruction pointer. 356 // Ensure that minidump file exists and is > 0 bytes. 391 const uint8_t* bytes = region->GetMemory(); local 392 ASSERT_TRUE(bytes); 398 EXPECT_TRUE(memcmp(bytes, prefix_bytes, sizeof(prefix_bytes)) == 0); 399 EXPECT_TRUE(memcmp(bytes + kOffset, instructions, sizeof(instructions)) == 0) 490 const uint8_t* bytes = region->GetMemory(); local 590 const uint8_t* bytes = region->GetMemory(); local [all...] |
/external/google-breakpad/src/client/windows/unittests/ |
exception_handler_death_test.cc | 326 const uint32_t kMemorySize = 256; // bytes 338 // minidump should contain 128 bytes on either side of the 383 const uint8_t* bytes = region->GetMemory(); local 384 ASSERT_TRUE(bytes); 390 EXPECT_EQ(0, memcmp(bytes, prefix_bytes, sizeof(prefix_bytes))); 391 EXPECT_EQ(0, memcmp(bytes + kOffset, instructions, sizeof(instructions))); 392 EXPECT_EQ(0, memcmp(bytes + kOffset + sizeof(instructions), 415 const uint32_t kMemorySize = 256; // bytes 433 // minidump should contain 128 bytes on either side of the 478 const uint8_t* bytes = region->GetMemory() local 567 const uint8_t* bytes = region->GetMemory(); local [all...] |