/dalvik/vm/mterp/c/ |
H A D | OP_GOTO_16.c | 3 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 D | OP_GOTO_32.c | 3 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 D | OP_PACKED_SWITCH.c | 5 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 D | OP_SPARSE_SWITCH.c | 5 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 D | PlatformAddress.java | 80 public PlatformAddress offsetBytes(int offset) { argument 81 return PlatformAddressFactory.on(osaddr + offset, size - offset); 85 // public PlatformAddress offsetBytes(long offset) { 86 // return PlatformAddressFactory.on(osaddr + offset, size - offset); 115 public final void setAddress(int offset, PlatformAddress address) { argument 116 osMemory.setAddress(osaddr + offset, address.osaddr); 119 public final PlatformAddress getAddress(int offset) { argument 120 int addr = getInt(offset); 124 setByte(int offset, byte value) argument 129 setByteArray(int offset, byte[] bytes, int bytesOffset, int length) argument 136 setShortArray(int offset, short[] shorts, int shortsOffset, int length, boolean swap) argument 143 setIntArray(int offset, int[] ints, int intsOffset, int length, boolean swap) argument 150 getByte(int offset) argument 155 getByteArray(int offset, byte[] bytes, int bytesOffset, int length) argument 161 setShort(int offset, short value, Endianness order) argument 166 setShort(int offset, short value) argument 171 getShort(int offset, Endianness order) argument 176 getShort(int offset) argument 181 setInt(int offset, int value, Endianness order) argument 186 setInt(int offset, int value) argument 191 getInt(int offset, Endianness order) argument 196 getInt(int offset) argument 201 setLong(int offset, long value, Endianness order) argument 206 setLong(int offset, long value) argument 211 getLong(int offset, Endianness order) argument 216 getLong(int offset) argument 221 setFloat(int offset, float value, Endianness order) argument 226 setFloat(int offset, float value) argument 231 getFloat(int offset, Endianness order) argument 236 getFloat(int offset) argument 241 setDouble(int offset, double value, Endianness order) argument 246 setDouble(int offset, double value) argument 251 getDouble(int offset, Endianness order) argument 256 getDouble(int offset) argument [all...] |
/dalvik/libcore/xml/src/test/java/tests/api/org/xml/sax/support/ |
H A D | BrokenInputStream.java | 31 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 D | Util.java | 43 * 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 D | SSLEngineDataStream.java | 34 private int offset; field in class:SSLEngineDataStream 42 protected void setSourceBuffers(ByteBuffer[] srcs, int offset, int length) { argument 44 this.offset = offset; 45 this.limit = offset+length; 48 for (int i=offset; i<limit; i++) { 75 for (; offset<limit; offset++) { 76 while (srcs[offset].hasRemaining()) { 77 res[pos++] = srcs[offset] [all...] |
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/params/ |
H A D | DESedeParameters.java | 26 * @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 D | DexDataMap.h | 44 * 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 D | StringCharacterIterator.java | 27 int start, end, offset; field in class:StringCharacterIterator 39 start = offset = 0; 64 offset = location; 93 offset = location; 119 if (offset == end) { 122 return string.charAt(offset); 144 && offset == it.offset; 158 offset = start; 159 return string.charAt(offset); [all...] |
H A D | RuleBasedBreakIterator.java | 64 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 D | BerOutputStream.java | 40 * 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 D | CharacterData.java | 68 * @param offset Start offset of substring to extract. 70 * @return The specified substring. If the sum of <code>offset</code> and 74 * INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is 81 public String substringData(int offset, argument 97 * Insert a string at the specified 16-bit unit offset. 98 * @param offset The character offset at which to insert. 101 * INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is 106 public void insertData(int offset, argument 125 deleteData(int offset, int count) argument 148 replaceData(int offset, int count, String arg) argument [all...] |
/dalvik/dx/src/com/android/dx/cf/code/ |
H A D | BytecodeArray.java | 107 * 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 D | Chunk.java | 25 * 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 D | OutputStream.java | 87 * position {@code offset} to this stream. 91 * @param offset 99 * if {@code offset < 0} or {@code count < 0}, or if 100 * {@code offset + count} is bigger than the length of 103 public void write(byte[] buffer, int offset, int count) throws IOException { argument 112 // used (offset | count) < 0 instead of (offset < 0) || (count < 0) 117 if ((offset | count) < 0 || count > buffer.length - offset) { 121 for (int i = offset; [all...] |
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/dom/ |
H A D | CharacterDataImpl.java | 46 public void deleteData(int offset, int count) throws DOMException { argument 47 buffer.delete(offset, offset + count); 70 public void insertData(int offset, String arg) throws DOMException { argument 72 buffer.insert(offset, arg); 78 public void replaceData(int offset, int count, String arg) argument 81 buffer.replace(offset, offset + count, arg); 91 public String substringData(int offset, int count) throws DOMException { argument 93 return buffer.substring(offset, offse [all...] |
/dalvik/libcore/nio/src/main/java/java/nio/ |
H A D | DoubleArrayBuffer.java | 36 protected final int offset; field in class:DoubleArrayBuffer 46 DoubleArrayBuffer(int capacity, double[] backingArray, int offset) { argument 49 this.offset = offset; 57 return backingArray[offset + position++]; 65 return backingArray[offset + index]; 77 System.arraycopy(backingArray, offset + position, dest, off, len);
|
H A D | FloatArrayBuffer.java | 36 protected final int offset; field in class:FloatArrayBuffer 46 FloatArrayBuffer(int capacity, float[] backingArray, int offset) { argument 49 this.offset = offset; 57 return backingArray[offset + position++]; 65 return backingArray[offset + index]; 77 System.arraycopy(backingArray, offset + position, dest, off, len);
|
H A D | IntArrayBuffer.java | 36 protected final int offset; field in class:IntArrayBuffer 46 IntArrayBuffer(int capacity, int[] backingArray, int offset) { argument 49 this.offset = offset; 57 return backingArray[offset + position++]; 65 return backingArray[offset + index]; 77 System.arraycopy(backingArray, offset + position, dest, off, len);
|
H A D | LongArrayBuffer.java | 36 protected final int offset; field in class:LongArrayBuffer 46 LongArrayBuffer(int capacity, long[] backingArray, int offset) { argument 49 this.offset = offset; 57 return backingArray[offset + position++]; 65 return backingArray[offset + index]; 77 System.arraycopy(backingArray, offset + position, dest, off, len);
|
H A D | ShortArrayBuffer.java | 36 protected final int offset; field in class:ShortArrayBuffer 46 ShortArrayBuffer(int capacity, short[] backingArray, int offset) { argument 49 this.offset = offset; 57 return backingArray[offset + position++]; 65 return backingArray[offset + index]; 77 System.arraycopy(backingArray, offset + position, dest, off, len);
|
/dalvik/libcore/luni/src/main/java/java/lang/ |
H A D | StringBuilder.java | 261 * @param offset 262 * the inclusive offset index. 267 * if {@code offset} and {@code len} do not specify a valid 271 public StringBuilder append(char[] str, int offset, int len) { argument 272 append0(str, offset, len); 366 * at the specified {@code offset}. The {@code boolean} value is converted 370 * @param offset 376 * if {@code offset} is negative or greater than the current 380 public StringBuilder insert(int offset, boolean b) { argument 381 insert0(offset, 400 insert(int offset, char c) argument 420 insert(int offset, int i) argument 440 insert(int offset, long l) argument 460 insert(int offset, float f) argument 481 insert(int offset, double d) argument 501 insert(int offset, Object obj) argument 519 insert(int offset, String str) argument 539 insert(int offset, char[] ch) argument 565 insert(int offset, char[] str, int strOffset, int strLen) argument 587 insert(int offset, CharSequence s) argument 615 insert(int offset, CharSequence s, int start, int end) argument [all...] |
/dalvik/libcore/xml/src/main/java/org/apache/xml/utils/ |
H A D | SuballocatedIntVector.java | 162 int offset=m_firstFree&m_MASK; 174 block[offset]=value; 179 m_buildCacheStartIndex = m_firstFree-offset; 200 int offset=m_firstFree&m_MASK; 214 int copied=(m_blocksize-offset < numberOfElements) 215 ? m_blocksize-offset : numberOfElements; 218 block[offset++]=value; 220 ++index;offset=0; 272 int offset=at&m_MASK; 273 block[offset] [all...] |