| /external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/ |
| FloatsTest.java | 317 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local 324 assertTrue(Arrays.equals(array, Floats.toArray(bytes)));
|
| IntsTest.java | 307 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local 314 assertTrue(Arrays.equals(array, Ints.toArray(bytes)));
|
| ShortsTest.java | 315 List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2); local 322 assertTrue(Arrays.equals(array, Shorts.toArray(bytes)));
|
| /external/harfbuzz_ng/util/ |
| options.cc | 715 unsigned int bytes = strlen (buf); local 716 if (bytes && buf[bytes - 1] == '\n') { 717 bytes--; 718 g_string_append_len (gs, buf, bytes); 721 g_string_append_len (gs, buf, bytes);
|
| /external/icu/android_icu4j/src/main/java/android/icu/impl/ |
| UBiDiProps.java | 42 ByteBuffer bytes=ICUBinary.getData(DATA_FILE_NAME); local 43 readData(bytes); 46 private void readData(ByteBuffer bytes) throws IOException { 48 ICUBinary.readHeader(bytes, FMT, new IsAcceptable()); 52 count=bytes.getInt(); 60 indexes[i]=bytes.getInt(); 64 trie=Trie2_16.createFromSerialized(bytes); 68 throw new IOException(DATA_FILE_NAME+": not enough bytes for the trie"); 70 // skip padding after trie bytes 71 ICUBinary.skipBytes(bytes, expectedTrieLength-trieLength) [all...] |
| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
| BytesTrieTest.java | 57 bytes=new byte[s.length()]; 58 for(int i=0; i<bytes.length; ++i) { 59 bytes[i]=(byte)s.charAt(i); 65 public byte[] bytes; field in class:BytesTrieTest.StringAndValue 137 // more than 256 bytes 503 builder_.add(item.bytes, item.bytes.length, item.value); 549 builder_.add(data[index].bytes, data[index].bytes.length, data[index].value); 560 logln("serialized trie size: "+trieBytes.remaining()+" bytes\n") [all...] |
| /external/icu/icu4c/source/common/ |
| ucnvbocu.cpp | 51 * C0 control codes and space are encoded with their US-ASCII bytes. 65 /* number of lead bytes */ 72 /* number of trail bytes */ 81 /* number of lead bytes for positive and negative 2/3/4-byte sequences */ 146 * but are also used as trail bytes in difference encoding 155 * External byte values that are illegal as trail bytes are mapped to -1. 222 /** Is a diff value encodable in two bytes? */ 270 * Encode a difference -0x10ffff..0x10ffff in 1..4 bytes 300 /* two bytes */ 310 /* three bytes */ 967 uint8_t *bytes; local 1189 uint8_t *bytes; local [all...] |
| /external/icu/icu4c/source/samples/ucnv/ |
| convsamp.cpp | 176 len will contain the number of bytes in target[] which were 195 'len' returns the number of OUTPUT bytes resulting from the 270 The 'buffersize' is in bytes of input. 273 expected for a given number of input bytes. 279 UChars as the input buffer has bytes. 283 chars as bytes are needed. 323 printf("input bytes %d / min chars %d = %d UChars\n", 332 // Convert bytes to unicode 425 fprintf(stderr, " Couldn't allocate %d bytes for freq counter\n", sizeof(CharFreqInfo)*charCount); 440 printf("input bytes %d / min chars %d = %d UChars\n" 622 char bytes[100]; local 716 char bytes[100]; local [all...] |
| /external/icu/icu4c/source/tools/makeconv/ |
| gencnvex.c | 37 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/icu/icu4c/source/tools/toolutil/ |
| pkg_genc.c | 118 /* hardware, so we use .balign 16 which always means 16 bytes. */ 163 /* 16 bytes alignment. */ 173 /* 16 bytes alignment for sun-x86. */ 215 /* align 16 bytes */ 407 " const char *bytes; \n" 434 " uint8_t bytes[%ld]; \n" 656 char bytes[2048]; member in union:__anon20323 708 length=T_FileStream_read(in, buffer.bytes, sizeof(buffer.bytes)); 753 pHeader=(const IMAGE_FILE_HEADER *)buffer.bytes; [all...] |
| pkgitems.cpp | 63 NativeItem() : pItem(NULL), pInfo(NULL), bytes(NULL), swapped(NULL), length(0) {} 74 return bytes; 91 bytes=pItem->data+itemHeaderLength; 110 bytes=swapped+itemHeaderLength; 118 const uint8_t *bytes; member in class:NativeItem 473 udata_printError(ds, "icupkg/ucnv_enumDependencies(): too few bytes (%d after header) for an ICU .cnv conversion table\n", 491 udata_printError(ds, "icupkg/ucnv_enumDependencies(): too few bytes (%d after headers) for an ICU MBCS .cnv conversion table\n", 524 udata_printError(ds, "icupkg/ucnv_enumDependencies(): too few bytes (%d after headers) for an ICU MBCS .cnv conversion table with extension data\n",
|
| ucm.c | 23 * as well as byte sequences with more than 4 bytes or more than one complete 45 printMapping(UCMapping *m, UChar32 *codePoints, uint8_t *bytes, FILE *f) { 55 fprintf(f, "\\x%02X", bytes[j]); 161 /* compare the bytes */ 182 /* Unicode then bytes */ 188 /* bytes then Unicode */ 211 /* sorting by bytes first sorts the reverseMap; use indirection to mappings */ 255 /* 2. sort reverseMap by mappings bytes first */ 631 (subchar1!=0 && fromUMapping->bLen==1 && fromUMapping->b.bytes[0]==subchar1) 665 (subchar1!=0 && fromUMapping->bLen==1 && fromUMapping->b.bytes[0]==subchar1 1131 uint8_t bytes[UCNV_EXT_MAX_BYTES]; local [all...] |
| xmlparser.cpp | 166 char bytes[4096], charsetBuffer[100]; local 185 bytesLength=T_FileStream_read(f, bytes, (int32_t)sizeof(bytes)); 186 if(bytesLength<(int32_t)sizeof(bytes)) { 200 charset=ucnv_detectUnicodeSignature(bytes, bytesLength, NULL, &errorCode); 218 pb=bytes; 223 &pb, bytes+bytesLength, 277 // convert contents of bytes[bytesLength] 278 pb=bytes; 291 &pb, bytes+bytesLength [all...] |
| /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
| UBiDiProps.java | 38 ByteBuffer bytes=ICUBinary.getData(DATA_FILE_NAME); local 39 readData(bytes); 42 private void readData(ByteBuffer bytes) throws IOException { 44 ICUBinary.readHeader(bytes, FMT, new IsAcceptable()); 48 count=bytes.getInt(); 56 indexes[i]=bytes.getInt(); 60 trie=Trie2_16.createFromSerialized(bytes); 64 throw new IOException(DATA_FILE_NAME+": not enough bytes for the trie"); 66 // skip padding after trie bytes 67 ICUBinary.skipBytes(bytes, expectedTrieLength-trieLength) [all...] |
| /external/libchrome/base/ |
| pickle_unittest.cc | 381 int bytes = sizeof(int) * 2; local 386 EXPECT_TRUE(PickleIterator(pickle).GetReadPointerAndAdvance(bytes)); 387 EXPECT_FALSE(PickleIterator(pickle).GetReadPointerAndAdvance(bytes + 1)); 485 // Check we can write zero bytes of data and 'data' can be NULL. 539 // Checks that claimed bytes are zero-initialized. 543 const char* bytes = static_cast<const char*>(pickle.ClaimBytes(kChunkSize)); local 545 EXPECT_EQ(0, bytes[i]); 555 void* bytes = pickle.ClaimBytes(data.size()); local 557 memcpy(bytes, data.data(), data.size());
|
| /external/libchrome/base/strings/ |
| string_util_unittest.cc | 353 EXPECT_FALSE(IsStringUTF8("\xf8\xa0\xbf\x80\xbf")); // 5 bytes 354 EXPECT_FALSE(IsStringUTF8("\xfc\x9c\xbf\x80\xbf\x80")); // 6 bytes 554 int64_t bytes; member in struct:base::__anon22648 559 // sense (zero or bytes). 561 // the display of file sizes or bytes consistently around three 583 FormatBytesUnlocalized(cases[i].bytes)); [all...] |
| /external/libcups/cups/ |
| file.c | 35 static ssize_t cups_compress(cups_file_t *fp, const char *buf, size_t bytes); 39 static ssize_t cups_read(cups_file_t *fp, char *buf, size_t bytes); 40 static ssize_t cups_write(cups_file_t *fp, const char *buf, size_t bytes); 586 ssize_t bytes; /* Bytes to write */ local 601 bytes = (ssize_t)(fp->ptr - fp->buf); 603 DEBUG_printf(("2cupsFileFlush: Flushing " CUPS_LLFMT " bytes...", 604 CUPS_LLCAST bytes)); 606 if (bytes > 0) 610 bytes = cups_compress(fp, fp->buf, (size_t)bytes) 1307 ssize_t bytes; \/* Formatted size *\/ local 1457 ssize_t bytes, \/* Number of bytes written *\/ local 1517 ssize_t bytes; \/* Bytes to write *\/ local 1729 ssize_t bytes; \/* Number bytes in buffer *\/ local 2142 ssize_t bytes; \/* Number of bytes read *\/ local [all...] |
| snmp.c | 349 ssize_t bytes; /* Number of bytes received */ local 423 if ((bytes = recvfrom(fd, buffer, sizeof(buffer), 0, (void *)&address, 435 asn1_debug("DEBUG: IN ", buffer, (size_t)bytes, 0); 437 asn1_decode_snmp(buffer, (size_t)bytes, packet); 651 ssize_t bytes; /* Size of message */ local 697 bytes = asn1_encode_snmp(buffer, sizeof(buffer), &packet); 699 if (bytes < 0) 707 asn1_debug("DEBUG: OUT ", buffer, (size_t)bytes, 0); 717 return (sendto(fd, buffer, (size_t)bytes, 0, (void *)&temp, (socklen_t)httpAddrLength(&temp)) == bytes) [all...] |
| /external/libcups/filter/ |
| raster.c | 42 bpp; /* Bytes per pixel/color */ 53 size_t iocount; /* Number of bytes read/written */ 63 static ssize_t cups_raster_io(cups_raster_t *r, unsigned char *buf, size_t bytes); 66 size_t bytes); 70 static ssize_t cups_read_fd(void *ctx, unsigned char *buf, size_t bytes); 71 static void cups_swap(unsigned char *buf, size_t bytes); 72 static ssize_t cups_write_fd(void *ctx, unsigned char *buf, size_t bytes); 165 * Colorspace and bytes per line... 584 * the line buffer and as the number of bytes to read. 587 unsigned /* O - Number of bytes read * 592 ssize_t bytes; \/* Bytes read *\/ local 1181 ssize_t bytes; \/* Bytes read *\/ local [all...] |
| rastertoepson.c | 63 DotBytes, /* # bytes in a dot column */ 411 unsigned length,/* I - Number of bytes */ 422 int count; /* Count of bytes for output */ 744 unsigned bytes; /* Bytes per plane */ local 753 bytes = header->cupsBytesPerLine / NumPlanes; 762 memcmp(Planes[plane], Planes[plane] + 1, (size_t)bytes - 1) == 0) 778 CompressData(Planes[plane], bytes, plane, header->cupsCompression, xstep, ystep); 796 dot_count, /* Number of bytes to print */ 797 dot_min; /* Minimum number of bytes */ [all...] |
| /external/libcxx/test/support/ |
| controlled_allocators.hpp | 408 std::size_t bytes = (s + BlockSize - 1) & ~(BlockSize - 1); local 409 bytes += BlockSize; 410 assert(bytes % BlockSize == 0); 411 return bytes;
|
| /external/libjpeg-turbo/simd/ |
| jdcolext-altivec.c | 201 int bytes = num_cols + offset; local 203 if (bytes < (RGB_PIXELSIZE + 1) * 16 && (bytes & 15)) { 207 * 16-byte boundary. It could also occur on other rows if the bytes 235 if (bytes > 16) 237 if (bytes > 32) 239 if (bytes > 48) 242 if (bytes > 64)
|
| /external/libnl/lib/ |
| addr.c | 600 int bytes = len / 8; local 602 d = memcmp(a->a_addr, b->a_addr, bytes); 606 d = (a->a_addr[bytes] & mask) - 607 (b->a_addr[bytes] & mask);
|
| /external/libnl/python/netlink/route/ |
| tc.py | 219 def bytes(self): member in class:Tc 228 return fmt.nl('{t|packets} {t|bytes} {t|qlen}') 337 # ['Bytes', RX_BYTES, TX_BYTES], 356 # ['Bytes', IP6_INOCTETS, IP6_OUTOCTETS], 359 # ['Multicast Bytes', IP6_INMCASTOCTETS, IP6_OUTMCASTOCTETS], 361 # ['Broadcast Bytes', IP6_INBCASTOCTETS, IP6_OUTBCASTOCTETS],
|
| /external/libogg/src/ |
| bitwise.c | 60 long bytes=bits>>3; local 62 bits-=bytes*8; 63 b->ptr=b->buffer+bytes; 65 b->endbyte=bytes; 71 long bytes=bits>>3; local 73 bits-=bytes*8; 74 b->ptr=b->buffer+bytes; 76 b->endbyte=bytes; 184 long bytes=bits/8; local 185 bits-=bytes*8 512 long bytes,i; local 547 long bytes,i; local 583 long bytes,i; local [all...] |