/dalvik/dx/src/com/android/dx/command/dump/ |
BaseDumper.java | 67 /** the offset of the next byte to dump */ 126 public void parsed(ByteArray bytes, int offset, int len, String human) { 127 offset = bytes.underlyingOffset(offset, getBytes()); 131 if (offset < at) { 132 println("<dump skipped backwards to " + Hex.u4(offset) + ">"); 133 at = offset; 134 } else if (offset > at) { 135 String hex = rawBytes ? hexDump(at, offset - at) : ""; 136 print(twoColumns(hex, "<skipped to " + Hex.u4(offset) + ">")) [all...] |
/external/llvm/lib/Support/ |
DataExtractor.cpp | 20 uint32_t offset = *offset_ptr; local 21 if (de->isValidOffsetForDataOfSize(offset, sizeof(val))) { 22 std::memcpy(&val, &Data[offset], sizeof(val)); 26 // Advance the offset 35 uint32_t offset = *offset_ptr; local 37 if (count > 0 && de->isValidOffsetForDataOfSize(offset, sizeof(*dst)*count)) { 39 ++value_ptr, offset += sizeof(*dst)) 41 // Advance the offset 42 *offset_ptr = offset; 122 uint32_t offset = *offset_ptr local 137 uint32_t offset = *offset_ptr; local 158 uint32_t offset = *offset_ptr; local [all...] |
/external/proguard/src/proguard/classfile/editor/ |
InstructionWriter.java | 66 public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) 70 simpleInstruction.write(codeAttribute, offset); 74 public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) 79 constantInstruction.write(codeAttribute, offset); 89 replaceInstruction(offset, replacementInstruction); 94 constantInstruction.write(codeAttribute, offset); 99 public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) 104 variableInstruction.write(codeAttribute, offset); 114 replaceInstruction(offset, replacementInstruction); 119 variableInstruction.write(codeAttribute, offset); [all...] |
/frameworks/base/media/libstagefright/ |
XINGSeeker.cpp | 116 int offset = first_frame_pos; local 117 if (source->readAt(offset, &buffer, 4) < 4) { // get header 120 offset += 4; 136 // determine offset of XING header 138 if (mode != 3) offset += 32; 139 else offset += 17; 141 if (mode != 3) offset += 17; 142 else offset += 9; 145 if (source->readAt(offset, &buffer, 4) < 4) { // XING header ID 148 offset += 4 [all...] |
/external/emma/core/java12/com/vladium/util/ |
ByteArrayIStream.java | 53 public final int read (final byte [] buf, final int offset, int length) 56 $assert.ASSERT ((offset >= 0) && (offset <= buf.length) && 57 (length >= 0) && ((offset + length) <= buf.length), 58 "invalid input (" + buf.length + ", " + offset + ", " + length + ")"); 70 for (int i = 0; i < length; ++ i) buf [offset + i] = mbuf [pos + i]; 72 System.arraycopy (mbuf, pos, buf, offset, length);
|
/external/icu4c/layout/ |
GXLayoutEngine.cpp | 31 le_int32 GXLayoutEngine::computeGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, LEGlyphStorage &glyphStorage, LEErrorCode &success) 37 if (chars == NULL || offset < 0 || count < 0 || max < 0 || offset >= max || offset + count > max) { 42 mapCharsToGlyphs(chars, offset, count, FALSE, rightToLeft, glyphStorage, success); 54 void GXLayoutEngine::adjustGlyphPositions(const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool /*reverse*/, 61 if (chars == NULL || offset < 0 || count < 0) {
|
/external/proguard/src/proguard/optimize/peephole/ |
GotoGotoReplacer.java | 72 public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) {} 75 public void visitBranchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) 85 int targetOffset = offset + branchOffset; 87 if (branchOffset != branchInstruction.length(offset) && 88 !codeAttributeEditor.isModified(offset) && 102 codeAttributeEditor.replaceInstruction(offset, 108 extraInstructionVisitor.visitBranchInstruction(clazz, method, codeAttribute, offset, branchInstruction);
|
/external/qemu-pc-bios/bochs/bios/ |
usage.cc | 42 unsigned org, last_org, offset; local 81 for (offset=org-1; offset>last_org; offset--) { 82 if (bios[offset] != 0) break; 84 if (offset > last_org) { 85 elements = (1.0 + double(offset) - double(last_org));
|
/libcore/luni/src/main/java/java/io/ |
Writer.java | 98 * Writes {@code count} characters starting at {@code offset} in {@code buf} 103 * @param offset 108 * if {@code offset < 0} or {@code count < 0}, or if {@code 109 * offset + count} is greater than the size of {@code buf}. 113 public abstract void write(char[] buf, int offset, int count) throws IOException; 146 * offset} to the target. 150 * @param offset 157 * if {@code offset < 0} or {@code count < 0}, or if {@code 158 * offset + count} is greater than the length of {@code str}. 160 public void write(String str, int offset, int count) throws IOException [all...] |
/libcore/luni/src/main/java/java/nio/ |
DirectByteBuffer.java | 23 // This is the offset into {@code Buffer.block} at which this buffer logically starts. 25 protected final int offset; field in class:DirectByteBuffer 27 protected DirectByteBuffer(MemoryBlock block, int capacity, int offset) { 31 if (baseSize >= 0 && (capacity + offset) > baseSize) { 32 throw new IllegalArgumentException("capacity + offset > baseSize"); 35 this.offset = offset; 36 this.effectiveDirectAddress = block.toInt() + offset; 42 this.block.peekByteArray(offset + position, dst, dstOffset, byteCount); 49 this.block.peekCharArray(offset + position, dst, dstOffset, charCount, order.needsSwap) [all...] |
/libcore/luni/src/main/java/java/security/ |
MessageDigestSpi.java | 56 * @param offset 61 * if {@code offset} or {@code len} are not valid in respect to 64 protected abstract void engineUpdate(byte[] input, int offset, int len); 79 int offset = input.arrayOffset(); local 82 engineUpdate(tmp, offset+position, limit - position); 108 * @param offset 116 * if {@code offset} or {@code len} are not valid in respect to 120 protected int engineDigest(byte[] buf, int offset, int len) throws DigestException { 125 if (offset < 0) { 127 throw new DigestException("offset < 0") [all...] |
/libcore/luni/src/main/java/javax/crypto/spec/ |
DESedeKeySpec.java | 60 * <code>offset</code>. 64 * @param offset 65 * the offset to start at. 67 * if the length of the key data starting at offset is less than 72 public DESedeKeySpec(byte[] key, int offset) throws InvalidKeyException { 76 if (key.length - offset < DES_EDE_KEY_LEN) { 80 System.arraycopy(key, offset, this.key, 0, DES_EDE_KEY_LEN); 95 * Returns whether the specified key data starting at <code>offset</code> is 100 * @param offset 101 * the offset to start checking at [all...] |
/system/core/libcutils/ |
open_memstream.c | 73 size_t offset; /* current write offset */ member in struct:__anon30674 81 * current offset. We also have to take into account the extra '\0' 88 DBUG(("+++ ensureCap off=%d size=%d\n", stream->offset, writeSize)); 90 size_t neededSize = stream->offset + writeSize + 1; 131 if (stream->eof < stream->offset) { 133 stream->eof, stream->offset-1)); 135 stream->offset - stream->eof); 139 memcpy(*stream->bufp + stream->offset, buf, size); 140 stream->offset += size [all...] |
/external/javassist/src/main/javassist/bytecode/ |
StackMap.java | 144 int offset = ByteArray.readU16bit(info, pos); local 146 pos = locals(pos + 4, offset, numLoc); 148 pos = stack(pos + 2, offset, numStack); 156 public int locals(int pos, int offset, int num) { 157 return typeInfoArray(pos, offset, num, true); 164 public int stack(int pos, int offset, int num) { 165 return typeInfoArray(pos, offset, num, false); 176 public int typeInfoArray(int pos, int offset, int num, boolean isLocals) { 220 public void uninitialized(int pos, int offset) {} 242 public int locals(int pos, int offset, int num) [all...] |
/external/webkit/Source/WebCore/html/canvas/ |
ArrayBufferView.h | 80 unsigned* offset, unsigned* length); 101 // Input offset is in number of elements from this array's view; 102 // output offset is in number of bytes from the underlying buffer's view. 106 unsigned *offset, 110 if (*offset > maxOffset) { 111 *offset = buffer->byteLength(); 115 *offset = arrayByteOffset + *offset * sizeof(T); 116 *offset = std::min(buffer->byteLength(), *offset); [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
IccUtils.java | 45 bcdToString(byte[] data, int offset, int length) { 48 for (int i = offset ; i < offset + length ; i++) { 70 cdmaBcdToString(byte[] data, int offset, int length) { 74 for (int i = offset; count < length; i++) { 169 * remaining seven bits are an offset value added to the 178 adnStringFieldToString(byte[] data, int offset, int length) { 183 if (data[offset] == (byte) 0x80) { 188 ret = new String(data, offset + 1, ucslen * 2, "utf-16be"); 210 if (length >= 3 && data[offset] == (byte) 0x81) 491 int offset = run - runIndex - 1; local [all...] |
/bootable/bootloader/legacy/include/boot/ |
flash.h | 55 int flash_read_ext(ptentry *ptn, unsigned extra_per_page, unsigned offset, 57 #define flash_read(ptn, offset, data, bytes) flash_read_ext(ptn, 0, offset, data, bytes)
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
WriterTest.java | 105 private int offset; field in class:WriterTest.MockWriter 110 offset = 0; 122 public void write(char[] buffer, int offset, int count) 127 if (offset < 0 || count < 0 || offset >= buffer.length) { 130 count = Math.min(count, buffer.length - offset); 131 count = Math.min(count, this.length - this.offset); 133 contents[this.offset + i] = buffer[offset + i]; 135 this.offset += count [all...] |
/external/emma/core/java12/com/vladium/jcd/cls/ |
IAttributeCollection.java | 30 * Returns the attribute descriptor at a given offset. 32 * @param offset attribute offset [must be in [0, size()) range; input not checked] 35 * @throws IndexOutOfBoundsException if 'offset' is outside of valid range 37 Attribute_info get (int offset); 74 * Replaces the Attribute_info descriptor at a given offset. No duplicate 79 * @param offset attribute offset [must be in [0, size()) range; input not checked] 81 * @return previous attribute descriptor at this offset [never null] 83 * @throws IndexOutOfBoundsException if 'offset' is outside of valid rang [all...] |
/external/oprofile/daemon/liblegacy/ |
opd_mapping.h | 32 /** mapping offset */ 33 unsigned long offset; member in struct:opd_map 65 * @param offset file offset of mapping 72 unsigned long start, unsigned long offset, unsigned long end); 97 * opd_map_offset - return offset of sample against map 101 * Returns the offset of the EIP value @eip into 102 * the map @map, which is the same as the file offset 108 return (eip - map->start) + map->offset;
|
/external/proguard/src/proguard/classfile/instruction/ |
SwitchInstruction.java | 71 public String toString(int offset) 73 return "["+offset+"] "+toString()+" (target="+(offset+defaultOffset)+")";
|
/external/proguard/src/proguard/classfile/instruction/visitor/ |
MultiInstructionVisitor.java | 84 public void visitSimpleInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SimpleInstruction simpleInstruction) 88 instructionVisitors[index].visitSimpleInstruction(clazz, method, codeAttribute, offset, simpleInstruction); 92 public void visitVariableInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VariableInstruction variableInstruction) 96 instructionVisitors[index].visitVariableInstruction(clazz, method, codeAttribute, offset, variableInstruction); 100 public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) 104 instructionVisitors[index].visitConstantInstruction(clazz, method, codeAttribute, offset, constantInstruction); 108 public void visitBranchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, BranchInstruction branchInstruction) 112 instructionVisitors[index].visitBranchInstruction(clazz, method, codeAttribute, offset, branchInstruction); 116 public void visitTableSwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, TableSwitchInstruction tableSwitchInstruction) 120 instructionVisitors[index].visitTableSwitchInstruction(clazz, method, codeAttribute, offset, tableSwitchInstruction) [all...] |
/external/proguard/src/proguard/optimize/evaluation/ |
TracedBranchUnit.java | 40 int offset, 47 super.branch(clazz, codeAttribute, offset, branchTarget); 52 super.branchConditionally(clazz, codeAttribute, offset, branchTarget, conditional);
|
/external/skia/src/animator/ |
SkTextOnPath.cpp | 28 SK_MEMBER(offset, Float), 37 SkTextOnPath::SkTextOnPath() : offset(0), path(NULL), text(NULL) { 45 path->getPath(), offset, 0, *maker.fPaint);
|
/external/webkit/Source/WebCore/platform/graphics/freetype/ |
GlyphPageTreeNodeFreeType.cpp | 41 bool GlyphPage::fill(unsigned offset, unsigned length, UChar* buffer, unsigned bufferLength, const SimpleFontData* fontData) 56 setGlyphDataForIndex(offset + i, 0, 0); 58 setGlyphDataForIndex(offset + i, glyph, fontData);
|