/foundation/communication/ipc/ipc/native/c/ipc/src/liteos_m/ |
H A D | serializer_inner.c | 21 bool WriteRemoteObject(IpcIo *io, const SvcIdentity *svc) in WriteRemoteObject() argument 23 if (io == NULL || svc == NULL) { in WriteRemoteObject() 24 RPC_LOG_ERROR("write io or svc is NULL ..."); in WriteRemoteObject() 27 return WriteBuffer(io, svc, sizeof(SvcIdentity)); in WriteRemoteObject() 37 bool ReadRemoteObject(IpcIo *io, SvcIdentity *svc) in ReadRemoteObject() argument 39 if (io == NULL || svc == NULL) { in ReadRemoteObject() 40 RPC_LOG_ERROR("read io or svc is NULL ..."); in ReadRemoteObject() 47 svc->handle = svcId->handle; in ReadRemoteObject() 48 svc->token = svcId->token; in ReadRemoteObject() 49 svc in ReadRemoteObject() [all...] |
/foundation/communication/ipc/ipc/native/c/ipc/src/liteos_a/ |
H A D | serializer_inner.c | 105 bool WriteRemoteObject(IpcIo *io, const SvcIdentity *svc) in WriteRemoteObject() argument 110 if (svc == NULL) { in WriteRemoteObject() 119 ptr->content.svc.handle = svc->handle; in WriteRemoteObject() 120 ptr->content.svc.token = svc->token; in WriteRemoteObject() 121 ptr->content.svc.cookie = svc->cookie; in WriteRemoteObject() 122 if (ptr->content.svc.handle != IPC_INVALID_HANDLE) { in WriteRemoteObject() 125 IpcObjectStub *stub = (IpcObjectStub *)ptr->content.svc in WriteRemoteObject() 152 ReadRemoteObject(IpcIo *io, SvcIdentity *svc) ReadRemoteObject() argument [all...] |
/foundation/communication/ipc/ipc/native/c/ipc/src/linux/ |
H A D | serializer_inner.c | 90 bool WriteRemoteObject(IpcIo *io, const SvcIdentity *svc) in WriteRemoteObject() argument 92 if (io == NULL || svc == NULL) { in WriteRemoteObject() 93 RPC_LOG_ERROR("push io or svc is NULL ..."); in WriteRemoteObject() 97 if (svc->handle <= 0) { in WriteRemoteObject() 98 res = IpcIoPushObject(io, svc->token, svc->cookie); in WriteRemoteObject() 100 res = IpcIoPushRef(io, svc->handle, svc->cookie); in WriteRemoteObject() 105 bool ReadRemoteObject(IpcIo *io, SvcIdentity *svc) in ReadRemoteObject() argument 107 if (io == NULL || svc in ReadRemoteObject() [all...] |
/foundation/communication/dsoftbus/core/bus_center/ipc/small/src/ |
H A D | bus_center_client_proxy.c | 29 static int32_t GetSvcIdentityByPkgName(const char *pkgName, SvcIdentity *svc) in GetSvcIdentityByPkgName() argument 36 svc->handle = svcId.handle; in GetSvcIdentityByPkgName() 37 svc->token = svcId.token; in GetSvcIdentityByPkgName() 38 svc->cookie = svcId.cookie; in GetSvcIdentityByPkgName() 42 static int32_t GetAllClientIdentity(SvcIdentity *svc, int num) in GetAllClientIdentity() argument 44 if (svc == NULL || num == 0) { in GetAllClientIdentity() 60 svc[i].handle = svcId[i].handle; in GetAllClientIdentity() 61 svc[i].token = svcId[i].token; in GetAllClientIdentity() 62 svc[i].cookie = svcId[i].cookie; in GetAllClientIdentity() 85 SvcIdentity svc in ClientOnJoinLNNResult() local 113 SvcIdentity svc = {0}; ClientOnLeaveLNNResult() local 152 SvcIdentity *svc = (SvcIdentity *)SoftBusCalloc(sizeof(SvcIdentity) * num); ClinetOnNodeOnlineStateChanged() local 200 SvcIdentity *svc = (SvcIdentity *)SoftBusCalloc(sizeof(SvcIdentity) * num); ClinetOnNodeBasicInfoChanged() local 240 SvcIdentity svc = {0}; ClientOnTimeSyncResult() local 270 SvcIdentity svc = {0}; ClientOnPublishLNNResult() local 300 SvcIdentity svc = {0}; ClientOnRefreshLNNResult() local 330 SvcIdentity svc = {0}; ClientOnRefreshDeviceFound() local [all...] |
/foundation/communication/dsoftbus/core/transmission/ipc/small/ |
H A D | trans_client_proxy.c | 29 static int32_t GetSvcIdentityByPkgName(const char *pkgName, SvcIdentity *svc) in GetSvcIdentityByPkgName() argument 37 svc->handle = (int32_t)svcId.handle; in GetSvcIdentityByPkgName() 38 svc->token = (uintptr_t)svcId.token; in GetSvcIdentityByPkgName() 39 svc->cookie = (uintptr_t)svcId.cookie; in GetSvcIdentityByPkgName() 44 static int32_t OnUdpChannelOpenedAsServer(const SvcIdentity *svc, IpcIo *io) in OnUdpChannelOpenedAsServer() argument 50 int32_t ans = SendRequest(*svc, CLIENT_ON_CHANNEL_OPENED, io, &reply, option, &ptr); in OnUdpChannelOpenedAsServer() 86 SvcIdentity svc = { 0 }; in ClientIpcOnChannelOpened() local 87 int32_t ret = GetSvcIdentityByPkgName(pkgName, &svc); in ClientIpcOnChannelOpened() 88 TRANS_CHECK_AND_RETURN_RET_LOGE(ret == SOFTBUS_OK, ret, TRANS_CTRL, "OnChannelOpened get svc failed."); in ClientIpcOnChannelOpened() 95 return OnUdpChannelOpenedAsServer(&svc, in ClientIpcOnChannelOpened() 123 SvcIdentity svc = {0}; ClientIpcOnChannelBind() local 152 SvcIdentity svc = {0}; ClientIpcOnChannelOpenFailed() local 182 SvcIdentity svc = {0}; ClientIpcOnChannelLinkDown() local 212 SvcIdentity svc = {0}; ClientIpcOnChannelClosed() local 247 SvcIdentity svc = {0}; ClientIpcOnChannelMsgReceived() local 288 SvcIdentity svc = {0}; ClientIpcSetChannelInfo() local [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_inner_feature.cpp | 118 SvcIdentity svc;
in InstallInnerBundle() local 119 if (!(ReadRemoteObject(req, &svc))) {
in InstallInnerBundle() 129 uint8_t svcIdentityInfoRsp = GetSvcIdentityInfo(info, &svc, reqPath, req);
in InstallInnerBundle() 132 AdapterFree(info->svc);
in InstallInnerBundle() 145 AdapterFree(info->svc);
in InstallInnerBundle() 152 uint8_t BundleInnerFeature::GetSvcIdentityInfo(SvcIdentityInfo *info, const SvcIdentity *svc, const char *reqPath,
in GetSvcIdentityInfo() argument 166 info->svc = reinterpret_cast<SvcIdentity *>(AdapterMalloc(sizeof(SvcIdentity)));
in GetSvcIdentityInfo() 167 if (info->svc == nullptr) {
in GetSvcIdentityInfo() 173 *(info->svc) = *svc;
in GetSvcIdentityInfo() 192 SvcIdentity svc; UninstallInnerBundle() local [all...] |
H A D | bundle_manager_service.cpp | 86 for (const auto& svc : svcIdentity) { in InnerTransact() 87 int32_t ret = SendRequest(svc, code, &io, &reply, option, &ptr); in InnerTransact() 95 static void InnerSelfTransact(uint32_t code, uint8_t resultCode, const SvcIdentity &svc) in InnerSelfTransact() argument 106 int32_t ret = SendRequest(svc, code, &io, &reply, option, NULL); in InnerSelfTransact() 110 ReleaseSvc(svc); in InnerSelfTransact() 212 if (info->svc == nullptr || info->path == nullptr) { in ServiceMsgProcess() 214 AdapterFree(info->svc); in ServiceMsgProcess() 218 InstallThirdBundle(info->path, *(info->svc), info->installLocation); in ServiceMsgProcess() 220 AdapterFree(info->svc); in ServiceMsgProcess() 228 if ((info->bundleName == nullptr) || (info->svc in ServiceMsgProcess() 246 auto svc = reinterpret_cast<SvcIdentity *>(request->data); ServiceMsgProcess() local 268 AddCallbackServiceId(const SvcIdentity &svc) AddCallbackServiceId() argument 278 RemoveCallbackServiceId(const SvcIdentity &svc) RemoveCallbackServiceId() argument 289 InstallThirdBundle(const char *path, const SvcIdentity &svc, int32_t installLocation) InstallThirdBundle() argument [all...] |
/foundation/distributedhardware/device_manager/services/service/src/ipc/lite/ |
H A D | ipc_server_listener.cpp | 33 int32_t IpcServerListener::GetIdentityByPkgName(std::string &name, SvcIdentity *svc) in GetIdentityByPkgName() argument 40 CommonSvcToIdentity(&svcId, svc); in GetIdentityByPkgName() 47 SvcIdentity svc; in SendRequest() local 48 if (GetIdentityByPkgName(pkgName, &svc) != DM_OK) { in SendRequest() 63 if (::SendRequest(svc, cmdCode, &io, nullptr, option, nullptr) != DM_OK) { in SendRequest() 73 SvcIdentity svc; in SendAll() local 84 CommonSvcToIdentity(&svcId, &svc); in SendAll() 88 if (::SendRequest(svc, cmdCode, &io, nullptr, option, nullptr) != DM_OK) { in SendAll()
|
H A D | ipc_server_stub.cpp | 76 SvcIdentity svc; in RegisterDeviceManagerListener() local 77 bool ret = ReadRemoteObject(req, &svc); in RegisterDeviceManagerListener() 84 svcId.handle = svc.handle; in RegisterDeviceManagerListener() 85 svcId.token = svc.token; in RegisterDeviceManagerListener() 86 svcId.cookie = svc.cookie; in RegisterDeviceManagerListener() 103 AddDeathRecipient(svc, DeathCb, pkgName, &cbId); in RegisterDeviceManagerListener()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/ |
H A D | gatt_cache.cpp | 84 auto svc = services_.find(it->second.first); in GetCharacteristic() local 85 if (svc != services_.end()) { in GetCharacteristic() 86 auto ccc = svc->second.characteristics_.find(it->second.second); in GetCharacteristic() 87 if (ccc != svc->second.characteristics_.end()) { in GetCharacteristic() 101 auto svc = services_.find(it->second.first); in GetDescriptor() local 102 if (svc == services_.end()) { in GetDescriptor() 105 auto ccc = svc->second.characteristics_.find(it->second.second); in GetDescriptor() 106 if (ccc == svc->second.characteristics_.end()) { in GetDescriptor() 118 auto svc = services_.find(serviceHandle); in GetCharacteristicEndHandle() local 119 if (svc in GetCharacteristicEndHandle() [all...] |
/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/mini/ |
H A D | ipc_proxy_inner.c | 149 static int GetSessionFromDBinderService(SvcIdentity *svc) in GetSessionFromDBinderService() argument 154 SessionInfo *session = QuerySessionObject(svc->cookie); in GetSessionFromDBinderService() 172 handleToIndex->handle = svc->handle; in GetSessionFromDBinderService() 191 UpdateClientSession(svc->handle, sessionObject, session->serviceName, session->deviceIdInfo.toDeviceId); in GetSessionFromDBinderService() 195 void UpdateProto(SvcIdentity *svc) in UpdateProto() argument 197 if (svc->handle < 0) { in UpdateProto() 207 HandleSessionList *sessionObject = QueryProxySession(svc->handle); in UpdateProto() 212 threadContext->proto = GetSessionFromDBinderService(svc); in UpdateProto()
|
/foundation/window/window_manager_lite/frameworks/ims/ |
H A D | input_event_listener_proxy.cpp | 84 SvcIdentity svc; in RegisterInputEventListener() local 88 svc.handle = IPC_INVALID_HANDLE; in RegisterInputEventListener() 89 svc.token = SERVICE_TYPE_ANONYMOUS; in RegisterInputEventListener() 90 svc.cookie = reinterpret_cast<uintptr_t>(&objectStub); in RegisterInputEventListener() 91 WriteRemoteObject(&io, &svc); in RegisterInputEventListener()
|
/foundation/ability/ability_lite/services/abilitymgr_lite/src/ |
H A D | ability_mgr_feature.cpp | 181 SvcIdentity svc; in StartAbilityWithCbInvoke() local 182 bool ret = ReadRemoteObject(req, &svc); in StartAbilityWithCbInvoke() 187 svc_ = svc; in StartAbilityWithCbInvoke() 326 SvcIdentity svc; in AttachBundleInvoke() local 327 bool ret = ReadRemoteObject(req, &svc); in AttachBundleInvoke() 344 auto client = new AbilityThreadClient(token, callingPid, svc, &AbilityMgrFeature::AppDeathNotify); in AttachBundleInvoke() 368 SvcIdentity svc; in ConnectAbilityInvoke() local 369 bool ret = ReadRemoteObject(req, &svc); in ConnectAbilityInvoke() 377 int32 retVal = ConnectAbilityInner(&want, &svc, token, uid); in ConnectAbilityInvoke() 382 int32 AbilityMgrFeature::ConnectAbility(const Want *want, SvcIdentity *svc, uint64_ argument 387 ConnectAbilityInner(const Want *want, SvcIdentity *svc, uint64_t token, pid_t callingUid) ConnectAbilityInner() argument 423 SvcIdentity svc; DisconnectAbilityInvoke() local 431 DisconnectAbility(SvcIdentity *svc, uint64_t token) DisconnectAbility() argument 455 SvcIdentity svc; ConnectAbilityDoneInvoke() local [all...] |
/foundation/window/window_manager_lite/services/ims/ |
H A D | input_event_client_proxy.cpp | 55 SvcIdentity svc = {0}; in AddListener() local 56 bool ret = ReadRemoteObject(req, &svc); in AddListener() 64 if (AddDeathRecipient(svc, DeathCallback, nullptr, &cbId) != 0) { in AddListener() 68 struct ClientInfo clientInfo = { svc, cbId, alwaysInvoke }; in AddListener() 84 ReleaseSvc(clientInfoMap_[pid].svc); in RemoveListener() 103 SendRequest(it->second.svc, 0, &io, nullptr, option, nullptr); in OnRawEvent()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/dis/ |
H A D | device_information_service.cpp | 150 std::unique_ptr<Service> svc = in BuildService() local 152 svc->isPrimary_ = true; in BuildService() 155 svc->characteristics_.push_back( in BuildService() 164 svc->characteristics_.push_back( in BuildService() 173 svc->characteristics_.push_back(Characteristic(Uuid::ConvertFrom16Bits(GATT_UUID_PNP_ID_CHAR), in BuildService() 181 svc->characteristics_.push_back( in BuildService() 190 svc->characteristics_.push_back( in BuildService() 199 svc->characteristics_.push_back( in BuildService() 208 svc->characteristics_.push_back(Characteristic(Uuid::ConvertFrom16Bits(GATT_UUID_SYSTEM_ID_CHAR), in BuildService() 216 svc in BuildService() [all...] |
/foundation/communication/dsoftbus/sdk/frame/small/src/ |
H A D | softbus_server_proxy.c | 83 SvcIdentity svc = {0}; in RegisterService() local 84 svc.handle = svcId->handle; in RegisterService() 85 svc.token = svcId->token; in RegisterService() 86 svc.cookie = svcId->cookie; in RegisterService() 87 bool value = WriteRemoteObject(&request, &svc); in RegisterService()
|
/foundation/ability/ability_lite/frameworks/abilitymgr_lite/src/ |
H A D | ability_manager.cpp | 45 const SvcIdentity *svc = OHOS::AbilitySelfCallback::GetInstance()
in StartAbilityWithCallback() local 47 if (svc == nullptr) {
in StartAbilityWithCallback() 48 HILOG_ERROR(HILOG_MODULE_APP, "Register svc failed");
in StartAbilityWithCallback() 52 return OHOS::AbilityMsClient::GetInstance().ScheduleAms(want, 0, svc, START_ABILITY_WITH_CB);
in StartAbilityWithCallback()
|
/foundation/communication/ipc/services/dbinder/c/ipc_adapter/small/ |
H A D | dbinder_ipc_adapter.c | 58 SvcIdentity svc; in RpcGetSystemAbility() local 59 ReadRemoteObject(&reply, &svc); in RpcGetSystemAbility() 73 if (memcpy_s(proxyObject->proxy, sizeof(SvcIdentity), &svc, sizeof(SvcIdentity)) != EOK) { in RpcGetSystemAbility()
|
/foundation/communication/ipc/ipc/native/c/rpc/src/ |
H A D | rpc_process_skeleton_virtual.c | 42 void UpdateProtoIfNeed(SvcIdentity *svc) in UpdateProtoIfNeed() argument 44 (void)svc; in UpdateProtoIfNeed()
|
/foundation/communication/dsoftbus/core/frame/small/init/src/ |
H A D | softbus_server_stub.c | 128 SvcIdentity svc; in ServerRegisterService() local 138 bool value = ReadRemoteObject(req, &svc); in ServerRegisterService() 140 svcId.handle = svc.handle; in ServerRegisterService() 141 svcId.token = svc.token; in ServerRegisterService() 142 svcId.cookie = svc.cookie; in ServerRegisterService() 165 AddDeathRecipient(svc, ClientDeathCb, argStrcut, &cbId); in ServerRegisterService()
|
/foundation/window/window_manager_lite/frameworks/wms/ |
H A D | lite_wm_requestor.cpp | 102 SvcIdentity svc; in ClientRegister() local 106 svc.handle = IPC_INVALID_HANDLE; in ClientRegister() 107 svc.token = SERVICE_TYPE_ANONYMOUS; in ClientRegister() 108 svc.cookie = reinterpret_cast<uintptr_t>(&objectStub); in ClientRegister() 109 WriteRemoteObject(&io, &svc); in ClientRegister()
|
/foundation/ability/ability_lite/interfaces/inner_api/abilitymgr_lite/ |
H A D | ability_service_interface.h | 74 int32 (*ConnectAbility)(const Want *want, SvcIdentity *svc, uint64_t token);
75 int32 (*DisconnectAbility)(SvcIdentity *svc, uint64_t token);
|
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_gatt_server.cpp | 98 void BuildIncludeService(GattService &svc, const std::vector<bluetooth::Service> &iSvcs); 437 void GattServer::impl::BuildIncludeService(GattService &svc, const std::vector<bluetooth::Service> &iSvcs) in BuildIncludeService() argument 445 svc.AddService(std::ref(*pSvc)); in BuildIncludeService() 451 for (auto &svc : gattServices_) { in GetIncludeService() 452 if (svc.GetHandle() == handle) { in GetIncludeService() 453 return &svc; in GetIncludeService() 511 for (auto &svc : gattServices_) { in FindCharacteristic() 512 for (auto &character : svc.GetCharacteristics()) { in FindCharacteristic() 534 for (auto &svc : gattServices_) { in FindDescriptor() 535 for (auto &character : svc in FindDescriptor() 609 BluetoothGattService svc; AddService() local [all...] |
/foundation/ability/ability_lite/services/abilitymgr_lite/include/ |
H A D | ability_mgr_feature.h | 37 static int32 ConnectAbility(const Want *want, SvcIdentity *svc, uint64_t token); 38 static int32 DisconnectAbility(SvcIdentity *svc, uint64_t token); 55 static int32 ConnectAbilityInner(const Want *want, SvcIdentity *svc, uint64_t token, pid_t callingUid);
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | bundle_manager_service.h | 77 void InstallThirdBundle(const char *path, const SvcIdentity &svc, int32_t installLocation); 78 void AddCallbackServiceId(const SvcIdentity &svc); 79 void RemoveCallbackServiceId(const SvcIdentity &svc);
|