Home
last modified time | relevance | path

Searched refs:saName (Results 1 - 16 of 16) sorted by relevance

/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/
H A Ddefault_client_mini_adapter.c47 char saName[MAX_COUNT_NUM * MAX_NAME_LEN + MAX_COUNT_NUM]; in QueryRemoteIdentityInner() local
48 int count = sprintf_s(saName, MAX_COUNT_NUM * MAX_NAME_LEN + MAX_COUNT_NUM, in QueryRemoteIdentityInner()
50 HILOG_INFO(HILOG_MODULE_SAMGR, "saName %s, make remote binder start", saName); in QueryRemoteIdentityInner()
61 int32_t ret = MakeRemoteBinder(saName, strlen(saName), deviceId, strlen(deviceId), saNode->saId, 0, in QueryRemoteIdentityInner()
H A Dendpoint_rpc.c59 int SAMGR_AddRouter(Endpoint *endpoint, const SaName *saName, const Identity *id, IUnknown *proxy) in SAMGR_AddRouter() argument
61 if (endpoint == NULL || id == NULL || proxy == NULL || saName == NULL) { in SAMGR_AddRouter()
87 router->saName = *saName; in SAMGR_AddRouter()
97 Listen(endpoint, index, saName->service, saName->feature); in SAMGR_AddRouter()
257 int SAMGR_ProcPolicy(const Endpoint *endpoint, const SaName *saName, int token) in SAMGR_ProcPolicy() argument
259 if (endpoint == NULL || saName == NULL || token == INVALID_INDEX) { in SAMGR_ProcPolicy()
270 ret = RegisterIdentity(saName, &saInfo, &policy, &policyNum); in SAMGR_ProcPolicy()
276 saName in SAMGR_ProcPolicy()
[all...]
H A Dendpoint.c60 SaName saName; member
80 static int RegisterIdentity(const IpcContext *context, const SaName *saName, SvcIdentity *saInfo,
104 int SAMGR_AddRouter(Endpoint *endpoint, const SaName *saName, const Identity *id, IUnknown *proxy) in SAMGR_AddRouter() argument
106 if (endpoint == NULL || id == NULL || proxy == NULL || saName == NULL) { in SAMGR_AddRouter()
128 router->saName = *saName; in SAMGR_AddRouter()
280 int SAMGR_ProcPolicy(const Endpoint *endpoint, const SaName *saName, int token) in SAMGR_ProcPolicy() argument
282 if (endpoint == NULL || saName == NULL || token == INVALID_INDEX) { in SAMGR_ProcPolicy()
293 ret = RegisterIdentity(endpoint->context, saName, &saInfo, &policy, &policyNum); in SAMGR_ProcPolicy()
299 saName in SAMGR_ProcPolicy()
491 RegisterIdentity(const IpcContext *context, const SaName *saName, SvcIdentity *saInfo, PolicyTrans **policy, uint32 *policyNum) RegisterIdentity() argument
[all...]
H A Dsamgr_small_ipc_adapter.c153 int ret = RegisterIdentity(&(router->saName), &identity, &(router->policy), in RegisterRemoteFeatures()
159 router->saName.service, router->saName.feature, ret); in RegisterRemoteFeatures()
164 int RegisterIdentity(const SaName *saName, SvcIdentity *saInfo, PolicyTrans **policy, uint32 *policyNum) in RegisterIdentity() argument
172 WriteString(&req, saName->service); in RegisterIdentity()
173 WriteBool(&req, saName->feature == NULL); in RegisterIdentity()
174 if (saName->feature != NULL) { in RegisterIdentity()
175 WriteString(&req, saName->feature); in RegisterIdentity()
240 if ((strcmp(router->saName.service, SAMGR_SERVICE) != 0) && in HandleIpc()
243 uid, router->saName in HandleIpc()
[all...]
H A Dsamgr_mini_ipc_adapter.c87 int RegisterIdentity(const SaName *saName, SvcIdentity *saInfo, PolicyTrans **policy, uint32 *policyNum) in RegisterIdentity() argument
94 WriteString(&req, saName->service); in RegisterIdentity()
95 WriteBool(&req, saName->feature == NULL); in RegisterIdentity()
96 if (saName->feature != NULL) { in RegisterIdentity()
97 WriteBool(&req, saName->feature); in RegisterIdentity()
H A Dendpoint.h72 int SAMGR_AddRouter(Endpoint *endpoint, const SaName *saName, const Identity *id, IUnknown *proxy);
73 int SAMGR_ProcPolicy(const Endpoint *endpoint, const SaName *saName, int token);
H A Dsamgr_ipc_adapter.h76 SaName saName; member
85 int RegisterIdentity(const SaName *saName, SvcIdentity *saInfo, PolicyTrans **policy, uint32 *policyNum);
/foundation/systemabilitymgr/samgr_lite/samgr_client/source/
H A Dremote_register_rpc.c52 SaName saName = {service, feature}; in SAMGR_RegisterServiceApi() local
53 int32 token = SAMGR_AddRouter(g_remoteRegister.endpoint, &saName, identity, iUnknown); in SAMGR_RegisterServiceApi()
68 SAMGR_ProcPolicy(g_remoteRegister.endpoint, &saName, token); in SAMGR_RegisterServiceApi()
H A Dremote_register.c46 SaName saName = {service, feature}; in SAMGR_RegisterServiceApi() local
47 int32 token = SAMGR_AddRouter(g_remoteRegister.endpoint, &saName, identity, iUnknown); in SAMGR_RegisterServiceApi()
52 return SAMGR_ProcPolicy(g_remoteRegister.endpoint, &saName, token); in SAMGR_RegisterServiceApi()
/foundation/systemabilitymgr/samgr_lite/samgr_server/source/
H A Dsamgr_server_rpc.c98 if (strncmp(node->saName.service, service, MAX_NAME_LEN) == 0) { in GetSaNodeBySaName()
100 if ((node->saName.feature != NULL) && (strncmp(node->saName.feature, feature, MAX_NAME_LEN) == 0)) { in GetSaNodeBySaName()
104 if (node->saName.feature == NULL) { in GetSaNodeBySaName()
148 SvcIdentity sid = SASTORA_Find(&g_server.store, saNode->saName.service, saNode->saName.feature); in GetSystemAbilityById()
170 saNode->saName.service = "mini_sa_rpc"; in InitializeGSaList()
171 saNode->saName.feature = NULL; in InitializeGSaList()
215 SaName saName = {SAMGR_SERVICE, NULL}; in Initialize() local
216 SAMGR_AddRouter(server->samgr, &saName, in Initialize()
[all...]
H A Dsamgr_server.h61 SaName saName; member
H A Dsamgr_server.c120 SaName saName = {SAMGR_SERVICE, NULL}; in Initialize() local
121 SAMGR_AddRouter(server->samgr, &saName, &server->identity, GET_IUNKNOWN(*server)); in Initialize()
/foundation/barrierfree/accessibility/services/aams/test/mock/src/aafwk/
H A Dsystem_ability_manager.cpp204 void SystemAbilityManager::ParseRemoteSaName(const std::u16string& name, std::string& deviceId, std::u16string& saName) in ParseRemoteSaName() argument
208 (void)saName; in ParseRemoteSaName()
/foundation/systemabilitymgr/samgr/services/samgr/native/include/
H A Dsystem_ability_manager_util.h31 static void ParseRemoteSaName(const std::u16string& name, std::string& deviceId, std::u16string& saName);
/foundation/systemabilitymgr/samgr/services/samgr/native/source/
H A Dsystem_ability_manager_util.cpp53 std::u16string& saName) in ParseRemoteSaName()
59 saName = Str8ToStr16(strVector[1]); in ParseRemoteSaName()
52 ParseRemoteSaName(const std::u16string& name, std::string& deviceId, std::u16string& saName) ParseRemoteSaName() argument
H A Dsystem_ability_manager.cpp1020 std::u16string saName; in NotifyRemoteSaDied() local
1022 SamgrUtil::ParseRemoteSaName(name, deviceId, saName); in NotifyRemoteSaDied()
1026 dBinderService_->NoticeServiceDie(saName, nodeId); in NotifyRemoteSaDied()
1028 Str16ToStr8(saName).c_str(), AnonymizeDeviceId(nodeId).c_str()); in NotifyRemoteSaDied()

Completed in 12 milliseconds