Home
last modified time | relevance | path

Searched refs:sid (Results 1 - 25 of 60) sorted by relevance

123

/foundation/communication/ipc/ipc/test/rpc/samgr/
H A Drpc_samgr.c29 SvcIdentity *sid; member
41 static int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid) in AddSystemAbility() argument
43 RPC_LOG_INFO("AddSystemAbility called.... handle = %d", sid->handle); in AddSystemAbility()
44 RPC_LOG_INFO("AddSystemAbility called.... cookie = %u", sid->cookie); in AddSystemAbility()
55 node->sid = sid; in AddSystemAbility()
60 static int32_t GetSystemAbility(int32_t saId, const char* deviceId, SvcIdentity *sid) in GetSystemAbility() argument
67 sid->handle = node->sid->handle; in GetSystemAbility()
68 sid in GetSystemAbility()
77 AddRemoteSystemAbility(int32_t saId, SvcIdentity *sid) AddRemoteSystemAbility() argument
93 GetRemoteSystemAbility(IpcIo *data, SvcIdentity *sid) GetRemoteSystemAbility() argument
122 SvcIdentity sid; RemoteRequest() local
130 SvcIdentity *sid = (SvcIdentity *)malloc(sizeof(SvcIdentity)); RemoteRequest() local
140 SvcIdentity sid; RemoteRequest() local
148 SvcIdentity *sid = (SvcIdentity *)malloc(sizeof(SvcIdentity)); RemoteRequest() local
[all...]
H A Drpc_mini_samgr.c32 SvcIdentity *sid; member
47 int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid) in AddSystemAbility() argument
49 RPC_LOG_INFO("AddSystemAbility called.... handle = %d", sid->handle); in AddSystemAbility()
50 RPC_LOG_INFO("AddSystemAbility called.... cookie = %u, said = %d", sid->cookie, saId); in AddSystemAbility()
61 node->sid = (SvcIdentity *)calloc(1, sizeof(SvcIdentity)); in AddSystemAbility()
62 if (memcpy_s(node->sid, sizeof(SvcIdentity), sid, sizeof(SvcIdentity)) != EOK) { in AddSystemAbility()
64 free(node->sid); in AddSystemAbility()
69 node->sid->handle = GetNextHandle(); in AddSystemAbility()
82 WriteRemoteObject(reply, node->sid); in GetSystemAbilityById()
95 SvcIdentity sid; AddRemoteSystemAbility() local
118 SvcIdentity sid; GetRemoteSystemAbility() local
[all...]
/foundation/communication/ipc/ipc/test/unittest/rpc/samgr/
H A DRpcSamgrTest.cpp31 SvcIdentity *sid; member
37 int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid) in AddSystemAbility() argument
42 RPC_LOG_INFO("AddSystemAbility called.... handle = %d", sid->handle); in AddSystemAbility()
43 RPC_LOG_INFO("AddSystemAbility called.... cookie = %u", sid->cookie); in AddSystemAbility()
54 node->sid = sid; in AddSystemAbility()
59 int32_t GetSystemAbility(int32_t saId, const char* deviceId, SvcIdentity *sid) in GetSystemAbility() argument
66 sid->handle = node->sid->handle; in GetSystemAbility()
67 sid in GetSystemAbility()
76 AddRemoteSystemAbility(int32_t saId, SvcIdentity *sid) AddRemoteSystemAbility() argument
92 GetRemoteSystemAbility(IpcIo *data, SvcIdentity *sid) GetRemoteSystemAbility() argument
119 SvcIdentity sid; GetSystemAbilityTransaction() local
129 SvcIdentity *sid = (SvcIdentity *)malloc(sizeof(SvcIdentity)); AddRemoteSystemAbilityTransaction() local
153 SvcIdentity *sid = (SvcIdentity *)malloc(sizeof(SvcIdentity)); RemoteRequest() local
163 SvcIdentity sid; RemoteRequest() local
[all...]
/foundation/communication/ipc/ipc/test/ipc/samgr/
H A Dsamgr.c29 SvcIdentity *sid; member
34 static int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid) in AddSystemAbility() argument
45 node->sid = sid; in AddSystemAbility()
50 static int32_t GetSystemAbility(int32_t saId, const char* deviceId, SvcIdentity *sid) in GetSystemAbility() argument
58 sid->handle = node->sid->handle; in GetSystemAbility()
59 sid->token = node->sid->token; in GetSystemAbility()
60 sid in GetSystemAbility()
75 SvcIdentity *sid = (SvcIdentity *)malloc(sizeof(SvcIdentity)); RemoteRequest() local
87 SvcIdentity sid; RemoteRequest() local
[all...]
/foundation/communication/ipc/ipc/test/unittest/ipc/samgr/
H A DIpcSamgrTest.cpp28 SvcIdentity *sid; member
35 int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid) in AddSystemAbility() argument
46 node->sid = sid; in AddSystemAbility()
53 int32_t GetSystemAbility(int32_t saId, const char* deviceId, SvcIdentity *sid) in GetSystemAbility() argument
60 sid->handle = node->sid->handle; in GetSystemAbility()
61 sid->token = node->sid->token; in GetSystemAbility()
62 sid in GetSystemAbility()
79 SvcIdentity *sid = (SvcIdentity *)malloc(sizeof(SvcIdentity)); RemoteRequest() local
91 SvcIdentity sid; RemoteRequest() local
[all...]
/foundation/communication/ipc/ipc/test/rpc/client/
H A Drpc_client.c53 static void RpcClientTestOne(SvcIdentity sid, MessageOption option) in RpcClientTestOne() argument
63 int32_t ret = SendRequest(sid, OP_ADD, &data2, &reply2, option, &ptr2); in RpcClientTestOne()
76 static void RpcClientTestTwo(SvcIdentity sid, MessageOption option) in RpcClientTestTwo() argument
86 int32_t ret = SendRequest(sid, OP_MULTI, &data3, &reply3, option, &ptr3); in RpcClientTestTwo()
128 SvcIdentity sid; in main() local
129 ReadRemoteObject(&reply1, &sid); in main()
130 RPC_LOG_INFO("call server add func server handle = %d.", sid.handle); in main()
134 ret = AddDeathRecipient(sid, ServerDead1, NULL, &cbId1); in main()
137 RpcClientTestOne(sid, option); in main()
138 RpcClientTestTwo(sid, optio in main()
[all...]
/foundation/ability/ability_lite/frameworks/abilitymgr_lite/src/
H A Dability_service_manager.cpp41 if (storeArgs->sid != nullptr) { in ~AbilityServiceManager()
42 delete storeArgs->sid; in ~AbilityServiceManager()
66 storeArgs->sid->handle = IPC_INVALID_HANDLE; in ConnectAbility()
67 storeArgs->sid->token = SERVICE_TYPE_ANONYMOUS; in ConnectAbility()
68 storeArgs->sid->cookie = reinterpret_cast<uintptr_t>(&objectStub_); in ConnectAbility()
70 int32_t result = AbilityMsClient::GetInstance().ScheduleAms(&want, token, storeArgs->sid, CONNECT_ABILITY); in ConnectAbility()
73 delete storeArgs->sid; in ConnectAbility()
86 int result = AbilityMsClient::GetInstance().ScheduleAms(nullptr, token, storeArgs->sid, DISCONNECT_ABILITY); in DisconnectAbility()
106 storeArgs->sid = new SvcIdentity(); in AddStoreArgs()
150 // parse service sid in ConnectAbilityCallBack()
[all...]
H A Dabilityms_client.cpp74 int AbilityMsClient::ScheduleAms(const Want *want, uint64_t token, const SvcIdentity *sid, int commandType) const in ScheduleAms() argument
85 if (sid != nullptr) { in ScheduleAms()
86 bool ret = WriteRemoteObject(&req, sid); in ScheduleAms()
/foundation/distributedhardware/device_manager/services/service/src/ipc/lite/
H A Dipc_server_stub.cpp64 SvcIdentity sid = {0}; in DeathCb() local
65 sid.handle = svcId.handle; in DeathCb()
66 sid.token = svcId.token; in DeathCb()
67 sid.cookie = svcId.cookie; in DeathCb()
68 ReleaseSvc(sid); in DeathCb()
125 SvcIdentity sid; in UnRegisterDeviceManagerListener() local
126 sid.handle = svcId.handle; in UnRegisterDeviceManagerListener()
127 sid.token = svcId.token; in UnRegisterDeviceManagerListener()
128 sid.cookie = svcId.cookie; in UnRegisterDeviceManagerListener()
129 ReleaseSvc(sid); in UnRegisterDeviceManagerListener()
[all...]
/foundation/communication/ipc/ipc/test/unittest/rpc/client/
H A DRpcClientTest.cpp42 SvcIdentity sid; member
119 ReadRemoteObject(&reply1, &sid); in HWTEST_F()
120 RPC_LOG_INFO("call server add func server handle = %d.", sid.handle); in HWTEST_F()
121 EXPECT_NE(sid.handle, INVALID_HANDLE); in HWTEST_F()
141 int32_t oldHandle = sid.handle; in HWTEST_F()
142 sid.handle = INVALID_HANDLE; in HWTEST_F()
143 int32_t ret = SendRequest(sid, OP_ADD, &data2, &reply2, option, &ptr2); in HWTEST_F()
148 sid.handle = oldHandle; in HWTEST_F()
149 EXPECT_EQ(sid.handle, oldHandle); in HWTEST_F()
168 int32_t ret = SendRequest(sid, OP_AD in HWTEST_F()
[all...]
/foundation/ability/ability_lite/services/abilitymgr_lite/src/client/
H A Dability_dump_client.cpp33 if (want.sid != nullptr) { in AbilityDumpClient()
34 SetWantSvcIdentity(&want_, *(want.sid)); in AbilityDumpClient()
49 if (want_.sid == nullptr) { in AbilityDumpTransaction()
63 if (SendRequest(*(want_.sid), SCHEDULER_DUMP_ABILITY, &req, nullptr, option, nullptr) != ERR_NONE) { in AbilityDumpTransaction()
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_client_stub_lite.cpp94 SvcIdentity sid; in OnRegisterCallBack() local
95 bool readSid = ReadRemoteObject(req, &sid); in OnRegisterCallBack()
103 std::shared_ptr<IDhcpClientCallBack> callback_ = std::make_shared<DhcpClientCallbackProxy>(&sid); in OnRegisterCallBack()
120 SvcIdentity sid; in OnStartDhcpClient() local
121 bool readSid = ReadRemoteObject(req, &sid); in OnStartDhcpClient()
145 SvcIdentity sid; in OnSetConfiguration() local
146 bool readSid = ReadRemoteObject(req, &sid); in OnSetConfiguration()
169 SvcIdentity sid; in OnStopDhcpClient() local
170 bool readSid = ReadRemoteObject(req, &sid); in OnStopDhcpClient()
/foundation/communication/ipc/ipc/test/unittest/ipc/server/
H A DIpcServerTest.cpp28 SvcIdentity *sid = nullptr; member
35 if (sid == nullptr) { in CallAnonymosFunc()
49 SendRequest(*sid, CLIENT_OP_PRINT, &data, &reply, option, nullptr); in CallAnonymosFunc()
86 sid = (SvcIdentity *)calloc(1, sizeof(SvcIdentity)); in RemoteRequestOne()
87 ReadRemoteObject(data, sid); in RemoteRequestOne()
91 int ret = AddDeathRecipient(*sid, (OnRemoteDead)ServerDead1, (void *)NULL, (uint32_t *)&cbId1); in RemoteRequestOne()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan_sa/
H A Dwifi_scan_callback_proxy_lite.cpp27 WifiScanCallbackProxy::WifiScanCallbackProxy(SvcIdentity *sid) : sid_(*sid) in WifiScanCallbackProxy() argument
/foundation/multimedia/camera_lite/services/server/src/
H A Dcamera_server.cpp155 SvcIdentity sid; in CreateCamera() local
156 bool ret = ReadRemoteObject(req, &sid); in CreateCamera()
158 MEDIA_ERR_LOG("sid is null, failed."); in CreateCamera()
161 OnCameraStatusChange(cameraStatus, &sid); in CreateCamera()
169 SvcIdentity sid; in CloseCamera() local
170 bool ret = ReadRemoteObject(req, &sid); in CloseCamera()
172 MEDIA_ERR_LOG("sid is null, failed."); in CloseCamera()
175 OnCameraStatusChange(cameraStatus, &sid); in CloseCamera()
190 SvcIdentity sid; in SetCameraCallback() local
191 bool ret = ReadRemoteObject(req, &sid); in SetCameraCallback()
311 OnCameraStatusChange(int32_t ret, SvcIdentity *sid) OnCameraStatusChange() argument
[all...]
/foundation/ability/ability_lite/interfaces/kits/want_lite/
H A Dwant.h67 SvcIdentity *sid; member
156 * @brief Sets the <b>sid</b> member variable for a specified <b>Want</b> object.
162 * @param sid Indicates the {@link SvcIdentity} object to set.
166 bool SetWantSvcIdentity(Want *want, SvcIdentity sid);
/foundation/multimedia/media_lite/services/recorder_lite/server/include/
H A Drecorder_service.h48 RecorderCallbackClient(SvcIdentity *sid) : sid_(*sid) {} in RecorderCallbackClient() argument
/foundation/ability/ability_lite/frameworks/ability_lite/src/
H A Dability_thread.cpp138 if ((want.sid == nullptr) || (want.element == nullptr)) { in StartAbilityCallback()
152 if (SendRequest(*(want.sid), SCHEDULER_APP_INIT, &io, nullptr, option, nullptr) != ERR_NONE) { in StartAbilityCallback()
267 const SvcIdentity *sid = iter->second->OnConnect(want); in PerformConnectAbility() local
268 AbilityMsClient::GetInstance().ScheduleAms(nullptr, token, sid, CONNECT_ABILITY_DONE); in PerformConnectAbility()
289 if (want.sid == nullptr) { in PerformDumpAbility()
309 if (SendRequest(*(want.sid), SCHEDULER_DUMP_ABILITY, &io, nullptr, option, nullptr) != ERR_NONE) { in PerformDumpAbility()
312 ReleaseSvc(*(want.sid)); in PerformDumpAbility()
/foundation/ability/ability_lite/services/abilitymgr_lite/src/
H A Dability_mgr_handler.cpp290 const SvcIdentity sid = transParam->GetSvcIdentity(); in DisconnectAbility() local
292 AbilityMsStatus status = abilityWorker_.DisconnectAbility(sid, token); in DisconnectAbility()
300 const SvcIdentity sid = transParam->GetSvcIdentity(); in ConnectAbilityDone() local
302 AbilityMsStatus status = abilityWorker_.ConnectAbilityDone(sid, token); in ConnectAbilityDone()
337 if ((want == nullptr) || (want->sid == nullptr) || (code == EC_SUCCESS)) { in StartAbilityCallback()
351 if (SendRequest(*(want->sid), SCHEDULER_APP_INIT, &io, nullptr, option, nullptr) != ERR_NONE) { in StartAbilityCallback()
361 ReleaseSvc(*(client->GetWant().sid)); in DumpAbility()
/foundation/ability/ability_lite/frameworks/want_lite/src/
H A Dwant.cpp70 AdapterFree(want->sid);
246 bool SetWantSvcIdentity(Want *want, SvcIdentity sid)
252 AdapterFree(want->sid);
253 want->sid = reinterpret_cast<SvcIdentity *>(AdapterMalloc(sizeof(SvcIdentity)));
254 if (want->sid == nullptr) {
257 if (memcpy_s(want->sid, sizeof(SvcIdentity), &sid, sizeof(SvcIdentity)) != EOK) {
258 AdapterFree(want->sid);
302 if (want->sid == nullptr) {
306 bool ret = WriteRemoteObject(io, want->sid);
[all...]
/foundation/graphic/surface_lite/frameworks/
H A Dsurface_impl.cpp34 SurfaceImpl::SurfaceImpl(const SvcIdentity& sid) in SurfaceImpl() argument
35 : sid_(sid), consumer_(nullptr), producer_(nullptr), IsConsumer_(false) in SurfaceImpl()
275 SvcIdentity sid; in GenericSurfaceByIpcIo() local
276 bool ret = ReadRemoteObject(&io, &sid); in GenericSurfaceByIpcIo()
278 SurfaceImpl* surface = new SurfaceImpl(sid); in GenericSurfaceByIpcIo()
/foundation/communication/dsoftbus/core/frame/small/init/src/
H A Dsoftbus_server_stub.c113 SvcIdentity sid = {0}; in ClientDeathCb() local
114 sid.handle = (int32_t)svcId.handle; in ClientDeathCb()
115 sid.token = (uintptr_t)svcId.token; in ClientDeathCb()
116 sid.cookie = (uintptr_t)svcId.cookie; in ClientDeathCb()
117 ReleaseSvc(sid); in ClientDeathCb()
/foundation/communication/dhcp/services/dhcp_server/src/
H A Ddhcp_server_callback_proxy_lite.cpp26 DhcpServerCallbackProxy::DhcpServerCallbackProxy(SvcIdentity *sid) : sid_(*sid) in DhcpServerCallbackProxy() argument
/foundation/window/window_manager_lite/services/wms/
H A Dlite_wms.cpp233 SvcIdentity sid; in ClientRegister() local
234 bool ret = ReadRemoteObject(req, &sid); in ClientRegister()
241 arg->sid = sid; in ClientRegister()
243 if (AddDeathRecipient(arg->sid, DeathCallback, arg, &cbId) != 0) { in ClientRegister()
253 ReleaseSvc(cbArg->sid); in DeathCallback()
H A Dlite_win.h46 void SetSid(const SvcIdentity& sid) in SetSid() argument
49 sid_ = sid; in SetSid()

Completed in 10 milliseconds

123