/base/security/device_auth/services/group_manager/src/group_operation/ |
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() 173 static bool IsQueryParamsValid(int groupType, const char *groupId, const char *groupName, const cha… in IsQueryParamsValid() argument 175 …if ((groupType == ALL_GROUP) && (groupId == NULL) && (groupName == NULL) && (groupOwner == NULL)) { in IsQueryParamsValid() 371 static BaseGroup *GetGroupInstance(int32_t groupType) in GetGroupInstance() argument 373 if (!IsGroupTypeSupported(groupType)) { in GetGroupInstance() 377 if (groupType == PEER_TO_PEER_GROUP) { in GetGroupInstance() [all …]
|
D | group_operation_common.c | 139 int32_t CheckGroupNumLimit(int32_t osAccountId, int32_t groupType, const char *appId) in CheckGroupNumLimit() argument 142 (void)groupType; in CheckGroupNumLimit() 236 int32_t GetGroupInfo(int32_t osAccountId, int groupType, const char *groupId, const char *groupName, in GetGroupInfo() argument 248 params.groupType = groupType; in GetGroupInfo() 252 int32_t GetJoinedGroups(int32_t osAccountId, int groupType, GroupEntryVec *returnGroupEntryVec) in GetJoinedGroups() argument 255 params.groupType = groupType; in GetJoinedGroups() 363 int32_t groupType = groupInfo->type; in AddGroupTypeToReturn() local 364 if (AddIntToJson(json, FIELD_GROUP_TYPE, groupType) != HC_SUCCESS) { in AddGroupTypeToReturn() 449 bool IsAccountRelatedGroup(int groupType) in IsAccountRelatedGroup() argument 451 … return ((groupType == IDENTICAL_ACCOUNT_GROUP) || (groupType == ACROSS_ACCOUNT_AUTHORIZE_GROUP)); in IsAccountRelatedGroup() [all …]
|
/base/security/device_auth/services/group_auth/src/group_auth_manager/ |
D | group_auth_data_operation.c | 209 bool GaIsDeviceInGroup(int32_t groupType, int32_t osAccountId, const char *peerUdid, const char *pe… in GaIsDeviceInGroup() argument 213 int32_t authForm = GroupTypeToAuthForm(groupType); in GaIsDeviceInGroup() 262 int32_t groupType; in AuthFormToGroupType() local 265 groupType = PEER_TO_PEER_GROUP; in AuthFormToGroupType() 268 groupType = IDENTICAL_ACCOUNT_GROUP; in AuthFormToGroupType() 271 groupType = ACROSS_ACCOUNT_AUTHORIZE_GROUP; in AuthFormToGroupType() 275 groupType = GROUP_TYPE_INVALID; in AuthFormToGroupType() 278 return groupType; in AuthFormToGroupType() 281 int32_t GroupTypeToAuthForm(int32_t groupType) in GroupTypeToAuthForm() argument 284 switch (groupType) { in GroupTypeToAuthForm()
|
/base/security/device_auth/services/group_auth/inc/ |
D | group_auth_data_operation.h | 28 bool GaIsDeviceInGroup(int32_t groupType, int32_t osAccountId, const char *peerUdid, const char *pe… 32 int32_t GroupTypeToAuthForm(int32_t groupType);
|
/base/security/device_auth/test/fuzztest/group_manage/getjoinedgroups_fuzzer/ |
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/group_manager/inc/ |
D | group_operation_common.h | 28 bool IsAccountRelatedGroup(int groupType); 44 int32_t CheckGroupNumLimit(int32_t osAccountId, int32_t groupType, const char *appId); 54 int32_t AddGroupTypeToParams(int groupType, TrustedGroupEntry *groupParams); 96 int32_t GetGroupInfo(int32_t osAccountId, int groupType, const char *groupId, const char *groupName, 98 int32_t GetJoinedGroups(int32_t osAccountId, int groupType, GroupEntryVec *returnGroupEntryVec);
|
D | group_manager.h | 43 int32_t GetJoinedGroupsImpl(int32_t osAccountId, const char *appId, int groupType,
|
D | group_operation.h | 40 int32_t (*getAccessibleJoinedGroups)(int32_t osAccountId, const char *appId, int groupType,
|
/base/security/device_auth/services/group_manager/inc/broadcast_manager/ |
D | broadcast_manager.h | 32 void (*postOnLastGroupDeleted)(const char *peerUdid, int groupType);
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservregdatachangelistener_fuzzer/ |
D | devauthservregdatachangelistener_fuzzer.cpp | 33 static void OnLastGroupDeleted(const char *peerUdid, int groupType) {} in OnLastGroupDeleted() argument
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/ |
D | compatible_auth_sub_session_common.c | 55 queryParams.groupType = PEER_TO_PEER_GROUP; in GetAccountUnrelatedCandidateGroups() 91 static int32_t AddGeneralParams(const char *groupId, int32_t groupType, const TrustedDeviceEntry *l… in AddGeneralParams() argument 98 int32_t authForm = GroupTypeToAuthForm(groupType); in AddGeneralParams() 104 if ((groupType == COMPATIBLE_GROUP) && (serviceType != NULL)) { in AddGeneralParams() 126 int32_t groupType = groupInfo->type; in ExtractAndAddParams() local 127 int32_t authForm = GroupTypeToAuthForm(groupType); in ExtractAndAddParams() 133 res = AddGeneralParams(groupId, groupType, localAuthInfo, paramsData); in ExtractAndAddParams()
|
/base/security/device_auth/test/fuzztest/group_manage/registerdatachangelistener_fuzzer/ |
D | registerdatachangelistener_fuzzer.cpp | 29 void onLastGroupDeleted(const char *peerUdid, int groupType) {} in onLastGroupDeleted() argument
|
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/ |
D | account_related_group_auth.c | 175 queryParams.groupType = IDENTICAL_ACCOUNT_GROUP; in IsPeerInIdenticalGroup() 204 queryParams->groupType = type; in GaGetAccountGroup() 366 int32_t groupType = AuthFormToGroupType(authForm); in QueryAuthGroupForServer() local 367 if (groupType == GROUP_TYPE_INVALID) { in QueryAuthGroupForServer() 372 queryParams.groupType = groupType; in QueryAuthGroupForServer() 373 if (groupType == IDENTICAL_ACCOUNT_GROUP) { in QueryAuthGroupForServer()
|
/base/security/device_auth/services/group_manager/src/ |
D | group_manager.c | 103 int32_t GetJoinedGroupsImpl(int32_t osAccountId, const char *appId, int groupType, in GetJoinedGroupsImpl() argument 107 …IsGroupSupport() ? GetGroupImplInstance()->getAccessibleJoinedGroups(osAccountId, appId, groupType, in GetJoinedGroupsImpl()
|
/base/security/device_auth/interfaces/inner_api/ |
D | device_auth.h | 183 void (*onLastGroupDeleted)(const char *peerUdid, int groupType); 258 int32_t (*getJoinedGroups)(int32_t osAccountId, const char *appId, int groupType,
|
/base/security/device_auth/services/group_manager/src/broadcast_manager/ |
D | broadcast_manager.c | 168 static void PostOnLastGroupDeleted(const char *peerUdid, int groupType) in PostOnLastGroupDeleted() argument 179 …GI("[Broadcaster]: PostOnLastGroupDeleted! [AppId]: %s, [GroupType]: %d", entry->appId, groupType); in PostOnLastGroupDeleted() 180 entry->listener->onLastGroupDeleted(peerUdid, groupType); in PostOnLastGroupDeleted()
|
/base/security/device_auth/services/data_manager/inc/ |
D | data_manager.h | 64 int32_t groupType; member
|
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/ |
D | identical_account_group.c | 299 groupParams.groupType = ACROSS_ACCOUNT_AUTHORIZE_GROUP; in GetRelatedAcrossAccountGroups() 434 int32_t groupType; in CheckChangeParams() local 437 ((result = GetGroupTypeFromDb(osAccountId, groupId, &groupType)) != HC_SUCCESS) || in CheckChangeParams() 438 ((result = AssertGroupTypeMatch(groupType, IDENTICAL_ACCOUNT_GROUP)) != HC_SUCCESS) || in CheckChangeParams() 491 params.groupType = IDENTICAL_ACCOUNT_GROUP; in CheckUserIdValid()
|
/base/security/device_auth/services/group_manager/src/group_operation/across_account_group/ |
D | across_account_group.c | 195 params.groupType = IDENTICAL_ACCOUNT_GROUP; in AssertIdenticalGroupExist() 349 int32_t groupType; in CheckChangeParams() local 352 ((result = GetGroupTypeFromDb(osAccountId, groupId, &groupType)) != HC_SUCCESS) || in CheckChangeParams() 353 … ((result = AssertGroupTypeMatch(groupType, ACROSS_ACCOUNT_AUTHORIZE_GROUP)) != HC_SUCCESS) || in CheckChangeParams() 500 params.groupType = ACROSS_ACCOUNT_AUTHORIZE_GROUP; in CheckUserIdValid()
|
/base/security/device_auth/test/unittest/deviceauth/source/ |
D | group_operation_common_test.cpp | 364 int32_t groupType; variable 365 int32_t ret = GetGroupTypeFromDb(DEFAULT_OS_ACCOUNT, nullptr, &groupType); 377 int32_t groupType; variable 378 int32_t ret = GetGroupTypeFromDb(DEFAULT_OS_ACCOUNT, g_normalStr, &groupType);
|
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/ |
D | compatible_bind_sub_session_common.c | 71 int32_t groupType = PEER_TO_PEER_GROUP; in AddGroupTypeIfValid() local 72 if (GetIntFromJson(jsonParams, FIELD_GROUP_TYPE, &groupType) != HC_SUCCESS) { in AddGroupTypeIfValid() 76 if (groupType != PEER_TO_PEER_GROUP) { in AddGroupTypeIfValid() 80 if (AddIntToJson(params, FIELD_GROUP_TYPE, groupType) != HC_SUCCESS) { in AddGroupTypeIfValid()
|
D | compatible_bind_sub_session.c | 48 int32_t groupType = PEER_TO_PEER_GROUP; in CheckInvitePeer() local 51 ((result = GetGroupTypeFromDb(osAccountId, groupId, &groupType)) != HC_SUCCESS) || in CheckInvitePeer() 52 ((result = AssertGroupTypeMatch(groupType, PEER_TO_PEER_GROUP)) != HC_SUCCESS) || in CheckInvitePeer() 62 int32_t groupType = PEER_TO_PEER_GROUP; in CheckJoinPeer() local 63 if (GetIntFromJson(jsonParams, FIELD_GROUP_TYPE, &groupType) != HC_SUCCESS) { in CheckJoinPeer() 67 return AssertGroupTypeMatch(groupType, PEER_TO_PEER_GROUP); in CheckJoinPeer()
|
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/ |
D | peer_to_peer_group.c | 402 int32_t groupType = PEER_TO_PEER_GROUP; in CheckDeletePeerStatus() local 405 ((result = GetGroupTypeFromDb(osAccountId, groupId, &groupType)) != HC_SUCCESS) || in CheckDeletePeerStatus() 406 ((result = AssertGroupTypeMatch(groupType, PEER_TO_PEER_GROUP)) != HC_SUCCESS) || in CheckDeletePeerStatus()
|
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_unrelated_group_auth/ |
D | account_unrelated_group_auth.c | 264 int32_t groupType = entry->type; in AddNonAccountPkgName() local 265 if (groupType == COMPATIBLE_GROUP) { in AddNonAccountPkgName()
|
/base/security/device_auth/frameworks/src/standard/ |
D | ipc_adapt.cpp | 598 int32_t groupType = 0; in OnDelLastGroupStub() local 605 inOutLen = sizeof(groupType); in OnDelLastGroupStub() 607 reinterpret_cast<uint8_t *>(&groupType), &inOutLen); in OnDelLastGroupStub() 608 onDelLastGroupHook(udid, groupType); in OnDelLastGroupStub() 1121 void IpcOnLastGroupDeleted(const char *peerUdid, int32_t groupType) in IpcOnLastGroupDeleted() argument 1143 reinterpret_cast<const uint8_t *>(&groupType), sizeof(groupType)); in IpcOnLastGroupDeleted()
|