Home
last modified time | relevance | path

Searched refs:class_name (Results 1 – 16 of 16) sorted by relevance

/art/compiler/
Dcommon_compiler_test.cc131 void CommonCompilerTest::MakeExecutable(mirror::ClassLoader* class_loader, const char* class_name) { in MakeExecutable() argument
132 std::string class_descriptor(DotToDescriptor(class_name)); in MakeExecutable()
137 CHECK(klass != nullptr) << "Class not found " << class_name; in MakeExecutable()
225 void CommonCompilerTest::CompileClass(mirror::ClassLoader* class_loader, const char* class_name) { in CompileClass() argument
226 std::string class_descriptor(DotToDescriptor(class_name)); in CompileClass()
231 CHECK(klass != nullptr) << "Class not found " << class_name; in CompileClass()
251 const char* class_name, const char* method_name, in CompileDirectMethod() argument
253 std::string class_descriptor(DotToDescriptor(class_name)); in CompileDirectMethod()
256 CHECK(klass != nullptr) << "Class not found " << class_name; in CompileDirectMethod()
260 << class_name << "." << method_name << signature; in CompileDirectMethod()
[all …]
Dcommon_compiler_test.h52 void MakeExecutable(mirror::ClassLoader* class_loader, const char* class_name)
74 void CompileClass(mirror::ClassLoader* class_loader, const char* class_name)
79 void CompileDirectMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name,
83 void CompileVirtualMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name,
Delf_writer_debug.cc362 std::string class_name(dex->GetClassDescriptor(dex_class_def)); in WriteDebugSections() local
363 size_t class_name_slash = class_name.find_last_of('/'); in WriteDebugSections()
369 class_name.front() == 'L' && // Type descriptor for a class. in WriteDebugSections()
371 std::string package_name = class_name.substr(1, class_name_slash - 1); in WriteDebugSections()
/art/dalvikvm/
Ddalvikvm.cc72 std::string class_name(argv[0]); in InvokeMain() local
73 std::replace(class_name.begin(), class_name.end(), '.', '/'); in InvokeMain()
75 ScopedLocalRef<jclass> klass(env, env->FindClass(class_name.c_str())); in InvokeMain()
77 fprintf(stderr, "Unable to locate class '%s'\n", class_name.c_str()); in InvokeMain()
84 fprintf(stderr, "Unable to find static main(String[]) in '%s'\n", class_name.c_str()); in InvokeMain()
92 fprintf(stderr, "Sorry, main() is not public in '%s'\n", class_name.c_str()); in InvokeMain()
/art/runtime/native/
Ddalvik_system_DexFile.cc227 ScopedUtfChars class_name(env, javaName); in DexFile_defineClassNative() local
228 if (class_name.c_str() == nullptr) { in DexFile_defineClassNative()
232 const std::string descriptor(DotToDescriptor(class_name.c_str())); in DexFile_defineClassNative()
247 << " for " << class_name.c_str(); in DexFile_defineClassNative()
252 VLOG(class_linker) << "Failed to find dex_class_def " << class_name.c_str(); in DexFile_defineClassNative()
Ddalvik_system_VMRuntime.cc301 const char* class_name = dex_file->StringByTypeIdx(type_idx); in PreloadDexCachesResolveType() local
303 if (class_name[1] == '\0') { in PreloadDexCachesResolveType()
304 klass = linker->FindPrimitiveClass(class_name[0]); in PreloadDexCachesResolveType()
306 klass = linker->LookupClass(self, class_name, ComputeModifiedUtf8Hash(class_name), nullptr); in PreloadDexCachesResolveType()
/art/compiler/driver/
Dcompiler_driver_test.cc50 void EnsureCompiled(jobject class_loader, const char* class_name, const char* method, in EnsureCompiled() argument
58 class_ = env_->FindClass(class_name); in EnsureCompiled()
59 CHECK(class_ != nullptr) << "Class not found: " << class_name; in EnsureCompiled()
65 CHECK(mid_ != nullptr) << "Method not found: " << class_name << "." << method << signature; in EnsureCompiled()
/art/runtime/
Dutils.cc564 std::string DotToDescriptor(const char* class_name) { in DotToDescriptor() argument
565 std::string descriptor(class_name); in DotToDescriptor()
602 std::string class_name(m->GetDeclaringClassDescriptor()); in JniShortName() local
604 CHECK_EQ(class_name[0], 'L') << class_name; in JniShortName()
605 CHECK_EQ(class_name[class_name.size() - 1], ';') << class_name; in JniShortName()
606 class_name.erase(0, 1); in JniShortName()
607 class_name.erase(class_name.size() - 1, 1); in JniShortName()
613 short_name += MangleForJni(class_name); in JniShortName()
Dreflection_test.cc89 const char* class_name = is_static ? "StaticLeafMethods" : "NonStaticLeafMethods"; in ReflectionTestMakeExecutable() local
90 jobject jclass_loader(LoadDex(class_name)); in ReflectionTestMakeExecutable()
98 class_name); in ReflectionTestMakeExecutable()
103 class_name); in ReflectionTestMakeExecutable()
106 mirror::Class* c = class_linker_->FindClass(self, DotToDescriptor(class_name).c_str(), in ReflectionTestMakeExecutable()
Djava_vm_ext.cc434 StringPiece class_name(method->GetDeclaringClassDescriptor()); in ShouldTrace() local
435 if (!trace_.empty() && class_name.find(trace_) != std::string::npos) { in ShouldTrace()
454 if (class_name.starts_with(gBuiltInPrefixes[i])) { in ShouldTrace()
Dutils.h164 std::string DotToDescriptor(const char* class_name);
Dcheck_jni.cc142 bool CheckClassName(const char* class_name) { in CheckClassName() argument
143 if ((class_name == nullptr) || !IsValidJniClassName(class_name)) { in CheckClassName()
146 class_name); in CheckClassName()
Djni_internal_test.cc2033 const char* class_name = "StaticLeafMethods"; in TEST_F() local
2034 LoadDex(class_name); in TEST_F()
Dthread.cc1819 std::string class_name(PrettyDescriptor(descriptor)); in InternalStackTraceToStackTraceElementArray() local
1821 mirror::String::AllocFromModifiedUtf8(soa.Self(), class_name.c_str())); in InternalStackTraceToStackTraceElementArray()
/art/runtime/interpreter/
Dunstarted_runtime.cc125 mirror::String* class_name = GetClassName(self, shadow_frame, arg_offset); in UnstartedClassForName() local
126 if (class_name == nullptr) { in UnstartedClassForName()
130 Handle<mirror::String> h_class_name(hs.NewHandle(class_name)); in UnstartedClassForName()
138 mirror::String* class_name = GetClassName(self, shadow_frame, arg_offset); in UnstartedClassForNameLong() local
139 if (class_name == nullptr) { in UnstartedClassForNameLong()
146 Handle<mirror::String> h_class_name(hs.NewHandle(class_name)); in UnstartedClassForNameLong()
155 mirror::String* class_name = GetClassName(self, shadow_frame, arg_offset); in UnstartedClassClassForName() local
156 if (class_name == nullptr) { in UnstartedClassClassForName()
163 Handle<mirror::String> h_class_name(hs.NewHandle(class_name)); in UnstartedClassClassForName()
265 mirror::String* class_name = shadow_frame->GetVRegReference(arg_offset + 1)->AsString(); in UnstartedVmClassLoaderFindLoadedClass() local
[all …]
/art/test/004-JniTest/
Djni_test.cc404 jclass GetClass(const char* class_name) { in GetClass() argument
405 jclass c = env_->FindClass(class_name); in GetClass()