Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 79) sorted by relevance

1234

/art/libnativeloader/
Dnative_loader.cpp109 void* handle = android_dlopen_ext(path, RTLD_NOW, &dlextinfo); in OpenNativeLibrary() local
110 if (handle == nullptr) { in OpenNativeLibrary()
113 return handle; in OpenNativeLibrary()
116 void* handle = dlopen(path, RTLD_NOW); in OpenNativeLibrary() local
117 if (handle == nullptr) { in OpenNativeLibrary()
120 return handle; in OpenNativeLibrary()
171 void* handle = dlopen(path_arg, RTLD_NOW); in OpenNativeLibrary()
172 if (handle != nullptr) { in OpenNativeLibrary()
173 return handle; in OpenNativeLibrary()
177 handle = NativeBridgeLoadLibrary(path_arg, RTLD_NOW); in OpenNativeLibrary()
[all …]
Dnative_loader_lazy.cpp31 static void* handle = dlopen("libnativeloader.so", RTLD_NOW); in GetLibHandle() local
32 LOG_FATAL_IF(handle == nullptr, "Failed to load libnativeloader.so: %s", dlerror()); in GetLibHandle()
33 return handle; in GetLibHandle()
68 bool CloseNativeLibrary(void* handle, const bool needs_native_bridge, char** error_msg) { in CloseNativeLibrary() argument
70 return f(handle, needs_native_bridge, error_msg); in CloseNativeLibrary()
Dnative_loader_namespace.cpp165 void* handle = android_dlopen_ext(lib_name, RTLD_NOW, &extinfo); in Load() local
166 if (handle != nullptr) { in Load()
167 return handle; in Load()
170 void* handle = in Load() local
172 if (handle != nullptr) { in Load()
173 return handle; in Load()
/art/runtime/
Dhandle_wrapper.h30 HandleWrapper(T** obj, const MutableHandle<T>& handle) in HandleWrapper() argument
31 : MutableHandle<T>(handle), obj_(obj) { in HandleWrapper()
50 HandleWrapperObjPtr(ObjPtr<T>* obj, const MutableHandle<T>& handle) in HandleWrapperObjPtr() argument
51 : MutableHandle<T>(handle), obj_(obj) {} in HandleWrapperObjPtr()
Dreflective_handle.h38 ALWAYS_INLINE ReflectiveHandle(const ReflectiveHandle<T>& handle) = default;
39 ALWAYS_INLINE ReflectiveHandle<T>& operator=(const ReflectiveHandle<T>& handle) = default;
84 ALWAYS_INLINE MutableReflectiveHandle(const MutableReflectiveHandle<T>& handle)
87 ALWAYS_INLINE MutableReflectiveHandle<T>& operator=(const MutableReflectiveHandle<T>& handle)
110 ReflectiveHandleWrapper(T** obj, const MutableReflectiveHandle<T>& handle) in ReflectiveHandleWrapper() argument
111 : MutableReflectiveHandle<T>(handle), obj_(obj) { in ReflectiveHandleWrapper()
Dhandle.h54 ALWAYS_INLINE Handle(const Handle<T>& handle) = default;
56 ALWAYS_INLINE Handle<T>& operator=(const Handle<T>& handle) = default;
129 explicit Handle(const Handle<S>& handle) in Handle() argument
130 : reference_(handle.reference_) { in Handle()
150 ALWAYS_INLINE MutableHandle(const MutableHandle<T>& handle)
153 ALWAYS_INLINE MutableHandle<T>& operator=(const MutableHandle<T>& handle)
177 explicit MutableHandle(const MutableHandle<S>& handle) REQUIRES_SHARED(Locks::mutator_lock_) in MutableHandle() argument
178 : Handle<T>(handle) { in MutableHandle()
Dplugin.cc65 void* handle = dlopen_handle_; in Unload() local
67 dlsym(handle, PLUGIN_DEINITIALIZATION_FUNCTION_NAME)); in Unload()
/art/libnativebridge/
Dnative_bridge_lazy.cc31 static void* handle = dlopen("libnativebridge.so", RTLD_NOW); in GetLibHandle() local
32 LOG_FATAL_IF(handle == nullptr, "Failed to load libnativebridge.so: %s", dlerror()); in GetLibHandle()
33 return handle; in GetLibHandle()
93 void* NativeBridgeGetTrampoline(void* handle, const char* name, const char* shorty, uint32_t len) { in NativeBridgeGetTrampoline() argument
95 return f(handle, name, shorty, len); in NativeBridgeGetTrampoline()
123 int NativeBridgeUnloadLibrary(void* handle) { in NativeBridgeUnloadLibrary() argument
125 return f(handle); in NativeBridgeUnloadLibrary()
Dnative_bridge.cc227 void* handle = dlopen(nb_library_filename, RTLD_LAZY); in LoadNativeBridge() local
228 if (handle != nullptr) { in LoadNativeBridge()
229 callbacks = reinterpret_cast<NativeBridgeCallbacks*>(dlsym(handle, in LoadNativeBridge()
234 native_bridge_handle = handle; in LoadNativeBridge()
237 dlclose(handle); in LoadNativeBridge()
241 dlclose(handle); in LoadNativeBridge()
517 void* NativeBridgeGetTrampoline(void* handle, const char* name, const char* shorty, in NativeBridgeGetTrampoline() argument
520 return callbacks->getTrampoline(handle, name, shorty, len); in NativeBridgeGetTrampoline()
550 int NativeBridgeUnloadLibrary(void* handle) { in NativeBridgeUnloadLibrary() argument
553 return callbacks->unloadLibrary(handle); in NativeBridgeUnloadLibrary()
/art/runtime/native/
Djava_lang_invoke_MethodHandleImpl.cc36 Handle<mirror::MethodHandleImpl> handle = hs.NewHandle( in MethodHandleImpl_getMemberInternal() local
41 const mirror::MethodHandle::Kind handle_kind = handle->GetHandleKind(); in MethodHandleImpl_getMemberInternal()
45 ArtField* const field = handle->GetTargetField(); in MethodHandleImpl_getMemberInternal()
49 ArtMethod* const method = handle->GetTargetMethod(); in MethodHandleImpl_getMemberInternal()
/art/libdexfile/external/
Ddex_file_supp.cc68 void* handle = dlopen(so_name, RTLD_NOLOAD | RTLD_NOW | RTLD_NODELETE); in FOR_ALL_DLFUNCS()
69 if (handle == nullptr) { in FOR_ALL_DLFUNCS()
71 handle = dlopen(so_name, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE); in FOR_ALL_DLFUNCS()
73 if (handle == nullptr) { in FOR_ALL_DLFUNCS()
79 decltype(DLFUNC)* DLFUNC##_ptr = reinterpret_cast<decltype(DLFUNC)*>(dlsym(handle, #DLFUNC)); \ in FOR_ALL_DLFUNCS()
/art/libartbase/base/
Dzip_archive.cc236 ZipArchiveHandle handle; in Open() local
237 const int32_t error = OpenArchive(filename, &handle); in Open()
240 CloseArchive(handle); in Open()
244 SetCloseOnExec(GetFileDescriptor(handle)); in Open()
245 return new ZipArchive(handle); in Open()
252 ZipArchiveHandle handle; in OpenFromFd() local
253 const int32_t error = OpenArchiveFd(fd, filename, &handle); in OpenFromFd()
256 CloseArchive(handle); in OpenFromFd()
260 SetCloseOnExec(GetFileDescriptor(handle)); in OpenFromFd()
261 return new ZipArchive(handle); in OpenFromFd()
Dzip_archive.h77 ZipEntry(ZipArchiveHandle handle, in ZipEntry() argument
80 : handle_(handle), zip_entry_(zip_entry), entry_name_(entry_name) {} in ZipEntry()
101 explicit ZipArchive(ZipArchiveHandle handle) : handle_(handle) {} in ZipArchive() argument
Dmem_map_windows.cc101 HANDLE handle = ::CreateFileMapping(reinterpret_cast<HANDLE>(_get_osfhandle(fd)), in TargetMMap() local
107 if (handle == nullptr) { in TargetMMap()
121 void* view_address = MapViewOfFile(handle, view_access, offset_high, offset_low, map_length); in TargetMMap()
125 ::CloseHandle(handle); in TargetMMap()
/art/libnativebridge/include/nativebridge/
Dnative_bridge.h79 void* NativeBridgeGetTrampoline(void* handle, const char* name, const char* shorty, uint32_t len);
111 int NativeBridgeUnloadLibrary(void* handle);
212 void* (*getTrampoline)(void* handle, const char* name, const char* shorty, uint32_t len);
270 int (*unloadLibrary)(void* handle);
/art/test/807-method-handle-and-mr/src/
DMain.java32 this.handle = MethodHandles.lookup().findVirtual(A.class, "binaryFunction", in Test()
68 long result = (long) handle.invoke(a, x, y); in run()
77 private MethodHandle handle; field in Test
/art/libartbase/base/unix_file/
Dfd_file.cc61 HANDLE handle() { return handle_; } in handle() function in unix_file::ScopedEvent
72 if (event.handle() == INVALID_HANDLE_VALUE) { in pread()
78 auto handle = reinterpret_cast<HANDLE>(_get_osfhandle(fd)); in pread() local
83 overlapped.hEvent = event.handle(); in pread()
84 if (!ReadFile(handle, data, static_cast<DWORD>(byte_count), &bytes_read, &overlapped)) { in pread()
90 !::GetOverlappedResult(handle, &overlapped, &bytes_read, TRUE)) { in pread()
101 if (event.handle() == INVALID_HANDLE_VALUE) { in pwrite()
107 auto handle = reinterpret_cast<HANDLE>(_get_osfhandle(fd)); in pwrite() local
112 overlapped.hEvent = event.handle(); in pwrite()
113 if (!::WriteFile(handle, buf, count, &bytes_written, &overlapped)) { in pwrite()
[all …]
/art/test/136-daemon-jni-shutdown/
Ddaemon_jni_shutdown.cc65 void* handle = dlopen(kIsDebugBuild ? "libarttestd.so" : "libarttest.so", RTLD_NOW); in Java_Main_destroyJavaVMAndExit() local
66 CHECK(handle != nullptr); in Java_Main_destroyJavaVMAndExit()
/art/tools/ahat/src/main/com/android/ahat/
DAhatHttpHandler.java38 public void handle(HttpExchange exchange) throws IOException { in handle() method in AhatHttpHandler
45 mAhatHandler.handle(doc, new Query(exchange.getRequestURI())); in handle()
DAhatHandler.java31 void handle(Doc doc, Query query) throws IOException; in handle() method
/art/tools/jvmti-agents/chain-agents/
Dchainagents.cc70 void* handle = dlopen(lib_and_args.first.c_str(), RTLD_LAZY); in Load() local
72 if (handle == nullptr) { in Load()
78 dlsym(handle, start == StartType::OnLoad ? kOnLoad : kOnAttach)); in Load()
90 AgentUnloadFunction auf = reinterpret_cast<AgentUnloadFunction>(dlsym(handle, kOnUnload)); in Load()
/art/libartpalette/apex/
Dpalette.cc79 void* handle = dlopen(kPaletteSystemLibrary, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE); in OpenLibrary() local
80 if (handle == nullptr) { in OpenLibrary()
84 return handle; in OpenLibrary()
/art/test/979-const-method-handle/
Dinfo.txt1 This test checks const-method-handle and const-method-type bytecodes.
/art/test/643-checker-bogus-ic/
Dinfo.txt1 Verify the compiler can handle a bogus inline cache in a profile.
/art/test/648-many-direct-methods/
Dinfo.txt1 Regression test checking that the runtime can handle a huge number of

1234