Home
last modified time | relevance | path

Searched refs:remapper (Results 1 – 25 of 50) sorted by relevance

12

/external/ow2-asm/asm-commons/src/main/java/org/objectweb/asm/commons/
DClassRemapper.java64 protected final Remapper remapper; field in ClassRemapper
76 public ClassRemapper(final ClassVisitor classVisitor, final Remapper remapper) { in ClassRemapper() argument
77 this(/* latest api = */ Opcodes.ASM9, classVisitor, remapper); in ClassRemapper()
88 protected ClassRemapper(final int api, final ClassVisitor classVisitor, final Remapper remapper) { in ClassRemapper() argument
90 this.remapper = remapper; in ClassRemapper()
105 remapper.mapType(name), in visit()
106 remapper.mapSignature(signature, false), in visit()
107 remapper.mapType(superName), in visit()
108 interfaces == null ? null : remapper.mapTypes(interfaces)); in visit()
113 ModuleVisitor moduleVisitor = super.visitModule(remapper.mapModuleName(name), flags, version); in visitModule()
[all …]
DMethodRemapper.java46 protected final Remapper remapper; field in MethodRemapper
55 public MethodRemapper(final MethodVisitor methodVisitor, final Remapper remapper) { in MethodRemapper() argument
56 this(/* latest api = */ Opcodes.ASM9, methodVisitor, remapper); in MethodRemapper()
68 final int api, final MethodVisitor methodVisitor, final Remapper remapper) { in MethodRemapper() argument
70 this.remapper = remapper; in MethodRemapper()
84 super.visitAnnotation(remapper.mapDesc(descriptor), visible); in visitAnnotation()
94 super.visitTypeAnnotation(typeRef, typePath, remapper.mapDesc(descriptor), visible); in visitTypeAnnotation()
104 super.visitParameterAnnotation(parameter, remapper.mapDesc(descriptor), visible); in visitParameterAnnotation()
136 remappedFrameTypes[i] = remapper.mapType((String) frameTypes[i]); in remapFrameTypes()
147 remapper.mapType(owner), in visitFieldInsn()
[all …]
DAnnotationRemapper.java48 protected final Remapper remapper; field in AnnotationRemapper
59 public AnnotationRemapper(final AnnotationVisitor annotationVisitor, final Remapper remapper) { in AnnotationRemapper() argument
60 this(/* descriptor = */ null, annotationVisitor, remapper); in AnnotationRemapper()
73 final String descriptor, final AnnotationVisitor annotationVisitor, final Remapper remapper) { in AnnotationRemapper() argument
74 this(/* latest api = */ Opcodes.ASM9, descriptor, annotationVisitor, remapper); in AnnotationRemapper()
88 final int api, final AnnotationVisitor annotationVisitor, final Remapper remapper) { in AnnotationRemapper() argument
89 this(api, /* descriptor = */ null, annotationVisitor, remapper); in AnnotationRemapper()
105 final Remapper remapper) { in AnnotationRemapper() argument
108 this.remapper = remapper; in AnnotationRemapper()
113 super.visit(mapAnnotationAttributeName(name), remapper.mapValue(value)); in visit()
[all …]
DModuleRemapper.java42 protected final Remapper remapper; field in ModuleRemapper
51 public ModuleRemapper(final ModuleVisitor moduleVisitor, final Remapper remapper) { in ModuleRemapper() argument
52 this(/* latest api = */ Opcodes.ASM9, moduleVisitor, remapper); in ModuleRemapper()
64 final int api, final ModuleVisitor moduleVisitor, final Remapper remapper) { in ModuleRemapper() argument
66 this.remapper = remapper; in ModuleRemapper()
71 super.visitMainClass(remapper.mapType(mainClass)); in visitMainClass()
76 super.visitPackage(remapper.mapPackageName(packaze)); in visitPackage()
81 super.visitRequire(remapper.mapModuleName(module), access, version); in visitRequire()
90 remappedModules[i] = remapper.mapModuleName(modules[i]); in visitExport()
93 super.visitExport(remapper.mapPackageName(packaze), access, remappedModules); in visitExport()
[all …]
DRecordComponentRemapper.java44 protected final Remapper remapper; field in RecordComponentRemapper
55 final RecordComponentVisitor recordComponentVisitor, final Remapper remapper) { in RecordComponentRemapper() argument
56 this(/* latest api = */ Opcodes.ASM9, recordComponentVisitor, remapper); in RecordComponentRemapper()
68 final int api, final RecordComponentVisitor recordComponentVisitor, final Remapper remapper) { in RecordComponentRemapper() argument
70 this.remapper = remapper; in RecordComponentRemapper()
76 super.visitAnnotation(remapper.mapDesc(descriptor), visible); in visitAnnotation()
86 super.visitTypeAnnotation(typeRef, typePath, remapper.mapDesc(descriptor), visible); in visitTypeAnnotation()
102 return new AnnotationRemapper(api, /* descriptor = */ null, annotationVisitor, remapper); in createAnnotationRemapper()
115 return new AnnotationRemapper(api, descriptor, annotationVisitor, remapper) in createAnnotationRemapper()
DFieldRemapper.java44 protected final Remapper remapper; field in FieldRemapper
53 public FieldRemapper(final FieldVisitor fieldVisitor, final Remapper remapper) { in FieldRemapper() argument
54 this(/* latest api = */ Opcodes.ASM9, fieldVisitor, remapper); in FieldRemapper()
65 protected FieldRemapper(final int api, final FieldVisitor fieldVisitor, final Remapper remapper) { in FieldRemapper() argument
67 this.remapper = remapper; in FieldRemapper()
73 super.visitAnnotation(remapper.mapDesc(descriptor), visible); in visitAnnotation()
83 super.visitTypeAnnotation(typeRef, typePath, remapper.mapDesc(descriptor), visible); in visitTypeAnnotation()
99 return new AnnotationRemapper(api, /* descriptor = */ null, annotationVisitor, remapper); in createAnnotationRemapper()
112 return new AnnotationRemapper(api, descriptor, annotationVisitor, remapper) in createAnnotationRemapper()
DSignatureRemapper.java44 private final Remapper remapper; field in SignatureRemapper
55 public SignatureRemapper(final SignatureVisitor signatureVisitor, final Remapper remapper) { in SignatureRemapper() argument
56 this(/* latest api = */ Opcodes.ASM9, signatureVisitor, remapper); in SignatureRemapper()
68 final int api, final SignatureVisitor signatureVisitor, final Remapper remapper) { in SignatureRemapper() argument
71 this.remapper = remapper; in SignatureRemapper()
77 signatureVisitor.visitClassType(remapper.mapType(name)); in visitClassType()
85 String remappedOuter = remapper.mapType(outerClassName) + '$'; in visitInnerClassType()
86 String remappedName = remapper.mapType(className); in visitInnerClassType()
/external/jarjar/src/test/com/tonicsystems/jarjar/
DPackageRemapperTest.java26 protected PackageRemapper remapper; field in PackageRemapperTest
32 remapper = new PackageRemapper(Collections.singletonList(rule), false); in setUp()
46 assertEquals("[Lfoo.example.Object;", remapper.mapValue("[Lorg.example.Object;")); in testMapValue()
47 assertEquals("foo.example.Object", remapper.mapValue("org.example.Object")); in testMapValue()
48 assertEquals("foo/example/Object", remapper.mapValue("org/example/Object")); in testMapValue()
49 assertEquals("foo/example.Object", remapper.mapValue("org/example.Object")); // path match in testMapValue()
51 assertEquals("foo.example.package-info", remapper.mapValue("org.example.package-info")); in testMapValue()
52 assertEquals("foo/example/package-info", remapper.mapValue("org/example/package-info")); in testMapValue()
53 assertEquals("foo/example.package-info", remapper.mapValue("org/example.package-info")); in testMapValue()
57 assertEquals(value, remapper.mapValue(value)); in assertUnchangedValue()
/external/ow2-asm/asm-commons/src/test/java/org/objectweb/asm/commons/
DSimpleRemapperTest.java47 Remapper remapper = new SimpleRemapper(Collections.singletonMap("Outer", "RenamedOuter")); in testMapSignature_remapParentOnly_nestedClassExtends() local
49 String remappedSignature = remapper.mapSignature(inputSignature, false); in testMapSignature_remapParentOnly_nestedClassExtends()
57 Remapper remapper = in testMapSignature_remapChildOnly_nestedClassExtends() local
60 String remappedSignature = remapper.mapSignature(inputSignature, false); in testMapSignature_remapChildOnly_nestedClassExtends()
68 Remapper remapper = in testMapSignature_remapChildOnly_nestedClassExtends_identifiersWithDollarSign() local
71 String remappedSignature = remapper.mapSignature(inputSignature, false); in testMapSignature_remapChildOnly_nestedClassExtends_identifiersWithDollarSign()
82 Remapper remapper = new SimpleRemapper(mapping); in testMapSignature_remapBothParentAndChild_nestedClassExtends() local
84 String remappedSignature = remapper.mapSignature(inputSignature, false); in testMapSignature_remapBothParentAndChild_nestedClassExtends()
DClassRemapperTest.java78 ClassRemapper remapper = in testVisitAnnotation() local
90 remapper.visit(Opcodes.V1_5, Opcodes.ACC_PUBLIC, "pkg/C", null, "java/lang/Object", null); in testVisitAnnotation()
91 AnnotationVisitor annotationVisitor = remapper.visitAnnotation("Lpkg/A;", true); in testVisitAnnotation()
100 ClassRemapper remapper = in testVisitInnerClass() local
115 remapper.visit(Opcodes.V1_5, Opcodes.ACC_PUBLIC, "pkg/C", null, "java/lang/Object", null); in testVisitInnerClass()
117 remapper.visitInnerClass("pkg/C$Inner", "pkg/C", "Inner", Opcodes.ACC_PUBLIC); in testVisitInnerClass()
127 ClassRemapper remapper = in testVisitInnerClass_localInnerClass() local
142 remapper.visit(Opcodes.V1_5, Opcodes.ACC_PUBLIC, "pkg/C", null, "java/lang/Object", null); in testVisitInnerClass_localInnerClass()
144 remapper.visitInnerClass("pkg/C$1Inner", "pkg/C", "Inner", Opcodes.ACC_PUBLIC); in testVisitInnerClass_localInnerClass()
154 ClassRemapper remapper = in testVisitInnerClass_specialRemap() local
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DResourceRemapperTest.java16 ResourceRemapper remapper = new ResourceRemapper(null); in forbidFinalRClasses() local
17 remapper.remapRClass(FinalRClass.class); in forbidFinalRClasses()
23 ResourceRemapper remapper = new ResourceRemapper(ApplicationRClass.class); in testRemap() local
24 remapper.remapRClass(SecondClass.class); in testRemap()
25 remapper.remapRClass(ThirdClass.class); in testRemap()
43 ResourceRemapper remapper = new ResourceRemapper(ApplicationRClass.class); in resourcesOfDifferentTypes_shouldHaveDifferentTypeSpaces() local
44 remapper.remapRClass(SecondClass.class); in resourcesOfDifferentTypes_shouldHaveDifferentTypeSpaces()
45 remapper.remapRClass(ThirdClass.class); in resourcesOfDifferentTypes_shouldHaveDifferentTypeSpaces()
/external/robolectric/robolectric/src/test/java/org/robolectric/res/
DResourceRemapperTest.java17 ResourceRemapper remapper = new ResourceRemapper(null); in forbidFinalRClasses() local
18 assertThrows(IllegalArgumentException.class, () -> remapper.remapRClass(FinalRClass.class)); in forbidFinalRClasses()
24 ResourceRemapper remapper = new ResourceRemapper(ApplicationRClass.class); in testRemap() local
25 remapper.remapRClass(SecondClass.class); in testRemap()
26 remapper.remapRClass(ThirdClass.class); in testRemap()
44 ResourceRemapper remapper = new ResourceRemapper(ApplicationRClass.class); in resourcesOfDifferentTypes_shouldHaveDifferentTypeSpaces() local
45 remapper.remapRClass(SecondClass.class); in resourcesOfDifferentTypes_shouldHaveDifferentTypeSpaces()
46 remapper.remapRClass(ThirdClass.class); in resourcesOfDifferentTypes_shouldHaveDifferentTypeSpaces()
/external/jarjar/src/android/com/android/jarjar/
DRemoveAndroidCompatAnnotationsJarTransformer.java41 private final Remapper remapper; field in RemoveAndroidCompatAnnotationsJarTransformer
43 public RemoveAndroidCompatAnnotationsJarTransformer(Remapper remapper) { in RemoveAndroidCompatAnnotationsJarTransformer() argument
44 this.remapper = remapper; in RemoveAndroidCompatAnnotationsJarTransformer()
62 String newName = remapper.map(name); in visit()
/external/skia/modules/skottie/src/layers/
DPrecompLayer.cpp50 sk_sp<TimeRemapper> remapper, in CompTimeMapper() argument
53 , fRemapper(std::move(remapper)) in CompTimeMapper()
/external/tensorflow/tensorflow/core/transforms/remapper/tests/
Donednn_remapper.mlir1 // RUN: tfg-transforms-opt -tfg-remapper=enable-onednn-patterns %s | FileCheck %s
2 // RUN: tfg-transforms-opt -tfg-remapper=verify-pdll-patterns-only %s | FileCheck %s
Dcontraction.mlir1 // RUN: tfg-transforms-opt --tfg-remapper %s | FileCheck %s
/external/deqp-deps/glslang/
DREADME-spirv-remap.txt19 only in the trivial repetition sense, for ease of use. The remapper API
64 The public interface to the remapper is defined in SPIRV/SPVRemapper.h as follows:
115 The standalone remapper is built along side glslang through its
/external/angle/third_party/vulkan-deps/glslang/src/
DREADME-spirv-remap.txt19 only in the trivial repetition sense, for ease of use. The remapper API
64 The public interface to the remapper is defined in SPIRV/SPVRemapper.h as follows:
115 The standalone remapper is built along side glslang through its
/external/jarjar/src/main/com/tonicsystems/jarjar/
DDepFindVisitor.java35 ((DepFindRemapper)remapper).setClassName(name); in visit()
/external/clang/tools/arcmt-test/
Darcmt-test.cpp140 static void printResult(FileRemapper &remapper, raw_ostream &OS) { in printResult() argument
142 remapper.applyMappings(PPOpts); in printResult()
/external/deqp/external/vulkancts/framework/vulkan/
DvkShaderToSpirV.cpp379 spv::spirvbin_t remapper; in stripSpirVDebugInfo() local
385 remapper.remap(*dst, whiteListStrings, spv::spirvbin_base_t::STRIP); in stripSpirVDebugInfo()
/external/clang/lib/ARCMigrate/
DARCMT.cpp414 FileRemapper remapper; in getFileRemappings() local
415 bool err = remapper.initFromDisk(outputDir, *Diags, in getFileRemappings()
421 remapper.applyMappings(PPOpts); in getFileRemappings()
/external/tensorflow/tensorflow/core/grappler/optimizers/
DBUILD641 ":remapper",
867 name = "remapper",
868 srcs = ["remapper.cc"],
870 "remapper.h",
898 ":remapper",
921 ":remapper",
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DClassInstrumentor.java72 Remapper remapper = in instrumentToBytes() local
79 ClassRemapper visitor = new ClassRemapper(writer, remapper); in instrumentToBytes()
/external/tensorflow/tensorflow/core/transforms/
DBUILD139 "//tensorflow/core/transforms/remapper:Pass",

12