/external/e2fsprogs/e2fsck/ |
ea_refcount.c | 49 size_t bytes; local 59 bytes = (size_t) (size * sizeof(struct ea_refcount_el)); 61 printf("Refcount allocated %d entries, %d bytes.\n", 62 refcount->size, bytes); 64 retval = ext2fs_get_mem(bytes, &refcount->list); 67 memset(refcount->list, 0, bytes);
|
/external/guava/src/com/google/common/primitives/ |
Chars.java | 48 * The number of bytes required to represent a primitive {@code char} 51 public static final int BYTES = Character.SIZE / Byte.SIZE; 286 * stored in the first 2 bytes of {@code bytes}; equivalent to {@code 287 * ByteBuffer.wrap(bytes).getChar()}. For example, the input byte array 293 * @throws IllegalArgumentException if {@code bytes} has fewer than 2 297 public static char fromByteArray(byte[] bytes) { 298 checkArgument(bytes.length >= BYTES, 299 "array too small: %s < %s", bytes.length, BYTES) [all...] |
Shorts.java | 48 * The number of bytes required to represent a primitive {@code short} 51 public static final int BYTES = Short.SIZE / Byte.SIZE; 286 * stored in the first ? bytes of {@code bytes}; equivalent to {@code 287 * ByteBuffer.wrap(bytes).getShort()}. For example, the input byte array 293 * @throws IllegalArgumentException if {@code bytes} has fewer than ? 297 public static short fromByteArray(byte[] bytes) { 298 checkArgument(bytes.length >= BYTES, 299 "array too small: %s < %s", bytes.length, BYTES) [all...] |
/external/icu4c/samples/uciter8/ |
uciter8.c | 300 static const uint8_t bytes[]={ local 315 uiter_setLenient8(&iter2, (const char *)bytes, sizeof(bytes)-1); 319 uiter_setLenient8(&iter2, (const char *)bytes, -1); 324 uiter_setLenient8(&iter1, (const char*)bytes, -1);
|
/external/libffi/src/powerpc/ |
linux64_closure.S | 59 # mandatory 48 bytes special reg save area + 64 bytes parm save area 60 # + 16 bytes retval area + 13*8 bytes fpr save area + round to 16 111 # Each of the ret_typeX code fragments has to be exactly 16 bytes long
|
/libcore/luni/src/main/java/org/apache/harmony/luni/net/ |
PlainSocketImpl.java | 388 private static void intToBytes(int value, byte[] bytes, int start) { 393 bytes[start] = (byte) ((value >> 24) & 255); 394 bytes[start + 1] = (byte) ((value >> 16) & 255); 395 bytes[start + 2] = (byte) ((value >> 8) & 255); 396 bytes[start + 3] = (byte) (value & 255); 459 // Return of zero bytes for a blocking socket means a timeout occurred
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
SecureRandom2Test.java | 255 byte[] bytes = new byte[313]; 257 new SecureRandom().nextBytes(bytes); 259 fail("next bytes not ok : " + e); 284 fail("seed generation with bytes failed : " + e); 484 protected void engineNextBytes(byte[] bytes) { 485 for (int i = 0; i < bytes.length; i++) { 486 bytes[i] = (byte) 0xFF;
|
/external/chromium/third_party/icu/source/tools/makeconv/ |
gencnvex.c | 38 const uint8_t *bytes, int32_t length); 109 const uint8_t *bytes, int32_t length) { 283 /* return the number of bytes that should have been written */ 418 uint8_t *bytes; local 428 bytes=UCM_GET_BYTES(table, m); 429 low=bytes[unitIndex]; 435 bytes=UCM_GET_BYTES(table, m); 436 high=bytes[unitIndex]; 475 bytes=UCM_GET_BYTES(table, m); 476 high=bytes[unitIndex] 636 uint8_t *bytes, *resultBytes; local [all...] |
/external/icu4c/tools/makeconv/ |
gencnvex.c | 38 const uint8_t *bytes, int32_t length); 109 const uint8_t *bytes, int32_t length) { 283 /* return the number of bytes that should have been written */ 418 uint8_t *bytes; local 428 bytes=UCM_GET_BYTES(table, m); 429 low=bytes[unitIndex]; 435 bytes=UCM_GET_BYTES(table, m); 436 high=bytes[unitIndex]; 475 bytes=UCM_GET_BYTES(table, m); 476 high=bytes[unitIndex] 636 uint8_t *bytes, *resultBytes; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
driver_wext.c | 186 * @ssid: Buffer for the SSID; must be at least 32 bytes long 310 int bytes; local 314 bytes = strspn(spos, "0123456789abcdefABCDEF"); 315 if (!bytes || (bytes & 1)) 317 bytes /= 2; 319 data.assoc_info.req_ies = os_malloc(bytes); 323 data.assoc_info.req_ies_len = bytes; 324 hexstr2bin(spos, data.assoc_info.req_ies, bytes); 326 spos += bytes * 2 1477 int bytes; local 1491 int bytes; local 1505 int bytes; local [all...] |
/external/openssl/crypto/x509/ |
x509.h | 188 int modified; /* true if 'bytes' needs to be built */ 190 BUF_MEM *bytes; member in struct:X509_name_st 192 char *bytes; member in struct:X509_name_st 935 const unsigned char *bytes, int len); 938 const unsigned char *bytes, int len); 941 const unsigned char *bytes, int len); 1013 unsigned char *bytes, int len, int loc, int set); 1015 unsigned char *bytes, int len, int loc, int set); 1017 const char *field, int type, const unsigned char *bytes, int len); 1019 int type,unsigned char *bytes, int len) 1100 const unsigned char *bytes, int len); variable 1103 const unsigned char *bytes, int len); variable 1106 const unsigned char *bytes, int len); variable [all...] |
/external/openssl/include/openssl/ |
x509.h | 188 int modified; /* true if 'bytes' needs to be built */ 190 BUF_MEM *bytes; member in struct:X509_name_st 192 char *bytes; member in struct:X509_name_st 935 const unsigned char *bytes, int len); 938 const unsigned char *bytes, int len); 941 const unsigned char *bytes, int len); 1013 unsigned char *bytes, int len, int loc, int set); 1015 unsigned char *bytes, int len, int loc, int set); 1017 const char *field, int type, const unsigned char *bytes, int len); 1019 int type,unsigned char *bytes, int len) 1100 const unsigned char *bytes, int len); variable 1103 const unsigned char *bytes, int len); variable 1106 const unsigned char *bytes, int len); variable [all...] |
/external/bison/lib/ |
bitset_stats.c | 681 size_t bytes; local 701 bytes = abitset_bytes (n_bits); 702 sbset = xcalloc (1, bytes); 707 bytes = lbitset_bytes (n_bits); 708 sbset = xcalloc (1, bytes); 713 bytes = ebitset_bytes (n_bits); 714 sbset = xcalloc (1, bytes); 719 bytes = vbitset_bytes (n_bits); 720 sbset = xcalloc (1, bytes);
|
/external/bluetooth/glib/gio/ |
gdatainputstream.c | 955 gssize bytes; local 962 bytes = g_input_stream_read (G_INPUT_STREAM (data->stream), 964 g_assert_cmpint (bytes, ==, read_length); 966 bytes = g_input_stream_skip (G_INPUT_STREAM (data->stream), 968 g_assert_cmpint (bytes, ==, skip_length); 993 gssize bytes; local 995 bytes = g_buffered_input_stream_fill_finish (buffer, result, &error); 997 if (bytes <= 0) 999 if (bytes < 0) 1011 /* only proceed if we got more bytes... * [all...] |
/external/dbus/dbus/ |
dbus-keyring.c | 292 DBusString bytes; local 302 if (!_dbus_string_init (&bytes)) 315 if (!_dbus_generate_random_bytes (&bytes, 4)) 321 s = (const unsigned char*) _dbus_string_get_const_data (&bytes); 330 _dbus_string_set_length (&bytes, 0); 339 _dbus_string_set_length (&bytes, 0); 340 if (!_dbus_generate_random_bytes (&bytes, KEY_LENGTH_BYTES)) 368 if (!_dbus_string_move (&bytes, 0, 383 _dbus_string_free (&bytes);
|
/external/libffi/src/mips/ |
ffi.c | 51 FFI_ASSERT(argp <= &stack[bytes]); \ 52 if (argp == &stack[bytes]) \ 67 int bytes, 79 if (bytes > 8 * sizeof(ffi_arg)) 80 argp = &stack[bytes - (8 * sizeof(ffi_arg))]; 87 memset(stack, 0, bytes); 173 unsigned long cap = (unsigned long) stack + bytes; 525 ffi_call_O32(ffi_prep_args, &ecif, cif->bytes, 538 /* For structures smaller than 16 bytes we clobber memory 544 ffi_call_N32(ffi_prep_args, &ecif, cif->bytes, [all...] |
/external/protobuf/java/src/main/java/com/google/protobuf/ |
CodedOutputStream.java | 64 * Returns the buffer size to efficiently write dataLength bytes to this 67 * @return the buffer size to efficiently write dataLength bytes to this 109 * byte array. If more bytes are written than fit in the array, 120 * byte array slice. If more bytes are written than fit in the slice, 224 /** Write a {@code bytes} field, including tag, to the stream. */ 354 final byte[] bytes = value.getBytes("UTF-8"); 355 writeRawVarint32(bytes.length); 356 writeRawBytes(bytes); 382 /** Write a {@code bytes} field to the stream. */ 384 final byte[] bytes = value.toByteArray() [all...] |
/external/qemu/distrib/sdl-1.2.12/src/cdrom/macos/ |
SDL_syscdrom.c | 177 SDL_SYS_BCDToShort(cdpb.csParam.bytes[1]) - 178 SDL_SYS_BCDToShort(cdpb.csParam.bytes[0]) + 1; 198 SDL_SYS_BCDToShort(cdpb.csParam.bytes[0]), 199 SDL_SYS_BCDToShort(cdpb.csParam.bytes[1]), 200 SDL_SYS_BCDToShort(cdpb.csParam.bytes[2])); 272 SDL_SYS_BCDToShort(cdpb.csParam.bytes[1]) - 273 SDL_SYS_BCDToShort(cdpb.csParam.bytes[0]) + 1; 345 cdpb.csParam.bytes[0] = false; /* Repeat? */ 346 cdpb.csParam.bytes[1] = kPlayModeSequential; /* Play mode */
|
/external/yaffs2/yaffs2/utils/ |
mkyaffsimage.c | 209 yaffs_TagsUnion * tags = (yaffs_TagsUnion* )tagsPtr; // Work in bytes. 333 __u8 bytes[512]; local 336 yaffs_ObjectHeader *oh = (yaffs_ObjectHeader *)bytes; 338 memset(bytes,0xff,512); 379 return write_chunk(bytes,objId,0,0xffff); 459 __u8 bytes[512]; local 466 memset(bytes,0xff,512); 467 while((nBytes = read(h,bytes,512)) > 0) 470 write_chunk(bytes,newObj,chunk,nBytes); 471 memset(bytes,0xff,512) [all...] |
/external/dhcpcd/ |
dhcp.c | 445 ssize_t bytes = 0; local 468 bytes += ((4 * 4) * 2) + 4; 500 return bytes; 971 ssize_t bytes = sizeof(*dhcp); local 992 bytes = p - (const uint8_t *)dhcp; 1001 bytes = write(fd, dhcp, bytes); 1003 return bytes; 1011 ssize_t bytes; local 1018 bytes = read(fd, dhcp, sizeof(*dhcp)) 1032 ssize_t bytes = 0; local 1100 ssize_t bytes = 0; local [all...] |
/frameworks/base/libs/utils/ |
String8.cpp | 51 // indexed by number of bytes in the sequence. 68 // Return number of utf8 bytes required for the character. 73 // Figure out how many bytes the result will require. 111 static void utf32_to_utf8(uint8_t* dstP, char32_t srcChar, size_t bytes) 113 dstP += bytes; 114 switch (bytes) 119 case 1: *--dstP = (uint8_t)(srcChar | kFirstByteMark[bytes]); 183 size_t bytes = 0; 188 bytes += utf32_to_utf8_bytes(*p); 192 SharedBuffer* buf = SharedBuffer::alloc(bytes+1) 216 const size_t bytes = utf8_length_from_utf16(in, len); local [all...] |
/external/chromium/third_party/icu/source/common/ |
ucnvmbcs.c | 19 * - legacy variable-length codepages with up to 4 bytes per character 28 * - byte sequences must not have leading zero bytes 30 * - limitation to up to 4 bytes per character 159 * One format for transitional entries (bit 31 not set) for non-final bytes, and 277 * at least two states for the trail bytes: 290 * Converting from Unicode to codepage bytes --------------------------------*** 294 * a sequence of 1..4 bytes, in addition to a flag that indicates if there is 300 * with the resulting bytes is at offsetFromUBytes. 331 * Bits 15..0 contain the index to stage 3, which must be multiplied by 16*(bytes per char) 333 * Stage 3 contains 2, 3, or 4 bytes per result 706 const uint8_t *stage3, *bytes; local 921 char bytes[4]; local 1045 const uint8_t *bytes; local 1194 uint8_t *bytes, *p; local 1273 uint8_t *bytes; local 2250 uint8_t *bytes; local 2920 uint8_t *bytes=cnv->toUBytes; local 2935 uint8_t *bytes=cnv->toUBytes; local 3187 const uint8_t *bytes; local 3852 const uint8_t *p, *bytes; local [all...] |
triedict.cpp | 406 uint32_t size; // Size of the data in bytes 415 uint32_t size; // Size of the data in bytes 424 uint32_t size; // Size of the data in bytes 429 uint8_t *address; // pointer to header bytes in memory 633 uint16_t overflowSize = 0; //size of node ID overflow storage in bytes 641 // calculate size of total node ID overflow storage in bytes 953 virtual void write(uint8_t *bytes, uint32_t &offset, const UVector32 &/*translate*/) { 960 *((uint16_t *)(bytes+offset)) = (fEqualOverflows? kEqualOverflows : 0) | 1562 uint8_t *bytes = (uint8_t *)uprv_malloc(totalSize); local [all...] |
/external/icu4c/common/ |
ucnvmbcs.c | 19 * - legacy variable-length codepages with up to 4 bytes per character 28 * - byte sequences must not have leading zero bytes 30 * - limitation to up to 4 bytes per character 159 * One format for transitional entries (bit 31 not set) for non-final bytes, and 277 * at least two states for the trail bytes: 290 * Converting from Unicode to codepage bytes --------------------------------*** 294 * a sequence of 1..4 bytes, in addition to a flag that indicates if there is 300 * with the resulting bytes is at offsetFromUBytes. 331 * Bits 15..0 contain the index to stage 3, which must be multiplied by 16*(bytes per char) 333 * Stage 3 contains 2, 3, or 4 bytes per result 776 const uint8_t *stage3, *bytes; local 991 char bytes[4]; local 1115 const uint8_t *bytes; local 1264 uint8_t *bytes, *p; local 1343 uint8_t *bytes; local 2329 uint8_t *bytes; local 2999 uint8_t *bytes=cnv->toUBytes; local 3014 uint8_t *bytes=cnv->toUBytes; local 3266 const uint8_t *bytes; local 3931 const uint8_t *p, *bytes; local [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JCERSACipher.java | 462 byte[] bytes = bOut.toByteArray(); 466 return cipher.processBlock(bytes, 0, bytes.length); 506 byte[] bytes = bOut.toByteArray(); 509 out = cipher.processBlock(bytes, 0, bytes.length);
|