Home
last modified time | relevance | path

Searched refs:appId (Results 1 – 25 of 108) sorted by relevance

12345

/base/security/device_auth/services/group_manager/src/
Dgroup_manager.c22 int32_t CreateGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea… in CreateGroupImpl() argument
24 …return IsGroupSupport() ? GetGroupImplInstance()->createGroup(osAccountId, requestId, appId, creat… in CreateGroupImpl()
28 int32_t DeleteGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb… in DeleteGroupImpl() argument
30 …return IsGroupSupport() ? GetGroupImplInstance()->deleteGroup(osAccountId, requestId, appId, disba… in DeleteGroupImpl()
34 int32_t AddMemberToGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char … in AddMemberToGroupImpl() argument
36 …return IsGroupSupport() ? GetGroupImplInstance()->addMember(osAccountId, requestId, appId, addPara… in AddMemberToGroupImpl()
40 int32_t DeleteMemberFromGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const … in DeleteMemberFromGroupImpl() argument
42 …return IsGroupSupport() ? GetGroupImplInstance()->deleteMember(osAccountId, requestId, appId, dele… in DeleteMemberFromGroupImpl()
46 int32_t AddMultiMembersToGroupImpl(int32_t osAccountId, const char *appId, const char *addParams) in AddMultiMembersToGroupImpl() argument
48 return IsGroupSupport() ? GetGroupImplInstance()->addMultiMembers(osAccountId, appId, addParams) in AddMultiMembersToGroupImpl()
[all …]
Dgroup_manager_common.c34 int32_t AddReqInfoToJson(int64_t requestId, const char *appId, CJson *jsonParams) in AddReqInfoToJson() argument
40 if (AddStringToJson(jsonParams, FIELD_APP_ID, appId) != HC_SUCCESS) { in AddReqInfoToJson()
49 const char *appId = GetStringFromJson(jsonParams, FIELD_APP_ID); in BindCallbackToTask() local
50 if (appId == NULL) { in BindCallbackToTask()
54 task->cb = GetGMCallbackByAppId(appId); in BindCallbackToTask()
56 LOGE("Failed to find callback by appId! [AppId]: %s", appId); in BindCallbackToTask()
71 int32_t AddBindParamsToJson(int operationCode, int64_t requestId, const char *appId, CJson *jsonPar… in AddBindParamsToJson() argument
77 return AddReqInfoToJson(requestId, appId, jsonParams); in AddBindParamsToJson()
/base/security/device_auth/services/group_manager/inc/
Dgroup_manager.h29 int32_t CreateGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea…
30 int32_t DeleteGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb…
31 int32_t AddMemberToGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char …
32 int32_t DeleteMemberFromGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const …
33 int32_t AddMultiMembersToGroupImpl(int32_t osAccountId, const char *appId, const char *addParams);
34 int32_t DelMultiMembersFromGroupImpl(int32_t osAccountId, const char *appId, const char *deletePara…
37 int32_t RegListenerImpl(const char *appId, const DataChangeListener *listener);
38 int32_t UnRegListenerImpl(const char *appId);
40 int32_t CheckAccessToGroupImpl(int32_t osAccountId, const char *appId, const char *groupId);
41 int32_t GetGroupInfoByIdImpl(int32_t osAccountId, const char *appId, const char *groupId, char **re…
[all …]
Dgroup_operation.h27 …int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea…
28 …int32_t (*deleteGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb…
29 …int32_t (*addMember)(int32_t osAccountId, int64_t requestId, const char *appId, const char *addPar…
30 …int32_t (*deleteMember)(int32_t osAccountId, int64_t requestId, const char *appId, const char *del…
31 int32_t (*addMultiMembers)(int32_t osAccountId, const char *appId, const char *addParams);
32 int32_t (*delMultiMembers)(int32_t osAccountId, const char *appId, const char *deleteParams);
34 int32_t (*regListener)(const char *appId, const DataChangeListener *listener);
35 int32_t (*unRegListener)(const char *appId);
36 int32_t (*checkAccessToGroup)(int32_t osAccountId, const char *appId, const char *groupId);
37 … int32_t (*getAccessibleGroupInfoById)(int32_t osAccountId, const char *appId, const char *groupId,
[all …]
/base/security/device_auth/interfaces/innerkits/
Ddevice_auth.h158 void (*cancelRequest)(int64_t requestId, const char *appId);
162 int32_t (*regCallback)(const char *appId, const DeviceAuthCallback *callback);
163 int32_t (*unRegCallback)(const char *appId);
164 int32_t (*regDataChangeListener)(const char *appId, const DataChangeListener *listener);
165 int32_t (*unRegDataChangeListener)(const char *appId);
166 …int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea…
167 …int32_t (*deleteGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb…
168 …int32_t (*addMemberToGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char …
169 int32_t (*deleteMemberFromGroup)(int32_t osAccountId, int64_t requestId, const char *appId,
172 … int32_t (*addMultiMembersToGroup)(int32_t osAccountId, const char *appId, const char *addParams);
[all …]
/base/security/certificate_manager/test/unittest/src/
Dcm_remove_grant_test.cpp70 uint32_t appId = DEFAULT_APP_ID; in TestRemoveGrant() local
72 ret = CmGrantAppCertificate(&keyUri, appId, &authUri); in TestRemoveGrant()
93 uint32_t appId = 0; variable
94 int32_t ret = CmRemoveGrantedApp(keyUri, appId);
108 uint32_t appId = 0; variable
109 int32_t ret = CmRemoveGrantedApp(&keyUri, appId);
123 uint32_t appId = 0; variable
124 int32_t ret = CmRemoveGrantedApp(&keyUri, appId);
138 uint32_t appId = 0; variable
139 int32_t ret = CmRemoveGrantedApp(&keyUri, appId);
[all …]
Dcm_grant_test.cpp70 uint32_t appId = DEFAULT_APP_ID; in TestNormalGrant() local
74 appId += i; in TestNormalGrant()
77 ret = CmGrantAppCertificate(&keyUri, appId, &authUri); in TestNormalGrant()
98 uint32_t appId = DEFAULT_APP_ID; variable
100 int32_t ret = CmGrantAppCertificate(keyUri, appId, &authUri);
118 uint32_t appId = DEFAULT_APP_ID; variable
120 int32_t ret = CmGrantAppCertificate(&keyUri, appId, &authUri);
138 uint32_t appId = DEFAULT_APP_ID; variable
140 int32_t ret = CmGrantAppCertificate(&keyUri, appId, &authUri);
158 uint32_t appId = DEFAULT_APP_ID; variable
[all …]
/base/security/device_auth/services/group_manager/src/callback_manager/
Dcallback_manager.c26 char *appId; member
35 static int32_t UpdateCallbackIfExist(const char *appId, const DeviceAuthCallback *callback) in UpdateCallbackIfExist() argument
41 if ((entry != NULL) && (strcmp(entry->appId, appId) == 0)) { in UpdateCallbackIfExist()
56 static int32_t AddCallbackIfNotExist(const char *appId, const DeviceAuthCallback *callback) in AddCallbackIfNotExist() argument
58 uint32_t appIdLen = HcStrlen(appId) + 1; in AddCallbackIfNotExist()
64 if (strcpy_s(copyAppId, appIdLen, appId) != EOK) { in AddCallbackIfNotExist()
82 entry.appId = copyAppId; in AddCallbackIfNotExist()
158 const DeviceAuthCallback *GetGMCallbackByAppId(const char *appId) in GetGMCallbackByAppId() argument
164 if (strcmp(entry->appId, appId) == 0) { in GetGMCallbackByAppId()
173 int32_t RegGroupManagerCallback(const char *appId, const DeviceAuthCallback *callback) in RegGroupManagerCallback() argument
[all …]
/base/security/device_auth/services/group_manager/src/broadcast_manager/
Dbroadcast_manager.c27 char *appId; member
73 LOGI("[Broadcaster]: PostOnGroupCreated! [AppId]: %s", entry->appId); in PostOnGroupCreated()
96 LOGI("[Broadcaster]: PostOnGroupDeleted! [AppId]: %s", entry->appId); in PostOnGroupDeleted()
119 LOGI("[Broadcaster]: PostOnDeviceBound! [AppId]: %s", entry->appId); in PostOnDeviceBound()
142 LOGI("[Broadcaster]: PostOnDeviceUnBound! [AppId]: %s", entry->appId); in PostOnDeviceUnBound()
161 LOGI("[Broadcaster]: PostOnDeviceNotTrusted! [AppId]: %s", entry->appId); in PostOnDeviceNotTrusted()
179 …GI("[Broadcaster]: PostOnLastGroupDeleted! [AppId]: %s, [GroupType]: %d", entry->appId, groupType); in PostOnLastGroupDeleted()
193 LOGI("[Broadcaster]: PostOnTrustedDeviceNumChanged! [AppId]: %s", entry->appId); in PostOnTrustedDeviceNumChanged()
200 static int32_t UpdateListenerIfExist(const char *appId, const DataChangeListener *listener) in UpdateListenerIfExist() argument
206 if ((entry != NULL) && (strcmp(entry->appId, appId) == 0)) { in UpdateListenerIfExist()
[all …]
/base/security/device_auth/services/frameworks/src/hiview_adapter/
Ddev_auth_hievent.c47 const char *appId = GetStringFromJson(params, FIELD_APP_ID); in ReportHiEventCoreFuncInvoke() local
48 if (appId == NULL) { in ReportHiEventCoreFuncInvoke()
51 if (memcpy_s(event.appId, EVENT_APPID_LEN, appId, HcStrlen(appId)) != EOK) { in ReportHiEventCoreFuncInvoke()
52 (void)memset_s(event.appId, EVENT_APPID_LEN, 0, EVENT_APPID_LEN); in ReportHiEventCoreFuncInvoke()
/base/security/device_auth/services/group_manager/src/broadcast_manager_mock/
Dbroadcast_manager_mock.c37 int32_t AddListener(const char *appId, const DataChangeListener *listener) in AddListener() argument
39 (void)appId; in AddListener()
44 int32_t RemoveListener(const char *appId) in RemoveListener() argument
46 (void)appId; in RemoveListener()
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation.c50 … void RemoveNoPermissionGroup(int32_t osAccountId, GroupEntryVec *groupEntryVec, const char *appId) in RemoveNoPermissionGroup() argument
60 … if (CheckGroupAccessible(osAccountId, StringGet(&(*groupEntryPtr)->id), appId) == HC_SUCCESS) { in RemoveNoPermissionGroup()
236 const char *appId = GROUP_MANAGER_PACKAGE_NAME; in GetPkByParams() local
260 .pkgName = appId, in GetPkByParams()
445 const char *appId = NULL; in DeleteGroup() local
448 ((result = GetAppIdFromJson(jsonParams, &appId)) != HC_SUCCESS) || in DeleteGroup()
451 ((result = CheckPermForGroup(osAccountId, GROUP_DISBAND, appId, groupId)) != HC_SUCCESS)) { in DeleteGroup()
618 static int32_t RequestCreateGroup(int32_t osAccountId, int64_t requestId, const char *appId, const … in RequestCreateGroup() argument
621 if ((appId == NULL) || (createParams == NULL) || (osAccountId == INVALID_OS_ACCOUNT)) { in RequestCreateGroup()
625 LOGI("[Start]: RequestCreateGroup! [AppId]: %s, [RequestId]: %" PRId64, appId, requestId); in RequestCreateGroup()
[all …]
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservgetgroupinfo_fuzzer/
Ddevauthservgetgroupinfo_fuzzer.cpp69 static void GenerateReqJson(CJson *json, const char *appId) in GenerateReqJson() argument
72 AddStringToJson(json, FIELD_GROUP_NAME, appId); in GenerateReqJson()
73 AddStringToJson(json, FIELD_GROUP_OWNER, appId); in GenerateReqJson()
83 std::string appId(reinterpret_cast<const char *>(data), size); in FuzzDoGetGroupInfo()
85 gmInstance->regCallback(appId.c_str(), &g_gmCallback); in FuzzDoGetGroupInfo()
87 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoGetGroupInfo()
95 gmInstance->createGroup(0, reqId, appId.c_str(), createParams); in FuzzDoGetGroupInfo()
99 GenerateReqJson(reqJson, appId.c_str()); in FuzzDoGetGroupInfo()
104 gmInstance->getGroupInfo(0, appId.c_str(), reqJsonStr, &returnGroupVec, &groupNum); in FuzzDoGetGroupInfo()
/base/security/device_auth/frameworks/src/
Dipc_service.c43 const char *appId = NULL; in BindRequestIdWithAppId() local
52 appId = GetStringFromJson(dataJson, FIELD_APP_ID); in BindRequestIdWithAppId()
53 if (appId == NULL) { in BindRequestIdWithAppId()
59 ret = AddReqIdByAppId(appId, requestId); in BindRequestIdWithAppId()
68 const char *appId = NULL; in IpcServiceGmRegCallback() local
74 ret = GetIpcRequestParamByType(ipcParams, paramNum, PARAM_TYPE_APPID, (uint8_t *)&appId, NULL); in IpcServiceGmRegCallback()
85 …ret = AddIpcCallBackByAppId(appId, (const uint8_t *)callback, sizeof(DeviceAuthCallback), CB_TYPE_… in IpcServiceGmRegCallback()
95 DelIpcCallBackByAppId(appId, CB_TYPE_DEV_AUTH); in IpcServiceGmRegCallback()
98 AddIpcCbObjByAppId(appId, cbObjIdx, CB_TYPE_DEV_AUTH); in IpcServiceGmRegCallback()
100 callRet = g_devGroupMgrMethod.regCallback(appId, &g_bindCbAdt); in IpcServiceGmRegCallback()
[all …]
Dipc_sdk.c44 char appId[IPC_APPID_LEN]; member
50 static void DelIpcCliCallbackCtx(const char *appId, IpcProxyCbInfo *cbCache) in DelIpcCliCallbackCtx() argument
54 if (cbCache->appId[0] == 0) { in DelIpcCliCallbackCtx()
58 ret = memcmp(appId, cbCache->appId, strlen(cbCache->appId) + 1); in DelIpcCliCallbackCtx()
60 cbCache->appId[0] = 0; in DelIpcCliCallbackCtx()
66 static void AddIpcCliCallbackCtx(const char *appId, uintptr_t cbInst, IpcProxyCbInfo *cbCache) in AddIpcCliCallbackCtx() argument
72 eno = memcpy_s(cbCache->appId, IPC_APPID_LEN, appId, strlen(appId) + 1); in AddIpcCliCallbackCtx()
80 LOGI("success, appid: %s", appId); in AddIpcCliCallbackCtx()
130 static int32_t IpcGmRegCallback(const char *appId, const DeviceAuthCallback *callback) in IpcGmRegCallback() argument
136 if (!IS_STRING_VALID(appId)) { in IpcGmRegCallback()
[all …]
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Ddistributed_kv_data_manager.cpp30 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const… in GetSingleKvStore() argument
35 MockSingleKvStore::InsertMockKvStore(appId, storeId, kvStore); in GetSingleKvStore()
39 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, const StoreId &storeId) in CloseKvStore() argument
44 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, std::shared_ptr<SingleKvStore> &k… in CloseKvStore() argument
49 Status DistributedKvDataManager::DeleteKvStore(const AppId &appId, const StoreId &storeId, const st… in DeleteKvStore() argument
51 MockSingleKvStore::RemoveMockKvStore(appId, storeId); in DeleteKvStore()
/base/notification/distributed_notification_service/services/distributed/src/
Ddistributed_preferences_database.cpp67 DistributedKv::AppId appId = {.appId = APP_ID}; in GetKvStore() local
69 …DistributedKv::Status status = kvDataManager_->GetSingleKvStore(options, appId, storeId, kvStore_); in GetKvStore()
198 DistributedKv::AppId appId = {.appId = APP_ID}; in ClearDatabase() local
200 DistributedKv::Status status = kvDataManager_->CloseKvStore(appId, storeId); in ClearDatabase()
206 status = kvDataManager_->DeleteKvStore(appId, storeId, KV_STORE_PATH); in ClearDatabase()
216 DistributedKv::AppId appId = {.appId = APP_ID}; in CloseKvStore() local
217 kvDataManager_->CloseKvStore(appId, kvStore_); in CloseKvStore()
/base/security/device_auth/services/frameworks/src/session/
Dsession_manager.c245 static bool CheckCancelPermission(int64_t requestId, const char *appId, int cancelType, Session *se… in CheckCancelPermission() argument
251 requestId, appId, cancelType, sessionType); in CheckCancelPermission()
254 if ((session->appId == NULL) || (strcmp(appId, session->appId) != 0)) { in CheckCancelPermission()
256 requestId, appId, session->appId); in CheckCancelPermission()
262 requestId, appId, cancelType, sessionType); in CheckCancelPermission()
265 if ((session->appId == NULL) || (strcmp(appId, session->appId) != 0)) { in CheckCancelPermission()
267 requestId, appId, session->appId); in CheckCancelPermission()
277 void DestroySessionByType(int64_t requestId, const char *appId, int cancelType) in DestroySessionByType() argument
279 LOGI("requestId: %" PRId64 ", appId: %s, cancelType: %d", requestId, appId, cancelType); in DestroySessionByType()
289 if (!CheckCancelPermission(requestId, appId, cancelType, (Session *)(*session))) { in DestroySessionByType()
[all …]
/base/notification/distributed_notification_service/services/test/moduletest/mock/
Ddistributed_kv_data_manager.cpp30 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const… in GetSingleKvStore() argument
38 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, const StoreId &storeId) in CloseKvStore() argument
43 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, std::shared_ptr<SingleKvStore> &k… in CloseKvStore() argument
48 Status DistributedKvDataManager::DeleteKvStore(const AppId &appId, const StoreId &storeId, const st… in DeleteKvStore() argument
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Ddistributed_kv_data_manager.cpp30 Status DistributedKvDataManager::GetSingleKvStore(const Options &options, const AppId &appId, const… in GetSingleKvStore() argument
38 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, const StoreId &storeId) in CloseKvStore() argument
43 Status DistributedKvDataManager::CloseKvStore(const AppId &appId, std::shared_ptr<SingleKvStore> &k… in CloseKvStore() argument
48 Status DistributedKvDataManager::DeleteKvStore(const AppId &appId, const StoreId &storeId, const st… in DeleteKvStore() argument
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/
Dpeer_to_peer_group.c52 static int32_t CheckGroupName(int32_t osAccountId, const char *appId, const CJson *jsonParams) in CheckGroupName() argument
60 if (IsSameNameGroupExist(osAccountId, appId, groupName)) { in CheckGroupName()
61 … group with the same group name has been created! [AppId]: %s, [GroupName]: %s", appId, groupName); in CheckGroupName()
67 static int32_t GenerateGroupId(const char *groupName, const char *appId, char **returnGroupId) in GenerateGroupId() argument
73 Uint8Buff appIdBuff = {(uint8_t *)appId, HcStrlen(appId)}; in GenerateGroupId()
88 LOGE("Failed to get hash for groupId! [AppId]: %s, [GroupName]: %s", appId, groupName); in GenerateGroupId()
103 const char *appId = GetStringFromJson(jsonParams, FIELD_APP_ID); in GeneratePeerToPeerGroupId() local
104 if (appId == NULL) { in GeneratePeerToPeerGroupId()
108 int32_t result = GenerateGroupId(groupName, appId, returnGroupId); in GeneratePeerToPeerGroupId()
110 LOGE("Failed to generate groupId! [GroupName]: %s, [AppId]: %s", groupName, appId); in GeneratePeerToPeerGroupId()
[all …]
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservcheckaccesstogroup_fuzzer/
Ddevauthservcheckaccesstogroup_fuzzer.cpp75 std::string appId(reinterpret_cast<const char *>(data), size); in FuzzDoCheckAccessToGroup()
77 gmInstance->regCallback(appId.c_str(), &g_gmCallback); in FuzzDoCheckAccessToGroup()
79 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoCheckAccessToGroup()
87 gmInstance->createGroup(0, reqId, appId.c_str(), createParams); in FuzzDoCheckAccessToGroup()
90 gmInstance->checkAccessToGroup(0, appId.c_str(), g_groupId); in FuzzDoCheckAccessToGroup()
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservisdeviceingroup_fuzzer/
Ddevauthservisdeviceingroup_fuzzer.cpp75 std::string appId(reinterpret_cast<const char *>(data), size); in FuzzDoIsDeviceInGroup()
77 gmInstance->regCallback(appId.c_str(), &g_gmCallback); in FuzzDoIsDeviceInGroup()
79 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoIsDeviceInGroup()
87 gmInstance->createGroup(0, reqId, appId.c_str(), createParams); in FuzzDoIsDeviceInGroup()
90 gmInstance->isDeviceInGroup(0, appId.c_str(), g_groupId, localUdid); in FuzzDoIsDeviceInGroup()
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservgetrelatedgroups_fuzzer/
Ddevauthservgetrelatedgroups_fuzzer.cpp75 std::string appId(reinterpret_cast<const char *>(data), size); in FuzzDoGetRelatedGroups()
77 gmInstance->regCallback(appId.c_str(), &g_gmCallback); in FuzzDoGetRelatedGroups()
79 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoGetRelatedGroups()
87 gmInstance->createGroup(0, reqId, appId.c_str(), createParams); in FuzzDoGetRelatedGroups()
92 gmInstance->getRelatedGroups(0, appId.c_str(), localUdid, &returnGroupVec, &groupNum); in FuzzDoGetRelatedGroups()
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservdeletegroup_fuzzer/
Ddevauthservdeletegroup_fuzzer.cpp75 std::string appId(reinterpret_cast<const char *>(data), size); in FuzzDoDeleteGroup()
77 gmInstance->regCallback(appId.c_str(), &g_gmCallback); in FuzzDoDeleteGroup()
79 AddStringToJson(createJson, FIELD_GROUP_NAME, appId.c_str()); in FuzzDoDeleteGroup()
87 gmInstance->createGroup(0, reqId, appId.c_str(), createParams); in FuzzDoDeleteGroup()
95 gmInstance->deleteGroup(0, reqId, appId.c_str(), deleteParams); in FuzzDoDeleteGroup()

12345