/external/r8/src/main/java/com/android/tools/r8/graph/ |
D | DexItemFactory.java | 30 private final Map<String, DexString> strings = new HashMap<>(); 46 private final Map<DexString, SetFile> setFiles = new HashMap<>(); 50 public static final DexType catchAllType = new DexType(new DexString("CATCH_ALL")); 53 public DexString booleanDescriptor = createString("Z"); 54 public DexString byteDescriptor = createString("B"); 55 public DexString charDescriptor = createString("C"); 56 public DexString doubleDescriptor = createString("D"); 57 public DexString floatDescriptor = createString("F"); 58 public DexString intDescriptor = createString("I"); 59 public DexString longDescriptor = createString("J"); [all …]
|
D | DexString.java | 12 public class DexString extends IndexedDexItem implements PresortedComparable<DexString> { class 14 public static final DexString[] EMPTY_ARRAY = new DexString[]{}; 19 DexString(int size, byte[] content) { in DexString() method in DexString 24 DexString(String string) { in DexString() method in DexString 34 if (other instanceof DexString) { in computeEquals() 35 DexString o = (DexString) other; in computeEquals() 140 public int compareTo(DexString other) { in compareTo() 145 public int slowCompareTo(DexString other) { in slowCompareTo() 178 public int slowCompareTo(DexString other, NamingLens lens) { in slowCompareTo() 184 public int layeredCompareTo(DexString other, NamingLens lens) { in layeredCompareTo()
|
D | DexDebugEntryBuilder.java | 42 private DexString currentFile = null; 65 DexString name = factory.thisName; in DexDebugEntryBuilder() 71 DexString[] names = info.parameters; in DexDebugEntryBuilder() 85 public void setFile(DexString file) { in setFile() 106 public void startLocal(int register, DexString name, DexType type, DexString signature) { in startLocal() 146 private DebugLocalInfo canonicalize(DexString name, DexType type, DexString signature) { in canonicalize()
|
D | ObjectToOffsetMapping.java | 21 private final DexString[] strings; 24 private DexString firstJumboString; 34 DexString[] strings, in ObjectToOffsetMapping() 94 assert item instanceof DexString; in setIndexes() local 96 firstJumboString = (DexString) item; in setIndexes() 123 public DexString[] getStrings() { in getStrings() 139 public DexString getFirstJumboString() { in getFirstJumboString() 162 public int getOffsetFor(DexString string) { in getOffsetFor()
|
D | DebugLocalInfo.java | 7 public final DexString name; 9 public final DexString signature; 11 public DebugLocalInfo(DexString name, DexType type, DexString signature) { in DebugLocalInfo()
|
D | OffsetToObjectMapping.java | 13 private DexString[] strings; 44 strings = new DexString[length]; in initializeStrings() 82 public DexString[] getStringMap() { in getStringMap() 122 public DexString getString(int index) { in getString() 162 public void setString(int index, DexString string) { in setString()
|
D | DexType.java | 30 public final DexString descriptor; 35 DexType(DexString descriptor) { in DexType() 273 DexString thisDescriptor = namingLens.lookupDescriptor(this); in slowCompareTo() 274 DexString otherDescriptor = namingLens.lookupDescriptor(other); in slowCompareTo() 280 DexString thisDescriptor = namingLens.lookupDescriptor(this); in layeredCompareTo() 281 DexString otherDescriptor = namingLens.lookupDescriptor(other); in layeredCompareTo() 356 DexString newDesc = dexItemFactory.createString(descriptor.size - leadingSquareBrackets, in toBaseType() 370 DexString newDesc = dexItemFactory in replaceBaseType() 377 DexString newDesc = dexItemFactory.createString(descriptor.size - 1, in toArrayElementType()
|
D | DexDebugEvent.java | 158 final DexString name; 160 final DexString signature; 164 DexString name, in StartLocal() 166 DexString signature) { in StartLocal() 298 final DexString fileName; 300 SetFile(DexString fileName) { in SetFile()
|
/external/r8/src/main/java/com/android/tools/r8/naming/ |
D | NamingState.java | 8 import com.android.tools.r8.graph.DexString; 63 public DexString getAssignedNameFor(DexString name, T proto) { in getAssignedNameFor() 71 public DexString assignNewNameFor(DexString original, T proto, boolean markAsUsed) { in assignNewNameFor() 72 DexString result = getAssignedNameFor(original, proto); in assignNewNameFor() 80 public void reserveName(DexString name, T proto) { in reserveName() 85 public boolean isReserved(DexString name, T proto) { in isReserved() 93 public boolean isAvailable(DexString original, T proto, DexString candidate) { in isAvailable() 102 public void addRenaming(DexString original, T proto, DexString newName) { in addRenaming() 114 private Set<DexString> reservedNames = null; 115 private Map<DexString, DexString> renamings = null; [all …]
|
D | NamingLens.java | 8 import com.android.tools.r8.graph.DexString; 26 public abstract DexString lookupDescriptor(DexType type); in lookupDescriptor() 28 public abstract DexString lookupName(DexMethod method); in lookupName() 30 public abstract DexString lookupName(DexField field); in lookupName() 58 public DexString lookupDescriptor(DexType type) { in lookupDescriptor() 63 public DexString lookupName(DexMethod method) { in lookupName() 68 public DexString lookupName(DexField field) { in lookupName()
|
D | Minifier.java | 13 import com.android.tools.r8.graph.DexString; 43 Map<DexType, DexString> classRenaming = in run() 50 Map<DexMethod, DexString> methodRenaming = in run() 55 Map<DexField, DexString> fieldRenaming = in run() 64 private final Map<DexItem, DexString> renaming = new IdentityHashMap<>(); 66 private MinifiedRenaming(Map<DexType, DexString> classRenaming, in MinifiedRenaming() 67 Map<DexMethod, DexString> methodRenaming, Map<DexField, DexString> fieldRenaming, in MinifiedRenaming() 76 public DexString lookupDescriptor(DexType type) { in lookupDescriptor() 81 public DexString lookupName(DexMethod method) { in lookupName() 86 public DexString lookupName(DexField field) { in lookupName()
|
D | ClassNameMinifier.java | 9 import com.android.tools.r8.graph.DexString; 31 private final Set<DexString> usedTypeNames = Sets.newIdentityHashSet(); 33 private final Map<DexType, DexString> renaming = Maps.newIdentityHashMap(); 47 public Map<DexType, DexString> computeRenaming() { in computeRenaming() 58 DexString renamed = computeName(clazz); in computeRenaming() 107 private DexString computeName(DexClass clazz) { in computeName() 141 DexString renamed = renaming.get(outer); in getStateForOuterClass() 160 DexString value = renaming.get(base); in renameArrayTypeIfNeeded() 168 DexString descriptor = appInfo.dexItemFactory.createString(builder.toString()); in renameArrayTypeIfNeeded() 206 private DexString nextTypeName() { in nextTypeName() [all …]
|
D | MinifiedNameMapPrinter.java | 12 import com.android.tools.r8.graph.DexString; 47 DexString descriptor = namingLens.lookupDescriptor(clazz.type); in write() 64 DexString descriptor = namingLens.lookupDescriptor(type); in write() 75 DexString renamed = namingLens.lookupName(field); in write() 90 DexString renamed = namingLens.lookupName(method); in write()
|
D | MethodNameMinifier.java | 11 import com.android.tools.r8.graph.DexString; 102 public Map<DexMethod, DexString> computeRenaming(Timing timing) { in computeRenaming() 120 Map<DexMethod, DexString> renaming = new IdentityHashMap<>(); in computeRenaming() 136 Map<DexMethod, DexString> renaming) { in assignNamesToClassesMethods() 149 NamingState<DexProto> state, boolean doPrivates, Map<DexMethod, DexString> renaming) { in assignNamesToMethods() 183 Map<DexMethod, DexString> renaming, Timing timing) { in assignNamesToInterfaceMethods() 265 Map<DexMethod, DexString> renaming, NamingState<DexProto> originState) { in assignNameForInterfaceMethodInAllStates() 285 DexString candidate = null; in assignNameForInterfaceMethodInAllStates()
|
/external/r8/src/main/java/com/android/tools/r8/dex/ |
D | IndexedItemCollection.java | 13 import com.android.tools.r8.graph.DexString; 64 boolean addString(DexString string); in addString() 102 default DexString getRenamedName(DexMethod method) { in getRenamedName() 106 default DexString getRenamedName(DexField field) { in getRenamedName() 110 default DexString getRenamedDescriptor(DexType type) { in getRenamedDescriptor()
|
/external/r8/src/main/java/com/android/tools/r8/code/ |
D | ConstString.java | 7 import com.android.tools.r8.graph.DexString; 24 public ConstString(int register, DexString string) { in ConstString() 28 public DexString getString() { in getString() 29 return (DexString) BBBB; in getString() 63 builder.addConstString(AA, (DexString) BBBB); in buildIR()
|
D | Format31c.java | 9 import com.android.tools.r8.graph.DexString; 19 public DexString BBBBBBBB; 22 Format31c(int high, BytecodeStream stream, DexString[] map) { in Format31c() 28 Format31c(int AA, DexString BBBBBBBB) { in Format31c()
|
D | InstructionFactory.java | 6 import com.android.tools.r8.graph.DexString; 15 private DexString highestSortingString = null; 46 public DexString getHighestSortingString() { in getHighestSortingString() 50 private void updateHighestSortingString(DexString string) { in updateHighestSortingString()
|
D | ConstStringJumbo.java | 6 import com.android.tools.r8.graph.DexString; 21 public ConstStringJumbo(int register, DexString string) { in ConstStringJumbo() 25 public DexString getString() { in getString()
|
/external/r8/src/test/java/com/android/tools/r8/dex/ |
D | DexStringTest.java | 10 import com.android.tools.r8.graph.DexString; 34 DexString[] strings = { in testCompare() 78 private void check(int expected, DexString s1, DexString s2) { in check() 85 private void checkEncodedLength(DexString s, int encodedLength) { in checkEncodedLength()
|
D | DexItemFactoryTest.java | 12 import com.android.tools.r8.graph.DexString; 37 DexString string1 = factory.createString((String) data[i]); in commonItems() 38 DexString string2 = factory.createString((String) data[i]); in commonItems() 41 DexItem expectedDexString = (DexString) data[i + 1]; in commonItems()
|
D | DebugByteCodeWriterTest.java | 16 import com.android.tools.r8.graph.DexString; 33 new DexString[] {}, in emptyObjectTObjectMapping() 40 DexDebugInfo debugInfo = new DexDebugInfo(1, new DexString[]{}, new DexDebugEvent[]{}); in testEmptyDebugInfo()
|
/external/r8/src/main/java/com/android/tools/r8/ir/code/ |
D | ConstString.java | 8 import com.android.tools.r8.graph.DexString; 13 private final DexString value; 15 public ConstString(Value dest, DexString value) { in ConstString() 25 public DexString getValue() { in getValue()
|
D | DebugPosition.java | 7 import com.android.tools.r8.graph.DexString; 14 public final DexString file; 16 public DebugPosition(int line, DexString file) { in DebugPosition()
|
/external/r8/src/main/java/com/android/tools/r8/optimize/ |
D | DebugStripper.java | 13 import com.android.tools.r8.graph.DexString; 112 Reference2IntMap<DexString> nameCounts) { in processCode() 117 DexString name = encodedMethod.method.name; in processCode() 156 Reference2IntMap<DexString> nameCounts) { in processMethod() 166 Reference2IntMap<DexString> nameCounts) { in processMethods() 181 Reference2IntMap<DexString> nameCounts = new Reference2IntOpenHashMap<>(); in processClass() 188 private void setIntialNameCounts(Reference2IntMap<DexString> nameCounts, in setIntialNameCounts()
|