Lines Matching refs:task
1129 LoadTask* task, in load_library() argument
1134 off64_t file_offset = task->get_file_offset(); in load_library()
1135 const char* name = task->get_name(); in load_library()
1136 const android_dlextinfo* extinfo = task->get_extinfo(); in load_library()
1152 if (TEMP_FAILURE_RETRY(fstat(task->get_fd(), &file_stat)) != 0) { in load_library()
1171 task->set_soinfo(si); in load_library()
1182 if (TEMP_FAILURE_RETRY(fstatfs(task->get_fd(), &fs_stat)) != 0) { in load_library()
1194 const soinfo* needed_by = task->is_dt_needed() ? task->get_needed_by() : nullptr; in load_library()
1198 const soinfo* needed_or_dlopened_by = task->get_needed_by(); in load_library()
1210 const char* needed_or_dlopened_by = task->get_needed_by() == nullptr ? in load_library()
1212 task->get_needed_by()->get_realpath(); in load_library()
1235 task->set_soinfo(si); in load_library()
1238 if (!task->read(realpath.c_str(), file_stat.st_size)) { in load_library()
1239 task->remove_cached_elf_reader(); in load_library()
1240 task->set_soinfo(nullptr); in load_library()
1249 const ElfReader& elf_reader = task->get_elf_reader(); in load_library()
1268 for_each_dt_needed(task->get_elf_reader(), [&](const char* name) { in load_library()
1270 ns->get_name(), task->get_name(), name); in load_library()
1271 load_tasks->push_back(LoadTask::create(name, si, ns, task->get_readers_map())); in load_library()
1278 LoadTask* task, in load_library() argument
1283 const char* name = task->get_name(); in load_library()
1284 soinfo* needed_by = task->get_needed_by(); in load_library()
1285 const android_dlextinfo* extinfo = task->get_extinfo(); in load_library()
1304 task->set_fd(extinfo->library_fd, false); in load_library()
1305 task->set_file_offset(file_offset); in load_library()
1306 return load_library(ns, task, load_tasks, rtld_flags, realpath, search_linked_namespaces); in load_library()
1319 if (task->is_dt_needed()) { in load_library()
1324 needed_by->get_realpath(), task->get_start_from()->get_name()); in load_library()
1332 task->set_fd(fd, true); in load_library()
1333 task->set_file_offset(file_offset); in load_library()
1335 return load_library(ns, task, load_tasks, rtld_flags, realpath, search_linked_namespaces); in load_library()
1385 LoadTask* task) { in find_library_in_linked_namespace() argument
1392 if (find_loaded_library_by_soname(ns, task->get_name(), false, &candidate)) { in find_library_in_linked_namespace()
1396 soname = resolve_soname(task->get_name()); in find_library_in_linked_namespace()
1403 ns->get_name(), task->get_name(), soname.c_str()); in find_library_in_linked_namespace()
1410 ns->get_name(), task->get_name()); in find_library_in_linked_namespace()
1411 task->set_soinfo(candidate); in find_library_in_linked_namespace()
1418 task->get_name()); in find_library_in_linked_namespace()
1419 task->set_soinfo(nullptr); in find_library_in_linked_namespace()
1424 LoadTask* task, in find_library_internal() argument
1430 if (find_loaded_library_by_soname(ns, task->get_name(), true /* search_linked_namespaces */, in find_library_internal()
1434 ns->get_name(), task->get_name(), candidate->get_realpath()); in find_library_internal()
1435 task->set_soinfo(candidate); in find_library_internal()
1442 task->get_name(), candidate == nullptr ? "n/a" : candidate->get_realpath(), candidate); in find_library_internal()
1444 if (load_library(ns, task, zip_archive_cache, load_tasks, rtld_flags, in find_library_internal()
1450 if (ns->is_greylist_enabled() && is_greylisted(ns, task->get_name(), task->get_needed_by())) { in find_library_internal()
1457 ns->get_name(), task->get_name(), g_default_namespace.get_name()); in find_library_internal()
1459 if (load_library(ns, task, zip_archive_cache, load_tasks, rtld_flags, in find_library_internal()
1470 ns->get_name(), task->get_name(), ns->linked_namespaces().size()); in find_library_internal()
1472 if (find_library_in_linked_namespace(linked_namespace, task)) { in find_library_internal()
1474 if (task->get_soinfo() != nullptr) { in find_library_internal()
1482 if (load_library(linked_namespace.linked_namespace(), task, zip_archive_cache, load_tasks, in find_library_internal()
1485 ns->get_name(), task->get_name(), linked_namespace.linked_namespace()->get_name()); in find_library_internal()
1560 LoadTask* task = load_tasks[i]; in find_libraries() local
1561 soinfo* needed_by = task->get_needed_by(); in find_libraries()
1564 task->set_extinfo(is_dt_needed ? nullptr : extinfo); in find_libraries()
1565 task->set_dt_needed(is_dt_needed); in find_libraries()
1568 task->get_name(), is_dt_needed); in find_libraries()
1574 if (!find_library_internal(const_cast<android_namespace_t*>(task->get_start_from()), in find_libraries()
1575 task, in find_libraries()
1582 soinfo* si = task->get_soinfo(); in find_libraries()
1601 for (auto&& task : load_tasks) { in find_libraries()
1602 soinfo* si = task->get_soinfo(); in find_libraries()
1609 load_list.push_back(task); in find_libraries()
1636 for (auto&& task : load_list) { in find_libraries()
1638 (reserved_address_recursive || !task->is_dt_needed()) ? &extinfo_params : &default_params; in find_libraries()
1639 if (!task->load(address_space)) { in find_libraries()
1645 for (auto&& task : load_tasks) { in find_libraries()
1646 soinfo* si = task->get_soinfo(); in find_libraries()
1667 for (auto&& task : load_tasks) { in find_libraries()
1668 soinfo* si = task->get_soinfo(); in find_libraries()
1699 for (auto&& task : load_tasks) { in find_libraries()
1700 soinfo* si = task->get_soinfo(); in find_libraries()
1701 soinfo* needed_by = task->get_needed_by(); in find_libraries()
1784 for (auto&& task : load_tasks) { in find_libraries()
1785 soinfo* si = task->get_soinfo(); in find_libraries()
1789 for (auto&& task : load_tasks) { in find_libraries()
1790 soinfo* si = task->get_soinfo(); in find_libraries()
1791 soinfo* needed_by = task->get_needed_by(); in find_libraries()