| /external/libffi/src/cris/ |
| ffi.c | 161 unsigned bytes = 0; local 189 if (((*ptr)->alignment - 1) & bytes) 190 bytes = ALIGN (bytes, (*ptr)->alignment); 195 bytes += (*ptr)->size; 196 bytes += sizeof (void *); 201 bytes += 8; 203 bytes += 4; 207 bytes += STACK_ARG_SIZE ((*ptr)->size); 210 cif->bytes = bytes [all...] |
| /external/protobuf/java/src/main/java/com/google/protobuf/micro/ |
| ByteStringMicro.java | 36 * Immutable array of bytes. 42 private final byte[] bytes; field in class:ByteStringMicro 44 private ByteStringMicro(final byte[] bytes) { 45 this.bytes = bytes; 54 return bytes[index]; 58 * Gets the number of bytes. 61 return bytes.length; 68 return bytes.length == 0; 80 * Copies the given bytes into a {@code ByteStringMicro} [all...] |
| /external/protobuf/java/src/test/java/com/google/protobuf/ |
| CodedOutputStreamTest.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:CodedOutputStreamTest 55 byte[] bytes = new byte[bytesAsInts.length]; 57 bytes[i] = (byte) bytesAsInts[i]; 59 return bytes; 63 private List<Byte> toList(byte[] bytes) { 65 for (byte b : bytes) { 77 * checks that the result matches the given bytes. 130 assertWriteVarint(bytes(0x00), 0); 131 assertWriteVarint(bytes(0x01), 1) [all...] |
| /external/qemu/block/ |
| cloop.c | 108 uint32_t bytes = s->offsets[block_num+1]-s->offsets[block_num]; local 111 bytes); 112 if (ret != bytes) 116 s->zstream.avail_in = bytes;
|
| /external/qemu/distrib/sdl-1.2.12/src/video/bwindow/ |
| SDL_sysevents.cc | 331 const char *bytes; local 332 if (msg->FindString("bytes", &bytes) == B_OK) { 337 keysym.unicode = Translate2Unicode(bytes); 361 const char *bytes; local 362 if (msg->FindString("bytes", &bytes) == B_OK) { 363 keysym.unicode = Translate2Unicode(bytes);
|
| /external/skia/src/core/ |
| SkChunkAlloc.cpp | 85 SkChunkAlloc::Block* SkChunkAlloc::newBlock(size_t bytes, AllocFailType ftype) { 88 if (block && bytes <= block->fFreeSize) { 93 size_t size = bytes; 110 void* SkChunkAlloc::alloc(size_t bytes, AllocFailType ftype) { 111 bytes = SkAlign4(bytes); 115 if (block == NULL || bytes > block->fFreeSize) { 116 block = this->newBlock(bytes, ftype); 124 SkASSERT(block && bytes <= block->fFreeSize); 127 block->fFreeSize -= bytes; 133 size_t bytes = 0; local [all...] |
| /external/skia/src/images/ |
| SkFlipPixelRef.cpp | 88 const size_t bytes = rect.width() << shift; local 92 memcpy(dstP, srcP, bytes);
|
| SkImageDecoder_wbmp.cpp | 81 int bytes = bits >> 3; local 83 for (int i = 0; i < bytes; i++) {
|
| SkJpegUtility.cpp | 49 size_t bytes = src->fStream->read(src->fBuffer, skjpeg_source_mgr::kBufferSize); local 52 if (bytes == 0) { 56 src->current_offset += bytes; 58 src->bytes_in_buffer = bytes; 68 long bytes = (long)src->fStream->skip(bytesToSkip); local 69 if (bytes <= 0 || bytes > bytesToSkip) { 70 // SkDebugf("xxxxxxxxxxxxxx failure to skip request %d returned %d\n", bytesToSkip, bytes); 74 src->current_offset += bytes; 75 bytesToSkip -= bytes; [all...] |
| /external/tremolo/Tremolo/ |
| misc.c | 58 long bytes; member in struct:__anon11546 64 static void *_insert(void *ptr,long bytes,char *file,long line){ 68 ((head *)ptr)->bytes=bytes-HEAD_ALIGN; 113 file_bytes[i]+=bytes-HEAD_ALIGN; 122 file_bytes[i]-(bytes-HEAD_ALIGN)); 132 global_bytes+(bytes-HEAD_ALIGN)); 137 global_bytes+=(bytes-HEAD_ALIGN); 152 long bytes =((head *)ptr)->bytes; local [all...] |
| /external/valgrind/main/coregrind/m_ume/ |
| elf.c | 224 UInt bytes; local 226 bytes = VG_PGROUNDUP(brkaddr)-VG_PGROUNDUP(bss); 227 if (bytes > 0) { 230 VG_PGROUNDUP(bss), bytes, 234 check_mmap(res, VG_PGROUNDUP(bss), bytes); 237 bytes = bss & (VKI_PAGE_SIZE - 1); 240 if ((prot & VKI_PROT_WRITE) && (bytes > 0)) { 241 bytes = VKI_PAGE_SIZE - bytes; 242 VG_(memset)((char *)bss, 0, bytes); [all...] |
| /external/valgrind/main/coregrind/ |
| pub_core_aspacemgr.h | 325 also ensure that at least abs(EXTRA) extra free bytes will remain 335 mapping by DELTA bytes, taking the space from a reservation section 350 the mapping forwards only by DELTA bytes, and trashes whatever was 386 HChar bytes[VG_STACK_GUARD_SZB member in struct:__anon12369 401 /* Figure out how many bytes of the stack's active area have not been
|
| /external/webkit/Source/WebCore/platform/text/ |
| TextCodecLatin1.cpp | 119 String TextCodecLatin1::decode(const char* bytes, size_t length, bool, bool, bool&) 124 const uint8_t* source = reinterpret_cast<const uint8_t*>(bytes); 125 const uint8_t* end = reinterpret_cast<const uint8_t*>(bytes + length); 163 char* bytes = result.data(); local 180 bytes = result.data(); 181 memcpy(bytes + resultLength, replacement, replacementLength); 186 bytes[resultLength++] = b; 189 return CString(bytes, resultLength); 195 char* bytes; local 196 CString string = CString::newUninitialized(length, bytes); [all...] |
| /frameworks/base/core/java/android/util/ |
| Base64InputStream.java | 103 long bytes = Math.min(n, outputEnd-outputStart); local 104 outputStart += bytes; 105 return bytes; 126 int bytes = Math.min(len, outputEnd-outputStart); local 127 System.arraycopy(coder.output, outputStart, b, off, bytes); 128 outputStart += bytes; 129 return bytes;
|
| /frameworks/base/core/jni/ |
| android_database_SQLiteProgram.cpp | 128 jbyte * bytes = env->GetByteArrayElements(value, NULL); local 130 err = sqlite3_bind_blob(statement, index, bytes, len, SQLITE_TRANSIENT); 131 env->ReleaseByteArrayElements(value, bytes, JNI_ABORT);
|
| android_ddm_DdmHandleNativeHeap.cpp | 90 LOGD("**** read %d bytes from '%s'", (int) header.mapSize, path); 98 jbyte* bytes = NULL; local 105 bytes = env->GetByteArrayElements(array, NULL); 106 ptr = bytes; 120 env->ReleaseByteArrayElements(array, bytes, 0);
|
| android_hardware_UsbDeviceConnection.cpp | 98 jbyte* bytes = (jbyte*)env->GetPrimitiveArrayCritical(ret, 0); local 99 if (bytes) { 100 memcpy(bytes, buffer, length); 101 env->ReleasePrimitiveArrayCritical(ret, bytes, 0);
|
| /frameworks/base/include/utils/ |
| String8.h | 59 inline size_t bytes() const; 261 inline size_t String8::bytes() const function in class:android::String8
|
| /frameworks/base/libs/rs/ |
| rsLocklessFifo.cpp | 178 uint32_t bytes = reinterpret_cast<const uint16_t *>(mGet)[1]; local 180 android_atomic_add(((bytes + 3) & ~3) + 4, (int32_t *)&mGet); 181 //mGet += ((bytes + 3) & ~3) + 4; 188 bool LocklessCommandFifo::makeSpaceNonBlocking(uint32_t bytes) { 190 if ((mPut+bytes) > mEnd) { 204 if (getFreeSpace() < bytes) { 211 void LocklessCommandFifo::makeSpace(uint32_t bytes) { 213 if ((mPut+bytes) > mEnd) { 227 while (getFreeSpace() < bytes) {
|
| rsThreadIO.h | 65 uint32_t bytes; member in struct:android::renderscript::ThreadIO::CoreCmdHeaderRec 69 uint32_t bytes; member in struct:android::renderscript::ThreadIO::ClientCmdHeaderRec
|
| /frameworks/base/voip/jni/rtp/ |
| AmrCodec.cpp | 102 unsigned char *bytes = (unsigned char *)payload; local 106 samples, bytes + 1, &type, AMR_TX_WMF); 113 bytes[0] = 0xF0; 114 bytes[1] = (mMode << 3) | 0x04; 118 bytes[0] = 0xFF; 119 bytes[1] = 0xC0 | (mMode << 1) | 1; 122 bytes[length + 1] = 0; 124 bytes[i] = (bytes[i] << 6) | (bytes[i + 1] >> 2) 133 unsigned char *bytes = (unsigned char *)payload; local 226 unsigned char *bytes = (unsigned char *)payload; local 244 unsigned char *bytes = (unsigned char *)payload; local [all...] |
| /hardware/ti/omap4xxx/libtiutils/ |
| MessageQueue.cpp | 192 size_t bytes = 0; local 211 while( bytes < sizeof(msg) ) 213 int err = write(this->fd_write, p, sizeof(*msg) - bytes); 223 bytes += err;
|
| /libcore/luni/src/main/java/libcore/net/url/ |
| FileURLConnection.java | 90 * Returns the length of the file in bytes. 150 ByteArrayOutputStream bytes = new java.io.ByteArrayOutputStream(); local 151 PrintStream out = new PrintStream(bytes); 161 return new ByteArrayInputStream(bytes.toByteArray());
|
| /libcore/luni/src/test/java/libcore/java/text/ |
| OldMessageFormatFieldTest.java | 49 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 50 out = new ObjectOutputStream(bytes); 62 in = new ObjectInputStream(new ByteArrayInputStream(bytes
|
| OldNumberFormatFieldTest.java | 45 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); local 46 ObjectOutputStream out = new ObjectOutputStream(bytes); 57 ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()));
|