Home
last modified time | relevance | path

Searched refs:itemFactory (Results 1 – 11 of 11) sorted by relevance

/external/r8/src/main/java/com/android/tools/r8/naming/
DNamingState.java22 private final DexItemFactory itemFactory; field in NamingState
26 DexItemFactory itemFactory, List<String> dictionary) { in createRoot() argument
27 return new NamingState<>(null, itemFactory, dictionary); in createRoot()
30 private NamingState(NamingState<T> parent, DexItemFactory itemFactory, List<String> dictionary) { in NamingState() argument
32 this.itemFactory = itemFactory; in NamingState()
37 return new NamingState<>(this, itemFactory, dictionary); in createChild()
56 result = new InternalState(itemFactory, null, dictionary); in getOrCreateInternalStateFor()
112 protected final DexItemFactory itemFactory; field in NamingState.InternalState
119 private InternalState(DexItemFactory itemFactory, InternalState parentInternalState, in InternalState() argument
121 this.itemFactory = itemFactory; in InternalState()
[all …]
/external/r8/src/main/java/com/android/tools/r8/graph/
DJarApplicationReader.java27 return options.itemFactory; in getFactory()
31 return options.itemFactory.createString(string); in getString()
45 return options.itemFactory.createType(getString(desc)); in getTypeFromDescriptor()
75 return options.itemFactory.createField(owner, getTypeFromDescriptor(desc), getString(name)); in getField()
83 return options.itemFactory.createMethod(owner, getProto(desc), getString(name)); in getMethod()
88 return options.itemFactory.createCallSite( in getCallSite()
94 return options.itemFactory.createMethodHandle(type, fieldOrMethod); in getMethodHandle()
109 DexProto proto = options.itemFactory.createProto( in getProto()
DDexEncodedMethod.java270 public DexEncodedMethod toMethodThatLogsError(DexItemFactory itemFactory) { in toMethodThatLogsError() argument
273 DexString message = itemFactory.createString( in toMethodThatLogsError()
276 DexString tag = itemFactory.createString("TOIGHTNESS"); in toMethodThatLogsError()
277 DexType[] args = {itemFactory.stringType, itemFactory.stringType}; in toMethodThatLogsError()
278 DexProto proto = itemFactory.createProto(itemFactory.intType, args); in toMethodThatLogsError()
279 DexMethod logMethod = itemFactory in toMethodThatLogsError()
280 .createMethod(itemFactory.createType("Landroid/util/Log;"), proto, in toMethodThatLogsError()
281 itemFactory.createString("e")); in toMethodThatLogsError()
282 DexType exceptionType = itemFactory.createType("Ljava/lang/RuntimeException;"); in toMethodThatLogsError()
283 DexMethod exceptionInitMethod = itemFactory in toMethodThatLogsError()
[all …]
/external/r8/src/main/java/com/android/tools/r8/utils/
DMainDexList.java25 public static Set<DexType> parse(Path path, DexItemFactory itemFactory) throws IOException { in parse() argument
27 return parse(closer.register(Files.newInputStream(path)), itemFactory); in parse()
31 public static Set<DexType> parse(InputStream input, DexItemFactory itemFactory) { in parse() argument
46 result.add(itemFactory.createType(descriptor)); in parse()
DInternalOptions.java22 public final DexItemFactory itemFactory; field in InternalOptions
25 itemFactory = new DexItemFactory(); in InternalOptions()
30 itemFactory = factory; in InternalOptions()
DClassProvider.java114 types.add(reader.options.itemFactory.createType(descriptor)); in collectTypes()
/external/r8/src/main/java/com/android/tools/r8/dex/
DApplicationReader.java52 final DexItemFactory itemFactory; field in ApplicationReader
58 itemFactory = options.itemFactory; in ApplicationReader()
75 final DexApplication.Builder builder = new DexApplication.Builder(itemFactory, timing); in read()
153 builder.addToMainDexList(MainDexList.parse(input, itemFactory)); in readMainDexList()
188 fileReaders.add(new DexFileReader(file, classKind, itemFactory)); in readDexSources()
/external/r8/src/test/java/com/android/tools/r8/smali/
DSmaliTestBase.java379 options.itemFactory.resetSortedIndices(); in buildApplication()
/external/r8/src/test/java/com/android/tools/r8/maindexlist/
DMainDexListTests.java399 DexItemFactory factory = options.itemFactory; in generateApplication()
/external/r8/src/main/java/com/android/tools/r8/
DR8.java71 options.itemFactory.resetSortedIndices(); in R8()
/external/r8/src/test/java/com/android/tools/r8/utils/
DDexInspector.java121 dexItemFactory = options.itemFactory; in DexInspector()