Home
last modified time | relevance | path

Searched refs:newName (Results 1 – 25 of 60) sorted by relevance

123

/external/proguard/src/proguard/obfuscate/
DMemberObfuscator.java95 String newName = newMemberName(member); in visitAnyMember() local
98 if (newName == null) in visitAnyMember()
105 newName = nameFactory.nextName(); in visitAnyMember()
107 while (nameMap.containsKey(newName)); in visitAnyMember()
110 nameMap.put(newName, name); in visitAnyMember()
113 setNewMemberName(member, newName); in visitAnyMember()
207 private String newName; field in MemberObfuscator.MyFixedName
210 public MyFixedName(String newName) in MyFixedName() argument
212 this.newName = newName; in MyFixedName()
220 return newName; in getVisitorInfo()
[all …]
DClassRenamer.java76 String newName = MemberObfuscator.newMemberName(programMember); in visitProgramMember() local
77 if (newName != null && in visitProgramMember()
78 !newName.equals(name)) in visitProgramMember()
81 new ConstantPoolEditor(programClass).addUtf8Constant(newName); in visitProgramMember()
88 String newName = MemberObfuscator.newMemberName(libraryMember); in visitLibraryMember() local
89 if (newName != null) in visitLibraryMember()
91 libraryMember.name = newName; in visitLibraryMember()
101 String newName = ClassObfuscator.newClassName(clazz); in visitClassConstant() local
102 if (newName != null) in visitClassConstant()
106 new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newName); in visitClassConstant()
DMappingPrinter.java73 String newName = ClassObfuscator.newClassName(programClass); in visitProgramClass() local
77 ClassUtil.externalClassName(newName) + in visitProgramClass()
90 String newName = MemberObfuscator.newMemberName(programField); in visitProgramField() local
91 if (newName != null) in visitProgramField()
99 newName); in visitProgramField()
114 String newName = MemberObfuscator.newMemberName(programMethod); in visitProgramMethod() local
115 if (newName != null) in visitProgramMethod()
125 newName); in visitProgramMethod()
DMemberNameCollector.java73 String newName = MemberObfuscator.newMemberName(member); in visitAnyMember() local
76 if (newName != null) in visitAnyMember()
95 String otherName = (String)nameMap.get(newName); in visitAnyMember()
101 nameMap.put(newName, name); in visitAnyMember()
DSimpleNameFactory.java94 String name = newName(index); in name()
104 private String newName(int index) in newName() method in SimpleNameFactory
117 String newName = baseIndex == 0 ? in newName() local
121 return newName; in newName()
DMemberNameConflictFixer.java123 String newName = MemberObfuscator.newMemberName(member); in visitMember() local
126 String previousName = (String)nameMap.get(newName); in visitMember()
143 "' can't be mapped to '" + newName + in visitMember()
148 "', which is already being mapped to '" + newName + "'"); in visitMember() local
DMappingReader.java164 String newName = line.substring(arrowIndex + 2).trim(); in processClassMemberMapping()
169 newName.length() > 0) in processClassMemberMapping()
174 mappingProcessor.processFieldMapping(className, type, name, newName); in processClassMemberMapping()
195 newName); in processClassMemberMapping()
DMappingKeeper.java69 String newName = ClassUtil.internalClassName(newClassName); in processClassMapping() local
77 !currentNewName.equals(newName)) in processClassMapping()
90 ClassObfuscator.setNewClassName(clazz, newName); in processClassMapping()
/external/lzma/CPP/7zip/Archive/Common/
DItemNameUtils.cpp37 UString newName = name; in GetOSName() local
38 newName.Replace(kDirDelimiter, kOSDirDelimiter); in GetOSName()
39 return newName; in GetOSName()
46 UString newName = GetOSName(name); in GetOSName2() local
47 if (newName.Back() == kOSDirDelimiter) in GetOSName2()
48 newName.DeleteBack(); in GetOSName2()
49 return newName; in GetOSName2()
82 UString newName = name; in WinNameToOSName() local
83 newName.Replace(L'\\', kOSDirDelimiter); in WinNameToOSName()
84 return newName; in WinNameToOSName()
/external/proguard/src/proguard/io/
DDataEntryRenamer.java87 String newName = (String)nameMap.get(name); in read() local
88 if (newName != null) in read()
92 newName.length() > 0) in read()
94 newName = newName.substring(0, newName.length() - 1); in read()
97 renamedDataEntryReader.read(new RenamedDataEntry(dataEntry, newName)); in read()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCallablesTest.java46 final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName"); in testRenaming() local
49 assertEquals(Thread.currentThread().getName(), newName.get()); in testRenaming()
53 Callables.threadRenaming(callable, newName).call(); in testRenaming()
59 final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName"); in testRenaming_exceptionalReturn() local
63 assertEquals(Thread.currentThread().getName(), newName.get()); in testRenaming_exceptionalReturn()
68 Callables.threadRenaming(callable, newName).call(); in testRenaming_exceptionalReturn()
85 Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName"); in testRenaming_noPermissions() local
92 Callables.threadRenaming(callable, newName).call(); in testRenaming_noPermissions()
/external/proguard/src/proguard/classfile/editor/
DMemberReferenceFixer.java104 String newName = referencedMember.getName(referencedClass); in visitStringConstant() local
106 if (!stringConstant.getString(clazz).equals(newName)) in visitStringConstant()
115 new ConstantPoolEditor((ProgramClass)clazz).addUtf8Constant(newName); in visitStringConstant()
130 String newName = referencedMember.getName(referencedClass); in visitFieldrefConstant() local
133 if (!fieldrefConstant.getName(clazz).equals(newName) || in visitFieldrefConstant()
143 … new ConstantPoolEditor((ProgramClass)clazz).addNameAndTypeConstant(newName, newType); in visitFieldrefConstant()
158 String newName = referencedMember.getName(referencedClass); in visitInterfaceMethodrefConstant() local
161 if (!interfaceMethodrefConstant.getName(clazz).equals(newName) || in visitInterfaceMethodrefConstant()
171 … new ConstantPoolEditor((ProgramClass)clazz).addNameAndTypeConstant(newName, newType); in visitInterfaceMethodrefConstant()
214 String newName = referencedMember.getName(referencedClass); in visitMethodrefConstant() local
[all …]
/external/proguard/src/proguard/optimize/evaluation/
DSimpleEnumDescriptorSimplifier.java98 String newName = simplifyDescriptor(name, referencedClass); in visitStringConstant() local
101 constantPoolEditor.addUtf8Constant(newName); in visitStringConstant()
147 String newName = simplifyDescriptor(name, referencedClass); in visitClassConstant() local
150 constantPoolEditor.addUtf8Constant(newName); in visitClassConstant()
170 …String newName = name + ClassConstants.SPECIAL_MEMBER_SEPARATOR + Long.toHexString(Math.abs((descr… in visitProgramField() local
174 …Simplifier: ["+programClass.getName()+"."+name+" "+descriptor + "] -> ["+newName+" "+newDescriptor… in visitProgramField()
182 constantPoolEditor.addUtf8Constant(newName); in visitProgramField()
224 String newName = name; in visitProgramMethod() local
229newName += ClassConstants.SPECIAL_MEMBER_SEPARATOR + Long.toHexString(Math.abs((descriptor).hashCo… in visitProgramMethod()
234 …riptorSimplifier: ["+programClass.getName()+"."+name+descriptor+"] -> ["+newName+newDescriptor+"]"… in visitProgramMethod()
[all …]
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DClassRenameTest.java32 private void doTest(@NotNull final String oldQualifiedName, @NotNull final String newName) { in doTest() argument
36 doRename(oldQualifiedName, newName); in doTest()
41 private void doRename(String oldQualifiedName, String newName) throws Exception { in doRename() argument
44 … RenameProcessor processor = new RenameProcessor(getProject(), testClass, newName, false, false); in doRename()
/external/smali/util/src/main/java/org/jf/util/
DClassFileNameHandler.java441 StringBuilder newName = new StringBuilder(pathElement.length() + suffix.length() + 1); in addSuffixBeforeExtension() local
443 newName.append(pathElement); in addSuffixBeforeExtension()
444 newName.append(suffix); in addSuffixBeforeExtension()
446 newName.append(pathElement.subSequence(0, extensionStart)); in addSuffixBeforeExtension()
447 newName.append(suffix); in addSuffixBeforeExtension()
448 newName.append(pathElement.subSequence(extensionStart, pathElement.length())); in addSuffixBeforeExtension()
450 return newName.toString(); in addSuffixBeforeExtension()
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
DSmaliClass.java310 String newName; in setName() local
312 newName = packageName + "." + name; in setName()
314 newName = name; in setName()
316 classTypeElement.handleElementRename(newName); in setName()
331 String newName; in setPackageName() local
333 newName = packageName + "." + getName(); in setPackageName()
335 newName = getName(); in setPackageName()
338 classTypeElement.handleElementRename(newName); in setPackageName()
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/
DRenamePackage.java51 Name newName = cu.getAST().newName(newFqn); in process() local
53 rewrite.replace(packageDeclaration.getName(), newName, null /* editGroup */); in process() local
/external/proguard/src/proguard/optimize/
DMethodDescriptorShrinker.java91 String newName = name; in visitProgramMethod() local
96newName += ClassConstants.SPECIAL_MEMBER_SEPARATOR + Long.toHexString(Math.abs((descriptor).hashCo… in visitProgramMethod()
103 if (!newName.equals(name)) in visitProgramMethod()
106 constantPoolEditor.addUtf8Constant(newName); in visitProgramMethod()
121 System.out.println(" -> ["+newName+newDescriptor+"]"); in visitProgramMethod()
/external/javassist/src/main/javassist/bytecode/
DConstPool.java997 public void renameClass(String oldName, String newName) { in renameClass() argument
1003 ci.renameClass(this, oldName, newName); in renameClass()
1132 public void renameClass(ConstPool cp, String oldName, String newName) {} in renameClass() argument
1189 public void renameClass(ConstPool cp, String oldName, String newName) { in renameClass() argument
1192 name = cp.addUtf8Info(newName); in renameClass()
1194 String nameStr2 = Descriptor.rename(nameStr, oldName, newName); in renameClass()
1203 String newName = Descriptor.rename(oldName, map); in renameClass() local
1204 if (oldName != newName) in renameClass()
1205 name = cp.addUtf8Info(newName); in renameClass()
1208 String newName = (String)map.get(oldName); in renameClass() local
[all …]
DFieldInfo.java143 public void setName(String newName) { in setName() argument
144 name = constPool.addUtf8Info(newName); in setName()
145 cachedName = newName; in setName()
/external/llvm/lib/Transforms/Utils/
DMetaRenamer.cpp56 const char *newName() { in newName() function
109 renamer.newName()).toStringRef(NameStorage)); in runOnModule()
118 F.setName(renamer.newName()); in runOnModule()
/external/clang/test/SemaObjC/
Dproperty-ns-returns-not-retained-attr.m5 @property (nonatomic, retain) id newName __attribute__((ns_returns_not_retained)) ;
15 @synthesize newName;
/external/jmdns/src/javax/jmdns/impl/
DServiceInfoImpl.java359 String newName = name.trim(); in removeSeparators() local
360 if (newName.startsWith(".")) { in removeSeparators()
361 newName = newName.substring(1); in removeSeparators()
363 if (newName.startsWith("_")) { in removeSeparators()
364 newName = newName.substring(1); in removeSeparators()
366 if (newName.endsWith(".")) { in removeSeparators()
367 newName = newName.substring(0, newName.length() - 1); in removeSeparators()
369 return newName; in removeSeparators()
/external/lzma/CPP/7zip/UI/Common/
DArchiveOpenCallback.h106 bool SetSecondFileInfo(CFSTR newName) in SetSecondFileInfo() argument
108 return _fileInfo.Find(newName) && !_fileInfo.IsDir(); in SetSecondFileInfo()
/external/javassist/src/main/javassist/
DClassPool.java385 public CtClass getAndRename(String orgName, String newName) in getAndRename() argument
395 clazz.setName(newName); // indirectly calls in getAndRename()
410 String newName = clazz.getName(); in classNameChanged() local
411 checkNotFrozen(newName); in classNameChanged()
412 cacheCtClass(newName, clazz, false); in classNameChanged()

123