Searched refs:offset (Results 1 - 25 of 387) sorted by relevance

1234567891011>>

/dalvik/vm/mterp/c/
H A DOP_GOTO_16.c3 s4 offset = (s2) FETCH(1); /* sign-extend next code unit */ local
5 if (offset < 0)
6 ILOGV("|goto/16 -0x%04x", -offset);
8 ILOGV("|goto/16 +0x%04x", offset);
10 if (offset < 0)
11 PERIODIC_CHECKS(kInterpEntryInstr, offset);
12 FINISH(offset);
H A DOP_GOTO_32.c3 s4 offset = FETCH(1); /* low-order 16 bits */ local
4 offset |= ((s4) FETCH(2)) << 16; /* high-order 16 bits */
6 if (offset < 0)
7 ILOGV("|goto/32 -0x%08x", -offset);
9 ILOGV("|goto/32 +0x%08x", offset);
11 if (offset <= 0) /* allowed to branch to self */
12 PERIODIC_CHECKS(kInterpEntryInstr, offset);
13 FINISH(offset);
H A DOP_PACKED_SWITCH.c5 s4 offset; local
8 offset = FETCH(1) | (((s4) FETCH(2)) << 16);
10 switchData = pc + offset; // offset in 16-bit units
23 offset = dvmInterpHandlePackedSwitch(switchData, testVal);
24 ILOGV("> branch taken (0x%04x)\n", offset);
25 if (offset <= 0) /* uncommon */
26 PERIODIC_CHECKS(kInterpEntryInstr, offset);
27 FINISH(offset);
H A DOP_SPARSE_SWITCH.c5 s4 offset; local
8 offset = FETCH(1) | (((s4) FETCH(2)) << 16);
10 switchData = pc + offset; // offset in 16-bit units
23 offset = dvmInterpHandleSparseSwitch(switchData, testVal);
24 ILOGV("> branch taken (0x%04x)\n", offset);
25 if (offset <= 0) /* uncommon */
26 PERIODIC_CHECKS(kInterpEntryInstr, offset);
27 FINISH(offset);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/
H A DPlatformAddress.java72 public PlatformAddress offsetBytes(int offset) { argument
73 return PlatformAddressFactory.on(osaddr + offset, size - offset);
77 // public PlatformAddress offsetBytes(long offset) {
78 // return PlatformAddressFactory.on(osaddr + offset, size - offset);
107 public final void setAddress(int offset, PlatformAddress address) { argument
108 osMemory.setAddress(osaddr + offset, address.osaddr);
111 public final PlatformAddress getAddress(int offset) { argument
112 int addr = getInt(offset);
116 setByte(int offset, byte value) argument
121 setByteArray(int offset, byte[] bytes, int bytesOffset, int length) argument
128 setShortArray(int offset, short[] shorts, int shortsOffset, int length, boolean swap) argument
135 setIntArray(int offset, int[] ints, int intsOffset, int length, boolean swap) argument
142 getByte(int offset) argument
147 getByteArray(int offset, byte[] bytes, int bytesOffset, int length) argument
153 setShort(int offset, short value, Endianness order) argument
158 setShort(int offset, short value) argument
163 getShort(int offset, Endianness order) argument
168 getShort(int offset) argument
173 setInt(int offset, int value, Endianness order) argument
178 setInt(int offset, int value) argument
183 getInt(int offset, Endianness order) argument
188 getInt(int offset) argument
193 setLong(int offset, long value, Endianness order) argument
198 setLong(int offset, long value) argument
203 getLong(int offset, Endianness order) argument
208 getLong(int offset) argument
213 setFloat(int offset, float value, Endianness order) argument
218 setFloat(int offset, float value) argument
223 getFloat(int offset, Endianness order) argument
228 getFloat(int offset) argument
233 setDouble(int offset, double value, Endianness order) argument
238 setDouble(int offset, double value) argument
243 getDouble(int offset, Endianness order) argument
248 getDouble(int offset) argument
[all...]
/dalvik/libcore/xml/src/test/java/tests/api/org/xml/sax/support/
H A DBrokenInputStream.java31 private int offset; field in class:BrokenInputStream
33 public BrokenInputStream(InputStream stream, int offset) { argument
37 this.offset = offset;
42 if (offset == 0) {
46 offset--;
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/
H A DUtil.java43 * Check array bounds method for methods like doSomething(Object[], offset,
46 * offset+length > array.length
48 public static void assertArrayIndex(Object[] array, int offset, int length) { argument
49 if (offset < 0 || length < 0) {
53 if ((long) offset + (long) length > array.length) {
59 public static void assertArrayIndex(boolean[] array, int offset, int length) { argument
60 if (offset < 0 || length < 0) {
64 if ((long) offset + (long) length > array.length) {
70 public static void assertArrayIndex(byte[] array, int offset, int length) { argument
71 if (offset <
81 assertArrayIndex(short[] array, int offset, int length) argument
92 assertArrayIndex(int[] array, int offset, int length) argument
103 assertArrayIndex(long[] array, int offset, int length) argument
114 assertArrayIndex(float[] array, int offset, int length) argument
125 assertArrayIndex(double[] array, int offset, int length) argument
136 assertArrayIndex(char[] array, int offset, int length) argument
152 assertArrayIndex(int arrayLength, int offset, int length) argument
[all...]
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DSSLEngineDataStream.java39 private int offset; field in class:SSLEngineDataStream
47 protected void setSourceBuffers(ByteBuffer[] srcs, int offset, int length) { argument
49 this.offset = offset;
50 this.limit = offset+length;
53 for (int i=offset; i<limit; i++) {
80 for (; offset<limit; offset++) {
81 while (srcs[offset].hasRemaining()) {
82 res[pos++] = srcs[offset]
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/
H A DDESedeParameters.java26 * @param offset offset into the byte array the key starts at
31 int offset,
34 for (int i = offset; i < length; i += DES_KEY_LENGTH)
49 * @param offset offset into the byte array the key starts at
53 int offset)
55 return isWeakKey(key, offset, key.length - offset);
29 isWeakKey( byte[] key, int offset, int length) argument
51 isWeakKey( byte[] key, int offset) argument
/dalvik/libdex/
H A DDexDataMap.h44 * Add a new element to the map. The offset must be greater than the
47 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type);
50 * Get the type associated with the given offset. This returns -1 if
51 * there is no entry for the given offset.
53 int dexDataMapGet(DexDataMap* map, u4 offset);
56 * Verify that there is an entry in the map, mapping the given offset to
60 bool dexDataMapVerify(DexDataMap* map, u4 offset, u2 type);
63 * Like dexDataMapVerify(), but also accept a 0 offset as valid.
65 DEX_INLINE bool dexDataMapVerify0Ok(DexDataMap* map, u4 offset, u2 type) { argument
66 if (offset
[all...]
/dalvik/libcore/text/src/main/java/java/text/
H A DStringCharacterIterator.java29 int start, end, offset; field in class:StringCharacterIterator
42 start = offset = 0;
68 offset = location;
98 offset = location;
126 if (offset == end) {
129 return string.charAt(offset);
152 && offset == it.offset;
167 offset = start;
168 return string.charAt(offset);
[all...]
H A DRuleBasedBreakIterator.java64 public int following(int offset) { argument
65 validateOffset(offset);
66 return wrapped.following(offset);
70 * check the offset, throw exception if it is invalid
72 private void validateOffset(int offset) { argument
74 if (offset < it.getBeginIndex() || offset >= it.getEndIndex()) {
147 public boolean isBoundary(int offset) { argument
148 validateOffset(offset);
149 return wrapped.isBoundary(offset);
158 preceding(int offset) argument
[all...]
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/
H A DBerOutputStream.java40 * current offset
42 protected int offset; field in class:BerOutputStream
59 encoded[offset++] = (byte) tag; //FIXME long form?
68 encoded[offset] = (byte) (numOctets | 0x80);
69 offset++;
72 int numOffset = offset + numOctets - 1;
76 offset += numOctets;
78 encoded[offset++] = (byte) length;
83 System.arraycopy(content, 0, encoded, offset, length);
84 offset
[all...]
/dalvik/libcore/xml/src/main/java/org/w3c/dom/
H A DCharacterData.java86 * @param offset Start offset of substring to extract.
88 * @return The specified substring. If the sum of <code>offset</code> and
92 * INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
99 public String substringData(int offset, argument
115 * Insert a string at the specified 16-bit unit offset.
116 * @param offset The character offset at which to insert.
119 * INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is
124 public void insertData(int offset, argument
143 deleteData(int offset, int count) argument
166 replaceData(int offset, int count, String arg) argument
[all...]
H A DText.java42 * Breaks this node into two nodes at the specified <code>offset</code>,
44 * will contain all the content up to the <code>offset</code> point. A
46 * after the <code>offset</code> point, is returned. If the original
48 * of the original node. When the <code>offset</code> is equal to the
50 * @param offset The 16-bit unit offset at which to split, starting from
54 * INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
58 public Text splitText(int offset) argument
/dalvik/dx/src/com/android/dx/cf/code/
H A DBytecodeArray.java107 * Don't record the previous offset here, so that we get to see the
115 * Finds the offset to each instruction in the bytecode array. The
116 * result is a bit set with the offset of each opcode-per-se flipped on.
138 * the indicated offset (that is, the bit index), repeating until the
151 int offset = Bits.findFirst(workSet, 0);
152 if (offset < 0) {
155 Bits.clear(workSet, offset);
156 parseInstruction(offset, visitor);
157 visitor.setPreviousOffset(offset);
162 * Parses the instruction at the indicated offset
211 parseInstruction(int offset, Visitor visitor) argument
806 parseTableswitch(int offset, Visitor visitor) argument
849 parseLookupswitch(int offset, Visitor visitor) argument
887 parseNewarray(int offset, Visitor visitor) argument
1070 parseWide(int offset, Visitor visitor) argument
1153 visitInvalid(int opcode, int offset, int length) argument
1164 visitNoArgs(int opcode, int offset, int length, Type type) argument
1178 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument
1205 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument
1216 visitBranch(int opcode, int offset, int length, int target) argument
1230 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument
1241 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initVals) argument
1248 setPreviousOffset(int offset) argument
1271 visitInvalid(int opcode, int offset, int length) argument
1276 visitNoArgs(int opcode, int offset, int length, Type type) argument
1282 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument
1288 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument
1294 visitBranch(int opcode, int offset, int length, int target) argument
1300 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument
1306 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initValues) argument
1312 setPreviousOffset(int offset) argument
1340 visitInvalid(int opcode, int offset, int length) argument
1345 visitNoArgs(int opcode, int offset, int length, Type type) argument
1351 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument
1357 visitConstant(int opcode, int offset, int length, Constant cst, int value) argument
1365 visitBranch(int opcode, int offset, int length, int target) argument
1371 visitSwitch(int opcode, int offset, int length, SwitchList cases, int padding) argument
1377 visitNewarray(int offset, int length, CstType type, ArrayList<Constant> initVals) argument
1383 setPreviousOffset(int offset) argument
[all...]
/dalvik/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DChunk.java25 * The "offset" and "length" fields are present so handlers can over-allocate
35 public int offset, length; // position within "data" field in class:Chunk
45 public Chunk(int type, byte[] data, int offset, int length) { argument
48 this.offset = offset;
54 * offset 0 and continue to the current position.
60 this.offset = buf.arrayOffset();
/dalvik/libcore/luni/src/main/java/java/io/
H A DOutputStream.java94 * position {@code offset} to this stream.
98 * @param offset
106 * if {@code offset < 0} or {@code count < 0}, or if
107 * {@code offset + count} is bigger than the length of
111 public void write(byte[] buffer, int offset, int count) throws IOException { argument
120 // used (offset | count) < 0 instead of (offset < 0) || (count < 0)
125 if ((offset | count) < 0 || count > buffer.length - offset) {
129 for (int i = offset;
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/dom/
H A DCharacterDataImpl.java47 public void deleteData(int offset, int count) throws DOMException { argument
48 buffer.delete(offset, offset + count);
64 public void insertData(int offset, String arg) throws DOMException { argument
66 buffer.insert(offset, arg);
72 public void replaceData(int offset, int count, String arg) argument
75 buffer.replace(offset, offset + count, arg);
85 public String substringData(int offset, int count) throws DOMException { argument
87 return buffer.substring(offset, offse
[all...]
/dalvik/libcore/nio/src/main/java/java/nio/
H A DDoubleArrayBuffer.java36 protected final int offset; field in class:DoubleArrayBuffer
46 DoubleArrayBuffer(int capacity, double[] backingArray, int offset) { argument
49 this.offset = offset;
56 return backingArray[offset + position++];
63 return backingArray[offset + index];
74 System.arraycopy(backingArray, offset + position, dest,
H A DFloatArrayBuffer.java36 protected final int offset; field in class:FloatArrayBuffer
46 FloatArrayBuffer(int capacity, float[] backingArray, int offset) { argument
49 this.offset = offset;
56 return backingArray[offset + position++];
63 return backingArray[offset + index];
74 System.arraycopy(backingArray, offset+position, dest, off, len);
H A DIntArrayBuffer.java36 protected final int offset; field in class:IntArrayBuffer
46 IntArrayBuffer(int capacity, int[] backingArray, int offset) { argument
49 this.offset = offset;
56 return backingArray[offset + position++];
63 return backingArray[offset + index];
74 System.arraycopy(backingArray, offset+position, dest, off, len);
H A DLongArrayBuffer.java36 protected final int offset; field in class:LongArrayBuffer
46 LongArrayBuffer(int capacity, long[] backingArray, int offset) { argument
49 this.offset = offset;
56 return backingArray[offset + position++];
63 return backingArray[offset + index];
74 System.arraycopy(backingArray, offset+position, dest, off, len);
H A DShortArrayBuffer.java36 protected final int offset; field in class:ShortArrayBuffer
46 ShortArrayBuffer(int capacity, short[] backingArray, int offset) { argument
49 this.offset = offset;
56 return backingArray[offset + position++];
63 return backingArray[offset + index];
74 System.arraycopy(backingArray, offset + position, dest,
/dalvik/libcore/luni/src/main/java/java/lang/
H A DStringBuilder.java270 * @param offset
271 * the inclusive offset index.
276 * if {@code offset} and {@code len} do not specify a valid
281 public StringBuilder append(char[] str, int offset, int len) { argument
282 append0(str, offset, len);
381 * at the specified {@code offset}. The {@code boolean} value is converted
385 * @param offset
391 * if {@code offset} is negative or greater than the current
396 public StringBuilder insert(int offset, boolean b) { argument
397 insert0(offset,
417 insert(int offset, char c) argument
438 insert(int offset, int i) argument
459 insert(int offset, long l) argument
480 insert(int offset, float f) argument
502 insert(int offset, double d) argument
523 insert(int offset, Object obj) argument
542 insert(int offset, String str) argument
563 insert(int offset, char[] ch) argument
590 insert(int offset, char[] str, int strOffset, int strLen) argument
613 insert(int offset, CharSequence s) argument
642 insert(int offset, CharSequence s, int start, int end) argument
[all...]

Completed in 407 milliseconds

1234567891011>>