HomeSort by relevance Sort by last modified time
    Searched refs:offset (Results 376 - 400 of 5384) sorted by null

<<11121314151617181920>>

  /libcore/luni/src/main/java/java/nio/
HeapByteBuffer.java 41 final int offset; field in class:HeapByteBuffer
51 HeapByteBuffer(byte[] backingArray, int capacity, int offset) {
54 this.offset = offset;
55 if (offset + capacity > backingArray.length) {
57 ", capacity=" + capacity + ", offset=" + offset);
64 System.arraycopy(backingArray, offset + position, dst, dstOffset, byteCount);
71 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, offset + position, SizeOf.CHAR, order.needsSwap);
77 Memory.unsafeBulkGet(dst, dstOffset, byteCount, backingArray, offset + position, SizeOf.DOUBLE, order.needsSwap)
    [all...]
ReadWriteHeapByteBuffer.java 37 new ReadWriteHeapByteBuffer(other.backingArray, other.capacity(), other.offset);
63 System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());
85 return offset;
97 backingArray[offset + position++] = b;
104 backingArray[offset + index] = b;
111 System.arraycopy(src, srcOffset, backingArray, offset + position, byteCount);
118 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.CHAR, order.needsSwap);
124 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.DOUBLE, order.needsSwap);
130 Memory.unsafeBulkPut(backingArray, offset + position, byteCount, src, srcOffset, SizeOf.FLOAT, order.needsSwap)
    [all...]
  /libcore/luni/src/main/java/java/lang/
