/external/icu4c/test/intltest/ |
csdetest.cpp | 140 char *bytes = NULL; local 145 bytes = NEW_ARRAY(char, length + 1); 146 source.extract(0, sLength, bytes, codepage); 149 return bytes; 152 static void freeBytes(char *bytes) 154 DELETE_ARRAY(bytes); 172 char *bytes = extractBytes(testString, codepage, byteLength); local 174 if (bytes == NULL) { 181 ucsdet_setText(csd.getAlias(), bytes, byteLength, &status); 237 freeBytes(bytes); 289 char *bytes = extractBytes(s, "UTF-8", byteLength); local 389 char *bytes = extractBytes(s, "ISO-8859-1", byteLength); local 596 char *bytes = extractBytes(s1, "IBM424", bLength); local 680 char *bytes = extractBytes(s1, "IBM420", bLength); local [all...] |
/external/icu4c/test/perf/ubrkperf/ |
ubrkperfold.cpp | 587 // Figure out the lenght of the char and read the rest of the bytes 599 unsigned char bytes[10]; local 600 bytes[0] = (unsigned char)ch; 603 bytes[i] = fgetc(fFile); 604 if (bytes[i] < 0x80 || bytes[i] >= 0xc0) { 605 fprintf(stderr, "utf-8 encoded file %s contains corrupt data at offset %d. Expected %d bytes, byte %d is invalid. First byte is %02X\n", fName, ftell(fFile), nBytes, i, ch); 611 // Convert the bytes from the temp array to a Unicode char. 614 U8_NEXT_UNSAFE(bytes, i, cp); 705 // (The number of bytes read from file per loop iteration depends on external encoding. [all...] |
/external/icu4c/tools/makeconv/ |
gencnvex.c | 38 const uint8_t *bytes, int32_t length); 110 const uint8_t *bytes, int32_t length) { 284 /* return the number of bytes that should have been written */ 419 uint8_t *bytes; local 429 bytes=UCM_GET_BYTES(table, m); 430 low=bytes[unitIndex]; 436 bytes=UCM_GET_BYTES(table, m); 437 high=bytes[unitIndex]; 476 bytes=UCM_GET_BYTES(table, m); 477 high=bytes[unitIndex] 637 uint8_t *bytes, *resultBytes; local [all...] |
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/export/binary/ |
BinaryImporter.java | 161 int bytes = 4; local 190 bytes += (8 + aliasWidth + classLength); 203 bytes += (6 + fieldNameLength); 207 if (listener != null) listener.readBytes(bytes); 210 bytes = 4; 218 bytes += 8; 224 bytes += 8; 225 if (listener != null) listener.readBytes(bytes); 228 baos = new ByteArrayOutputStream(bytes);
|
/external/kernel-headers/original/linux/ |
mroute6.h | 106 unsigned long ibytes; /* In bytes */ 107 unsigned long obytes; /* Out bytes */ 201 unsigned long bytes; member in struct:mfc6_cache::__anon9785::__anon9787
|
/external/openssh/ |
monitor_wrap.c | 523 error("newkeys_from_blob: remaining bytes in blob %u", len); 602 u_int64_t blocks, bytes; local 652 packet_get_state(MODE_OUT, &seqnr, &blocks, &packets, &bytes); 656 buffer_put_int64(&m, bytes); 657 packet_get_state(MODE_IN, &seqnr, &blocks, &packets, &bytes); 661 buffer_put_int64(&m, bytes); [all...] |
/external/openssl/crypto/engine/ |
eng_cryptodev.c | 929 ssize_t bytes, bits; local 936 bytes = (bits + 7) / 8; 938 b = malloc(bytes); 941 memset(b, 0, bytes); 948 if ((j + k) >= bytes) 962 int i, bytes; local 964 bytes = (crp->crp_nbits + 7) / 8; 966 if (bytes == 0) 969 if ((pd = (u_int8_t *) malloc(bytes)) == NULL) 972 for (i = 0; i < bytes; i++ [all...] |
/external/protobuf/java/src/test/java/com/google/protobuf/ |
CodedInputStreamTest.java | 50 * Helper to construct a byte array from a bunch of bytes. The inputs are 54 private byte[] bytes(int... bytesAsInts) { method in class:CodedInputStreamTest 55 byte[] bytes = new byte[bytesAsInts.length]; 57 bytes[i] = (byte) bytesAsInts[i]; 59 return bytes; 63 * An InputStream which limits the number of bytes it reads at a time. 89 * Parses the given bytes using readRawVarint32() and readRawVarint64() and 123 * Parses the given bytes using readRawVarint32() and readRawVarint64() and 157 assertReadVarint(bytes(0x00), 0); 158 assertReadVarint(bytes(0x01), 1) [all...] |
/external/qemu/audio/ |
ossaudio.c | 403 oss_logerr (errno, "failed to write %d bytes\n", 435 int bytes, pos; local 444 bytes = audio_ring_dist (cntinfo.ptr, pos, bufsize); 445 decr = audio_MIN (bytes >> hw->info.shift, live); 454 if (abinfo.bytes > bufsize) { 458 abinfo.bytes, bufsize); 460 abinfo.bytes = bufsize; 463 if (abinfo.bytes < 0) { 466 abinfo.bytes, bufsize); 471 decr = audio_MIN (abinfo.bytes >> hw->info.shift, live) [all...] |
/external/qemu/hw/ |
goldfish_fb.c | 140 uint8_t bytes; member in struct:__anon13763 169 printf(" bytes/pixel: %d\n", pf->bytes_per_pixel); 186 pf->bytes_per_pixel == fbc->bytes &&
|
/external/qemu/ |
loader.c | 167 uint32_t a_text; /* length of text, in bytes */ 168 uint32_t a_data; /* length of data, in bytes */ 169 uint32_t a_bss; /* length of uninitialized data area, in bytes */ 170 uint32_t a_syms; /* length of symbol table data in file, in bytes */ 172 uint32_t a_trsize; /* length of relocation info for text, in bytes */ 173 uint32_t a_drsize; /* length of relocation info for data, in bytes */ 306 /* return < 0 if error, otherwise the number of bytes loaded in memory */ 515 ssize_t bytes; local 521 bytes = gunzip(data, max_bytes, compressed_data, hdr->ih_size); 523 if (bytes < 0) [all...] |
/external/skia/src/images/ |
SkImageDecoder_libpng.cpp | 95 size_t bytes = sk_stream->read(data, length); local 96 if (bytes != length) { 237 * byte into separate bytes (useful for paletted and grayscale images). */ 554 // now check that if we are 4-bytes per pixel, we also don't overflow 579 We hit some images (e.g. fruit_.png) who contain bytes that are == colortable_count [all...] |
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/ |
ByteArrayAnnotatedOutput.java | 68 * >= 8 (if used); the number of bytes of hex output to use 120 * may be larger than the number of bytes written 133 * bytes at the end). 275 public void write(ByteArray bytes) { 276 int blen = bytes.size(); 287 bytes.getBytes(data, writeAt); 292 public void write(byte[] bytes, int offset, int length) { 298 if (((offset | length | end) < 0) || (bytesEnd > bytes.length)) { 299 throw new IndexOutOfBoundsException("bytes.length " + 300 bytes.length + "; " [all...] |
/external/tremolo/Tremolo/ |
framing.c | 101 static ogg_buffer *_fetch_buffer(ogg_buffer_state *bs,long bytes){ 111 if(ob->size<bytes){ 112 ob->data=_ogg_realloc(ob->data,bytes); 113 ob->size=bytes; 118 ob->data=_ogg_malloc(bytes<16?16:bytes); 119 ob->size=bytes; 147 of at least [bytes] length */ 148 static ogg_reference *ogg_buffer_alloc(ogg_buffer_state *bs,long bytes){ 149 ogg_buffer *ob=_fetch_buffer(bs,bytes); 696 long bytes,ret=0; local 781 long bytes=next-now; local 787 long bytes=oy->fifo_tail->length; local [all...] |
vorbisfile.c | 95 long bytes=(vf->callbacks.read_func)(buffer,1,CHUNKSIZE,vf->datasource); local 96 if(bytes>0)ogg_sync_wrote(vf->oy,bytes); 97 if(bytes==0 && gerrno)return -1; 98 return bytes; 123 n) search for a new page beginning for n bytes 140 /* skipped n bytes */ 587 vf->bittrack+=op.bytes*8; 642 /* bitrate tracking; add the header's bytes here, the body bytes [all...] |
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/ |
Program.cpp | 31 int bytes = UniformTypeSize(type) * arraySize; local 32 data = new unsigned char[bytes]; 33 memset(data, 0, bytes); [all...] |
/external/webkit/Source/WebCore/history/ |
HistoryItem.cpp | 835 Vector<uint8_t> bytes; local 836 if (!decoder.decodeBytes(bytes)) 838 node->m_stateObject = SerializedScriptValue::adopt(bytes);
|
/external/webkit/Source/WebCore/platform/network/cf/ |
ResourceHandleCFNet.cpp | 205 const UInt8* bytes = CFDataGetBytePtr(data); local 208 LOG(Network, "CFNet - didReceiveData(conn=%p, handle=%p, bytes=%d) (%s)", conn, handle, length, handle->firstRequest().url().string().utf8().data()); 211 handle->client()->didReceiveData(handle, (const char*)bytes, length, originalLength); [all...] |
/external/webkit/Source/WebKit/android/jni/ |
WebHistory.cpp | 163 // Get the actual bytes and the length from the java array. 164 const jbyte* bytes = env->GetByteArrayElements(data, NULL); local 177 // ptr's value. We can't pass &bytes since we have to send bytes to 179 const char* ptr = reinterpret_cast<const char*>(bytes); 181 env->ReleaseByteArrayElements(data, const_cast<jbyte*>(bytes), JNI_ABORT); [all...] |
/external/webkit/Source/WebKit/efl/ewk/ |
ewk_tiled_model.c | 58 } tiles, bytes; member in struct:tile_account 81 acc->bytes.allocated = 0; 82 acc->bytes.freed = 0; 94 acc->bytes.allocated += t->bytes; 97 bytes_allocated += t->bytes; 107 acc->bytes.freed += t->bytes; 110 bytes_freed += t->bytes; 120 "bytes[+%"PRIu64",-%"PRIu64":%"PRIu64"]\n" 131 uint64_t tiles, bytes; local 250 size_t bytes; local [all...] |
/external/zlib/src/contrib/untgz/ |
untgz.c | 529 unsigned int bytes = (remaining > BLOCKSIZE) ? BLOCKSIZE : remaining; local 533 if (fwrite(&buffer,sizeof(char),bytes,outfile) != bytes) 542 remaining -= bytes;
|
/frameworks/base/drm/jni/ |
android_drm_DrmManagerClient.cpp | 78 char* bytes = const_cast< char* > (env->GetStringUTFChars(string, NULL)); local 80 const int length = strlen(bytes) + 1; 82 strncpy(data, bytes, length); 85 env->ReleaseStringUTFChars(string, bytes);
|
/frameworks/native/cmds/atrace/ |
atrace.cpp | 637 size_t bytes = bufSize - zs.avail_out; local 638 result = write(STDOUT_FILENO, out, bytes); 639 if ((size_t)result < bytes) {
|
/frameworks/native/opengl/tests/hwc/ |
hwcTestLib.cpp | 548 size_t bytes; member in struct:attrib 595 pixel >>= sizeof(pixel) * BITSPERBYTE - attrib->bytes * BITSPERBYTE; 610 size_t bytes; member in struct:attrib 650 memmove(buf + ((gBuf->getStride() * attrib->bytes) * y) 651 + (attrib->bytes * x), &pixel, attrib->bytes); [all...] |
/packages/apps/Camera/jni/ |
feature_mos_jni.cpp | 406 jfloatArray bytes = env->NewFloatArray(11); local 407 if(bytes != 0) 409 env->SetFloatArrayRegion(bytes, 0, 11, (jfloat*) gTRS); 411 return bytes; 465 jfloatArray bytes = env->NewFloatArray(11); local 466 if(bytes != 0) 468 env->SetFloatArrayRegion(bytes, 0, 11, (jfloat*) gTRS); 470 return bytes; 603 jintArray bytes = env->NewIntArray(imageSize+2); local 604 if (bytes == 0) 654 jbyteArray bytes = env->NewByteArray(imageSize+8); local [all...] |