/external/chromium_org/third_party/WebKit/Source/core/dom/ |
CharacterData.cpp | 60 String CharacterData::substringData(unsigned offset, unsigned count, ExceptionState& exceptionState) 62 if (offset > length()) { 63 exceptionState.throwDOMException(IndexSizeError, "The offset " + String::number(offset) + " is greater than the node's length (" + String::number(length()) + ")."); 67 return m_data.substring(offset, count); 94 void CharacterData::insertData(unsigned offset, const String& data, ExceptionState& exceptionState, RecalcStyleBehavior recalcStyleBehavior) 96 if (offset > length()) { 97 exceptionState.throwDOMException(IndexSizeError, "The offset " + String::number(offset) + " is greater than the node's length (" + String::number(length()) + ")."); 102 newStr.insert(data, offset); [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/ |
BufferStorage9.cpp | 39 void BufferStorage9::setData(const void* data, unsigned int size, unsigned int offset) 41 if (!mMemory || offset + size > mAllocatedSize) 43 unsigned int newAllocatedSize = offset + size; 46 if (offset > 0 && mMemory && mAllocatedSize > 0) 48 memcpy(newMemory, mMemory, std::min(offset, mAllocatedSize)); 56 mSize = std::max(mSize, offset + size); 59 memcpy(reinterpret_cast<char*>(mMemory) + offset, data, size);
|
IndexRangeCache.cpp | 19 void IndexRangeCache::addRange(GLenum type, unsigned int offset, GLsizei count, unsigned int minIdx, unsigned int maxIdx, 22 mIndexRangeCache[IndexRange(type, offset, count)] = IndexBounds(minIdx, maxIdx, streamOffset); 25 void IndexRangeCache::invalidateRange(unsigned int offset, unsigned int size) 27 unsigned int invalidateStart = offset; 28 unsigned int invalidateEnd = offset + size; 47 bool IndexRangeCache::findRange(GLenum type, unsigned int offset, GLsizei count, unsigned int *outMinIndex, 50 IndexRangeMap::const_iterator i = mIndexRangeCache.find(IndexRange(type, offset, count)); 73 : type(GL_NONE), offset(0), count(0) 78 : type(typ), offset(off), count(c) 84 return std::make_tuple(type, offset, count) < std::make_tuple(rhs.type, rhs.offset, rhs.count) [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
regextxt.cpp | 17 uregex_utext_unescape_charAt(int32_t offset, void *ct) { 20 if (offset == context->lastOffset + 1) { 23 } else if (offset == context->lastOffset) { 27 utext_moveIndex32(context->text, offset - context->lastOffset - 1); 29 context->lastOffset = offset; 41 uregex_ucstr_unescape_charAt(int32_t offset, void *context) { 42 return ((UChar *)context)[offset];
|
/external/icu4c/i18n/ |
regextxt.cpp | 18 uregex_utext_unescape_charAt(int32_t offset, void *ct) { 21 if (offset == context->lastOffset + 1) { 24 } else if (offset == context->lastOffset) { 28 utext_moveIndex32(context->text, offset - context->lastOffset - 1); 30 context->lastOffset = offset; 42 uregex_ucstr_unescape_charAt(int32_t offset, void *context) { 43 return ((UChar *)context)[offset];
|
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
q_pulse.h | 66 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]); 67 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]); 68 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]); 69 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]); 70 void dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]); 71 void dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]); 72 void dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]);
|
/external/e2fsprogs/lib/blkid/ |
llseek.c | 41 extern long long llseek(int fd, long long offset, int origin); 69 static blkid_loff_t my_llseek(int fd, blkid_loff_t offset, int origin) 75 retval = _llseek(fd, ((unsigned long long) offset) >> 32, 76 ((unsigned long long)offset) & 0xffffffff, 79 retval = syscall(__NR__llseek, fd, ((unsigned long long) offset) >> 32, 80 ((unsigned long long)offset) & 0xffffffff, 90 blkid_loff_t blkid_llseek(int fd, blkid_loff_t offset, int whence) 96 (offset < ((blkid_loff_t) 1 << ((sizeof(off_t)*8) -1)))) 97 return lseek(fd, (off_t) offset, whence); 104 result = my_llseek(fd, offset, whence) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
draw_pipe_offset.c | 29 * \brief polygon offset state 61 * Offset tri Z. Some hardware can handle this, but not usually when 68 struct offset_stage *offset = offset_stage(stage); local 92 float zoffset = offset->units + MAX2(dzdx, dzdy) * offset->scale; 94 if (offset->clamp) 95 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : 96 MIN2(zoffset, offset->clamp); 99 * Note: we're applying the offset and clamping per-vertex 129 struct offset_stage *offset = offset_stage(stage); local 168 struct offset_stage *offset = CALLOC_STRUCT(offset_stage); local [all...] |
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_pipe_offset.c | 29 * \brief polygon offset state 61 * Offset tri Z. Some hardware can handle this, but not usually when 68 struct offset_stage *offset = offset_stage(stage); local 92 float zoffset = offset->units + MAX2(dzdx, dzdy) * offset->scale; 94 if (offset->clamp) 95 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : 96 MIN2(zoffset, offset->clamp); 99 * Note: we're applying the offset and clamping per-vertex 129 struct offset_stage *offset = offset_stage(stage); local 168 struct offset_stage *offset = CALLOC_STRUCT(offset_stage); local [all...] |
/external/proguard/src/proguard/classfile/attribute/preverification/visitor/ |
VerificationTypeVisitor.java | 36 public void visitIntegerType( Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, IntegerType integerType); 37 public void visitFloatType( Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, FloatType floatType); 38 public void visitLongType( Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, LongType longType); 39 public void visitDoubleType( Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, DoubleType doubleType); 40 public void visitTopType( Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, TopType topType); 41 public void visitObjectType( Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ObjectType objectType); 42 public void visitNullType( Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, NullType nullType); 43 public void visitUninitializedType( Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, UninitializedType uninitializedType); 44 public void visitUninitializedThisType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, UninitializedThisType uninitializedThisType); 46 public void visitStackIntegerType( Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, int index, IntegerType integerType) [all...] |
/external/proguard/src/proguard/optimize/evaluation/ |
LivenessAnalyzer.java | 83 * at the given offset. 94 * at the given offset. 114 * at the given offset. 125 * at the given offset. 145 * instruction at the given offset. 156 * instruction at the given offset. 213 for (int offset = codeLength - 1; offset >= 0; offset--) 215 if (partialEvaluator.isTraced(offset)) [all...] |
EvaluationShrinker.java | 165 for (int offset = 0; offset < codeLength; offset++) 167 if (partialEvaluator.isTraced(offset)) 170 offset); 172 instruction.accept(clazz, method, codeAttribute, offset, unusedParameterSimplifier); 192 for (int offset = 0; offset < codeLength; offset++) 194 if (partialEvaluator.isTraced(offset)) 230 int offset = maxMarkedOffset; local 303 int offset = maxMarkedOffset; local 379 int offset = 0; local 860 int offset = producerOffsets.instructionOffset(offsetIndex); local 952 int offset = producerOffsets.instructionOffset(offsetIndex); local [all...] |
/art/runtime/ |
oat.cc | 127 void OatHeader::SetInterpreterToInterpreterBridgeOffset(uint32_t offset) { 128 CHECK(offset == 0 || offset >= executable_offset_); 130 DCHECK_EQ(interpreter_to_interpreter_bridge_offset_, 0U) << offset; 132 interpreter_to_interpreter_bridge_offset_ = offset; 133 UpdateChecksum(&interpreter_to_interpreter_bridge_offset_, sizeof(offset)); 146 void OatHeader::SetInterpreterToCompiledCodeBridgeOffset(uint32_t offset) { 147 CHECK(offset == 0 || offset >= interpreter_to_interpreter_bridge_offset_); 149 DCHECK_EQ(interpreter_to_compiled_code_bridge_offset_, 0U) << offset; [all...] |
memory_region.h | 47 template<typename T> T Load(uintptr_t offset) const { 48 return *ComputeInternalPointer<T>(offset); 51 template<typename T> void Store(uintptr_t offset, T value) const { 52 *ComputeInternalPointer<T>(offset) = value; 55 template<typename T> T* PointerTo(uintptr_t offset) const { 56 return ComputeInternalPointer<T>(offset); 59 void CopyFrom(size_t offset, const MemoryRegion& from) const; 62 void Subregion(const MemoryRegion& from, uintptr_t offset, uintptr_t size) { 64 CHECK_LE(offset, from.size() - size); 65 pointer_ = reinterpret_cast<void*>(from.start() + offset); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/html/ |
MediaFragmentURIParser.cpp | 105 unsigned offset = 0; local 107 while (offset < end) { 113 size_t parameterStart = offset; 114 size_t parameterEnd = fragmentString.find('&', offset); 118 size_t equalOffset = fragmentString.find('=', offset); 120 offset = parameterEnd + 1; 148 offset = parameterEnd + 1; 199 unsigned offset = 0; local 201 offset += nptIdentiferLength; 203 if (offset == length [all...] |
/frameworks/av/media/libstagefright/ |
ESDS.cpp | 70 size_t offset, size_t size, 76 *tag = mData[offset++]; 86 uint8_t x = mData[offset++]; 100 *data_offset = offset; 123 status_t ESDS::parseESDescriptor(size_t offset, size_t size) { 128 offset += 2; // skip ES_ID 131 unsigned streamDependenceFlag = mData[offset] & 0x80; 132 unsigned URL_Flag = mData[offset] & 0x40; 133 unsigned OCRstreamFlag = mData[offset] & 0x20; 135 ++offset; [all...] |
/libcore/luni/src/main/java/java/lang/ |
StringBuilder.java | 260 * @param offset 261 * the inclusive offset index. 266 * if {@code offset} and {@code len} do not specify a valid 270 public StringBuilder append(char[] str, int offset, int len) { 271 append0(str, offset, len); 365 * at the specified {@code offset}. The {@code boolean} value is converted 369 * @param offset 375 * if {@code offset} is negative or greater than the current 379 public StringBuilder insert(int offset, boolean b) { 380 insert0(offset, b ? "true" : "false") [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactLookupKey.java | 123 int offset = 0; local 131 while (offset < length) { 136 while (offset < length) { 137 c = string.charAt(offset++); 164 while (offset < length) { 165 c = string.charAt(offset++); 168 if (offset == length) { 172 c = string.charAt(offset); 176 offset++; 186 int start = offset; [all...] |
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
pvmp3_getbits.cpp | 114 uint32 offset; local 127 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; 129 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); 130 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); 131 Elem2 = *(ptBitStream->pBuffer + module(offset + 2, BUFSIZE)); 132 Elem3 = *(ptBitStream->pBuffer + module(offset + 3, BUFSIZE)); 162 uint32 offset; local 168 offset = (ptBitStream->usedBits) >> INBUF_ARRAY_INDEX_SHIFT; 170 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); 171 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)) 198 uint32 offset; local 236 uint32 offset; local [all...] |
/libcore/libdvm/src/main/java/sun/misc/ |
Unsafe.java | 58 * Gets the raw byte offset from the start of an object's memory to 63 * @return the offset to the field 79 * @return the offset to the field 84 * Gets the offset from the start of an array object's memory to 88 * @return the offset to the initial element 103 * @return the offset to the field 126 * @return the offset to the field 135 * @param offset offset to the field within <code>obj</code> 142 public native boolean compareAndSwapInt(Object obj, long offset, [all...] |
/external/chromium_org/net/disk_cache/ |
mapped_file_avoid_mmap_posix.cc | 43 for (size_t offset = 0; offset < view_size_; offset += block_size) { 44 size_t size = std::min(view_size_ - offset, block_size); 45 if (memcmp(snapshot_ptr + offset, buffer_ptr + offset, size)) { 46 memcpy(snapshot_ptr + offset, buffer_ptr + offset, size); 47 Write(snapshot_ptr + offset, size, offset); [all...] |
/external/chromium_org/third_party/ots/src/ |
loca.cc | 34 // Note that the <= here (and below) is correct. There is one more offset 38 uint16_t offset = 0; local 39 if (!table.ReadU16(&offset)) { 42 if (offset < last_offset) { 45 last_offset = offset; 46 loca->offsets[i] = offset * 2; 50 uint32_t offset = 0; local 51 if (!table.ReadU32(&offset)) { 54 if (offset < last_offset) { 57 last_offset = offset; [all...] |
/frameworks/base/services/common_time/ |
common_time_server_packets.cpp | 42 if ((offset + sizeof(field_name)) > length) \ 44 *((type*)(data + offset)) = converter(field_name); \ 45 offset += sizeof(field_name); \ 53 if ((offset + sizeof(field_name)) > length) \ 55 field_name = converter(*((type*)(data + offset))); \ 56 offset += sizeof(field_name); \ 80 ssize_t offset = 0; local 87 return offset; 92 ssize_t offset = 0; local 100 return offset; 186 ssize_t offset = serializeHeader(data, length); local 196 ssize_t offset = deserializeHeader(data, length); local 208 ssize_t offset = serializeHeader(data, length); local 218 ssize_t offset = deserializeHeader(data, length); local 230 ssize_t offset = serializeHeader(data, length); local 239 ssize_t offset = deserializeHeader(data, length); local 248 ssize_t offset = serializeHeader(data, length); local 260 ssize_t offset = deserializeHeader(data, length); local 272 ssize_t offset = serializeHeader(data, length); local 282 ssize_t offset = deserializeHeader(data, length); local [all...] |
/external/e2fsprogs/lib/ext2fs/ |
llseek.c | 42 extern long long llseek (int fd, long long offset, int origin); 70 static ext2_loff_t my_llseek (int fd, ext2_loff_t offset, int origin) 76 retval = _llseek(fd, ((unsigned long long) offset) >> 32, 78 retval = syscall(__NR__llseek, fd, (unsigned long long) (offset >> 32), 80 ((unsigned long long) offset) & 0xffffffff, 90 ext2_loff_t ext2fs_llseek (int fd, ext2_loff_t offset, int origin) 96 (offset < ((ext2_loff_t) 1 << ((sizeof(off_t)*8) -1)))) 97 return lseek(fd, (off_t) offset, origin); 104 result = my_llseek (fd, offset, origin); 122 ext2_loff_t ext2fs_llseek (int fd, ext2_loff_t offset, int origin [all...] |
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
Charsets.java | 52 public static byte[] toAsciiBytes(char[] chars, int offset, int length) { 54 cb.put(chars, offset, length); 62 public static byte[] toIsoLatin1Bytes(char[] chars, int offset, int length) { 64 cb.put(chars, offset, length); 72 public static byte[] toUtf8Bytes(char[] chars, int offset, int length) { 74 cb.put(chars, offset, length); 82 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { 84 int end = offset + length; 86 for (int i = offset; i < end; ++i) { 102 public static void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars) [all...] |