/bionic/libc/arch-mips/string/ |
memcpy.c | 86 /* This code is called when aligning a pointer, there are remaining bytes 106 /* This code is called to copy only remaining bytes within word or doubleword */ 148 unsigned long words, unsigned long bytes, void *ret) 194 /* mop up any remaining bytes. */ 195 return do_bytes_remaining (a, b, bytes, ret); 201 unsigned long words, unsigned long bytes, void *ret) 229 /* mop up any remaining bytes */ 230 return do_bytes_remaining (a, b, bytes, ret); 238 unsigned long words, unsigned long bytes, void *ret) 284 /* mop up any remaining bytes. * 291 unsigned long bytes, words; local [all...] |
memmove.c | 86 /* This code is called when aligning a pointer, there are remaining bytes 186 unsigned long words, unsigned long bytes, void *ret) 219 /* mop up any remaining bytes. */ 220 return do_bytes_aligned (a, b, bytes, ret); 225 unsigned long words, unsigned long bytes, void *ret) 258 /* mop up any remaining bytes. */ 259 return do_bytes_backward (a, b, bytes, ret); 266 unsigned long words, unsigned long bytes, void *ret) 268 return do_bytes_aligned (a, b, (sizeof (reg_t) * words) + bytes, ret); 273 unsigned long words, unsigned long bytes, void *ret 388 unsigned long bytes, words; local [all...] |
/bionic/libc/kernel/uapi/drm/ |
omap_drm.h | 41 __u32 bytes; member in union:omap_gem_size
|
/bionic/libc/kernel/uapi/mtd/ |
ubi-user.h | 66 __s64 bytes; member in struct:ubi_mkvol_req 74 __s64 bytes; member in struct:ubi_rsvol_req 89 __s32 bytes; member in struct:ubi_leb_change_req
|
/bionic/libc/malloc_debug/ |
PointerData.cpp | 318 size_t bytes = (usable_size < g_debug->config().fill_on_free_bytes()) local 321 size_t max_cmp_bytes = bytes; 323 while (bytes > 0) { 324 size_t bytes_to_cmp = (bytes < g_cmp_mem.size()) ? bytes : g_cmp_mem.size(); 328 bytes -= bytes_to_cmp;
|
/bionic/libc/malloc_debug/tests/ |
malloc_debug_system_tests.cpp | 87 ssize_t bytes = TEMP_FAILURE_RETRY(read(fds[0], buffer.data(), sizeof(buffer) - 1)); local 88 if (bytes == -1 && errno == EAGAIN) { 91 ASSERT_NE(-1, bytes); 92 if (bytes == 0) { 96 output.append(buffer.data(), bytes);
|
/bionic/libc/stdio/ |
vfscanf.cpp | 344 size_t bytes = 0; local 346 if (bytes == MB_CUR_MAX) { 350 buf[bytes++] = *fp->_p; 354 nconv = mbrtowc(wcp, buf, bytes, &mbs); 361 nread += bytes; 364 bytes = 0; 367 if (bytes != 0) { 433 size_t bytes = 0; local 435 if (bytes == MB_CUR_MAX) { 439 buf[bytes++] = *fp->_p [all...] |
/bionic/tests/ |
wchar_test.cpp | 37 char bytes[] = { 'h', 'e', 'l', 'l', 'o', '\0' }; local 38 EXPECT_EQ(0U, mbrlen(&bytes[0], 0, nullptr)); 39 EXPECT_EQ(1U, mbrlen(&bytes[0], 1, nullptr)); 41 EXPECT_EQ(1U, mbrlen(&bytes[4], 1, nullptr)); 42 EXPECT_EQ(0U, mbrlen(&bytes[5], 1, nullptr)); 52 char bytes[MB_LEN_MAX]; local 55 EXPECT_EQ(1, wctomb(bytes, L'\0')); 56 EXPECT_EQ(1U, wcrtomb(bytes, L'\0', nullptr)); 59 memset(bytes, 0, sizeof(bytes)); 123 char bytes[BUFSIZ]; local [all...] |
/bootable/recovery/otautil/ |
logging.cpp | 193 size_t bytes; local 194 while ((bytes = fread(buf, 1, sizeof(buf), source_fp)) != 0) { 195 fwrite(buf, 1, bytes, dest_fp);
|
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
CstUtf8.java | 35 /** {@code non-null;} the UTF-8 value as bytes */ 36 private final ByteArray bytes; field in class:CstUtf8 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...] |
/dalvik/dx/src/com/android/dx/cf/cst/ |
ConstantPoolParser.java | 59 /** {@code non-null;} the bytes of the constant pool */ 60 private final ByteArray bytes; field in class:ConstantPoolParser 81 * @param bytes {@code non-null;} the bytes of the file 83 public ConstantPoolParser(ByteArray bytes) { 84 int size = bytes.getUnsignedShort(8); // constant_pool_count 86 this.bytes = bytes; 138 observer.parsed(bytes, 8, 2, 140 observer.parsed(bytes, 10, 0, "\nconstant_pool:") [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
AnnotationParser.java | 57 /** {@code non-null;} bytes of the attribute data */ 58 private final ByteArray bytes; field in class:AnnotationParser 77 * @param length {@code >= 0;} number of bytes left in the attribute data 89 this.bytes = cf.getBytes().slice(offset, offset + length); 90 this.input = bytes.makeDataInputStream(); 437 * Helper which will throw an exception if the given number of bytes 440 * @param requiredLength the number of required bytes 449 * Helper which indicates that some bytes were just parsed. This should 453 * @param length {@code >= 0;} number of bytes parsed 457 observer.parsed(bytes, parseCursor, length, message) [all...] |
MemberListParser.java | 59 * @param offset offset in {@code bytes} to the start of the list 118 ByteArray bytes = cf.getBytes(); local 119 return bytes.getUnsignedShort(offset); 177 ByteArray bytes = cf.getBytes(); local 181 observer.parsed(bytes, offset, 2, 187 int accessFlags = bytes.getUnsignedShort(at); 188 int nameIdx = bytes.getUnsignedShort(at + 2); 189 int descIdx = bytes.getUnsignedShort(at + 4); 194 observer.startParsingMember(bytes, at, name.getString(), 196 observer.parsed(bytes, at, 0, "\n" + humanName() [all...] |
/dalvik/dx/src/com/android/dx/command/dump/ |
BaseDumper.java | 37 private final byte[] bytes; field in class:BaseDumper 39 /** whether or not to include the raw bytes (in a column on the left) */ 57 /** number of bytes per line in hex dumps */ 66 /** the number of read bytes */ 78 * @param bytes {@code non-null;} bytes of the (alleged) class file 84 public BaseDumper(byte[] bytes, PrintStream out, 86 this.bytes = bytes; 132 public void parsed(ByteArray bytes, int offset, int len, String human) [all...] |
BlockDumper.java | 73 * @param bytes {@code non-null;} bytes of the (alleged) class file 80 public static void dump(byte[] bytes, PrintStream out, 82 BlockDumper bd = new BlockDumper(bytes, out, filePath, 91 BlockDumper(byte[] bytes, PrintStream out, String filePath, 93 super(bytes, out, filePath, args); 106 byte[] bytes = getBytes(); 107 ByteArray ba = new ByteArray(bytes); 135 public void parsed(ByteArray bytes, int offset, int len, String human) { 137 super.parsed(bytes, offset, len, human) 208 ByteArray bytes = code.getBytes(); local 281 ByteArray bytes = code.getBytes(); local [all...] |
/dalvik/dx/src/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...] |
/device/google/contexthub/firmware/os/cpu/cortexm4/ |
cpu.c | 64 uint32_t bytes = 0; local 65 void *loc = platGetPersistentRamStore(&bytes); 67 return bytes >= sizeof(struct RamPersistedDataAndDropbox) ? (struct RamPersistedDataAndDropbox*)loc : NULL;
|
/device/google/contexthub/util/nanotool/ |
androidcontexthub.cpp | 60 const uint8_t *bytes = (const uint8_t *) data; local 62 buffer.push_back(bytes[i]); 67 sp<JSONObject> json, std::vector<uint8_t>& bytes) { 73 AppendBytes(&val, sizeof(uint32_t), bytes); 82 sp<JSONObject> json, std::vector<uint8_t>& bytes) { 88 AppendBytes(&val, sizeof(float), bytes); 97 std::vector<uint8_t>& bytes) { 108 success = CopyInt32Array(key, json, bytes); 112 success = CopyFloatArray(key, json, bytes); 120 AppendBytes(&value, sizeof(float), bytes); [all...] |
/device/google/marlin/liblight/ |
lights.c | 125 size_t bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); local 126 if(bytes >= sizeof(buffer)) return -EINVAL; 127 ssize_t amt = write(fd, buffer, bytes); 148 size_t bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", value1, value2); local 149 if(bytes >= sizeof(buffer)) return -EINVAL; 150 ssize_t amt = write(fd, buffer, bytes);
|
/device/google/wahoo/liblight/ |
lights.c | 125 size_t bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); local 126 if(bytes >= sizeof(buffer)) return -EINVAL; 127 ssize_t amt = write(fd, buffer, bytes); 148 size_t bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", value1, value2); local 149 if(bytes >= sizeof(buffer)) return -EINVAL; 150 ssize_t amt = write(fd, buffer, bytes);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
_randommodule.c | 456 int k, i, bytes;
local 470 bytes = ((k - 1) / 32 + 1) * 4;
471 bytearray = (unsigned char *)PyMem_Malloc(bytes);
478 for (i=0 ; i<bytes ; i+=4, k-=32) {
489 result = _PyLong_FromByteArray(bytearray, bytes, 1, 0);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/ |
tokenize.py | 42 bytes
44 # Support bytes type in Python <= 2.5, so 2to3 turns itself into
46 bytes = str
variable 259 (as a string) and a list of any lines (left as bytes) it has read
277 return bytes()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
uuid.py | 38 # get the raw 16 bytes of the UUID
39 >>> x.bytes
43 >>> uuid.UUID(bytes=x.bytes)
61 of 16 bytes (with all the integer fields in big-endian order) as an
62 argument named 'bytes', or a string of 16 bytes (with the first three
68 bytes the UUID as a 16-byte string (containing the six
101 def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
104 a string of 16 bytes as the 'bytes' argument, a string of 16 bytes 208 bytes = property(get_bytes) variable in class:UUID [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
_randommodule.c | 441 int k, i, bytes;
local 455 bytes = ((k - 1) / 32 + 1) * 4;
456 bytearray = (unsigned char *)PyMem_Malloc(bytes);
463 for (i=0 ; i<bytes ; i+=4, k-=32) {
474 result = _PyLong_FromByteArray(bytearray, bytes, 1, 0);
|
/external/ImageMagick/MagickCore/ |
cipher.c | 295 Xor corresponding text input and round key input bytes. 998 bytes, local [all...] |