Home
last modified time | relevance | path

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

12345678

/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Dnative_buffer.cpp43 handle_ = CloneNativeBufferHandle(other.handle_); in NativeBuffer()
48 handle_ = other.handle_; in NativeBuffer()
51 other.handle_ = nullptr; in NativeBuffer()
58 handle_ = CloneNativeBufferHandle(other.handle_); in operator =()
68 handle_ = other.handle_; in operator =()
136 handle_ = nullptr; in Move()
144 handle_ = handle; in SetBufferHandle()
156 handle_ = nullptr; in DestroyBuffer()
162 return handle_; in GetBufferHandle()
184 if (UINT32_MAX - handle_->reserveFds >= handle_->reserveInts) { in Dump()
[all …]
/ohos5.0/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()
57 if (handle_ == nullptr) { in Open()
69 handle_->CloseResultSet(); in Open()
74 handle_->CloseResultSet(); in Open()
75 kvDB_->ReleaseHandle(handle_); in Open()
88 if (handle_ != nullptr) { in Close()
89 handle_->CloseResultSet(); in Close()
112 handle_->CloseResultSet(); in Reload()
[all …]
/ohos5.0/foundation/graphic/graphic_surface/surface/src/
H A Dsurface_buffer_impl.cpp144 handle_->width, handle_->height, config.transform, sequenceNumber_); in Alloc()
257 if (handle_) { in FreeBufferHandleLocked()
275 handle_ = nullptr; in FreeBufferHandleLocked()
283 return handle_; in GetBufferHandle()
344 return handle_->width; in GetWidth()
353 return handle_->height; in GetHeight()
362 return handle_->stride; in GetStride()
380 return handle_->usage; in GetUsage()
411 return handle_->fd; in GetFileDescriptor()
420 return handle_->size; in GetSize()
[all …]
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dndk-listen-to-component-events.md63 assert(handle_);
69 assert(handle_);
75 assert(handle_);
81 assert(handle_);
87 assert(handle_);
94 assert(handle_);
101 assert(handle_);
108 assert(handle_);
115 assert(handle_);
215 assert(handle_);
[all …]
H A Dndk-access-the-arkts-page.md221 handle_ = handle;
430 assert(handle_);
436 assert(handle_);
442 assert(handle_);
448 assert(handle_);
454 assert(handle_);
497 assert(handle_);
552 assert(handle_);
558 assert(handle_);
564 assert(handle_);
[all …]
/ohos5.0/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();
72 handle_->WUnlock();
75 handle_ = BASE_NS::exchange(other.handle_, nullptr);
83 if (handle_) { in ~ScopedHandle()
85 handle_->RUnlock(); in ~ScopedHandle()
[all …]
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/source/
H A Dipc_object_proxy.cpp124 PRINT_SEND_REQUEST_FAIL_INFO(handle_, err, in GetObjectRefCount()
221 if (handle_ == 0) { in GetInterfaceDescriptor()
257 PRINT_SEND_REQUEST_FAIL_INFO(handle_, err, in GetSessionName()
273 PRINT_SEND_REQUEST_FAIL_INFO(handle_, err, in GetGrantedSessionName()
303 PRINT_SEND_REQUEST_FAIL_INFO(handle_, err, in GetSessionNameForPidUid()
328 PRINT_SEND_REQUEST_FAIL_INFO(handle_, err, in RemoveSessionName()
348 invoker->AcquireHandle(handle_); in OnFirstStrongRef()
429 invoker->ReleaseHandle(handle_); in OnLastStrongRef()
738 err, handle_, curTime); in GetProtoInfo()
992 if (handle_ == 0) { in ReleaseDatabusProto()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_adapter_impl.cpp153 CHECK_NULL_VOID(handle_); in UINodeAdapter()
168 if (handle_ != nullptr) { in ~UINodeAdapter()
169 delete handle_; in ~UINodeAdapter()
170 handle_ = nullptr; in ~UINodeAdapter()
218 CHECK_NULL_VOID(handle_); in SetTotalNodeCount()
225 CHECK_NULL_RETURN(handle_, 0); in GetTotalNodeCount()
232 CHECK_NULL_VOID(handle_); in NotifyItemReloaded()
239 CHECK_NULL_VOID(handle_); in NotifyItemChanged()
246 CHECK_NULL_VOID(handle_); in NotifyItemInserted()
253 CHECK_NULL_VOID(handle_); in NotifyItemMoved()
[all …]
/ohos5.0/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… in Descriptor()
65 uint16_t handle_; member
74 : handle_(0), endHandle_(0), valueHandle_(0), properties_(0), in Characteristic()
91 : handle_(handle), endHandle_(0), valueHandle_(handle + 1), properties_(0), permissions_(0), in Characteristic()
95 …: handle_(handle), endHandle_(endHandle), valueHandle_(handle + 1), properties_(0), permissions_(0… in Characteristic()
105 : handle_(src.handle_), endHandle_(src.endHandle_), valueHandle_(src.handle_ + 1), in Characteristic()
116 uint16_t handle_; member
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/
H A Dgatt_cache.cpp26 auto it = services_.emplace(service.handle_, service); in AddService()
72 …valueHandleMap_.emplace(descriptor.handle_, std::make_pair(sIt.second.handle_, cIt->second.handle_ in AddDescriptor()
177 svcBlob.handle_ = svc.second.handle_; in StoredToFile()
186 isvcBlob.handle_ = isvc.handle_; in StoredToFile()
196 cccBlob.handle_ = ccc.second.handle_; in StoredToFile()
205 descBlob.handle_ = desc.second.handle_; in StoredToFile()
226 item.handle_, in LoadFromFile()
229 currentSvcHandle = item.handle_; in LoadFromFile()
232 GattCache::IncludeService(item.handle_, in LoadFromFile()
238 GattCache::Characteristic(item.handle_, in LoadFromFile()
[all …]
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
72 uint16_t handle_ = 0; member
82 : isPrimary_(isPrimary), handle_(handle), endHandle_(endHandle), uuid_(uuid) in Service()
112 uint16_t handle_; 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()
72 … valueHandleMap_.emplace(descriptor.handle_, std::make_pair(service.handle_, ccc.handle_)); in AddService()
80 services_.emplace(dbService.handle_, std::move(dbService)); in AddService()
100 attributes_.erase(descriptor.second.handle_); in DeleteService()
101 valueHandleMap_.erase(descriptor.second.handle_); in DeleteService()
154 if (service.handle_ == currentNode->second + 1) { in ReleaseHandle()
[all …]
/ohos5.0/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 …]
/ohos5.0/foundation/arkui/ace_engine/interfaces/inner_api/ace/
H A Dui_event_func.cpp29 handle_ = LOADLIB(AceForwardCompatibility::GetAceLibName()); in UIEventFunc()
30 if (handle_ == nullptr) { in UIEventFunc()
34 …registerFunc_ = reinterpret_cast<RegisterUIEventObserverFunc>(LOADSYM(handle_, REGISTER_UI_EVENT_O… in UIEventFunc()
36 …reinterpret_cast<UnregisterUIEventObserverFunc>(LOADSYM(handle_, UNREGISTER_UI_EVENT_OBSERVER_FUNC… in UIEventFunc()
37 getPropFunc_ = reinterpret_cast<GetNodePropertyFunc>(LOADSYM(handle_, GET_NODE_PROPERTY_FUNC)); in UIEventFunc()
39 …reinterpret_cast<GetSimplifiedInspectorTreeFunc>(LOADSYM(handle_, GET_SIMPLIFIED_INSPECTOR_TREE_FU… in UIEventFunc()
41 FREELIB(handle_); in UIEventFunc()
48 if (handle_) { in ~UIEventFunc()
49 FREELIB(handle_); in ~UIEventFunc()
71 handle_ = nullptr; in ResetFunc()
/ohos5.0/foundation/arkui/ace_engine/interfaces/inner_api/ace/uicast/
H A Duicast_subscriber.cpp89 if (handle_ == nullptr) { in UICastProxyStart()
90 handle_ = dlopen("libace_uicast_proxy.z.so", RTLD_LAZY); in UICastProxyStart()
91 if (handle_ == nullptr) { in UICastProxyStart()
98 auto entry = reinterpret_cast<UICastProxyStartFunc>(dlsym(handle_, UICAST_PROXY_START_FUNC)); in UICastProxyStart()
101 dlclose(handle_); in UICastProxyStart()
102 handle_ = nullptr; in UICastProxyStart()
112 if (handle_ != nullptr) { in UICastProxyStop()
114 dlclose(handle_); in UICastProxyStop()
115 handle_ = nullptr; in UICastProxyStop()
122 if (handle_ == nullptr) { in UICastProxyUpdateContext()
[all …]
/ohos5.0/docs/en/application-dev/ui/
H A Dndk-listen-to-component-events.md63 assert(handle_);
69 assert(handle_);
75 assert(handle_);
81 assert(handle_);
87 assert(handle_);
94 assert(handle_);
101 assert(handle_);
108 assert(handle_);
115 assert(handle_);
215 assert(handle_);
[all …]
/ohos5.0/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_.c_st… in NewInstance()
/ohos5.0/foundation/multimedia/av_session/services/session/server/remote/
H A Dremote_session_sink_proxy.cpp33 handle_ = dlopen("libremote_session_sink.z.so", RTLD_NOW); in LoadSinkImplement()
34 if (handle_ == nullptr) { in LoadSinkImplement()
41 auto createRemoteSessionSinkImpl = (SinkImpl)(dlsym(handle_, "CreateRemoteSessionSinkImpl")); in LoadSinkImplement()
43 if (handle_ != nullptr) { in LoadSinkImplement()
45 dlclose(handle_); in LoadSinkImplement()
60 auto destroyRemoteSessionSinkImpl = (SinkImpl)(dlsym(handle_, "DestroyRemoteSessionSinkImpl")); in UnLoadSinkImplement()
62 if (handle_ != nullptr) { in UnLoadSinkImplement()
64 dlclose(handle_); in UnLoadSinkImplement()
73 if (handle_ != nullptr) { in UnLoadSinkImplement()
75 dlclose(handle_); in UnLoadSinkImplement()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/
H A Dresource_handle.h179 RenderHandle handle_ {};
185 : handle_(handle), counter_(counter) in RenderHandleReference()
189 : handle_(other.handle_), counter_(other.counter_) in RenderHandleReference()
195 handle_ = other.handle_;
202 …: handle_(BASE_NS::exchange(other.handle_, {})), counter_(BASE_NS::exchange(other.counter_, nullpt… in RenderHandleReference()
208 handle_ = BASE_NS::exchange(other.handle_, {});
216 return (handle_.id != INVALID_RESOURCE_HANDLE) && (counter_);
221 return handle_; in GetHandle()
226 return RenderHandleUtil::GetHandleType(handle_); in GetHandleType()
/ohos5.0/base/location/services/utils/lbsutils/include/
H A Ddynamic_library_loader.h32 handle_ = dlopen(libPath.c_str(), RTLD_LAZY); in DynamicLibraryLoader()
33 if (!handle_) { in DynamicLibraryLoader()
42 if (handle_) { in ~DynamicLibraryLoader()
45 dlclose(handle_); in ~DynamicLibraryLoader()
46 handle_ = nullptr; in ~DynamicLibraryLoader()
53 if (!handle_) { in GetFunction()
56 auto funcPtr = dlsym(handle_, funcName.c_str()); in GetFunction()
68 void* handle_ = nullptr; variable
/ohos5.0/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 …OG("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 …ncel all tasks for task group (%s), handle: %{public}d", name_.c_str(), static_cast<int>(handle_)); in CancelAllTasks()
85 …Get task count for task group (%s), handle: %{public}d", name_.c_str(), static_cast<int>(handle_)); in GetTaskCount()
103 …_LOG("return one task %s, handle:%{public}d, size: %zu.", name_.c_str(), static_cast<int>(handle_), in GetTaskUnlocked()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_colorspace_convert.cpp34 if (handle_ == nullptr) { in RSColorSpaceConvert()
39 dlsym(handle_, "ColorSpaceConvertDisplayCreate")); in RSColorSpaceConvert()
42 if (dlclose(handle_) != 0) { in RSColorSpaceConvert()
45 handle_ = nullptr; in RSColorSpaceConvert()
52 if (dlclose(handle_) != 0) { in RSColorSpaceConvert()
55 handle_ = nullptr; in RSColorSpaceConvert()
61 if (dlclose(handle_) != 0) { in RSColorSpaceConvert()
64 handle_ = nullptr; in RSColorSpaceConvert()
77 if (handle_) { in ~RSColorSpaceConvert()
78 if (dlclose(handle_) != 0) { in ~RSColorSpaceConvert()
[all …]
/ohos5.0/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_);
91 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_);
104 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_);
123 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_);
125 EXPECT_EQ(handle_, tempHandle);
136 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_);
149 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_);
162 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_);
178 pGattCharacteristic = new GattCharacteristic(uuid_, handle_, permissions_, properties_);
[all …]
H A Dgatt_service_test.cpp73 uint16_t handle_ = 0b0000000000010000; variable
75 uint16_t result = GattService(uuid_, handle_, endHandle_, serviceType_).GetHandle();
89 uint16_t handle_ = 0b0000000000010000; variable
111 uint16_t handle_ = 0b0000000000010000; variable
117 GattService service = GattService(uuid_, handle_, endHandle_, serviceType_);
137 uint16_t handle_ = 0b0000000000010000; variable
143 GattService service = GattService(uuid_, handle_, endHandle_, serviceType_);
163 uint16_t handle_ = 0b0000000000010000; variable
171 GattService addcharacter = GattService(uuid_, handle_, endHandle_, serviceType_);
195 uint16_t handle_ = 0b0000000000010000; variable
[all …]
/ohos5.0/foundation/resourceschedule/ffrt/src/util/
H A Devent_handler_adapter.h100 if (handle_ != nullptr) { in Load()
104 handle_ = dlopen(EVENTHANDLER_LIB_PATH.c_str(), 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_ = nullptr; variable

12345678