/art/dex2oat/driver/ |
D | compiler_driver_test.cc | 45 void CompileAllAndMakeExecutable(jobject class_loader) REQUIRES(!Locks::mutator_lock_) { in CompileAllAndMakeExecutable() argument 47 dex_files_ = GetDexFiles(class_loader); in CompileAllAndMakeExecutable() 48 CompileAll(class_loader, dex_files_, &timings); in CompileAllAndMakeExecutable() 50 MakeAllExecutable(class_loader); in CompileAllAndMakeExecutable() 53 void EnsureCompiled(jobject class_loader, const char* class_name, const char* method, in EnsureCompiled() argument 56 CompileAllAndMakeExecutable(class_loader); in EnsureCompiled() 71 void MakeAllExecutable(jobject class_loader) { in MakeAllExecutable() argument 72 const std::vector<const DexFile*> class_path = GetDexFiles(class_loader); in MakeAllExecutable() 76 MakeDexFileExecutable(class_loader, *dex_file); in MakeAllExecutable() 93 void MakeDexFileExecutable(jobject class_loader, const DexFile& dex_file) { in MakeDexFileExecutable() argument [all …]
|
D | compiler_driver-inl.h | 38 Handle<mirror::ClassLoader> class_loader, in ResolveClass() argument 42 DCHECK_EQ(class_loader.Get(), mUnit->GetClassLoader().Get()); in ResolveClass() 44 mUnit->GetClassLinker()->ResolveType(cls_index, dex_cache, class_loader); in ResolveClass() 56 Handle<mirror::ClassLoader> class_loader, in ResolveCompilingMethodsClass() argument 59 DCHECK_EQ(class_loader.Get(), mUnit->GetClassLoader().Get()); in ResolveCompilingMethodsClass() 62 return ResolveClass(soa, dex_cache, class_loader, referrer_method_id.class_idx_, mUnit); in ResolveCompilingMethodsClass() 67 Handle<mirror::ClassLoader> class_loader, in ResolveField() argument 71 field_idx, dex_cache, class_loader, is_static); in ResolveField()
|
D | compiler_driver.h | 106 void PreCompile(jobject class_loader, 112 void CompileAll(jobject class_loader, 144 Handle<mirror::ClassLoader> class_loader, 150 Handle<mirror::ClassLoader> class_loader, 159 Handle<mirror::ClassLoader> class_loader, 239 void Resolve(jobject class_loader, 243 void ResolveDexFile(jobject class_loader, 253 bool FastVerify(jobject class_loader, 258 void Verify(jobject class_loader, 263 void VerifyDexFile(jobject class_loader, [all …]
|
D | compiler_driver.cc | 327 void CompilerDriver::CompileAll(jobject class_loader, in CompileAll() argument 344 Compile(class_loader, dex_files, timings); in CompileAll() 352 Thread* self, const CompilerDriver& driver, Handle<mirror::ClassLoader> class_loader, in GetDexToDexCompilationLevel() argument 365 ObjPtr<mirror::Class> klass = class_linker->FindClass(self, descriptor, class_loader); in GetDexToDexCompilationLevel() 401 Handle<mirror::ClassLoader> class_loader( in GetDexToDexCompilationLevel() local 403 return GetDexToDexCompilationLevel(self, driver, class_loader, dex_file, class_def); in GetDexToDexCompilationLevel() 428 Handle<mirror::ClassLoader> class_loader, in CompileMethodHarness() argument 445 class_loader, in CompileMethodHarness() 477 Handle<mirror::ClassLoader> class_loader, in CompileMethodDex2Dex() argument 488 Handle<mirror::ClassLoader> class_loader, in CompileMethodDex2Dex() [all …]
|
/art/dex2oat/dex/ |
D | dex_to_dex_decompiler_test.cc | 40 void CompileAll(jobject class_loader) REQUIRES(!Locks::mutator_lock_) { in CompileAll() argument 47 new verifier::VerifierDeps(GetDexFiles(class_loader))); in CompileAll() 48 std::vector<const DexFile*> dex_files = GetDexFiles(class_loader); in CompileAll() 49 CommonCompilerDriverTest::CompileAll(class_loader, dex_files, &timings); in CompileAll() 63 jobject class_loader; in RunTest() local 67 class_loader = LoadDex(dex_name); in RunTest() 68 updated_dex_file = GetDexFiles(class_loader)[0]; in RunTest() 70 *updated_dex_file, soa.Decode<mirror::ClassLoader>(class_loader)); in RunTest() 79 CompileAll(class_loader); in RunTest()
|
/art/runtime/ |
D | class_loader_utils.h | 35 Handle<mirror::ClassLoader> class_loader) in IsInstanceOfBaseDexClassLoader() argument 37 return class_loader->InstanceOf( in IsInstanceOfBaseDexClassLoader() 44 Handle<mirror::ClassLoader> class_loader) in IsPathOrDexClassLoader() argument 46 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsPathOrDexClassLoader() 56 Handle<mirror::ClassLoader> class_loader) in IsInMemoryDexClassLoader() argument 58 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsInMemoryDexClassLoader() 64 Handle<mirror::ClassLoader> class_loader) in IsDelegateLastClassLoader() argument 66 ObjPtr<mirror::Class> class_loader_class = class_loader->GetClass(); in IsDelegateLastClassLoader() 79 Handle<mirror::ClassLoader> class_loader, in VisitClassLoaderDexElements() argument 86 GetObject(class_loader.Get()); in VisitClassLoaderDexElements() [all …]
|
D | class_table_test.cc | 75 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader))); in TEST_F() local 79 hs.NewHandle(class_linker_->FindClass(soa.Self(), descriptor_x, class_loader))); in TEST_F() 81 hs.NewHandle(class_linker_->FindClass(soa.Self(), descriptor_y, class_loader))); in TEST_F() 85 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 0u); in TEST_F() 86 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 0u); in TEST_F() 93 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 0u); in TEST_F() 94 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 1u); in TEST_F() 98 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 1u); in TEST_F() 99 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 0u); in TEST_F() 110 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 1u); in TEST_F() [all …]
|
D | class_linker-inl.h | 55 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(element_class->GetClassLoader())); in FindArrayClass() 56 ObjPtr<mirror::Class> array_class = FindClass(self, descriptor.c_str(), class_loader); in FindArrayClass() 165 Handle<mirror::ClassLoader> class_loader) { in ResolveType() argument 170 resolved = DoResolveType(type_idx, dex_cache, class_loader); in ResolveType() 214 ObjPtr<mirror::ClassLoader> class_loader) { in LookupResolvedType() argument 217 type = DoLookupResolvedType(type_idx, dex_cache, class_loader); in LookupResolvedType() 274 ObjPtr<mirror::ClassLoader> class_loader) { in CheckInvokeClassMismatch() argument 278 [this, dex_cache, method_idx, class_loader]() REQUIRES_SHARED(Locks::mutator_lock_) { in CheckInvokeClassMismatch() 281 LookupResolvedType(method_id.class_idx_, dex_cache, class_loader); in CheckInvokeClassMismatch() 289 ObjPtr<mirror::ClassLoader> class_loader) { in LookupResolvedMethod() argument [all …]
|
D | class_linker_test.cc | 182 ObjPtr<mirror::ClassLoader> class_loader) in AssertArrayClass() argument 186 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in AssertArrayClass() 410 void AssertDexFileClass(ObjPtr<mirror::ClassLoader> class_loader, const std::string& descriptor) in AssertDexFileClass() argument 420 EXPECT_OBJ_PTR_EQ(class_loader, klass->GetClassLoader()); in AssertDexFileClass() 430 void AssertDexFile(const DexFile& dex, ObjPtr<mirror::ClassLoader> class_loader) in AssertDexFile() argument 436 AssertDexFileClass(class_loader, descriptor); in AssertDexFile() 442 AssertDexFileClass(class_loader, descriptor); in AssertDexFile() 894 Handle<mirror::ClassLoader> class_loader( in TEST_F() local 897 ObjPtr<mirror::Class> outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F() 903 class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F() [all …]
|
D | class_linker.h | 121 virtual void Visit(ObjPtr<mirror::ClassLoader> class_loader) 176 Handle<mirror::ClassLoader> class_loader, 192 Handle<mirror::ClassLoader> class_loader) 218 Handle<mirror::ClassLoader> class_loader, 228 ObjPtr<mirror::ClassLoader> class_loader) 286 Handle<mirror::ClassLoader> class_loader) 306 ObjPtr<mirror::ClassLoader> class_loader) 319 ObjPtr<mirror::ClassLoader> class_loader) 325 ObjPtr<mirror::ClassLoader> class_loader, 334 ObjPtr<mirror::ClassLoader> class_loader, [all …]
|
D | oat_file_manager.h | 98 jobject class_loader, 115 jobject class_loader, 127 jobject class_loader, 155 jobject class_loader,
|
D | transaction_test.cc | 42 Handle<mirror::ClassLoader> class_loader( in testTransactionAbort() local 44 ASSERT_TRUE(class_loader != nullptr); in testTransactionAbort() 64 class_loader)); in testTransactionAbort() 70 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort() 171 Handle<mirror::ClassLoader> class_loader( in TEST_F() local 173 ASSERT_TRUE(class_loader != nullptr); in TEST_F() 176 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticFieldsTest;", class_loader))); in TEST_F() 267 Handle<mirror::ClassLoader> class_loader( in TEST_F() local 269 ASSERT_TRUE(class_loader != nullptr); in TEST_F() 272 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LInstanceFieldsTest;", class_loader))); in TEST_F() [all …]
|
/art/libnativeloader/ |
D | native_loader_lazy.cpp | 52 jstring CreateClassLoaderNamespace(JNIEnv* env, int32_t target_sdk_version, jobject class_loader, in CreateClassLoaderNamespace() argument 56 return f(env, target_sdk_version, class_loader, is_shared, dex_path, library_path, in CreateClassLoaderNamespace() 61 jobject class_loader, const char* caller_location, jstring library_path, in OpenNativeLibrary() argument 64 return f(env, target_sdk_version, path, class_loader, caller_location, library_path, in OpenNativeLibrary() 78 struct android_namespace_t* FindNamespaceByClassLoader(JNIEnv* env, jobject class_loader) { in FindNamespaceByClassLoader() argument 80 return f(env, class_loader); in FindNamespaceByClassLoader() 84 jobject class_loader) { in FindNativeLoaderNamespaceByClassLoader() argument 86 return f(env, class_loader); in FindNativeLoaderNamespaceByClassLoader()
|
D | native_loader.cpp | 90 jstring CreateClassLoaderNamespace(JNIEnv* env, int32_t target_sdk_version, jobject class_loader, in CreateClassLoaderNamespace() argument 95 auto ns = g_namespaces->Create(env, target_sdk_version, class_loader, is_shared, dex_path, in CreateClassLoaderNamespace() 101 UNUSED(env, target_sdk_version, class_loader, is_shared, dex_path, library_path, permitted_path); in CreateClassLoaderNamespace() 107 jobject class_loader, const char* caller_location, jstring library_path, in OpenNativeLibrary() argument 111 if (class_loader == nullptr) { in OpenNativeLibrary() 137 if ((ns = g_namespaces->FindNamespaceByClassLoader(env, class_loader)) == nullptr) { in OpenNativeLibrary() 141 g_namespaces->Create(env, target_sdk_version, class_loader, false /* is_shared */, nullptr, in OpenNativeLibrary() 153 UNUSED(env, target_sdk_version, class_loader, caller_location); in OpenNativeLibrary() 239 android_namespace_t* FindNamespaceByClassLoader(JNIEnv* env, jobject class_loader) { in FindNamespaceByClassLoader() argument 241 NativeLoaderNamespace* ns = g_namespaces->FindNamespaceByClassLoader(env, class_loader); in FindNamespaceByClassLoader() [all …]
|
D | library_namespaces.cpp | 88 jobject GetParentClassLoader(JNIEnv* env, jobject class_loader) { in GetParentClassLoader() argument 93 return env->CallObjectMethod(class_loader, get_parent); in GetParentClassLoader() 142 jobject class_loader, bool is_shared, in Create() argument 170 LOG_ALWAYS_FATAL_IF(FindNamespaceByClassLoader(env, class_loader) != nullptr, in Create() 229 NativeLoaderNamespace* parent_ns = FindParentNamespaceByClassLoader(env, class_loader); in Create() 323 std::make_pair(env->NewWeakGlobalRef(class_loader), *app_ns)); in Create() 331 jobject class_loader) { in FindNamespaceByClassLoader() argument 334 return env->IsSameObject(value.first, class_loader); in FindNamespaceByClassLoader() 344 jobject class_loader) { in FindParentNamespaceByClassLoader() argument 345 jobject parent_class_loader = GetParentClassLoader(env, class_loader); in FindParentNamespaceByClassLoader()
|
D | library_namespaces.h | 57 jobject class_loader, bool is_shared, jstring dex_path, 59 NativeLoaderNamespace* FindNamespaceByClassLoader(JNIEnv* env, jobject class_loader); 63 NativeLoaderNamespace* FindParentNamespaceByClassLoader(JNIEnv* env, jobject class_loader);
|
/art/libnativeloader/include/nativeloader/ |
D | native_loader.h | 40 JNIEnv* env, int32_t target_sdk_version, jobject class_loader, bool is_shared, jstring dex_path, 44 JNIEnv* env, int32_t target_sdk_version, const char* path, jobject class_loader, 58 JNIEnv* env, jobject class_loader); 62 FindNativeLoaderNamespaceByClassLoader(JNIEnv* env, jobject class_loader);
|
/art/runtime/mirror/ |
D | dex_cache_test.cc | 84 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in TEST_F() local 86 ObjPtr<mirror::Class> klass = class_linker_->FindClass(soa.Self(), "LMain;", class_loader); in TEST_F() 98 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in TEST_F() local 101 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage1/Package1;", class_loader)); in TEST_F() 104 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage2/Package2;", class_loader)); in TEST_F() 125 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in TEST_F() local 129 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LMethodTypes;", class_loader))); in TEST_F() 155 class_loader)); in TEST_F() 160 class_loader)); in TEST_F()
|
/art/test/ti-agent/ |
D | jni_binder.h | 27 jclass GetClass(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader); 36 jobject class_loader = nullptr);
|
D | jni_binder.cc | 155 static jclass FindClassWithClassLoader(JNIEnv* env, const char* class_name, jobject class_loader) { in FindClassWithClassLoader() argument 174 class_loader)); in FindClassWithClassLoader() 177 jclass GetClass(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader) { in GetClass() argument 178 if (class_loader != nullptr) { in GetClass() 179 return FindClassWithClassLoader(env, class_name, class_loader); in GetClass() 252 void BindFunctions(jvmtiEnv* jvmti_env, JNIEnv* env, const char* class_name, jobject class_loader) { in BindFunctions() argument 254 ScopedLocalRef<jclass> klass(env, GetClass(jvmti_env, env, class_name, class_loader)); in BindFunctions()
|
/art/runtime/native/ |
D | dalvik_system_BaseDexClassLoader.cc | 39 jobject class_loader) { in BaseDexClassLoader_computeClassLoaderContextsNative() argument 40 CHECK(class_loader != nullptr); in BaseDexClassLoader_computeClassLoaderContextsNative() 42 ClassLoaderContext::EncodeClassPathContextsForClassLoader(class_loader); in BaseDexClassLoader_computeClassLoaderContextsNative()
|
D | dalvik_system_VMStack.cc | 114 class_loader(nullptr) {} in VMStack_getClosestUserClassLoader() 117 DCHECK(class_loader == nullptr); in VMStack_getClosestUserClassLoader() 123 class_loader = cl; in VMStack_getClosestUserClassLoader() 130 ObjPtr<mirror::Object> class_loader; in VMStack_getClosestUserClassLoader() member 135 return soa.AddLocalReference<jobject>(visitor.class_loader); in VMStack_getClosestUserClassLoader()
|
/art/runtime/ti/ |
D | agent.cc | 58 jobject class_loader, in Attach() argument 63 return DoLoadHelper(env, true, class_loader, call_res, error, error_msg); in Attach() 70 jobject class_loader, in DoLoadHelper() argument 78 std::unique_ptr<Agent> agent = DoDlOpen(env, class_loader, error, error_msg); in DoLoadHelper() 110 jobject class_loader, in DoDlOpen() argument 116 class_loader == nullptr in DoDlOpen() 118 : JavaVMExt::GetLibrarySearchPath(env, class_loader)); in DoDlOpen() 125 class_loader, in DoDlOpen()
|
/art/runtime/jit/ |
D | profiling_info_test.cc | 46 std::vector<ArtMethod*> GetVirtualMethods(jobject class_loader, in GetVirtualMethods() argument 53 hs.NewHandle(self->DecodeJObject(class_loader)->AsClassLoader())); in GetVirtualMethods() 203 jobject class_loader; in TEST_F() local 206 class_loader = LoadDex("ProfileTestMultiDex"); in TEST_F() 208 ASSERT_NE(class_loader, nullptr); in TEST_F() 211 std::vector<ArtMethod*> main_methods = GetVirtualMethods(class_loader, "LMain;"); in TEST_F() 231 std::vector<ArtMethod*> second_methods = GetVirtualMethods(class_loader, "LSecond;"); in TEST_F() 261 jobject class_loader; in TEST_F() local 264 class_loader = LoadDex("ProfileTestMultiDex"); in TEST_F() 266 ASSERT_NE(class_loader, nullptr); in TEST_F() [all …]
|
/art/tools/art_verifier/ |
D | art_verifier.cc | 79 jobject class_loader = class_linker->CreatePathClassLoader(self, *out); in Install() local 84 *dex_file, self->DecodeJObject(class_loader)->AsClassLoader()); in Install() 88 return class_loader; in Install() 214 jobject class_loader = Install(runtime, unique_dex_files, &dex_files); in ExecuteWithRuntime() local 215 CHECK(class_loader != nullptr); in ExecuteWithRuntime() 219 soa.Decode<mirror::ClassLoader>(class_loader)); in ExecuteWithRuntime()
|