Home
last modified time | relevance | path

Searched refs:handle_ (Results 1 – 18 of 18) sorted by relevance

/aosp14/system/core/fastboot/
H A Dusb_osx.cpp81 std::unique_ptr<usb_handle> handle_; member in OsxUsbTransport
519 if (handle_ == nullptr) { in Read()
528 if (handle_->bulkIn == 0) { in Read()
535 ->ReadPipe(handle_->interface, handle_->bulkIn, data, &numBytes); in Read()
538 ->ReadPipeTO(handle_->interface, handle_->bulkIn, data, &numBytes, in Read()
558 if (handle_ == NULL) { in Write()
567 if (handle_->bulkOut == 0) { in Write()
574 handle_->interface, handle_->bulkOut, (void *)data, len); in Write()
589 ->WritePipe(handle_->interface, handle_->bulkOut, (void*)data, in Write()
593 ->WritePipeTO(handle_->interface, handle_->bulkOut, (void*)data, in Write()
[all …]
H A Dusb_linux.cpp109 std::unique_ptr<usb_handle> handle_; member in LinuxUsbTransport
410 if (handle_->ep_out == 0 || handle_->desc == -1) { in Write()
418 bulk.ep = handle_->ep_out; in Write()
423 n = ioctl(handle_->desc, USBDEVFS_BULK, &bulk); in Write()
445 if (handle_->ep_in == 0 || handle_->desc == -1) { in Read()
452 bulk.ep = handle_->ep_in; in Read()
459 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, handle_->desc, handle_->fname); in Read()
486 fd = handle_->desc; in Close()
487 handle_->desc = -1; in Close()
499 if ((ret = ioctl(handle_->desc, USBDEVFS_RESET, 0))) { in Reset()
[all …]
H A Dusb_windows.cpp71 WindowsUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in WindowsUsbTransport()
80 std::unique_ptr<usb_handle> handle_; member in WindowsUsbTransport
163 if (nullptr != handle_) { in Write()
167 ret = AdbWriteEndpointSync(handle_->adb_write_pipe, const_cast<void*>(data), xfer, in Write()
174 usb_kick(handle_.get()); in Write()
202 if (nullptr != handle_) { in Read()
206 ret = AdbReadEndpointSync(handle_->adb_read_pipe, data, xfer, &read, time_out); in Read()
212 usb_kick(handle_.get()); in Read()
263 if (nullptr != handle_) { in Close()
265 usb_cleanup_handle(handle_.get()); in Close()
[all …]
/aosp14/system/core/trusty/gatekeeper/
H A Dtrusty_gatekeeper_ipc.c33 static int handle_ = 0; variable
41 handle_ = rc; in trusty_gatekeeper_connect()
47 if (handle_ == 0) { in trusty_gatekeeper_call()
57 ssize_t rc = write(handle_, msg, msg_size); in trusty_gatekeeper_call()
66 rc = read(handle_, out, *out_size); in trusty_gatekeeper_call()
90 if (handle_ != 0) { in trusty_gatekeeper_disconnect()
91 tipc_close(handle_); in trusty_gatekeeper_disconnect()
/aosp14/frameworks/base/core/jni/
H A Dandroid_os_PerformanceHintManager.cpp61 void* handle_ = dlopen("libandroid.so", RTLD_NOW | RTLD_NODELETE); in ensureAPerformanceHintBindingInitialized() local
62 LOG_ALWAYS_FATAL_IF(handle_ == nullptr, "Failed to dlopen libandroid.so!"); in ensureAPerformanceHintBindingInitialized()
64 gAPH_getManagerFn = (APH_getManager)dlsym(handle_, "APerformanceHint_getManager"); in ensureAPerformanceHintBindingInitialized()
68 gAPH_createSessionFn = (APH_createSession)dlsym(handle_, "APerformanceHint_createSession"); in ensureAPerformanceHintBindingInitialized()
73 (APH_getPreferredUpdateRateNanos)dlsym(handle_, in ensureAPerformanceHintBindingInitialized()
80 (APH_updateTargetWorkDuration)dlsym(handle_, in ensureAPerformanceHintBindingInitialized()
87 (APH_reportActualWorkDuration)dlsym(handle_, in ensureAPerformanceHintBindingInitialized()
93 gAPH_closeSessionFn = (APH_closeSession)dlsym(handle_, "APerformanceHint_closeSession"); in ensureAPerformanceHintBindingInitialized()
97 gAPH_sendHintFn = (APH_sendHint)dlsym(handle_, "APerformanceHint_sendHint"); in ensureAPerformanceHintBindingInitialized()
102 gAPH_setThreadsFn = (APH_setThreads)dlsym(handle_, "APerformanceHint_setThreads"); in ensureAPerformanceHintBindingInitialized()
[all …]
H A Dcom_android_internal_content_om_OverlayManagerImpl.cpp90 handle_ = dlopen("libidmap2.so", RTLD_NOW); in DynamicLibraryLoader()
91 if (handle_ == nullptr) { in DynamicLibraryLoader()
97 reinterpret_cast<CreateIdmapFileFunc>(dlsym(handle_, "CreateIdmapFile")); in DynamicLibraryLoader()
103 dlsym(handle_, "GetFabricatedOverlayInfo")); in DynamicLibraryLoader()
108 createFrroFile_ = reinterpret_cast<CreateFrroFileFunc>(dlsym(handle_, "CreateFrroFile")); in DynamicLibraryLoader()
140 return handle_ != nullptr && createFrroFile_ != nullptr &&
149 if (handle_ != nullptr) { in ~DynamicLibraryLoader()
150 dlclose(handle_); in ~DynamicLibraryLoader()
174 void* handle_; member in android::self_targeting::DynamicLibraryLoader
/aosp14/system/core/fastboot/device/
H A Dusb_client.cpp243 : handle_(std::unique_ptr<usb_handle>(create_usb_handle(kFbFfsNumBufs, kFbFfsBufSize))) { in ClientUsbTransport()
244 if (!InitFunctionFs(handle_.get())) { in ClientUsbTransport()
245 handle_.reset(nullptr); in ClientUsbTransport()
250 if (handle_ == nullptr) { in Read()
263 handle_->read(handle_.get(), char_data, bytes_to_read, true /* allow_partial */); in Read()
278 if (handle_ == nullptr || len > SSIZE_MAX) { in Write()
285 auto bytes_written_now = handle_->write(handle_.get(), char_data, bytes_to_write); in Write()
299 if (handle_ == nullptr) { in Close()
302 CloseFunctionFs(handle_.get()); in Close()
H A Dusb_client.h35 std::unique_ptr<usb_handle> handle_;
H A Dcommands.cpp786 if (!OpenPartition(device_, partition_name_, &handle_, O_RDONLY)) { in Open()
792 partition_size_ = get_block_device_size(handle_.fd()); in Open()
852 if (lseek64(handle_.fd(), start_offset_, SEEK_SET) != static_cast<off64_t>(start_offset_)) { in Fetch()
874 if (!android::base::ReadFully(handle_.fd(), buf.data(), chunk_size)) { in Fetch()
903 PartitionHandle handle_; member in __anonfa08e2ac0110::PartitionFetcher
/aosp14/frameworks/base/libs/hwui/renderthread/
H A DRenderThread.cpp56 void* handle_ = dlopen("libandroid.so", RTLD_NOW | RTLD_NODELETE); in ASurfaceControlFunctions() local
57 createFunc = (ASC_create)dlsym(handle_, "ASurfaceControl_create"); in ASurfaceControlFunctions()
61 acquireFunc = (ASC_acquire) dlsym(handle_, "ASurfaceControl_acquire"); in ASurfaceControlFunctions()
65 releaseFunc = (ASC_release) dlsym(handle_, "ASurfaceControl_release"); in ASurfaceControlFunctions()
69 registerListenerFunc = (ASC_registerSurfaceStatsListener) dlsym(handle_, in ASurfaceControlFunctions()
74 unregisterListenerFunc = (ASC_unregisterSurfaceStatsListener) dlsym(handle_, in ASurfaceControlFunctions()
79 getAcquireTimeFunc = (ASCStats_getAcquireTime) dlsym(handle_, in ASurfaceControlFunctions()
84 getFrameNumberFunc = (ASCStats_getFrameNumber) dlsym(handle_, in ASurfaceControlFunctions()
89 transactionCreateFunc = (AST_create)dlsym(handle_, "ASurfaceTransaction_create"); in ASurfaceControlFunctions()
97 transactionApplyFunc = (AST_apply)dlsym(handle_, "ASurfaceTransaction_apply"); in ASurfaceControlFunctions()
[all …]
H A DHintSessionWrapper.cpp36 name = (decltype(name))dlsym(handle_, "APerformanceHint_" #name); \
42 void* handle_ = dlopen("libandroid.so", RTLD_NOW | RTLD_NODELETE); in init() local
43 LOG_ALWAYS_FATAL_IF(handle_ == nullptr, "Failed to dlopen libandroid.so!"); in init()
/aosp14/system/core/trusty/keymaster/ipc/
H A Dtrusty_keymaster_ipc.cpp41 static int handle_ = -1; variable
52 handle_ = rc; in trusty_keymaster_connect()
77 if (handle_ < 0) { in trusty_keymaster_call_2()
97 pfd.fd = handle_; in trusty_keymaster_call_2()
119 ssize_t rc = write(handle_, msg, msg_size); in trusty_keymaster_call_2()
166 pfd.fd = handle_; in trusty_keymaster_call_2()
187 rc = readv(handle_, iov, 2); in trusty_keymaster_call_2()
240 if (handle_ >= 0) { in trusty_keymaster_disconnect()
241 tipc_close(handle_); in trusty_keymaster_disconnect()
243 handle_ = -1; in trusty_keymaster_disconnect()
/aosp14/frameworks/base/tools/aapt2/io/
H A DZipArchive.cpp92 ZipFileCollection::ZipFileCollection() : handle_(nullptr) {} in ZipFileCollection()
102 int32_t result = OpenArchive(path.data(), &collection->handle_); in Create()
116 result = StartIteration(collection->handle_, &cookie); in Create()
133 std::unique_ptr<IFile> file = util::make_unique<ZipFile>(collection->handle_, zip_data, in Create()
167 if (handle_) { in ~ZipFileCollection()
168 CloseArchive(handle_); in ~ZipFileCollection()
H A DZipArchive.h77 ZipArchiveHandle handle_; variable
/aosp14/frameworks/base/libs/hwui/jni/
H A DHardwareBufferHelpers.cpp31 void* handle_ = dlopen("libandroid.so", RTLD_NOW | RTLD_NODELETE); in init() local
32 fromHardwareBuffer = (AHB_from_HB)dlsym(handle_, "AHardwareBuffer_fromHardwareBuffer"); in init()
36 toHardwareBuffer = (AHB_to_HB)dlsym(handle_, "AHardwareBuffer_toHardwareBuffer"); in init()
H A Dandroid_graphics_HardwareRenderer.cpp1083 void* handle_ = dlopen("libandroid.so", RTLD_NOW | RTLD_NODELETE); in register_android_view_ThreadedRenderer() local
1084 fromSurface = (ANW_fromSurface)dlsym(handle_, "ANativeWindow_fromSurface"); in register_android_view_ThreadedRenderer()
/aosp14/system/core/trusty/confirmationui/
H A DTrustyApp.h69 android::base::unique_fd handle_;
89 if (handle_ == kInvalidHandle) { in issueCmd()
121 if (handle_ == kInvalidHandle) { in issueCmd()
149 operator bool() const { return handle_ != kInvalidHandle; }
H A DTrustyApp.cpp65 int rc = tipc_send(handle_, iov, countof(iov), NULL, 0); in TrustyRpc()
71 rc = readv(handle_, iov, countof(iov)); in TrustyRpc()
94 : handle_(kInvalidHandle) { in TrustyApp()
154 handle_ = std::move(tipc_handle); in TrustyApp()