/external/dbus/test/ |
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...] |
/external/google-breakpad/src/processor/ |
minidump_unittest.cc | 100 vector<char> bytes; local 103 bytes.resize(file_stream.tellg()); 106 file_stream.read(&bytes[0], bytes.size()); 108 string str(&bytes[0], bytes.size()); [all...] |
/external/google-breakpad/src/third_party/libdisasm/ |
ia32_invariant.c | 146 int x, type, bytes = 0, size = 0, modrm = 0; local 208 bytes += ia32_invariant_modrm( buf, out, 219 memset( &out[bytes + modrm], X86_WILDCARD_BYTE, 221 bytes += size; 232 memset( &out[bytes + modrm], 235 memcpy( &out[bytes + modrm], 236 &buf[bytes + modrm], size ); 239 bytes += size; 276 return (bytes + modrm); 293 /* copy opcode bytes to buffer * [all...] |
/external/guava/guava/src/com/google/common/hash/ |
HashCode.java | 48 * Returns the first four bytes of {@linkplain #asBytes() this hashcode's bytes}, converted to 56 * Returns the first eight bytes of {@linkplain #asBytes() this hashcode's bytes}, converted to 65 * value with {@code asBytes()} as the least-significant bytes and {@code 0x00} as the remaining 66 * most-significant bytes. 81 * Copies bytes from this hash code into {@code dest}. 85 * @param maxLength the maximum number of bytes to write 86 * @return the number of bytes written to {@code dest} 99 * Returns a mutable view of the underlying bytes for the given {@code HashCode} if it is 258 final byte[] bytes; field in class:HashCode.BytesHashCode [all...] |
/external/guava/guava/src/com/google/common/io/ |
ByteSource.java | 42 * A readable source of bytes, such as a file. Unlike an {@link InputStream}, a 69 * Returns a {@link CharSource} view of this byte source that decodes bytes read from this source 106 * Returns a view of a slice of this byte source that is at most {@code length} bytes long 116 * Returns whether the source has zero bytes. The default implementation is to open a stream and 135 * Returns the size of this source in bytes. For most implementations, this is a heavyweight 137 * to the end of the stream and return the total number of bytes that were read. 141 * bytes than would be returned by reading all of the bytes (for example, some special files may 145 * the same number of bytes a subsequent read would return. 172 * Counts the bytes in the given input stream using skip if possible. Returns SKIP_FAILED if th 492 protected final byte[] bytes; field in class:ByteSource.ByteArrayByteSource [all...] |
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/ |
BytesTest.java | 30 * Unit test for {@link Bytes}. 46 assertEquals(((Byte) value).hashCode(), Bytes.hashCode(value)); 51 assertFalse(Bytes.contains(EMPTY, (byte) 1)); 52 assertFalse(Bytes.contains(ARRAY1, (byte) 2)); 53 assertFalse(Bytes.contains(ARRAY234, (byte) 1)); 54 assertTrue(Bytes.contains(new byte[] {(byte) -1}, (byte) -1)); 55 assertTrue(Bytes.contains(ARRAY234, (byte) 2)); 56 assertTrue(Bytes.contains(ARRAY234, (byte) 3)); 57 assertTrue(Bytes.contains(ARRAY234, (byte) 4)); 61 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1)) 204 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local [all...] |
/external/guava/guava-tests/test/com/google/common/primitives/ |
BytesTest.java | 32 * Unit test for {@link Bytes}. 48 assertEquals(((Byte) value).hashCode(), Bytes.hashCode(value)); 53 assertFalse(Bytes.contains(EMPTY, (byte) 1)); 54 assertFalse(Bytes.contains(ARRAY1, (byte) 2)); 55 assertFalse(Bytes.contains(ARRAY234, (byte) 1)); 56 assertTrue(Bytes.contains(new byte[] {(byte) -1}, (byte) -1)); 57 assertTrue(Bytes.contains(ARRAY234, (byte) 2)); 58 assertTrue(Bytes.contains(ARRAY234, (byte) 3)); 59 assertTrue(Bytes.contains(ARRAY234, (byte) 4)); 63 assertEquals(-1, Bytes.indexOf(EMPTY, (byte) 1)) 206 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local [all...] |
/external/harfbuzz_ng/test/api/ |
test-buffer.c | 383 unsigned int bytes, chars, i, j, len; local 397 bytes = strlen (test->utf8); 402 hb_buffer_add_utf8 (b, test->utf8, bytes, 1, bytes - 2); 475 /* continuation bytes */ 613 /* missing continuation bytes */ 624 /* impossible bytes */
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
UPropertyAliases.java | 78 private void load(ByteBuffer bytes) throws IOException { 79 //dataVersion=ICUBinary.readHeaderAndDataVersion(bytes, DATA_FORMAT, IS_ACCEPTABLE); 80 ICUBinary.readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); 81 int indexesLength=bytes.getInt()/4; // inIndexes[IX_VALUE_MAPS_OFFSET]/4 88 inIndexes[i]=bytes.getInt(); 95 valueMaps=ICUBinary.getInts(bytes, numInts, 0); 102 bytes.get(bytesTries); 104 // Read the nameGroups and turn them from ASCII bytes into a Java String. 110 sb.append((char)bytes.get()); 116 ByteBuffer bytes = ICUBinary.getRequiredData("pnames.icu") local [all...] |
UResource.java | 30 // Stores a reference to the resource bundle key string bytes array, 35 private byte[] bytes; field in class:UResource.Key 46 bytes = keyBytes; 53 * The corresponding ASCII-character bytes are not copied and 62 bytes = keyBytes; 72 bytes = null; 93 return (char)bytes[offset + i]; 105 return new Key(bytes, offset + start, end - start); 121 sb.append((char)bytes[offset + i]); 145 if (bytes[offset + i] != otherBytes[otherOffset + i]) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/ |
CoverageTest.java | 70 private void writeFile(String className, byte bytes[]) 76 stream.write(bytes); 89 private void add(String className, int classModifiers, byte bytes[]) 91 CoverageTarget newTarget = new CoverageTarget(className, classModifiers, bytes); 99 private byte bytes[]; field in class:CoverageTest.CoverageTarget 102 public CoverageTarget(String className, int classModifiers, byte bytes[]) 104 super(className, bytes == null? null : new ByteArrayInputStream(bytes)); 106 this.bytes = bytes; [all...] |
/external/icu/icu4c/source/common/ |
ucnv_u16.c | 112 /* copy an even number of bytes for complete UChars */ 183 length=2; /* 2 bytes to output */ 196 length=0; /* from here on, length counts the bytes in overflow[] */ 215 length=4; /* 4 bytes to output */ 232 /* output length bytes with overflow (length>targetCapacity>0) */ 317 /* continue collecting bytes for the trail surrogate */ 356 * used for the lead unit's bytes 374 /* copy an even number of bytes for complete UChars */ 536 /* too few (2 or 3) bytes for a surrogate pair: truncated code point */ 537 uint8_t *bytes=pArgs->converter->toUBytes local 554 uint8_t *bytes=pArgs->converter->toUBytes; local 1133 uint8_t *bytes=pArgs->converter->toUBytes; local 1150 uint8_t *bytes=pArgs->converter->toUBytes; local [all...] |
ucnv_u7.c | 214 uint8_t *bytes; local 244 bytes=cnv->toUBytes; 271 bytes[0]=b; 304 * base64 bytes, while nextSourceIndex is precisely parallel to source, 310 bytes[byteIndex++]=b=*source++; 332 bytes[0]=PLUS; 357 /* collect base64 bytes into UChars */ 377 bytes[0]=b; /* keep this byte in case an error occurs */ 388 bytes[0]=b; /* keep this byte in case an error occurs */ 587 * Output 2 or 3 base64 bytes for the remaining bits of the previous characte 893 uint8_t *bytes; local [all...] |