/dalvik/dx/src/com/android/dx/cf/iface/ |
D | StdAttributeList.java | 70 int at; in findNext() local 73 for (at = 0; at < sz; at++) { in findNext() 74 Attribute att = get(at); in findNext() 85 for (at++; at < sz; at++) { in findNext() 86 Attribute att = get(at); in findNext()
|
/dalvik/dexgen/src/com/android/dexgen/rop/ |
D | StdAttributeList.java | 70 int at; in findNext() local 73 for (at = 0; at < sz; at++) { in findNext() 74 Attribute att = get(at); in findNext() 85 for (at++; at < sz; at++) { in findNext() 86 Attribute att = get(at); in findNext()
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | SwitchList.java | 173 int at = 0; in removeSuperfluousDefaults() local 178 if (i != at) { in removeSuperfluousDefaults() 179 targets.set(at, target); in removeSuperfluousDefaults() 180 values.set(at, values.get(i)); in removeSuperfluousDefaults() 182 at++; in removeSuperfluousDefaults() 186 if (at != sz) { in removeSuperfluousDefaults() 187 values.shrink(at); in removeSuperfluousDefaults() 188 targets.set(at, defaultTarget); in removeSuperfluousDefaults() 189 targets.shrink(at + 1); in removeSuperfluousDefaults() 190 size = at; in removeSuperfluousDefaults()
|
/dalvik/dx/src/com/android/dx/cf/cst/ |
D | ConstantPoolParser.java | 184 int at = 10; // offset from the start of the file to the first cst in determineOffsets() local 188 offsets[i] = at; in determineOffsets() 189 int tag = bytes.getUnsignedByte(at); in determineOffsets() 199 at += 5; in determineOffsets() 205 at += 9; in determineOffsets() 211 at += 3; in determineOffsets() 216 at += bytes.getUnsignedShort(at + 1) + 3; in determineOffsets() 233 ex.addContext("...while preparsing cst " + Hex.u2(i) + " at offset " + Hex.u4(at)); in determineOffsets() 238 endOffset = at; in determineOffsets() 256 int at = offsets[idx]; in parse0() local [all …]
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | MemberListParser.java | 175 int at = offset + 2; // Skip the count. in parse() local 187 int accessFlags = bytes.getUnsignedShort(at); in parse() 188 int nameIdx = bytes.getUnsignedShort(at + 2); in parse() 189 int descIdx = bytes.getUnsignedShort(at + 4); in parse() 194 observer.startParsingMember(bytes, at, name.getString(), in parse() 196 observer.parsed(bytes, at, 0, "\n" + humanName() + in parse() 199 observer.parsed(bytes, at, 2, in parse() 202 observer.parsed(bytes, at + 2, 2, in parse() 204 observer.parsed(bytes, at + 4, 2, in parse() 208 at += 6; in parse() [all …]
|
D | DirectClassFile.java | 485 int at = cpParser.getEndOffset(); in parse0() local 486 int accessFlags = bytes.getUnsignedShort(at); // u2 access_flags; in parse0() 487 int cpi = bytes.getUnsignedShort(at + 2); // u2 this_class; in parse0() 489 cpi = bytes.getUnsignedShort(at + 4); // u2 super_class; in parse0() 491 int count = bytes.getUnsignedShort(at + 6); // u2 interfaces_count in parse0() 494 observer.parsed(bytes, at, 2, in parse0() 497 observer.parsed(bytes, at + 2, 2, "this_class: " + thisClass); in parse0() 498 observer.parsed(bytes, at + 4, 2, "super_class: " + in parse0() 500 observer.parsed(bytes, at + 6, 2, in parse0() 503 observer.parsed(bytes, at + 8, 0, "interfaces:"); in parse0() [all …]
|
D | AttributeListParser.java | 124 int at = offset + 2; // Skip the count. in parse() local 136 observer.parsed(bytes, at, 0, in parse() 142 attributeFactory.parse(cf, context, at, observer); in parse() 144 at += attrib.byteLength(); in parse() 149 observer.parsed(bytes, at, 0, in parse() 162 endOffset = at; in parse()
|
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
D | CstUtf8.java | 84 for (int at = 0; length > 0; /*at*/) { in utf8BytesToString() 85 int v0 = bytes.getUnsignedByte(at); in utf8BytesToString() 94 return throwBadUtf8(v0, at); in utf8BytesToString() 97 at++; in utf8BytesToString() 104 return throwBadUtf8(v0, at); in utf8BytesToString() 106 int v1 = bytes.getUnsignedByte(at + 1); in utf8BytesToString() 108 return throwBadUtf8(v1, at + 1); in utf8BytesToString() 116 return throwBadUtf8(v1, at + 1); in utf8BytesToString() 119 at += 2; in utf8BytesToString() 126 return throwBadUtf8(v0, at); in utf8BytesToString() [all …]
|
/dalvik/dx/src/com/android/dx/rop/cst/ |
D | CstString.java | 84 for (int at = 0; length > 0; /*at*/) { in utf8BytesToString() 85 int v0 = bytes.getUnsignedByte(at); in utf8BytesToString() 94 return throwBadUtf8(v0, at); in utf8BytesToString() 97 at++; in utf8BytesToString() 104 return throwBadUtf8(v0, at); in utf8BytesToString() 106 int v1 = bytes.getUnsignedByte(at + 1); in utf8BytesToString() 108 return throwBadUtf8(v1, at + 1); in utf8BytesToString() 116 return throwBadUtf8(v1, at + 1); in utf8BytesToString() 119 at += 2; in utf8BytesToString() 126 return throwBadUtf8(v0, at); in utf8BytesToString() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
D | HexParser.java | 47 int at = 0; in parse() local 50 while (at < len) { in parse() 51 int nlAt = src.indexOf('\n', at); in parse() 55 int poundAt = src.indexOf('#', at); in parse() 59 line = src.substring(at, poundAt); in parse() 61 line = src.substring(at, nlAt); in parse() 63 at = nlAt + 1; in parse()
|
D | FileUtils.java | 76 int at = 0; in readFile() local 78 int amt = in.read(result, at, length); in readFile() 82 at += amt; in readFile()
|
/dalvik/dx/src/com/android/dx/util/ |
D | HexParser.java | 47 int at = 0; in parse() local 50 while (at < len) { in parse() 51 int nlAt = src.indexOf('\n', at); in parse() 55 int poundAt = src.indexOf('#', at); in parse() 59 line = src.substring(at, poundAt); in parse() 61 line = src.substring(at, nlAt); in parse() 63 at = nlAt + 1; in parse()
|
/dalvik/dx/src/com/android/dx/command/dump/ |
D | BaseDumper.java | 66 private int at; field in BaseDumper 90 this.at = 0; in BaseDumper() 129 if (offset < at) { in parsed() 131 at = offset; in parsed() 132 } else if (offset > at) { in parsed() 133 String hex = rawBytes ? hexDump(at, offset - at) : ""; in parsed() 135 at = offset; in parsed() 140 at += len; in parsed() 162 return at; in getAt() 172 at = arr.underlyingOffset(offset, bytes); in setAt()
|
D | Main.java | 42 int at = 0; in main() local 44 for (/*at*/; at < args.length; at++) { in main() 45 String arg = args[at]; in main() 78 if (at == args.length) { in main() 83 for (/*at*/; at < args.length; at++) { in main() 85 String name = args[at]; in main()
|
D | ClassDumper.java | 68 int at = getAt(); in dump() local 69 if (at != bytes.length) { in dump() 70 parsed(ba, at, bytes.length - at, "<extra data at end of file>"); in dump()
|
/dalvik/dexgen/src/com/android/dexgen/rop/type/ |
D | Prototype.java | 64 int at = 1; in intern() local 67 int startAt = at; in intern() 68 char c = descriptor.charAt(at); in intern() 70 at++; in intern() 76 at++; in intern() 77 c = descriptor.charAt(at); in intern() 82 int endAt = descriptor.indexOf(';', at); in intern() 86 at = endAt + 1; in intern() 88 at++; in intern() 92 Type.intern(descriptor.substring(startAt, at)); in intern() [all …]
|
/dalvik/dexlist/ |
D | DexList.cpp | 57 size_t at = strlen(str); in descriptorToDot() local 61 assert(str[at - 1] == ';'); in descriptorToDot() 62 at -= 2; /* Two fewer chars to copy. */ in descriptorToDot() 66 newStr = (char*)malloc(at + 1); /* Add one for the '\0'. */ in descriptorToDot() 67 newStr[at] = '\0'; in descriptorToDot() 69 while (at > 0) { in descriptorToDot() 70 at--; in descriptorToDot() 71 newStr[at] = (str[at] == '/') ? '.' : str[at]; in descriptorToDot()
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | PositionList.java | 78 int at = 0; in make() local 99 arr[at] = new PositionList.Entry(insn.getAddress(), pos); in make() 100 at++; in make() 105 PositionList result = new PositionList(at); in make() 106 for (int i = 0; i < at; i++) { in make()
|
D | LocalList.java | 749 int at = result.size() - 1; in checkForEmptyRange() local 753 for (/*at*/; at >= 0; at--) { in checkForEmptyRange() 754 entry = result.get(at); in checkForEmptyRange() 776 result.set(at, null); in checkForEmptyRange() 784 for (at--; at >= 0; at--) { in checkForEmptyRange() 785 entry = result.get(at); in checkForEmptyRange() 799 endIndices[regNum] = at; in checkForEmptyRange() 806 result.set(at, in checkForEmptyRange() 924 int at = 0; in finish() local 927 resultArr[at++] = e; in finish()
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
D | PositionList.java | 78 int at = 0; in make() local 99 arr[at] = new PositionList.Entry(insn.getAddress(), pos); in make() 100 at++; in make() 105 PositionList result = new PositionList(at); in make() 106 for (int i = 0; i < at; i++) { in make()
|
D | LocalList.java | 753 int at = result.size() - 1; in checkForEmptyRange() local 757 for (/*at*/; at >= 0; at--) { in checkForEmptyRange() 758 entry = result.get(at); in checkForEmptyRange() 780 result.set(at, null); in checkForEmptyRange() 788 for (at--; at >= 0; at--) { in checkForEmptyRange() 789 entry = result.get(at); in checkForEmptyRange() 803 endIndices[regNum] = at; in checkForEmptyRange() 810 result.set(at, in checkForEmptyRange() 928 int at = 0; in finish() local 931 resultArr[at++] = e; in finish()
|
/dalvik/dx/src/com/android/dx/rop/type/ |
D | Prototype.java | 68 int at = 1; in intern() local 71 int startAt = at; in intern() 72 char c = descriptor.charAt(at); in intern() 74 at++; in intern() 80 at++; in intern() 81 c = descriptor.charAt(at); in intern() 86 int endAt = descriptor.indexOf(';', at); in intern() 90 at = endAt + 1; in intern() 92 at++; in intern() 96 Type.intern(descriptor.substring(startAt, at)); in intern() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | MixedItemSection.java | 335 int at = 0; in writeTo0() local 347 int writeAt = (at + alignMask) & ~alignMask; in writeTo0() 349 if (at != writeAt) { in writeTo0() 350 out.writeZeroes(writeAt - at); in writeTo0() 351 at = writeAt; in writeTo0() 355 at += one.writeSize(); in writeTo0() 358 if (at != writeSize) { in writeTo0()
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | MixedItemSection.java | 334 int at = 0; in writeTo0() local 346 int writeAt = (at + alignMask) & ~alignMask; in writeTo0() 348 if (at != writeAt) { in writeTo0() 349 out.writeZeroes(writeAt - at); in writeTo0() 350 at = writeAt; in writeTo0() 354 at += one.writeSize(); in writeTo0() 357 if (at != writeSize) { in writeTo0()
|
/dalvik/libdex/ |
D | DexProto.cpp | 151 char *at = (char*) pCache->value; in dexProtoGetMethodDescriptor() local 152 *(at++) = '('; in dexProtoGetMethodDescriptor() 157 strcpy(at, desc); in dexProtoGetMethodDescriptor() 158 at += strlen(desc); in dexProtoGetMethodDescriptor() 161 *(at++) = ')'; in dexProtoGetMethodDescriptor() 163 strcpy(at, dexStringByTypeIdx(dexFile, protoId->returnTypeIdx)); in dexProtoGetMethodDescriptor() 196 char *at = (char*) pCache->value; in dexProtoGetParameterDescriptors() local 204 strcpy(at, descriptor); in dexProtoGetParameterDescriptors() 205 at += strlen(descriptor); in dexProtoGetParameterDescriptors()
|