Home
last modified time | relevance | path

Searched refs:groupType (Results 1 – 25 of 32) sorted by relevance

12

/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation.c39 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 …]
Dgroup_operation_common.c139 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/
Dgroup_auth_data_operation.c209 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/
Dgroup_auth_data_operation.h28 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/
Dgetjoinedgroups_fuzzer.cpp32 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/
Dgroup_operation_common.h28 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);
Dgroup_manager.h43 int32_t GetJoinedGroupsImpl(int32_t osAccountId, const char *appId, int groupType,
Dgroup_operation.h40 int32_t (*getAccessibleJoinedGroups)(int32_t osAccountId, const char *appId, int groupType,
/base/security/device_auth/services/group_manager/inc/broadcast_manager/
Dbroadcast_manager.h32 void (*postOnLastGroupDeleted)(const char *peerUdid, int groupType);
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservregdatachangelistener_fuzzer/
Ddevauthservregdatachangelistener_fuzzer.cpp33 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/
Dcompatible_auth_sub_session_common.c55 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/
Dregisterdatachangelistener_fuzzer.cpp29 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/
Daccount_related_group_auth.c175 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/
Dgroup_manager.c103 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/
Ddevice_auth.h183 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/
Dbroadcast_manager.c168 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/
Ddata_manager.h64 int32_t groupType; member
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/
Didentical_account_group.c299 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/
Dacross_account_group.c195 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/
Dgroup_operation_common_test.cpp364 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/
Dcompatible_bind_sub_session_common.c71 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()
Dcompatible_bind_sub_session.c48 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/
Dpeer_to_peer_group.c402 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/
Daccount_unrelated_group_auth.c264 int32_t groupType = entry->type; in AddNonAccountPkgName() local
265 if (groupType == COMPATIBLE_GROUP) { in AddNonAccountPkgName()
/base/security/device_auth/frameworks/src/standard/
Dipc_adapt.cpp598 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()

12