/art/tools/class2greylist/src/com/android/class2greylist/ |
D | PackageAndClassName.java | 23 public String className; field in PackageAndClassName 25 private PackageAndClassName(String packageName, String className) { in PackageAndClassName() argument 27 this.className = className; in PackageAndClassName() 44 String className = fullyQualifiedClassName.substring(lastDotIdx + 1); in splitClassName() local 45 return new PackageAndClassName(packageName, className); in splitClassName() 54 return Objects.equals(packageName, other.packageName) && Objects.equals(className, in equals() 55 other.className); in equals() 60 return packageName + "." + className; in toString() 65 return Objects.hash(packageName, className); in hashCode()
|
/art/test/690-hiddenapi-same-name-methods/src/ |
D | Main.java | 48 for (String className : classes) { in main() 49 Class<?> klass = Class.forName(className, true, BOOT_CLASS_LOADER); in main() 56 String className = klass.getName(); in checkMethodList() local 59 throw new RuntimeException(className + ": expected " + expectedLength + in checkMethodList() 66 throw new RuntimeException(className + ": expected declared method name: \"" + METHOD_NAME + in checkMethodList() 76 throw new RuntimeException(className + ": expected a method with return type \"Number\""); in checkMethodList() 79 throw new RuntimeException(className + ": expected a method with return type \"Double\""); in checkMethodList() 84 String className = klass.getName(); in checkMethod() local 87 throw new RuntimeException(className + ": expected declared method name: \"" + METHOD_NAME + in checkMethod() 90 throw new RuntimeException(className + ": expected method return type: \"Number\", got \"" + in checkMethod()
|
/art/test/497-inlining-and-class-loader/src/ |
D | Main.java | 45 protected Class<?> loadClass(String className, boolean resolve) throws ClassNotFoundException { in loadClass() argument 47 if (className.equals("Level1")) { in loadClass() 48 return level1ClassLoader.loadClass(className); in loadClass() 49 } else if (className.equals("Level2")) { in loadClass() 51 } else if (!className.equals("LoadedByMyClassLoader")) { in loadClass() 53 return getParent().loadClass(className); in loadClass() 56 if (className != "Level1" && className != "Level2") { in loadClass() 57 return getParent().loadClass(className); in loadClass() 69 Class<?> clazz = (Class<?>)method.invoke(dex, className, this, null); in loadClass()
|
/art/test/518-null-array-get/src/ |
D | Main.java | 33 private static void checkLoad(String className, boolean expectError) throws Exception { in checkLoad() argument 36 c = Class.forName(className); in checkLoad() 38 throw new RuntimeException("Expected error for " + className); in checkLoad() 48 System.out.println(className); in checkLoad() 54 System.out.println(className); in checkLoad()
|
/art/test/496-checker-inlining-class-loader/src/ |
D | Main.java | 54 protected Class<?> loadClass(String className, boolean resolve) throws ClassNotFoundException { in loadClass() argument 56 if (className.equals("LoadedByMyClassLoader") || className.equals("FirstSeenByMyClassLoader")) { in loadClass() 57 System.out.println("Request for " + className); in loadClass() 61 if (className != "LoadedByMyClassLoader") { in loadClass() 62 return getParent().loadClass(className); in loadClass() 72 Class<?> clazz = (Class<?>)method.invoke(dexFile, className, this, null); in loadClass()
|
/art/test/936-search-onload/src/ |
D | Main.java | 30 private static void doTest(boolean boot, String className) throws Exception { in doTest() argument 38 Class<?> c = Class.forName(className, false, ClassLoader.getSystemClassLoader()); in doTest() 40 throw new RuntimeException(className + "(" + boot + "): " + in doTest() 43 System.out.println(className + " was loaded with " + (boot ? "boot" : "system") + in doTest()
|
/art/tools/dexfuzz/src/dexfuzz/program/ |
D | IdCreator.java | 86 private int findMethodIdInsertionPoint(String className, String methodName, String signature) { in findMethodIdInsertionPoint() argument 87 int classIdx = findTypeId(className); in findMethodIdInsertionPoint() 113 private int findTypeIdInsertionPoint(String className) { in findTypeIdInsertionPoint() argument 114 int descriptorIdx = findString(className); in findTypeIdInsertionPoint() 142 private int findFieldIdInsertionPoint(String className, String typeName, String fieldName) { in findFieldIdInsertionPoint() argument 143 int classIdx = findTypeId(className); in findFieldIdInsertionPoint() 169 private int createMethodId(String className, String methodName, String signature) { in createMethodId() argument 180 int typeIdIdx = findOrCreateTypeId(className); in createMethodId() 194 int newMethodIdIdx = findMethodIdInsertionPoint(className, methodName, signature); in createMethodId() 208 className, methodName, signature, newMethodIdIdx)); in createMethodId() [all …]
|
/art/test/166-bad-interface-super/src/ |
D | Main.java | 23 public static void tryResolveClassExpectingCFE(String className) throws Exception { in tryResolveClassExpectingCFE() argument 25 Class.forName(className); in tryResolveClassExpectingCFE() 28 "Caught " + e.getClass().getName() + " when trying to resolve " + className + "."); in tryResolveClassExpectingCFE()
|
/art/tools/dmtracedump/ |
D | tracedump.cc | 146 const char* className; member 165 const char* className; member 296 void initMethodEntry(MethodEntry* method, int64_t methodId, const char* className, in initMethodEntry() argument 300 method->className = className; in initMethodEntry() 334 int32_t result = strcmp(methodA->className, methodB->className); in compareElapsedExclusive() 364 int32_t result = strcmp(methodA->className, methodB->className); in compareElapsedInclusive() 396 int32_t result = strcmp(methodA->className, methodB->className); in compareTimedMethod() 418 int32_t result = strcmp(methodA->className, methodB->className); in compareClassNames() 444 int32_t result = strcmp(classA->className, classB->className); in compareClassExclusive() 471 result = strcmp(methodA->className, methodB->className); in compareMethodNames() [all …]
|
/art/test/929-search/src/ |
D | Main.java | 30 private static void doTest(boolean boot, String segment, String className) throws Exception { in doTest() argument 40 Class<?> c = Class.forName(className); in doTest() 42 throw new RuntimeException(className + "(" + boot + "/" + segment + "): " + in doTest()
|
/art/test/121-modifiers/src2/ |
D | Main.java | 76 private static void check(String className) throws Exception { in check() argument 77 Class<?> clazz = Class.forName(className); in check() 78 if (className.equals("Inf")) { in check() 86 throw new RuntimeException("Undefined bits for an interface: " + className); in check() 96 throw new RuntimeException("Undefined bits for a class: " + className); in check()
|
/art/test/156-register-dex-file-multi-loader/src/ |
D | Main.java | 44 protected Class<?> loadClass(String className, boolean resolve) throws ClassNotFoundException { in loadClass() argument 53 Class<?> clazz = (Class<?>)method.invoke(dex, className, this, null); in loadClass() 60 throw new ClassNotFoundException(className, ite.getCause()); in loadClass() 64 return getParent().loadClass(className); in loadClass()
|
/art/test/088-monitor-verification/src/ |
D | Main.java | 239 private static void runTest(String className, Object[] parameters, Class<?> excType) { in runTest() argument 241 Class<?> c = Class.forName(className); in runTest() 256 System.out.println("Could not find test method for " + className); in runTest() 258 System.out.println("Test method for " + className + " is not static."); in runTest() 262 System.out.println("Expected an exception in " + className); in runTest() 267 System.out.println("Did not expect exception " + exc + " for " + className); in runTest()
|
/art/benchmark/micro-native/ |
D | micro_native.cc | 21 #define NATIVE_METHOD(className, functionName, signature) \ argument 22 { #functionName, signature, reinterpret_cast<void*>(className ## _ ## functionName) } 100 const char* className, in jniRegisterNativeMethods() argument 103 jclass c = env->FindClass(className); in jniRegisterNativeMethods() 109 className) == -1) { in jniRegisterNativeMethods() 121 if (asprintf(&tmp, "RegisterNatives failed for '%s'; aborting...", className) == -1) { in jniRegisterNativeMethods()
|
/art/tools/class2greylist/test/src/com/android/class2greylist/ |
D | ApiComponentsTest.java | 39 assertThat(packageAndClassName.className).isEqualTo("C"); in testGetApiComponentsFromSignature() 88 assertThat(packageAndClassName.className).isEqualTo("C"); in testGetApiComponentsFromFieldLink() 97 assertThat(packageAndClassName.className).isEqualTo("D"); in testGetApiComponentsLinkOnlyClass() 106 assertThat(packageAndClassName.className).isEqualTo("D"); in testGetApiComponentsFromLinkOnlyClassDeducePackage() 133 assertThat(packageAndClassName.className).isEqualTo("C"); in testDeduceApiComponentsPackageAndClassFromLinkUsingContext()
|
/art/tools/ahat/src/main/com/android/ahat/ |
D | ObjectsHandler.java | 51 Site site, String className, boolean subclass, String heapName) { in getObjects() argument 54 && (subclass ? x.isInstanceOfClass(className) : className.equals(x.getClassName())); in getObjects() 65 String className = query.get("class", "java.lang.Object"); in handle() local 70 List<AhatInstance> insts = getObjects(site, className, subclass, heapName); in handle() 84 doc.description(DocString.text("Class"), DocString.text(className)); in handle()
|
/art/tools/dexfuzz/src/dexfuzz/program/mutators/ |
D | NewMethodCaller.java | 48 public String className; field in NewMethodCaller.AssociatedMutation 66 className, in getString() 78 className = elements[4]; in parseString() 129 mutation.className = "Ljava/lang/System;"; in generateMutation() 168 .findOrCreateMethodId(mutation.className, in applyMutation() 180 mutation.className, mutation.methodName, mutation.signature, insertionPoint)); in applyMutation()
|
/art/test/ti-agent/ |
D | agent_startup.cc | 29 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jstring className, jobject classLoader) { in Java_art_Main_bindAgentJNI() argument 30 ScopedUtfChars name(env, className); in Java_art_Main_bindAgentJNI()
|
/art/test/542-unresolved-access-check/src/ |
D | Main.java | 47 protected Class<?> loadClass(String className, boolean resolve) throws ClassNotFoundException { in loadClass() argument 48 if (className.equals("p1.OtherInP1") && !p1.PlaceHolder.entered) { in loadClass() 61 Class<?> clazz = (Class<?>)method.invoke(dex, className, this, null); in loadClass() 68 return getParent().loadClass(className); in loadClass()
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | AhatArrayInstance.java | 362 String className = getClassName(); in toString() local 363 if (className.endsWith("[]")) { in toString() 364 className = className.substring(0, className.length() - 2); in toString() 366 return String.format("%s[%d]@%08x", className, mValues.size(), getId()); in toString()
|
/art/test/912-classes/src-art/art/ |
D | Main.java | 25 public static native void bindAgentJNI(String className, ClassLoader classLoader); in bindAgentJNI() argument
|
/art/test/906-iterate-heap/src/art/ |
D | Main.java | 25 public static native void bindAgentJNI(String className, ClassLoader classLoader); in bindAgentJNI() argument
|
/art/test/905-object-free/src/art/ |
D | Main.java | 25 public static native void bindAgentJNI(String className, ClassLoader classLoader); in bindAgentJNI() argument
|
/art/test/1919-vminit-thread-start-timing/src/art/ |
D | Main.java | 25 public static native void bindAgentJNI(String className, ClassLoader classLoader); in bindAgentJNI() argument
|
/art/test/903-hello-tagging/src/art/ |
D | Main.java | 25 public static native void bindAgentJNI(String className, ClassLoader classLoader); in bindAgentJNI() argument
|