Home
last modified time | relevance | path

Searched refs:className (Results 1 – 25 of 53) sorted by relevance

123

/art/test/690-hiddenapi-same-name-methods/src/
DMain.java48 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/
DMain.java45 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/
DMain.java33 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/tools/dexfuzz/src/dexfuzz/program/
DIdCreator.java86 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/496-checker-inlining-class-loader/src/
DMain.java54 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/
DMain.java30 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/test/166-bad-interface-super/src/
DMain.java23 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/
Dtracedump.cc146 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 …]
Dcreatetesttrace.cc66 char* className; member
211 records[nextRecord].className = nullptr; in parseInputFile()
217 if (len > 0) records[nextRecord].className = strndup(save_cp, len); in parseInputFile()
370 if (pRecord->className == nullptr || pRecord->methodName == nullptr) { in writeKeyMethods()
375 pRecord->className, pRecord->methodName); in writeKeyMethods()
378 pRecord->className, pRecord->methodName, pRecord->signature); in writeKeyMethods()
/art/test/929-search/src/
DMain.java30 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/
DMain.java76 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/benchmark/micro-native/
Dmicro_native.cc21 #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/test/088-monitor-verification/src/
DMain.java239 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/test/156-register-dex-file-multi-loader/src/
DMain.java44 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/tools/ahat/src/main/com/android/ahat/
DObjectsHandler.java51 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/
DNewMethodCaller.java48 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/542-unresolved-access-check/src/
DMain.java47 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/test/ti-agent/
Dagent_startup.cc29 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/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatArrayInstance.java362 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()
DAhatClassObj.java39 AhatClassObj(long id, String className) { in AhatClassObj() argument
41 mClassName = className; in AhatClassObj()
/art/test/912-classes/src-art/art/
DMain.java25 public static native void bindAgentJNI(String className, ClassLoader classLoader); in bindAgentJNI() argument
/art/test/071-dexfile/src/
DMain.java105 String className = e.nextElement(); in testDexFile() local
106 System.out.println(className); in testDexFile()
/art/runtime/
Dreference_table.cc98 std::string className(obj->PrettyTypeOf()); in DumpSummaryLine() local
102 className = "java.lang.Class"; in DumpSummaryLine()
105 StringAppendF(&className, " (%zd elements)", element_count); in DumpSummaryLine()
109 std::string msg(StringPrintf("%5zd of %s", total, className.c_str())); in DumpSummaryLine()
188 std::string className(ref->PrettyTypeOf()); in Dump() local
210 os << StringPrintf(" %5d: ", idx) << ref << " " << className << extras << "\n"; in Dump()
/art/test/906-iterate-heap/src/art/
DMain.java25 public static native void bindAgentJNI(String className, ClassLoader classLoader); in bindAgentJNI() argument
/art/test/1974-resize-array/src/art/
DMain.java25 public static native void bindAgentJNI(String className, ClassLoader classLoader); in bindAgentJNI() argument

123