/base/security/device_auth/services/group_manager/src/ |
D | group_manager.c | 24 int32_t CreateGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea… in CreateGroupImpl() argument 28 …return IsGroupSupport() ? GetGroupImplInstance()->createGroup(osAccountId, requestId, appId, creat… in CreateGroupImpl() 32 int32_t DeleteGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb… in DeleteGroupImpl() argument 36 …return IsGroupSupport() ? GetGroupImplInstance()->deleteGroup(osAccountId, requestId, appId, disba… in DeleteGroupImpl() 40 int32_t DeleteMemberFromGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const … in DeleteMemberFromGroupImpl() argument 44 …return IsGroupSupport() ? GetGroupImplInstance()->deleteMember(osAccountId, requestId, appId, dele… in DeleteMemberFromGroupImpl() 48 int32_t AddMultiMembersToGroupImpl(int32_t osAccountId, const char *appId, const char *addParams) in AddMultiMembersToGroupImpl() argument 51 return IsGroupSupport() ? GetGroupImplInstance()->addMultiMembers(osAccountId, appId, addParams) in AddMultiMembersToGroupImpl() 55 int32_t DelMultiMembersFromGroupImpl(int32_t osAccountId, const char *appId, const char *deletePara… in DelMultiMembersFromGroupImpl() argument 58 …return IsGroupSupport() ? GetGroupImplInstance()->delMultiMembers(osAccountId, appId, deleteParams) in DelMultiMembersFromGroupImpl() [all …]
|
D | group_manager_common.c | 34 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/ |
D | group_manager.h | 29 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 DeleteMemberFromGroupImpl(int32_t osAccountId, int64_t requestId, const char *appId, const … 32 int32_t AddMultiMembersToGroupImpl(int32_t osAccountId, const char *appId, const char *addParams); 33 int32_t DelMultiMembersFromGroupImpl(int32_t osAccountId, const char *appId, const char *deletePara… 35 int32_t RegListenerImpl(const char *appId, const DataChangeListener *listener); 36 int32_t UnRegListenerImpl(const char *appId); 39 int32_t CheckAccessToGroupImpl(int32_t osAccountId, const char *appId, const char *groupId); 40 int32_t GetGroupInfoByIdImpl(int32_t osAccountId, const char *appId, const char *groupId, char **re… 41 int32_t GetGroupInfoImpl(int32_t osAccountId, const char *appId, const char *queryParams, [all …]
|
D | group_operation.h | 32 …int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea… 33 …int32_t (*deleteGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb… 34 …int32_t (*deleteMember)(int32_t osAccountId, int64_t requestId, const char *appId, const char *del… 35 int32_t (*addMultiMembers)(int32_t osAccountId, const char *appId, const char *addParams); 36 int32_t (*delMultiMembers)(int32_t osAccountId, const char *appId, const char *deleteParams); 37 int32_t (*regListener)(const char *appId, const DataChangeListener *listener); 38 int32_t (*unRegListener)(const char *appId); 40 int32_t (*checkAccessToGroup)(int32_t osAccountId, const char *appId, const char *groupId); 41 … int32_t (*getAccessibleGroupInfoById)(int32_t osAccountId, const char *appId, const char *groupId, 43 … int32_t (*getAccessibleGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams, [all …]
|
/base/security/certificate_manager/test/unittest/src/ |
D | cm_remove_grant_test.cpp | 70 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 …]
|
D | cm_grant_test.cpp | 70 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/interfaces/inner_api/ |
D | device_auth.h | 214 void (*cancelRequest)(int64_t requestId, const char *appId); 223 int32_t (*regCallback)(const char *appId, const DeviceAuthCallback *callback); 225 int32_t (*unRegCallback)(const char *appId); 227 int32_t (*regDataChangeListener)(const char *appId, const DataChangeListener *listener); 229 int32_t (*unRegDataChangeListener)(const char *appId); 231 …int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea… 233 …int32_t (*deleteGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb… 235 …int32_t (*addMemberToGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char … 237 int32_t (*deleteMemberFromGroup)(int32_t osAccountId, int64_t requestId, const char *appId, 242 … int32_t (*addMultiMembersToGroup)(int32_t osAccountId, const char *appId, const char *addParams); [all …]
|
D | device_auth_ext.h | 115 …int32_t (*createGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *crea… 117 …int32_t (*deleteGroup)(int32_t osAccountId, int64_t requestId, const char *appId, const char *disb… 119 int32_t (*getGroupInfo)(int32_t osAccountId, const char *appId, const char *queryParams, 124 int32_t (*regCallback)(const char *appId, const DeviceAuthCallback *callback); 126 int32_t (*unRegCallback)(const char *appId);
|
/base/security/certificate_manager/test/unittest/multi_thread_test/src/ |
D | cm_remove_grant_multi_thread_test.cpp | 75 uint32_t appId = DEFAULT_APP_ID; in TestRemoveGrantPreAction() local 77 ret = CmGrantAppCertificate(&keyUri, appId, &authUri); in TestRemoveGrantPreAction() 111 uint32_t appId = 0; variable 112 int32_t ret = CmRemoveGrantedApp(keyUri, appId); 126 uint32_t appId = 0; variable 127 int32_t ret = CmRemoveGrantedApp(&keyUri, appId); 141 uint32_t appId = 0; variable 142 int32_t ret = CmRemoveGrantedApp(&keyUri, appId); 156 uint32_t appId = 0; variable 157 int32_t ret = CmRemoveGrantedApp(&keyUri, appId); [all …]
|
D | cm_grant_multi_thread_test.cpp | 78 uint32_t appId = DEFAULT_APP_ID; in TestGrantAppCertificate() local 83 appId += i; in TestGrantAppCertificate() 86 ret = CmGrantAppCertificate(&keyUri, appId, &authUri); in TestGrantAppCertificate() 112 uint32_t appId = DEFAULT_APP_ID; variable 114 int32_t ret = CmGrantAppCertificate(keyUri, appId, &authUri); 132 uint32_t appId = DEFAULT_APP_ID; variable 134 int32_t ret = CmGrantAppCertificate(&keyUri, appId, &authUri); 152 uint32_t appId = DEFAULT_APP_ID; variable 154 int32_t ret = CmGrantAppCertificate(&keyUri, appId, &authUri); 172 uint32_t appId = DEFAULT_APP_ID; variable [all …]
|
/base/security/device_auth/services/group_manager/src/callback_manager/ |
D | callback_manager.c | 26 char *appId; member 35 static int32_t UpdateCallbackIfExist(const char *appId, const DeviceAuthCallback *callback) in UpdateCallbackIfExist() argument 41 if (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/ |
D | broadcast_manager.c | 27 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 (strcmp(entry->appId, appId) == 0) { in UpdateListenerIfExist() [all …]
|
/base/security/device_auth/services/group_manager/src/broadcast_manager_mock/ |
D | broadcast_manager_mock.c | 37 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/ |
D | group_operation.c | 50 … void RemoveNoPermissionGroup(int32_t osAccountId, GroupEntryVec *groupEntryVec, const char *appId) in RemoveNoPermissionGroup() argument 56 … if (CheckGroupAccessible(osAccountId, StringGet(&(*groupEntryPtr)->id), appId) == HC_SUCCESS) { in RemoveNoPermissionGroup() 219 const char *appId = GROUP_MANAGER_PACKAGE_NAME; in GetPkByParams() local 239 .pkgName = appId, in GetPkByParams() 406 const char *appId = NULL; in DeleteGroup() local 409 ((result = GetAppIdFromJson(jsonParams, &appId)) != HC_SUCCESS) || in DeleteGroup() 412 ((result = CheckPermForGroup(osAccountId, GROUP_DISBAND, appId, groupId)) != HC_SUCCESS)) { in DeleteGroup() 471 static int32_t RequestCreateGroup(int32_t osAccountId, int64_t requestId, const char *appId, const … in RequestCreateGroup() argument 474 if ((appId == NULL) || (createParams == NULL) || (osAccountId == INVALID_OS_ACCOUNT)) { in RequestCreateGroup() 478 LOGI("[Start]: RequestCreateGroup! [AppId]: %s, [ReqId]: %" PRId64, appId, requestId); in RequestCreateGroup() [all …]
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
D | distributed_kv_data_manager.cpp | 30 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/security/device_auth/test/fuzztest/device_auth_service/devauthservgetgroupinfo_fuzzer/ |
D | devauthservgetgroupinfo_fuzzer.cpp | 69 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/ |
D | ipc_service.c | 43 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 …]
|
D | ipc_sdk.c | 44 char appId[IPC_APPID_LEN]; member 55 static void DelIpcCliCallbackCtx(const char *appId, IpcProxyCbInfo *cbCache) in DelIpcCliCallbackCtx() argument 59 if (cbCache->appId[0] == 0) { in DelIpcCliCallbackCtx() 63 ret = memcmp(appId, cbCache->appId, strlen(cbCache->appId) + 1); in DelIpcCliCallbackCtx() 65 cbCache->appId[0] = 0; in DelIpcCliCallbackCtx() 71 static void AddIpcCliCallbackCtx(const char *appId, uintptr_t cbInst, IpcProxyCbInfo *cbCache) in AddIpcCliCallbackCtx() argument 77 eno = memcpy_s(cbCache->appId, IPC_APPID_LEN, appId, strlen(appId) + 1); in AddIpcCliCallbackCtx() 85 LOGI("success, appid: %s", appId); in AddIpcCliCallbackCtx() 132 static int32_t IpcGmRegCallback(const char *appId, const DeviceAuthCallback *callback) in IpcGmRegCallback() argument 138 if (IsStrInvalid(appId) || callback == NULL) { in IpcGmRegCallback() [all …]
|
/base/customization/enterprise_device_management/interfaces/inner_api/browser/src/ |
D | browser_proxy.cpp | 40 int32_t BrowserProxy::SetPolicies(const AppExecFwk::ElementName &admin, const std::string &appId, in SetPolicies() argument 44 if (appId.empty()) { in SetPolicies() 54 std::vector<std::string> key{appId}; in SetPolicies() 72 int32_t BrowserProxy::GetPolicies(AppExecFwk::ElementName &admin, const std::string &appId, std::st… in GetPolicies() argument 75 if (appId.empty()) { in GetPolicies() 79 return GetPolicies(&admin, appId, policies); in GetPolicies() 82 int32_t BrowserProxy::GetPolicies(AppExecFwk::ElementName *admin, const std::string &appId, std::st… in GetPolicies() argument 94 data.WriteString(appId); in GetPolicies()
|
/base/notification/distributed_notification_service/services/distributed/src/ |
D | distributed_preferences_database.cpp | 68 DistributedKv::AppId appId = {.appId = APP_ID}; in GetKvStore() local 70 …DistributedKv::Status status = kvDataManager_->GetSingleKvStore(options, appId, storeId, kvStore_); in GetKvStore() 199 DistributedKv::AppId appId = {.appId = APP_ID}; in ClearDatabase() local 201 DistributedKv::Status status = kvDataManager_->CloseKvStore(appId, storeId); in ClearDatabase() 207 status = kvDataManager_->DeleteKvStore(appId, storeId, KV_STORE_PATH); in ClearDatabase() 217 DistributedKv::AppId appId = {.appId = APP_ID}; in CloseKvStore() local 218 kvDataManager_->CloseKvStore(appId, kvStore_); in CloseKvStore()
|
/base/notification/distributed_notification_service/services/test/moduletest/mock/ |
D | distributed_kv_data_manager.cpp | 30 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/ |
D | distributed_kv_data_manager.cpp | 30 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/frameworks/src/hiview_adapter/ |
D | hisysevent_adapter.cpp | 27 …DevAuthReportCallEvent(const char *funcName, int32_t osAccountId, int64_t reqId, const char *appId) in DevAuthReportCallEvent() argument 36 STR_APP_ID, ((appId != NULL) ? appId : STR_UNKNOWN)); in DevAuthReportCallEvent()
|
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/ |
D | peer_to_peer_group.c | 53 static int32_t CheckGroupName(int32_t osAccountId, const char *appId, const CJson *jsonParams) in CheckGroupName() argument 61 if (IsSameNameGroupExist(osAccountId, appId, groupName)) { in CheckGroupName() 62 … group with the same group name has been created! [AppId]: %s, [GroupName]: %s", appId, groupName); in CheckGroupName() 68 static int32_t GenerateGroupId(const char *groupName, const char *appId, char **returnGroupId) in GenerateGroupId() argument 74 Uint8Buff appIdBuff = {(uint8_t *)appId, HcStrlen(appId)}; in GenerateGroupId() 89 LOGE("Failed to get hash for groupId! [AppId]: %s, [GroupName]: %s", appId, groupName); in GenerateGroupId() 104 const char *appId = GetStringFromJson(jsonParams, FIELD_APP_ID); in GeneratePeerToPeerGroupId() local 105 if (appId == NULL) { in GeneratePeerToPeerGroupId() 109 int32_t result = GenerateGroupId(groupName, appId, returnGroupId); in GeneratePeerToPeerGroupId() 111 LOGE("Failed to generate groupId! [GroupName]: %s, [AppId]: %s", groupName, appId); in GeneratePeerToPeerGroupId() [all …]
|
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
D | set_browser_policies_plugin.cpp | 60 std::string appId = data.ReadString(); in OnGetPolicy() local 61 if (appId.empty() && FAILED(BundleManagerUtils::GetAppIdByCallingUid(appId))) { in OnGetPolicy() 67 if (policies.count(appId) > 0) { in OnGetPolicy() 68 policy = policies[appId]; in OnGetPolicy()
|