Home
last modified time | relevance | path

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

1234

/art/libnativeloader/
Dnative_loader.cpp224 void* handle = android_dlopen_ext(path, RTLD_NOW, &dlextinfo); in OpenNativeLibrary() local
225 if (handle == nullptr) { in OpenNativeLibrary()
228 return handle; in OpenNativeLibrary()
235 Result<void*> handle = TryLoadNativeloaderExtraLib(path); in OpenNativeLibrary() local
236 if (!handle.ok()) { in OpenNativeLibrary()
237 *error_msg = strdup(handle.error().message().c_str()); in OpenNativeLibrary()
240 if (handle.value() != nullptr) { in OpenNativeLibrary()
241 return handle.value(); in OpenNativeLibrary()
249 void* handle = OpenSystemLibrary(path, RTLD_NOW); in OpenNativeLibrary() local
250 if (handle == nullptr) { 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()
63 bool CloseNativeLibrary(void* handle, const bool needs_native_bridge, char** error_msg) { in CloseNativeLibrary() argument
65 return f(handle, needs_native_bridge, error_msg); in CloseNativeLibrary()
Dnative_loader_namespace.cpp167 void* handle = android_dlopen_ext(lib_name, RTLD_NOW, &extinfo); in Load() local
168 if (handle != nullptr) { in Load()
169 return handle; in Load()
172 void* handle = in Load() local
174 if (handle != nullptr) { in Load()
175 return handle; in Load()
/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()
67 void* NativeBridgeGetTrampoline(void* handle, const char* name, const char* shorty, uint32_t len) { in NativeBridgeGetTrampoline() argument
69 return f(handle, name, shorty, len); in NativeBridgeGetTrampoline()
Dnative_bridge.cc256 void* handle = OpenSystemLibrary(nb_library_filename, RTLD_LAZY); in LoadNativeBridge() local
258 if (handle != nullptr) { in LoadNativeBridge()
259 callbacks = reinterpret_cast<NativeBridgeCallbacks*>(dlsym(handle, in LoadNativeBridge()
264 native_bridge_handle = handle; in LoadNativeBridge()
269 dlclose(handle); in LoadNativeBridge()
272 dlclose(handle); in LoadNativeBridge()
570 void* NativeBridgeGetTrampoline(void* handle, const char* name, const char* shorty, in NativeBridgeGetTrampoline() argument
573 return callbacks->getTrampoline(handle, name, shorty, len); in NativeBridgeGetTrampoline()
603 int NativeBridgeUnloadLibrary(void* handle) { in NativeBridgeUnloadLibrary() argument
606 return callbacks->unloadLibrary(handle); in NativeBridgeUnloadLibrary()
/art/libdexfile/external/
Ddex_file_supp.cc63 void* handle = dlopen(so_name, RTLD_NOLOAD | RTLD_NOW | RTLD_NODELETE); in FOR_EACH_ADEX_FILE_SYMBOL()
64 if (handle == nullptr) { in FOR_EACH_ADEX_FILE_SYMBOL()
66 handle = dlopen(so_name, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE); in FOR_EACH_ADEX_FILE_SYMBOL()
68 if (handle == nullptr) { in FOR_EACH_ADEX_FILE_SYMBOL()
74 auto DLFUNC##_ptr = reinterpret_cast<decltype(DLFUNC)*>(dlsym(handle, #DLFUNC)); \ in FOR_EACH_ADEX_FILE_SYMBOL()
/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;
121 explicit Handle(const Handle<S>& handle) in Handle() argument
122 : reference_(handle.reference_) { in Handle()
142 ALWAYS_INLINE MutableHandle(const MutableHandle<T>& handle)
145 ALWAYS_INLINE MutableHandle<T>& operator=(const MutableHandle<T>& handle)
169 explicit MutableHandle(const MutableHandle<S>& handle) REQUIRES_SHARED(Locks::mutator_lock_) in MutableHandle() argument
170 : Handle<T>(handle) { in MutableHandle()
Dplugin.cc65 void* handle = dlopen_handle_; in Unload() local
67 dlsym(handle, PLUGIN_DEINITIALIZATION_FUNCTION_NAME)); in Unload()
/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/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/libnativebridge/include/nativebridge/
Dnative_bridge.h84 void* NativeBridgeGetTrampoline(void* handle, const char* name, const char* shorty, uint32_t len);
116 int NativeBridgeUnloadLibrary(void* handle);
217 void* (*getTrampoline)(void* handle, const char* name, const char* shorty, uint32_t len);
275 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/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/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/libdexfile/dex/
Ddex_file_loader.cc94 DexZipEntry(ZipArchiveHandle handle, in DexZipEntry() argument
97 : handle_(handle), zip_entry_(zip_entry), entry_name_(entry_name) {} in DexZipEntry()
111 ZipArchiveHandle handle; in Open() local
113 const int32_t error = OpenArchiveFromMemory(nonconst_base, size, "ZipArchiveMemory", &handle); in Open()
116 CloseArchive(handle); in Open()
119 return new DexZipArchive(handle); in Open()
140 explicit DexZipArchive(ZipArchiveHandle handle) : handle_(handle) {} in DexZipArchive() argument
/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/812-recursive-default/
Dinfo.txt1 Test that the compiler can handle recursive calls in a

1234