Searched refs:idx (Results 1 - 25 of 80) sorted by relevance

1234

/dalvik/dx/src/com/android/dx/dex/file/
H A DMemberIdsSection.java37 int idx = 0;
40 ((MemberIdItem) i).setIndex(idx);
41 idx++;
H A DClassDefsSection.java133 int idx = 0;
144 idx = orderItems0(type, idx, sz - idx);
153 * @param idx {@code >= 0;} the next index to assign
158 private int orderItems0(Type type, int idx, int maxDepth) { argument
162 return idx;
174 idx = orderItems0(superclass, idx, maxDepth);
180 idx
[all...]
H A DTypeIdItem.java63 int idx = file.getStringIds().indexOf(descriptor);
67 out.annotate(4, " descriptor_idx: " + Hex.u4(idx));
70 out.writeInt(idx);
H A DProtoIdsSection.java133 int idx = 0;
136 ((ProtoIdItem) i).setIndex(idx);
137 idx++;
/dalvik/dx/src/com/android/dx/util/
H A DBits.java55 * @param idx {@code >= 0, < getMax(set);} which bit
58 public static boolean get(int[] bits, int idx) { argument
59 int arrayIdx = idx >> 5;
60 int bit = 1 << (idx & 0x1f);
68 * @param idx {@code >= 0, < getMax(set);} which bit
71 public static void set(int[] bits, int idx, boolean value) { argument
72 int arrayIdx = idx >> 5;
73 int bit = 1 << (idx & 0x1f);
86 * @param idx {@code >= 0, < getMax(set);} which bit
88 public static void set(int[] bits, int idx) { argument
100 clear(int[] bits, int idx) argument
166 findFirst(int[] bits, int idx) argument
193 findFirst(int value, int idx) argument
[all...]
H A DBitIntSet.java102 private int idx = Bits.findFirst(bits, 0);
106 return idx >= 0;
115 int ret = idx;
117 idx = Bits.findFirst(bits, idx+1);
H A DListIntSet.java110 private int idx = 0;
114 return idx < ints.size();
123 return ints.get(idx++);
/dalvik/vm/
H A DPointerSet.h77 int idx; local
78 if (!dvmPointerSetHas(pSet, ptr, &idx))
79 idx = -1;
80 return idx;
H A DHash.h185 int idx; member in struct:HashIter
188 int i = pIter->idx +1;
195 pIter->idx = i;
199 pIter->idx = -1;
203 return (pIter->idx >= pIter->pHashTable->tableSize);
206 assert(pIter->idx >= 0 && pIter->idx < pIter->pHashTable->tableSize);
207 return pIter->pHashTable->pEntries[pIter->idx].data;
H A DIndirectRefTable.c95 * Make sure that the entry at "idx" is correctly paired with "iref".
97 static bool checkEntry(IndirectRefTable* pRef, IndirectRef iref, int idx) argument
99 Object* obj = pRef->table[idx];
100 IndirectRef checkRef = dvmObjectToIndirectRef(pRef, obj, idx, pRef->kind);
229 int idx = dvmIndirectRefToIndex(iref); local
235 if (idx >= topIndex) {
238 idx, topIndex);
242 Object* obj = pRef->table[idx];
247 if (!checkEntry(pRef, iref, idx))
278 int idx local
[all...]
/dalvik/vm/native/
H A Djava_security_AccessController.c76 int idx, subIdx = 0; local
77 for (idx = 2; idx < length; idx++) {
78 const Method* meth = methods[idx];
87 while (++idx < length && dvmIsReflectionMethod(methods[idx]))
89 length = idx; // stomp length to end loop
90 meth = methods[idx];
H A Ddalvik_system_VMStack.c112 unsigned int idx; local
113 for (idx = kSkip; (int) idx < methodCount && size < maxSize; idx++) {
114 const Method* meth = methods[idx];
154 for (idx = kSkip; (int) idx < methodCount; idx++) {
155 if (dvmIsReflectionMethod(methods[idx])) {
159 (Object *)methods[idx]
[all...]
/dalvik/dx/src/com/android/dx/cf/code/
H A DOneLocalsArray.java106 public void set(int idx, TypeBearer type) { argument
116 if (idx < 0) {
117 throw new IndexOutOfBoundsException("idx < 0");
122 locals[idx + 1] = null;
125 locals[idx] = type;
127 if (idx != 0) {
128 TypeBearer prev = locals[idx - 1];
130 locals[idx - 1] = null;
141 public void invalidate(int idx) { argument
143 locals[idx]
147 getOrNull(int idx) argument
152 get(int idx) argument
163 getCategory1(int idx) argument
179 getCategory2(int idx) argument
243 throwSimException(int idx, String msg) argument
[all...]
H A DByteBlockList.java56 int idx = indexOfLabel(label);
58 if (idx < 0) {
63 return get(idx);
H A DLocalsArray.java83 * @param idx {@code >= 0, < getMaxLocals();} which local
84 * @param type {@code non-null;} new type for the local at {@code idx}
86 public abstract void set(int idx, TypeBearer type); argument
101 * @param idx {@code >= 0, < getMaxLocals();} which local
103 public abstract void invalidate(int idx); argument
109 * @param idx {@code >= 0, < getMaxLocals();} which local
112 public abstract TypeBearer getOrNull(int idx); argument
119 * @param idx {@code >= 0, < getMaxLocals();} which local
121 * @throws SimException thrown if {@code idx} is valid, but
124 public abstract TypeBearer get(int idx); argument
137 getCategory1(int idx) argument
149 getCategory2(int idx) argument
[all...]
H A DBytecodeArray.java314 int idx = bytes.getUnsignedByte(offset + 1);
315 Constant cst = pool.get(idx);
322 int idx = bytes.getUnsignedShort(offset + 1);
323 Constant cst = pool.get(idx);
330 int idx = bytes.getUnsignedShort(offset + 1);
331 Constant cst = pool.get(idx);
336 int idx = bytes.getUnsignedByte(offset + 1);
337 visitor.visitLocal(ByteOps.ILOAD, offset, 2, idx,
342 int idx = bytes.getUnsignedByte(offset + 1);
343 visitor.visitLocal(ByteOps.ILOAD, offset, 2, idx,
1178 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument
1282 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument
1351 visitLocal(int opcode, int offset, int length, int idx, Type type, int value) argument
[all...]
H A DLocalsArraySet.java196 public void set(int idx, TypeBearer type) { argument
199 primary.set(idx, type);
203 la.set(idx, type);
216 public void invalidate(int idx) { argument
219 primary.invalidate(idx);
223 la.invalidate(idx);
230 public TypeBearer getOrNull(int idx) { argument
231 return primary.getOrNull(idx);
236 public TypeBearer get(int idx) { argument
237 return primary.get(idx);
242 getCategory1(int idx) argument
248 getCategory2(int idx) argument
[all...]
/dalvik/vm/analysis/
H A DDexVerify.c303 u4 idx; local
306 idx = decInsn.vB; // 2nd item
307 if (idx >= pDvmDex->pHeader->typeIdsSize) {
309 idx, pDvmDex->pHeader->typeIdsSize);
313 classDescriptor = dexStringByTypeIdx(pDvmDex->pDexFile, idx);
333 u4 idx; local
336 idx = decInsn.vC; // 3rd item
337 if (idx >= pDvmDex->pHeader->typeIdsSize) {
339 idx, pDvmDex->pHeader->typeIdsSize);
343 classDescriptor = dexStringByTypeIdx(pDvmDex->pDexFile, idx);
373 u4 idx; local
397 u4 idx; local
[all...]
/dalvik/libdex/
H A DDexFile.h597 DEX_INLINE const DexStringId* dexGetStringId(const DexFile* pDexFile, u4 idx) { argument
598 assert(idx < pDexFile->pHeader->stringIdsSize);
599 return &pDexFile->pStringIds[idx];
602 DEX_INLINE const char* dexStringById(const DexFile* pDexFile, u4 idx) { argument
603 const DexStringId* pStringId = dexGetStringId(pDexFile, idx);
609 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx,
613 DEX_INLINE const DexTypeId* dexGetTypeId(const DexFile* pDexFile, u4 idx) { argument
614 assert(idx < pDexFile->pHeader->typeIdsSize);
615 return &pDexFile->pTypeIds[idx];
622 DEX_INLINE const char* dexStringByTypeIdx(const DexFile* pDexFile, u4 idx) { argument
628 dexGetMethodId(const DexFile* pDexFile, u4 idx) argument
634 dexGetFieldId(const DexFile* pDexFile, u4 idx) argument
640 dexGetProtoId(const DexFile* pDexFile, u4 idx) argument
659 dexGetClassDef(const DexFile* pDexFile, u4 idx) argument
683 dexGetTypeItem(const DexTypeList* pList, u4 idx) argument
690 dexTypeListGetIdx(const DexTypeList* pList, u4 idx) argument
922 dexGetParameterAnnotationSetRef( const DexAnnotationSetRefList* pList, u4 idx) argument
937 dexGetAnnotationOff( const DexAnnotationSetItem* pAnnoSet, u4 idx) argument
945 dexGetAnnotationItem( const DexFile* pDexFile, const DexAnnotationSetItem* pAnnoSet, u4 idx) argument
[all...]
/dalvik/vm/mterp/c/
H A Dheader.c158 static inline s8 getLongFromArray(const u4* ptr, int idx) argument
163 ptr += idx;
169 memcpy(&val, &ptr[idx], 8);
172 return *((s8*) &ptr[idx]);
177 static inline void putLongToArray(u4* ptr, int idx, s8 val) argument
182 ptr += idx;
187 memcpy(&ptr[idx], &val, 8);
189 *((s8*) &ptr[idx]) = val;
194 static inline double getDoubleFromArray(const u4* ptr, int idx) argument
199 ptr += idx;
213 putDoubleToArray(u4* ptr, int idx, double dval) argument
[all...]
/dalvik/dx/src/com/android/dx/rop/cst/
H A DCstInteger.java64 int idx = (value & 0x7fffffff) % cache.length;
65 CstInteger obj = cache[idx];
72 cache[idx] = obj;
/dalvik/tools/dexdeps/src/com/android/dexdeps/
H A DMain.java162 int idx;
164 for (idx = 0; idx < args.length; idx++) {
165 String arg = args[idx];
185 if (idx != args.length - 1) {
189 mInputFileName = args[idx];
H A DDexData.java315 private String classNameFromTypeIndex(int idx) { argument
316 return mStrings[mTypeIds[idx].descriptorIdx];
323 private String[] argArrayFromProtoIndex(int idx) { argument
324 ProtoIdItem protoId = mProtoIds[idx];
338 private String returnTypeFromProtoIndex(int idx) { argument
339 ProtoIdItem protoId = mProtoIds[idx];
369 int idx = 0;
372 classRefs[idx++] = sparseRefs[i];
375 assert idx == count;
500 int idx;
[all...]
/dalvik/vm/interp/
H A DJit.c554 u4 idx = dvmJitHash(dPC); local
557 while ((gDvmJit.pJitEntryTable[idx].u.info.chain != chainEndMarker) &&
558 (gDvmJit.pJitEntryTable[idx].dPC != dPC)) {
559 idx = gDvmJit.pJitEntryTable[idx].u.info.chain;
562 if (gDvmJit.pJitEntryTable[idx].dPC != dPC) {
578 if (gDvmJit.pJitEntryTable[idx].dPC != NULL) {
580 while (gDvmJit.pJitEntryTable[idx].u.info.chain != chainEndMarker) {
581 if (gDvmJit.pJitEntryTable[idx].dPC == dPC) {
585 return &gDvmJit.pJitEntryTable[idx];
967 int idx = dvmJitHash(pc); local
989 int idx = dvmJitHash(dPC); local
[all...]
/dalvik/vm/oo/
H A DArray.c29 static ClassObject* createPrimitiveClass(int idx);
557 int idx; local
561 idx = PRIM_BOOLEAN;
564 idx = PRIM_CHAR;
567 idx = PRIM_FLOAT;
570 idx = PRIM_DOUBLE;
573 idx = PRIM_BYTE;
576 idx = PRIM_SHORT;
579 idx = PRIM_INT;
582 idx
619 createPrimitiveClass(int idx) argument
[all...]

Completed in 1261 milliseconds

1234