Lines Matching defs:sid
31 SvcIdentity *sid;
37 int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid)
42 RPC_LOG_INFO("AddSystemAbility called.... handle = %d", sid->handle);
43 RPC_LOG_INFO("AddSystemAbility called.... cookie = %u", sid->cookie);
54 node->sid = sid;
59 int32_t GetSystemAbility(int32_t saId, const char* deviceId, SvcIdentity *sid)
66 sid->handle = node->sid->handle;
67 sid->token = node->sid->token;
68 sid->cookie = node->sid->cookie;
69 RPC_LOG_INFO("find sa, said = %d, handle = %d, cookie = %u", saId, sid->handle, sid->cookie);
76 int32_t AddRemoteSystemAbility(int32_t saId, SvcIdentity *sid)
78 if (AddSystemAbility(saId, sid) == ERR_FAILED) {
92 int32_t GetRemoteSystemAbility(IpcIo *data, SvcIdentity *sid)
106 int32_t ret = MakeRemoteBinder(name, 2, deviceId, idLen, (uintptr_t)saId, 0, (void *)sid);
110 RPC_LOG_INFO("GetRemoteSystemAbility handle=%d, cookie=%u", sid->handle, sid->cookie);
119 SvcIdentity sid;
120 int32_t result = GetSystemAbility(saId, "", &sid);
121 WriteRemoteObject(reply, &sid);
129 SvcIdentity *sid = (SvcIdentity *)malloc(sizeof(SvcIdentity));
130 if (sid == nullptr) {
133 ReadRemoteObject(data, sid);
134 int32_t result = AddRemoteSystemAbility(saId, sid);
153 SvcIdentity *sid = (SvcIdentity *)malloc(sizeof(SvcIdentity));
154 if (sid == nullptr) {
158 ReadRemoteObject(data, sid);
159 result = AddSystemAbility(saId, sid);
163 SvcIdentity sid;
164 result = GetRemoteSystemAbility(data, &sid);
168 WriteRemoteObject(reply, &sid);