Home
last modified time | relevance | path

Searched refs:handle_ (Results 1 - 25 of 135) sorted by relevance

123456

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_single_ver_forward_cursor.cpp25 handle_(nullptr), in SQLiteSingleVerForwardCursor()
35 handle_(nullptr), in SQLiteSingleVerForwardCursor()
45 handle_ = nullptr; in ~SQLiteSingleVerForwardCursor()
56 handle_ = kvDB_->GetHandle(false, errCode); in Open()
57 if (handle_ == nullptr) { in Open()
63 errCode = handle_->OpenResultSet(queryObj_, count_); in Open()
65 errCode = handle_->OpenResultSet(keyPrefix_, count_); in Open()
69 handle_->CloseResultSet(); in Open()
70 kvDB_->ReleaseHandle(handle_); in Open()
74 handle_ in Open()
[all...]
/foundation/multimodalinput/input/service/module_loader/src/
H A Dinput_screen_capture_agent.cpp40 if (handle_.handle != nullptr) { in ~InputScreenCaptureAgent()
41 handle_.Free(); in ~InputScreenCaptureAgent()
48 if (handle_.handle != nullptr) { in LoadLibrary()
57 handle_.handle = dlopen(libRealPath, RTLD_LAZY); in LoadLibrary()
58 if (handle_.handle == nullptr) { in LoadLibrary()
62 handle_.isWorking = reinterpret_cast<int32_t (*)()>(dlsym(handle_.handle, "IsScreenCaptureWorking")); in LoadLibrary()
63 if (handle_.isWorking == nullptr) { in LoadLibrary()
65 handle_.Free(); in LoadLibrary()
68 handle_ in LoadLibrary()
[all...]
/foundation/graphic/graphic_surface/surface/src/
H A Dsurface_buffer_impl.cpp147 auto dRet = displayBuffer->AllocMem(info, handle_); in Alloc()
148 if (dRet == GRAPHIC_DISPLAY_SUCCESS && handle_ != nullptr) { in Alloc()
149 dRet = displayBuffer->RegisterBuffer(*handle_); in Alloc()
160 handle_->width, handle_->height, config.transform, sequenceNumber_); in Alloc()
174 if (handle_ == nullptr) { in Map()
176 } else if (handle_->virAddr != nullptr) { in Map()
177 BLOGD("handle_->virAddr has been maped, seq: %{public}u", sequenceNumber_); in Map()
180 if (handle_->usage & BUFFER_USAGE_PROTECTED) { in Map()
185 void* virAddr = displayBuffer->Mmap(*handle_); in Map()
[all...]
/foundation/ai/ai_engine/services/server/plugin_manager/source/
H A Dplugin.cpp32 HandleGuard(const std::string &aid, void *handle) : aid_(aid), handle_(handle) in HandleGuard()
38 handle_ = nullptr; in Detach()
43 CHK_RET_NONE(handle_ == nullptr); in ~HandleGuard()
44 AieDlclose(handle_); in ~HandleGuard()
45 handle_ = nullptr; in ~HandleGuard()
50 void *handle_ = nullptr; member in OHOS::AI::HandleGuard
54 : pluginAlgorithm_(nullptr), aid_(aid), version_(version), handle_(nullptr) in Plugin()
106 handle_ = handle; in LoadPluginAlgorithm()
114 if (handle_) { in UnloadPluginAlgorithm()
115 AieDlclose(handle_); in UnloadPluginAlgorithm()
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/property/
H A Dscoped_handle.h39 explicit ScopedHandle(IPropertyHandle* handle) : handle_(handle) in ScopedHandle()
55 handle_ = handle; in ScopedHandle()
56 data_ = static_cast<Type*>(handle_->RLock()); in ScopedHandle()
62 : handle_(BASE_NS::exchange(other.handle_, nullptr)), data_(BASE_NS::exchange(other.data_, nullptr)) in ScopedHandle()
68 if (handle_) {
70 handle_->RUnlock(); in onstexpr()
72 handle_->WUnlock();
75 handle_ = BASE_NS::exchange(other.handle_, nullpt
[all...]
/foundation/communication/bluetooth/frameworks/inner/ipc/common/
H A Dgatt_data.h32 Descriptor() : handle_(0), permissions_(0), value_(nullptr), length_(0), uuid_() {} in Descriptor()
35 : handle_(0), permissions_(permissions), value_(nullptr), length_(0), uuid_(uuid) in Descriptor()
40 : handle_(handle), permissions_(permissions), value_(nullptr), length_(0), uuid_(uuid) in Descriptor()
49 : handle_(src.handle_), permissions_(src.permissions_), value_(std::move(src.value_)), length_(src.length_), in Descriptor()
56 explicit Descriptor(uint16_t handle) : handle_(handle), permissions_(0), value_(nullptr), length_(0), uuid_() {} in Descriptor()
65 uint16_t handle_; member
74 : handle_(0), endHandle_(0), valueHandle_(0), properties_(0), in Characteristic()
78 : handle_(handle), endHandle_(0), valueHandle_(handle + 1), properties_(properties), permissions_(0), in Characteristic()
91 : handle_(handl in Characteristic()
116 uint16_t handle_; global() member
158 uint16_t handle_; global() member
[all...]
/foundation/arkui/ace_engine/interfaces/inner_api/ace/
H A Dui_event_func.cpp28 handle_ = LOADLIB(AceForwardCompatibility::GetAceLibName()); in UIEventFunc()
29 if (handle_ == nullptr) { in UIEventFunc()
33 registerFunc_ = reinterpret_cast<RegisterUIEventObserverFunc>(LOADSYM(handle_, REGISTER_UI_EVENT_OBSERVER_FUNC)); in UIEventFunc()
35 reinterpret_cast<UnregisterUIEventObserverFunc>(LOADSYM(handle_, UNREGISTER_UI_EVENT_OBSERVER_FUNC)); in UIEventFunc()
36 getPropFunc_ = reinterpret_cast<GetNodePropertyFunc>(LOADSYM(handle_, GET_NODE_PROPERTY_FUNC)); in UIEventFunc()
38 reinterpret_cast<GetSimplifiedInspectorTreeFunc>(LOADSYM(handle_, GET_SIMPLIFIED_INSPECTOR_TREE_FUNC)); in UIEventFunc()
40 FREELIB(handle_); in UIEventFunc()
47 if (handle_) { in ~UIEventFunc()
48 FREELIB(handle_); in ~UIEventFunc()
70 handle_ in ResetFunc()
[all...]
/foundation/communication/nfc/services/src/nci_adapter/
H A Dnci_native_selector.cpp91 if (libPath_.empty() || handle_) { in LoadLib()
94 handle_ = dlopen(libPath_.c_str(), RTLD_LAZY | RTLD_LOCAL); in LoadLib()
95 if (!handle_) { in LoadLib()
105 if (handle_) { in CloseLib()
106 if (dlclose(handle_) != 0) { in CloseLib()
107 handle_ = nullptr; in CloseLib()
111 handle_ = nullptr; in CloseLib()
119 if (!handle_) { in NewInstance()
126 auto newInterface = reinterpret_cast<NewFuncType>(dlsym(handle_, newInterfaceSymbol_.c_str())); in NewInstance()
127 auto deleteInterface = reinterpret_cast<DeleteFuncType>(dlsym(handle_, deleteInterfaceSymbol in NewInstance()
[all...]
/foundation/multimedia/av_session/services/session/server/remote/
H A Dremote_session_sink_proxy.cpp34 handle_ = dlopen("libremote_session_sink.z.so", RTLD_NOW); in LoadSinkImplement()
35 if (handle_ == nullptr) { in LoadSinkImplement()
42 auto createRemoteSessionSinkImpl = (SinkImpl)(dlsym(handle_, "CreateRemoteSessionSinkImpl")); in LoadSinkImplement()
44 if (handle_ != nullptr) { in LoadSinkImplement()
46 if (handle_ != nullptr) { in LoadSinkImplement()
49 dlclose(handle_); in LoadSinkImplement()
64 auto destroyRemoteSessionSinkImpl = (SinkImpl)(dlsym(handle_, "DestroyRemoteSessionSinkImpl")); in UnLoadSinkImplement()
66 if (handle_ != nullptr) { in UnLoadSinkImplement()
68 if (handle_ != nullptr) { in UnLoadSinkImplement()
71 dlclose(handle_); in UnLoadSinkImplement()
[all...]
H A Dremote_session_source_proxy.cpp34 handle_ = dlopen("libremote_session_source.z.so", RTLD_NOW); in LoadSourceImplement()
35 if (handle_ == nullptr) { in LoadSourceImplement()
42 auto createRemoteSessionSourceImpl = (SourceImpl)(dlsym(handle_, "CreateRemoteSessionSourceImpl")); in LoadSourceImplement()
44 if (handle_ != nullptr) { in LoadSourceImplement()
46 if (handle_ != nullptr) { in LoadSourceImplement()
49 dlclose(handle_); in LoadSourceImplement()
64 auto destroyRemoteSessionSourceImpl = (SourceImpl)(dlsym(handle_, "DestroyRemoteSessionSourceImpl")); in UnLoadSourceImplement()
66 if (handle_ != nullptr) { in UnLoadSourceImplement()
68 if (handle_ != nullptr) { in UnLoadSourceImplement()
71 dlclose(handle_); in UnLoadSourceImplement()
[all...]
/foundation/multimedia/av_session/services/session/adapter/
H A Dplugin_lib.cpp28 : libName_(GetRealPath(libName)), handle_(nullptr) in PluginLib()
34 handle_ = dlopen(libName_.c_str(), RTLD_NOW); in PluginLib()
35 if (handle_ == nullptr) { in PluginLib()
45 if (handle_ != nullptr) { in ~PluginLib()
48 if (handle_ == nullptr || dlclose(handle_) != 0) { in ~PluginLib()
57 if (handle_ == nullptr) { in LoadSymbol()
61 void *sym = dlsym(handle_, symbolName.c_str()); in LoadSymbol()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_adapter_impl.cpp139 UINodeAdapter::UINodeAdapter(ArkUINodeAdapterHandle handle) : handle_(handle) in UINodeAdapter()
141 CHECK_NULL_VOID(handle_); in UINodeAdapter()
142 CHECK_NULL_VOID(handle_->builder); in UINodeAdapter()
143 handle_->builder->SetUserData(this); in UINodeAdapter()
144 handle_->builder->SetReceiver([](ArkUINodeAdapterEvent* event) { in UINodeAdapter()
151 handle_->builder->SetNeedUpdateEvent(true); in UINodeAdapter()
156 if (handle_ != nullptr) { in ~UINodeAdapter()
157 delete handle_; in ~UINodeAdapter()
158 handle_ = nullptr; in ~UINodeAdapter()
206 CHECK_NULL_VOID(handle_); in SetTotalNodeCount()
[all...]
/foundation/arkui/ace_engine/interfaces/inner_api/ace/uicast/
H A Duicast_subscriber.cpp87 if (handle_ == nullptr) { in UICastProxyStart()
88 handle_ = dlopen("libace_uicast_proxy.z.so", RTLD_LAZY); in UICastProxyStart()
89 if (handle_ == nullptr) { in UICastProxyStart()
96 auto entry = reinterpret_cast<UICastProxyStartFunc>(dlsym(handle_, UICAST_PROXY_START_FUNC)); in UICastProxyStart()
99 dlclose(handle_); in UICastProxyStart()
100 handle_ = nullptr; in UICastProxyStart()
110 if (handle_ != nullptr) { in UICastProxyStop()
112 dlclose(handle_); in UICastProxyStop()
113 handle_ = nullptr; in UICastProxyStop()
120 if (handle_ in UICastProxyUpdateContext()
[all...]
/foundation/multimedia/audio_framework/services/audio_service/common/src/
H A Daudio_down_mix_stereo.cpp34 AudioDownMixStereo::AudioDownMixStereo() : handle_(nullptr), mixer_(nullptr) in AudioDownMixStereo()
40 handle_ = ::dlopen(DOWN_MIXER_FILE_NAME, RTLD_NOW); in AudioDownMixStereo()
41 if (!handle_) { in AudioDownMixStereo()
46 reinterpret_cast<AudioMcrMixerClassCreateFunc *>(dlsym(handle_, DOWN_MIX_FUNC_NAME)); in AudioDownMixStereo()
59 if (handle_) { in ~AudioDownMixStereo()
61 dlclose(handle_); in ~AudioDownMixStereo()
63 handle_ = nullptr; in ~AudioDownMixStereo()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/
H A Dgatt_cache.h32 uint16_t handle_ = 0; member
38 : handle_(src.handle_), startHandle_(src.startHandle_), endHandle_(src.endHandle_), uuid_(src.uuid_) in IncludeService()
41 : handle_(handle), startHandle_(startHandle), endHandle_(endHandle), uuid_(uuid) in IncludeService()
44 : handle_(handle), startHandle_(startHandle), endHandle_(endHandle) in IncludeService()
51 uint16_t handle_ = 0; member
54 Descriptor(uint16_t handle, const Uuid uuid) : handle_(handle), uuid_(uuid) in Descriptor()
60 uint16_t handle_ = 0; member
66 : properties_(properties), handle_(handle), valueHandle_(valueHandle), uuid_(uuid) in Characteristic()
72 uint16_t handle_ member
112 uint16_t handle_; global() member
122 uint16_t handle_; global() member
[all...]
H A Dgatt_database.cpp42 service.handle_ = currentHandle++; in AddService()
49 includeService.handle_ = currentHandle++; in AddService()
54 ccc.handle_ = currentHandle++; in AddService()
62 valueHandleMap_.emplace(ccc.valueHandle_, std::make_pair(service.handle_, ccc.handle_)); in AddService()
65 descriptor.handle_ = currentHandle++; in AddService()
68 AttributeEntity descAttributeValue(descriptor.permissions_, descriptor.handle_, descriptor.uuid_); in AddService()
71 attributes_.emplace(descriptor.handle_, std::move(descAttributeValue)); in AddService()
72 valueHandleMap_.emplace(descriptor.handle_, std::make_pair(service.handle_, cc in AddService()
[all...]
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/
H A Dresource_handle.h179 RenderHandle handle_ {};
185 : handle_(handle), counter_(counter) in counter_()
189 : handle_(other.handle_), counter_(other.counter_) in counter_()
195 handle_ = other.handle_;
202 : handle_(BASE_NS::exchange(other.handle_, {})), counter_(BASE_NS::exchange(other.counter_, nullptr)) in exchange()
208 handle_ = BASE_NS::exchange(other.handle_, {});
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_colorspace_convert.cpp33 handle_ = dlopen("libvideoprocessingengine.z.so", RTLD_LAZY); in RSColorSpaceConvert()
34 if (handle_ == nullptr) { in RSColorSpaceConvert()
39 dlsym(handle_, "ColorSpaceConvertDisplayCreate")); in RSColorSpaceConvert()
42 if (dlclose(handle_) != 0) { in RSColorSpaceConvert()
45 handle_ = nullptr; in RSColorSpaceConvert()
49 dlsym(handle_, "ColorSpaceConvertDisplayDestroy")); in RSColorSpaceConvert()
52 if (dlclose(handle_) != 0) { in RSColorSpaceConvert()
55 handle_ = nullptr; in RSColorSpaceConvert()
61 if (dlclose(handle_) != 0) { in RSColorSpaceConvert()
64 handle_ in RSColorSpaceConvert()
[all...]
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/task_manager/task_group/
H A Dbase_task_group.cpp27 handle_(INVALID_TASK_GROUP_HANDLE), in BaseTaskGroup()
36 DP_DEBUG_LOG("task group name: %s, handle: %{public}d", name_.c_str(), static_cast<int>(handle_)); in ~BaseTaskGroup()
43 handle_ = GenerateHandle(); in Initialize()
45 DP_DEBUG_LOG("task group (%s), handle: %{public}d", name_.c_str(), static_cast<int>(handle_)); in Initialize()
55 return handle_; in GetHandle()
62 DP_WARNING_LOG("Submit task (%s), handle: %{public}d, que is full!", name_.c_str(), static_cast<int>(handle_)); in SubmitTask()
65 static_cast<int>(handle_), que_.Size()); in SubmitTask()
75 DP_DEBUG_LOG("Cancel all tasks for task group (%s), handle: %{public}d", name_.c_str(), static_cast<int>(handle_)); in CancelAllTasks()
96 DP_DEBUG_LOG("return one task %s, handle:%{public}d, size: %zu.", name_.c_str(), static_cast<int>(handle_), in GetTaskUnlocked()
122 DP_DEBUG_LOG("all tasks have completed for %s handle:%{public}d.", name_.c_str(), static_cast<int>(handle_)); in DispatchTaskUnlocked()
[all...]
/foundation/resourceschedule/ffrt/src/util/
H A Devent_handler_adapter.h100 if (handle_ != nullptr) { in Load()
104 handle_ = dlopen(EVENTHANDLER_LIB_PATH, RTLD_NOW | RTLD_LOCAL); in Load()
105 if (handle_ == nullptr) { in Load()
111 dlsym(handle_, "GetMainEventHandlerForFFRT")); in Load()
118 dlsym(handle_, "GetCurrentEventHandlerForFFRT")); in Load()
125 dlsym(handle_, "PostTaskByFFRT")); in Load()
132 dlsym(handle_, "RemoveTaskForFFRT")); in Load()
139 dlsym(handle_, "AddFdListenerByFFRT")); in Load()
146 dlsym(handle_, "RemoveFdListenerByFFRT")); in Load()
153 void* handle_ member in ffrt::EventHandlerAdapter
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/
H A Drd_single_ver_result_set.cpp39 handle_ = nullptr; in ~RdSingleVerResultSet()
58 handle_ = kvDB_->GetHandle(false, errCode); in Open()
59 if (handle_ == nullptr) { in Open()
65 errCode = handle_->OpenResultSet(key_, kvScanMode_, &resultSet_); in Open()
69 errCode = handle_->OpenResultSet(beginKey_, endKey_, &resultSet_); in Open()
77 kvDB_->ReleaseHandle(handle_); in Open()
92 errCode = handle_->CloseResultSet(resultSet_); in Close()
95 kvDB_->ReleaseHandle(handle_); in Close()
98 kvDB_->ReleaseHandle(handle_); in Close()
115 if (handle_ in PreCheckResultSet()
[all...]
/foundation/communication/ipc/ipc/native/src/core/source/
H A Dipc_object_proxy.cpp66 : IRemoteObject(std::move(descriptor)), handle_(handle), proto_(proto), isFinishInit_(false), isRemoteDead_(false) in IPCObjectProxy()
68 ZLOGD(LABEL, "handle:%{public}u desc:%{public}s %{public}u", handle_, in IPCObjectProxy()
85 ZLOGD(LABEL, "handle:%{public}u desc:%{public}s %{public}u", handle_, in ~IPCObjectProxy()
93 ZLOGI(LABEL, "handle:%{public}u desc:%{public}s %{public}u", handle_, in ~IPCObjectProxy()
121 PRINT_SEND_REQUEST_FAIL_INFO(handle_, err, in GetObjectRefCount()
160 PRINT_SEND_REQUEST_FAIL_INFO(handle_, err, ProcessSkeleton::ConvertToSecureDesc(desc), in SendRequest()
185 handle_, ProcessSkeleton::ConvertToSecureDesc(Str16ToStr8(remoteDescriptor_)).c_str()); in SendRequestInner()
196 ZLOGE(LABEL, "invoker is null, handle:%{public}u proto:%{public}d", handle_, proto_); in SendRequestInner()
201 int status = invoker->SendRequest(handle_, code, data, reply, option); in SendRequestInner()
214 if (handle_ in GetInterfaceDescriptor()
[all...]
/foundation/communication/bluetooth_service/test/unittest/gatt/
H A Dgatt_characteristic_test.cpp44 uint16_t handle_ = 1; member in OHOS::Bluetooth::GattCharacteristicTest
70 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_); in HWTEST_F()
91 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_); in HWTEST_F()
104 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_); in HWTEST_F()
123 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_); in HWTEST_F()
125 EXPECT_EQ(handle_, tempHandle); in HWTEST_F()
136 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_); in HWTEST_F()
149 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_); in HWTEST_F()
162 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_); in HWTEST_F()
178 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions in HWTEST_F()
[all...]
H A Dgatt_service_test.cpp73 uint16_t handle_ = 0b0000000000010000; in HWTEST_F() local
75 uint16_t result = GattService(uuid_, handle_, endHandle_, serviceType_).GetHandle(); in HWTEST_F()
89 uint16_t handle_ = 0b0000000000010000; in HWTEST_F() local
91 const UUID result = GattService(uuid_, handle_, endHandle_, serviceType_).GetUuid(); in HWTEST_F()
111 uint16_t handle_ = 0b0000000000010000; in HWTEST_F() local
117 GattService service = GattService(uuid_, handle_, endHandle_, serviceType_); in HWTEST_F()
137 uint16_t handle_ = 0b0000000000010000; in HWTEST_F() local
143 GattService service = GattService(uuid_, handle_, endHandle_, serviceType_); in HWTEST_F()
163 uint16_t handle_ = 0b0000000000010000; in HWTEST_F() local
171 GattService addcharacter = GattService(uuid_, handle_, endHandle in HWTEST_F()
195 uint16_t handle_ = 0b0000000000010000; HWTEST_F() local
219 uint16_t handle_ = 0b0000000000010000; HWTEST_F() local
[all...]
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_gatt_service.cpp32 : handle_(0), endHandle_(0), serviceType_(type), includeServices_(), characteristics_(), uuid_(uuid) in GattService()
36 : handle_(handle), endHandle_(endHandle), serviceType_(type), includeServices_(), characteristics_(), uuid_(uuid) in GattService()
40 : handle_(src.handle_), in GattService()
54 : handle_(src.handle_), in GattService()
94 return handle_; in GetHandle()

Completed in 13 milliseconds

123456