/base/security/device_auth/services/frameworks/src/hiview_adapter/ |
H A D | hisysevent_adapter.cpp | 54 STR_GROUP_TYPE, eventData.groupType, in DevAuthReportCallEvent() 82 eventData.groupType = DEFAULT_GROUP_TYPE; in DevAuthReportCallEventWithResult() 100 void DevAuthReportUeCallEvent(int32_t osAccountId, int32_t groupType, const char *appId, const char *funcName) in DevAuthReportUeCallEvent() argument 108 STR_GROUP_TYPE, groupType, in DevAuthReportUeCallEvent() 116 int32_t groupType = GROUP_TYPE_INVALID; in DevAuthReportUeCallEventByParams() local 119 (void)GetIntFromJson(params, FIELD_GROUP_TYPE, &groupType); in DevAuthReportUeCallEventByParams() 122 DEV_AUTH_REPORT_UE_CALL_EVENT(osAccountId, groupType, appId, funcName); in DevAuthReportUeCallEventByParams()
|
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/group_auth_common/ |
H A D | group_auth_data_operation.c | 182 bool GaIsDeviceInGroup(int32_t groupType, int32_t osAccountId, const char *peerUdid, const char *peerAuthId, in GaIsDeviceInGroup() argument 186 int32_t authForm = GroupTypeToAuthForm(groupType); in GaIsDeviceInGroup() 235 int32_t groupType; in AuthFormToGroupType() local 238 groupType = PEER_TO_PEER_GROUP; in AuthFormToGroupType() 241 groupType = IDENTICAL_ACCOUNT_GROUP; in AuthFormToGroupType() 244 groupType = ACROSS_ACCOUNT_AUTHORIZE_GROUP; in AuthFormToGroupType() 248 groupType = GROUP_TYPE_INVALID; in AuthFormToGroupType() 251 return groupType; in AuthFormToGroupType() 254 int32_t GroupTypeToAuthForm(int32_t groupType) in GroupTypeToAuthForm() argument 257 switch (groupType) { in GroupTypeToAuthForm() [all...] |
/base/security/device_auth/services/legacy/group_manager/src/group_operation/ |
H A D | group_operation.c | 39 static bool IsGroupTypeSupported(int groupType) in IsGroupTypeSupported() argument 41 if (((groupType == PEER_TO_PEER_GROUP) && (IsPeerToPeerGroupSupported())) || in IsGroupTypeSupported() 42 ((groupType == IDENTICAL_ACCOUNT_GROUP) && (IsIdenticalAccountGroupSupported())) || in IsGroupTypeSupported() 43 ((groupType == ACROSS_ACCOUNT_AUTHORIZE_GROUP) && (IsAcrossAccountGroupSupported()))) { in IsGroupTypeSupported() 46 LOGE("The group type is not supported! [GroupType]: %d", groupType); in IsGroupTypeSupported() 177 static bool IsQueryParamsValid(int groupType, const char *groupId, const char *groupName, const char *groupOwner) in IsQueryParamsValid() argument 179 if ((groupType == ALL_GROUP) && (groupId == NULL) && (groupName == NULL) && (groupOwner == NULL)) { in IsQueryParamsValid() 376 static BaseGroup *GetGroupInstance(int32_t groupType) in GetGroupInstance() argument 378 if (!IsGroupTypeSupported(groupType)) { in GetGroupInstance() 382 if (groupType in GetGroupInstance() 394 int32_t groupType = PEER_TO_PEER_GROUP; CreateGroup() local 412 uint32_t groupType = PEER_TO_PEER_GROUP; DeleteGroup() local 658 int32_t groupType = GROUP_TYPE_INVALID; AddMultiMembersToGroupInner() local 710 int32_t groupType = GROUP_TYPE_INVALID; DelMultiMembersFromGroupInner() local 902 int32_t groupType = ALL_GROUP; GetAccessibleGroupInfo() local 935 GetAccessibleJoinedGroups(int32_t osAccountId, const char *appId, int groupType, char **returnGroupVec, uint32_t *groupNum) GetAccessibleJoinedGroups() argument [all...] |
/base/security/device_auth/services/frameworks/inc/hiview_adapter/ |
H A D | hisysevent_adapter.h | 90 #define DEV_AUTH_REPORT_UE_CALL_EVENT(osAccountId, groupType, appId, funcName) 102 #define DEV_AUTH_REPORT_UE_CALL_EVENT(osAccountId, groupType, appId, funcName) \ 103 DevAuthReportUeCallEvent(osAccountId, groupType, appId, funcName) 118 int32_t groupType; member 137 void DevAuthReportUeCallEvent(int32_t osAccountId, int32_t groupType, const char *appId,
|
/base/security/device_auth/services/legacy/group_auth/inc/ |
H A D | group_auth_data_operation.h | 28 bool GaIsDeviceInGroup(int32_t groupType, int32_t osAccountId, const char *peerUdid, const char *peerAuthId, 32 int32_t GroupTypeToAuthForm(int32_t groupType);
|
/base/security/device_auth/test/fuzztest/group_manage/getjoinedgroups_fuzzer/ |
H A D | getjoinedgroups_fuzzer.cpp | 32 const int *groupType = reinterpret_cast<const int *>(data); in FuzzDoGetJoinedGroups() local 36 gmInstance->getJoinedGroups(*osAccountId, appId.c_str(), *groupType, &outGroups, &groupNum); in FuzzDoGetJoinedGroups()
|
/base/security/device_auth/services/legacy/group_manager/inc/ |
H A D | group_operation_common.h | 27 bool IsAccountRelatedGroup(int groupType); 42 int32_t CheckGroupNumLimit(int32_t osAccountId, int32_t groupType, const char *appId); 52 int32_t AddGroupTypeToParams(uint32_t groupType, TrustedGroupEntry *groupParams); 97 int32_t GetJoinedGroups(int32_t osAccountId, int groupType, GroupEntryVec *returnGroupEntryVec);
|
H A D | group_manager.h | 43 int32_t GetJoinedGroupsImpl(int32_t osAccountId, const char *appId, int groupType,
|
H A D | group_operation.h | 45 int32_t (*getAccessibleJoinedGroups)(int32_t osAccountId, const char *appId, int groupType,
|
/base/security/device_auth/services/legacy/group_manager/inc/broadcast_manager/ |
H A D | broadcast_manager.h | 32 void (*postOnLastGroupDeleted)(const char *peerUdid, int groupType);
|
/base/security/device_auth/test/fuzztest/group_manage/groupoperationcommon_fuzzer/ |
H A D | groupoperationcommon_fuzzer.cpp | 34 .groupType = PEER_TO_PEER_GROUP, 302 uint32_t groupType; in GroupOperationTest45() local 303 (void)GetGroupTypeFromDb(DEFAULT_OS_ACCOUNT, nullptr, &groupType); in GroupOperationTest45() 313 uint32_t groupType; in GroupOperationTest47() local 314 (void)GetGroupTypeFromDb(DEFAULT_OS_ACCOUNT, NORMAL_STR, &groupType); in GroupOperationTest47()
|
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/ |
H A D | account_related_group_auth.c | 188 queryParams.groupType = IDENTICAL_ACCOUNT_GROUP; in IsPeerInIdenticalGroup() 216 LOGI("Try to get account group info, groupType: %d.", type); in GaGetAccountGroup() 217 queryParams->groupType = type; in GaGetAccountGroup() 382 int32_t groupType = AuthFormToGroupType(authForm); in QueryAuthGroupForServer() local 383 if (groupType == GROUP_TYPE_INVALID) { in QueryAuthGroupForServer() 388 queryParams.groupType = (uint32_t)groupType; in QueryAuthGroupForServer() 389 if (queryParams.groupType == IDENTICAL_ACCOUNT_GROUP) { in QueryAuthGroupForServer() 498 int32_t groupType = AuthFormToGroupType(authForm); in QueryGroupForAccountPlugin() local 499 if (groupType in QueryGroupForAccountPlugin() [all...] |
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservregdatachangelistener_fuzzer/ |
H A D | devauthservregdatachangelistener_fuzzer.cpp | 33 static void OnLastGroupDeleted(const char *peerUdid, int groupType) {} in OnLastGroupDeleted() argument
|
/base/security/device_auth/test/fuzztest/group_manage/registerdatachangelistener_fuzzer/ |
H A D | registerdatachangelistener_fuzzer.cpp | 29 void onLastGroupDeleted(const char *peerUdid, int groupType) {} in onLastGroupDeleted() argument
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/ |
H A D | compatible_auth_sub_session_common.c | 79 queryParams.groupType = PEER_TO_PEER_GROUP; in GetAccountUnrelatedCandidateGroups() 115 static int32_t AddGeneralParams(const char *groupId, int32_t groupType, const TrustedDeviceEntry *localAuthInfo, in AddGeneralParams() argument 122 int32_t authForm = GroupTypeToAuthForm(groupType); in AddGeneralParams() 128 if ((groupType == COMPATIBLE_GROUP) && (serviceType != NULL)) { in AddGeneralParams() 150 int32_t groupType = groupInfo->type; in ExtractAndAddParams() local 151 int32_t authForm = GroupTypeToAuthForm(groupType); in ExtractAndAddParams() 157 res = AddGeneralParams(groupId, groupType, localAuthInfo, paramsData); in ExtractAndAddParams()
|
/base/security/device_auth/services/legacy/group_manager/src/ |
H A D | group_manager.c | 103 int32_t GetJoinedGroupsImpl(int32_t osAccountId, const char *appId, int groupType, in GetJoinedGroupsImpl() argument 107 return IsGroupSupport() ? GetGroupImplInstance()->getAccessibleJoinedGroups(osAccountId, appId, groupType, in GetJoinedGroupsImpl()
|
/base/security/device_auth/services/legacy/group_manager/src/broadcast_manager/ |
H A D | broadcast_manager.c | 126 static void PostOnLastGroupDeleted(const char *peerUdid, int groupType) in PostOnLastGroupDeleted() argument 137 LOGI("[Broadcaster]: PostOnLastGroupDeleted! [AppId]: %s, [GroupType]: %d", entry->appId, groupType); in PostOnLastGroupDeleted() 138 entry->listener->onLastGroupDeleted(peerUdid, groupType); in PostOnLastGroupDeleted()
|
/base/security/device_auth/services/legacy/group_manager/src/group_operation/group_operation_common/ |
H A D | group_operation_common.c | 213 int32_t CheckGroupNumLimit(int32_t osAccountId, int32_t groupType, const char *appId) in CheckGroupNumLimit() argument 216 (void)groupType; in CheckGroupNumLimit() 330 int32_t GetJoinedGroups(int32_t osAccountId, int groupType, GroupEntryVec *returnGroupEntryVec) in GetJoinedGroups() argument 333 params.groupType = (uint32_t)groupType; in GetJoinedGroups() 396 bool IsAccountRelatedGroup(int groupType) in IsAccountRelatedGroup() argument 398 return ((groupType == IDENTICAL_ACCOUNT_GROUP) || (groupType == ACROSS_ACCOUNT_AUTHORIZE_GROUP)); in IsAccountRelatedGroup() 576 int32_t AddGroupTypeToParams(uint32_t groupType, TrustedGroupEntry *groupParams) in AddGroupTypeToParams() argument 578 groupParams->type = groupType; in AddGroupTypeToParams() [all...] |
/base/security/device_auth/interfaces/inner_api/ |
H A D | device_auth.h | 29 #define FIELD_GROUP_TYPE "groupType" 199 void (*onLastGroupDeleted)(const char *peerUdid, int groupType); 274 int32_t (*getJoinedGroups)(int32_t osAccountId, const char *appId, int groupType,
|
/base/security/device_auth/services/legacy/group_manager/src/group_operation/across_account_group/ |
H A D | across_account_group.c | 191 params.groupType = IDENTICAL_ACCOUNT_GROUP; in AssertIdenticalGroupExist() 345 uint32_t groupType; in CheckChangeParams() local 348 ((result = GetGroupTypeFromDb(osAccountId, groupId, &groupType)) != HC_SUCCESS) || in CheckChangeParams() 349 ((result = AssertGroupTypeMatch(groupType, ACROSS_ACCOUNT_AUTHORIZE_GROUP)) != HC_SUCCESS) || in CheckChangeParams() 496 params.groupType = ACROSS_ACCOUNT_AUTHORIZE_GROUP; in CheckUserIdValid()
|
/base/security/device_auth/test/unittest/deviceauth/source/ |
H A D | group_operation_common_test.cpp | 39 .groupType = PEER_TO_PEER_GROUP, 373 uint32_t groupType; in HWTEST_F() local 374 int32_t ret = GetGroupTypeFromDb(DEFAULT_OS_ACCOUNT, nullptr, &groupType); in HWTEST_F() 386 uint32_t groupType; in HWTEST_F() local 387 int32_t ret = GetGroupTypeFromDb(DEFAULT_OS_ACCOUNT, NORMAL_STR, &groupType); in HWTEST_F()
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/ |
H A D | compatible_bind_sub_session.c | 50 uint32_t groupType = PEER_TO_PEER_GROUP; in CheckInvitePeer() local 53 ((result = GetGroupTypeFromDb(osAccountId, groupId, &groupType)) != HC_SUCCESS) || in CheckInvitePeer() 54 ((result = AssertGroupTypeMatch(groupType, PEER_TO_PEER_GROUP)) != HC_SUCCESS) || in CheckInvitePeer() 64 int32_t groupType = PEER_TO_PEER_GROUP; in CheckJoinPeer() local 65 if (GetIntFromJson(jsonParams, FIELD_GROUP_TYPE, &groupType) != HC_SUCCESS) { in CheckJoinPeer() 66 LOGE("Failed to get groupType from jsonParams!"); in CheckJoinPeer() 69 return AssertGroupTypeMatch(groupType, PEER_TO_PEER_GROUP); in CheckJoinPeer()
|
H A D | compatible_bind_sub_session_common.c | 83 int32_t groupType = PEER_TO_PEER_GROUP; in AddGroupTypeIfValid() local 84 if (GetIntFromJson(jsonParams, FIELD_GROUP_TYPE, &groupType) != HC_SUCCESS) { in AddGroupTypeIfValid() 85 LOGE("Failed to get groupType from json params!"); in AddGroupTypeIfValid() 88 if (groupType != PEER_TO_PEER_GROUP) { in AddGroupTypeIfValid() 89 LOGE("The input groupType is invalid!"); in AddGroupTypeIfValid() 92 if (AddIntToJson(params, FIELD_GROUP_TYPE, groupType) != HC_SUCCESS) { in AddGroupTypeIfValid() 93 LOGE("Failed to add groupType to params!"); in AddGroupTypeIfValid() 268 LOGE("Failed to add groupType to json!"); in AddGroupInfoToParams() 532 LOGE("Failed to add groupType to data!"); in AddGroupInfoToSendData()
|
/base/security/device_auth/services/data_manager/inc/ |
H A D | data_manager.h | 67 uint32_t groupType; member
|
/base/security/device_auth/services/legacy/group_manager/src/group_operation/peer_to_peer_group/ |
H A D | peer_to_peer_group.c | 405 uint32_t groupType = PEER_TO_PEER_GROUP; in CheckDeletePeerStatus() local 408 ((result = GetGroupTypeFromDb(osAccountId, groupId, &groupType)) != HC_SUCCESS) || in CheckDeletePeerStatus() 409 ((result = AssertGroupTypeMatch(groupType, PEER_TO_PEER_GROUP)) != HC_SUCCESS) || in CheckDeletePeerStatus()
|