String.java 43 * offset 0 and length 5.
108 private final int offset; field in class:String
119 offset = 0;
128 offset = 0;
131 System.arraycopy(s.value, s.offset, value, 0, s.count);
168 * if {@code byteCount < 0 || offset < 0 || offset + byteCount > data.length}.
170 public String(byte[] data, int offset, int byteCount) {
171 if ((offset | byteCount) < 0 || byteCount > data.length - offset) {
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/asn1/
BerInputStream.java 43 * Next read must place data into the buffer from this offset
45 protected int offset = 0; field in class:BerInputStream
66 /** Current decoded tag offset */
69 /** Current decoded content offset */
83 * @param offset the encoding offset
87 public BerInputStream(byte[] encoded, int offset, int expectedLength) throws IOException {
90 this.offset = offset;
96 && (offset + expectedLength) != (this.offset + this.length))
    [all...]
  /external/llvm/lib/DebugInfo/
DWARFCompileUnit.cpp 27 Offset = *offset_ptr;
47 // reset the offset to where we tried to parse from if anything went wrong
48 *offset_ptr = Offset;
55 DWARFCompileUnit::extract(uint32_t offset, DataExtractor debug_info_data,
59 Offset = offset;
61 if (debug_info_data.isValidOffset(offset)) {
62 Length = debug_info_data.getU32(&offset);
63 Version = debug_info_data.getU16(&offset);
64 bool abbrevsOK = debug_info_data.getU32(&offset) == abbrevs->getOffset()
    [all...]
  /external/webkit/Source/WebCore/bindings/js/
JSArrayBufferViewHelper.h 50 // void set(in WebGL<T>Array array, [Optional] in unsigned long offset);
51 unsigned offset = 0; local
53 offset = exec->argument(1).toInt32(exec);
55 impl->set(array, offset, ec);
61 // void set(in sequence<long> array, [Optional] in unsigned long offset);
63 uint32_t offset = 0; local
65 offset = exec->argument(1).toInt32(exec);
67 if (offset > impl->length()
68 || offset + length > impl->length()
69 || offset + length < offset
95 unsigned offset = (exec->argumentCount() > 1) ? exec->argument(1).toUInt32(exec) : 0; local
    [all...]
  /external/webkit/Source/WebCore/platform/network/
BlobRegistryImpl.cpp 89 blobStorageData->m_data.appendData(iter->data, iter->offset, iter->length);
92 blobStorageData->m_data.appendFile(iter->path, iter->offset, iter->length, iter->expectedModificationTime);
97 void BlobRegistryImpl::appendStorageItems(BlobStorageData* blobStorageData, const BlobDataItemList& items, long long offset, long long length)
102 if (offset) {
104 if (offset >= iter->length)
105 offset -= iter->length;
112 long long currentLength = iter->length - offset;
115 blobStorageData->m_data.appendData(iter->data, iter->offset + offset, newLength);
118 blobStorageData->m_data.appendFile(iter->path, iter->offset + offset, newLength, iter->expectedModificationTime)
    [all...]
  /dalvik/dx/src/com/android/dx/util/
Mutf8.java 86 * dst}, starting at {@code offset}.
88 public static void encode(byte[] dst, int offset, String s) {
93 dst[offset++] = (byte) ch;
95 dst[offset++] = (byte) (0xc0 | (0x1f & (ch >> 6)));
96 dst[offset++] = (byte) (0x80 | (0x3f & ch));
98 dst[offset++] = (byte) (0xe0 | (0x0f & (ch >> 12)));
99 dst[offset++] = (byte) (0x80 | (0x3f & (ch >> 6)));
100 dst[offset++] = (byte) (0x80 | (0x3f & ch));
  /external/dexmaker/src/dx/java/com/android/dx/util/
Mutf8.java 86 * dst}, starting at {@code offset}.
88 public static void encode(byte[] dst, int offset, String s) {
93 dst[offset++] = (byte) ch;
95 dst[offset++] = (byte) (0xc0 | (0x1f & (ch >> 6)));
96 dst[offset++] = (byte) (0x80 | (0x3f & ch));
98 dst[offset++] = (byte) (0xe0 | (0x0f & (ch >> 12)));
99 dst[offset++] = (byte) (0x80 | (0x3f & (ch >> 6)));
100 dst[offset++] = (byte) (0x80 | (0x3f & ch));
  /external/icu4c/layout/
ThaiLayoutEngine.cpp 59 le_int32 ThaiLayoutEngine::computeGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool /*rightToLeft*/, LEGlyphStorage &glyphStorage, LEErrorCode &success)
65 if (chars == NULL || offset < 0 || count < 0 || max < 0 || offset >= max || offset + count > max) {
90 glyphCount = ThaiShaping::compose(chars, offset, count, fGlyphSet, fErrorChar, outChars, glyphStorage);
100 void ThaiLayoutEngine::adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool /*reverse*/,
107 if (chars == NULL || offset < 0 || count < 0) {
  /external/qemu/block/
dmg.c 32 * offsets[i] is the offset in the .dmg file,
59 static off_t read_off(BlockDriverState *bs, int64_t offset)
62 if (bdrv_pread(bs->file, offset, &buffer, 8) < 8)
67 static off_t read_uint32(BlockDriverState *bs, int64_t offset)
70 if (bdrv_pread(bs->file, offset, &buffer, 4) < 4)
81 int64_t offset; local
87 /* read offset of info blocks */
88 offset = bdrv_getlength(bs->file);
89 if (offset < 0) {
92 offset -= 0x1d8
    [all...]
  /frameworks/base/opengl/java/javax/microedition/khronos/opengles/
GL11Ext.java 40 void glTexParameterfv(int target, int pname, float[] param, int offset);
56 int offset
73 int offset
90 int offset
107 int offset
136 int offset
150 int offset
  /external/tcpdump/
print-802_11.c 156 parse_elements(struct mgmt_body_t *pbody, const u_char *p, int offset)
169 if (!TTEST2(*(p + offset), 1))
171 switch (*(p + offset)) {
175 if (!TTEST2(*(p + offset), 2))
177 memcpy(&pbody->ssid, p + offset, 2);
178 offset += 2;
183 if (!TTEST2(*(p + offset), pbody->ssid.length))
185 memcpy(&pbody->ssid.ssid, p + offset,
187 offset += pbody->ssid.length;
196 if (!TTEST2(*(p + offset), 2)
300 int offset = 0; local
329 int offset = 0; local
351 int offset = 0; local
380 int offset = 0; local
413 int offset = 0; local
429 int offset = 0; local
483 int offset = 0; local
530 int offset = 0; local
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
MatrixTrackingGL.java 176 public void glDeleteTextures(int n, int[] textures, int offset) {
177 mgl.glDeleteTextures(n, textures, offset);
236 public void glFogfv(int pname, float[] params, int offset) {
237 mgl.glFogfv(pname, params, offset);
248 public void glFogxv(int pname, int[] params, int offset) {
249 mgl.glFogxv(pname, params, offset);
274 public void glGenTextures(int n, int[] textures, int offset) {
275 mgl.glGenTextures(n, textures, offset);
287 public void glGetIntegerv(int pname, int[] params, int offset) {
288 mgl.glGetIntegerv(pname, params, offset);
    [all...]
  /external/qemu/
buffered_file.c 74 size_t offset = 0; local
83 while (offset < s->buffer_size) {
86 ret = s->put_buffer(s->opaque, s->buffer + offset,
87 s->buffer_size - offset);
100 offset += ret;
104 DPRINTF("flushed %zu of %zu byte(s)\n", offset, s->buffer_size);
105 memmove(s->buffer, s->buffer + offset, s->buffer_size - offset);
106 s->buffer_size -= offset;
112 int offset = 0 local
    [all...]
  /cts/tests/tests/content/src/android/content/res/cts/
AssetManager_AssetInputStreamTest.java 92 int offset = 0; local
93 ret = mAssetInputStream.read(data, offset, dataLength);
95 for (int i = offset; i < ret; i++) {
96 assertEquals(bytes[i], data[offset + i]);
99 offset = 2;
100 ret = mAssetInputStream.read(data, offset, dataLength);
102 for (int i = offset; i < ret; i++) {
103 assertEquals(bytes[i], data[offset + i]);
105 data = new byte[len + offset];
106 ret = mAssetInputStream.read(data, offset, len)
    [all...]
  /external/proguard/src/proguard/classfile/editor/
MethodInvocationFixer.java 78 public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) {}
81 public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction)
107 codeAttributeEditor.replaceInstruction(offset, replacementInstruction);
111 debug(clazz, method, offset, constantInstruction, replacementInstruction);
128 codeAttributeEditor.replaceInstruction(offset, replacementInstruction);
132 debug(clazz, method, offset, constantInstruction, replacementInstruction);
154 codeAttributeEditor.replaceInstruction(offset, replacementInstruction);
158 debug(clazz, method, offset, constantInstruction, replacementInstruction);
178 codeAttributeEditor.replaceInstruction(offset, replacementInstruction);
182 debug(clazz, method, offset, constantInstruction, replacementInstruction)
    [all...]
  /frameworks/wilhelm/src/android/
AacBqToPcmCbRenderer.cpp 30 * Note that if the returned value + offset > size, it means that a partial frame starts at that
31 * offset, but this function will still return the size of the full frame.
33 * @param offset offset in bytes relative to data of where the frame is supposed to start
35 * @return the size in bytes of the AAC ADTS frame starting at the given offset of the given
38 static size_t getAdtsFrameSize(const uint8_t *data, off64_t offset, size_t size) {
41 if (!(offset + ADTS_HEADER_SIZE_UP_TO_FRAMESIZE < size)) {
47 const uint8_t *syncword = data + offset;
53 const uint8_t protectionAbsent = data[offset+1] & 0x1;
55 const uint8_t* header = data + offset + 3
85 off64_t offset = 0; local
    [all...]
  /external/icu4c/test/cintltst/
utf16tst.c 149 uint16_t offset=0; local
150 for(offset=0; offset<sizeof(input)/U_SIZEOF_UCHAR; offset++) {
151 if(0<offset && offset<sizeof(input)/U_SIZEOF_UCHAR-1){
152 UTF16_GET_CHAR_UNSAFE(input, offset, c);
154 log_err("ERROR: UTF16_GET_CHAR_UNSAFE failed for offset=%ld. Expected:%lx Got:%lx\n", offset, result[i], c);
157 U16_GET_UNSAFE(input, offset, c)
219 uint16_t offset=0, setOffset=0; local
497 uint16_t offset=0, setOffset=0; local
605 uint16_t offset; local
    [all...]
  /external/proguard/src/proguard/classfile/util/
SimplifiedVisitor.java 473 public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
479 public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction)
481 visitAnyInstruction(clazz, method, codeAttribute, offset, simpleInstruction);
485 public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction)
487 visitAnyInstruction(clazz, method, codeAttribute, offset, variableInstruction);
491 public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction)
493 visitAnyInstruction(clazz, method, codeAttribute, offset, constantInstruction);
497 public void visitBranchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction)
499 visitAnyInstruction(clazz, method, codeAttribute, offset, branchInstruction);
506 public void visitAnySwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SwitchInstruction switchInstruction
    [all...]
  /external/webkit/Source/JavaScriptCore/assembler/
MacroAssemblerARM.cpp 78 if (address.offset >= 0 && address.offset + 0x2 <= 0xff) {
80 m_assembler.ldrh_u(dest, ARMRegisters::S0, ARMAssembler::getOp2Byte(address.offset));
81 m_assembler.ldrh_u(ARMRegisters::S0, ARMRegisters::S0, ARMAssembler::getOp2Byte(address.offset + 0x2));
82 } else if (address.offset < 0 && address.offset >= -0xff) {
84 m_assembler.ldrh_d(dest, ARMRegisters::S0, ARMAssembler::getOp2Byte(-address.offset));
85 m_assembler.ldrh_d(ARMRegisters::S0, ARMRegisters::S0, ARMAssembler::getOp2Byte(-address.offset - 0x2));
87 m_assembler.ldr_un_imm(ARMRegisters::S0, address.offset);
  /external/webkit/Source/WebCore/platform/graphics/chromium/
GlyphPageTreeNodeChromiumWin.cpp 63 // Fills |length| glyphs starting at |offset| in a |page| in the Basic
67 static bool fillBMPGlyphs(unsigned offset,
84 return fillBMPGlyphs(offset, length, buffer, page, fontData, false);
160 page->setGlyphDataForCharacter(offset + i, glyph, glyphFontData);
184 static bool fillNonBMPGlyphs(unsigned offset,
202 // consists of two UChars. So, the offset for its i-th character is
207 page->setGlyphDataForIndex(offset + i, glyph, fontData);
210 page->setGlyphDataForIndex(offset + i, 0, 0);
216 // specified by |offset| and |length| in our font,
218 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* characterBuffer
    [all...]
  /frameworks/av/media/libstagefright/id3/
testid3.cpp 34 size_t offset = 0; local
35 while (offset < size) {
36 printf("0x%04x ", offset);
38 size_t n = size - offset;
48 if (offset + i < size) {
49 printf("%02x ", data[offset + i]);
58 if (isprint(data[offset + i])) {
59 printf("%c", data[offset + i]);
67 offset += 16;
  /hardware/msm7k/libgralloc-qsd8k/tests/
pmemalloc_test.cpp 38 virtual int mapPmem(int fd, int offset, size_t size) {
42 virtual int unmapPmem(int fd, int offset, size_t size) {
51 off_t offset) {
83 virtual ssize_t deallocate(size_t offset) {
110 off_t offset) {
156 off_t offset) {
300 virtual int mapPmem(int fd, int offset, size_t size) {
302 EXPECT_EQ(0x300, offset);
327 int offset = -9182, fd = -9182; local
330 int result = pma.alloc_pmem_buffer(size, flags, &base, &offset, &fd)
354 int offset = -9182, fd = -9182; local
393 int offset = -9182, fd = -9182; local
426 int offset = -9182, fd = -9182; local
460 int offset = -9182, fd = -9182; local
496 int offset = -9182, fd = -9182; local
519 int offset = -9182, fd = -9182; local
554 int offset = -9182, fd = -9182; local
591 int offset = -9182, fd = -9182; local
    [all...]
  /libcore/luni/src/main/java/java/io/
CharArrayWriter.java 152 * Writes {@code count} characters starting at {@code offset} in {@code c}
157 * @param offset
162 * if {@code offset < 0} or {@code len < 0}, or if
163 * {@code offset + len} is bigger than the size of {@code c}.
166 public void write(char[] buffer, int offset, int len) {
167 Arrays.checkOffsetAndCount(buffer.length, offset, len);
170 System.arraycopy(buffer, offset, this.buf, this.count, len);
192 * Writes {@code count} characters starting at {@code offset} from
198 * if {@code offset < 0} or {@code count < 0}, or if
199 * {@code offset + count} is bigger than the length o
    [all...]

Completed in 2733 milliseconds

<<11121314151617181920>>