Home
last modified time | relevance | path

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

123

/ohos5.0/base/security/device_auth/services/legacy/group_manager/src/group_operation/
H A Dgroup_operation.c39 static bool IsGroupTypeSupported(int groupType) in IsGroupTypeSupported() argument
378 if (!IsGroupTypeSupported(groupType)) { in GetGroupInstance()
382 if (groupType == PEER_TO_PEER_GROUP) { in GetGroupInstance()
394 int32_t groupType = PEER_TO_PEER_GROUP; in CreateGroup() local
536 int32_t groupType = DEFAULT_GROUP_TYPE; in GetGroupTypeFromParams() local
539 return groupType; in GetGroupTypeFromParams()
674 int32_t groupType = GROUP_TYPE_INVALID; in AddMultiMembersToGroupInner() local
680 if (!IsGroupTypeSupported(groupType)) { in AddMultiMembersToGroupInner()
938 int32_t groupType = ALL_GROUP; in GetAccessibleGroupInfo() local
940 if ((groupType != ALL_GROUP) && (!IsGroupTypeSupported(groupType))) { in GetAccessibleGroupInfo()
[all …]
/ohos5.0/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/group_auth_common/
H A Dgroup_auth_data_operation.c172 bool GaIsDeviceInGroup(int32_t groupType, int32_t osAccountId, const char *peerUdid, const char *pe… in GaIsDeviceInGroup() argument
176 int32_t authForm = GroupTypeToAuthForm(groupType); in GaIsDeviceInGroup()
225 int32_t groupType; in AuthFormToGroupType() local
228 groupType = PEER_TO_PEER_GROUP; in AuthFormToGroupType()
231 groupType = IDENTICAL_ACCOUNT_GROUP; in AuthFormToGroupType()
234 groupType = ACROSS_ACCOUNT_AUTHORIZE_GROUP; in AuthFormToGroupType()
238 groupType = GROUP_TYPE_INVALID; in AuthFormToGroupType()
241 return groupType; in AuthFormToGroupType()
244 int32_t GroupTypeToAuthForm(int32_t groupType) in GroupTypeToAuthForm() argument
247 switch (groupType) { in GroupTypeToAuthForm()
/ohos5.0/base/security/device_auth/services/frameworks/src/hiview_adapter/
H A Dhisysevent_adapter.cpp54 STR_GROUP_TYPE, eventData.groupType, in DevAuthReportCallEvent()
84 void DevAuthReportUeCallEvent(int32_t osAccountId, int32_t groupType, const char *appId, const char… in DevAuthReportUeCallEvent() argument
92 STR_GROUP_TYPE, groupType, in DevAuthReportUeCallEvent()
100 int32_t groupType = GROUP_TYPE_INVALID; in DevAuthReportUeCallEventByParams() local
103 (void)GetIntFromJson(params, FIELD_GROUP_TYPE, &groupType); in DevAuthReportUeCallEventByParams()
106 DEV_AUTH_REPORT_UE_CALL_EVENT(osAccountId, groupType, appId, funcName); in DevAuthReportUeCallEventByParams()
/ohos5.0/base/security/device_auth/services/frameworks/inc/hiview_adapter/
H A Dhisysevent_adapter.h71 #define DEV_AUTH_REPORT_UE_CALL_EVENT(osAccountId, groupType, appId, funcName) argument
81 #define DEV_AUTH_REPORT_UE_CALL_EVENT(osAccountId, groupType, appId, funcName) \ argument
82 DevAuthReportUeCallEvent(osAccountId, groupType, appId, funcName)
97 int32_t groupType; member
114 void DevAuthReportUeCallEvent(int32_t osAccountId, int32_t groupType, const char *appId,
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/src/
H A Dlnn_hichain_mock.cpp116 …HichainInterfaceMock::InvokeGetJoinedGroups1(int32_t osAccountId, const char *appId, int groupType, in InvokeGetJoinedGroups1() argument
123 if (groupType == AUTH_IDENTICAL_ACCOUNT_GROUP) { in InvokeGetJoinedGroups1()
126 if (groupType == AUTH_PEER_TO_PEER_GROUP) { in InvokeGetJoinedGroups1()
136 …HichainInterfaceMock::InvokeGetJoinedGroups2(int32_t osAccountId, const char *appId, int groupType, in InvokeGetJoinedGroups2() argument
141 (void)groupType; in InvokeGetJoinedGroups2()
148 …HichainInterfaceMock::InvokeGetJoinedGroups3(int32_t osAccountId, const char *appId, int groupType, in InvokeGetJoinedGroups3() argument
153 (void)groupType; in InvokeGetJoinedGroups3()
/ohos5.0/foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/src/mini/
H A Dhichain_adapter.c140 int groupType = -1; in ParseReturnJson() local
144 groupType = object->valueint; in ParseReturnJson()
151 if (groupType == GROUP_TYPE_INVALID_GROUP) { in ParseReturnJson()
154 if (groupType == GROUP_TYPE_PEER_TO_PEER_GROUP) { in ParseReturnJson()
157 if (groupType == GROUP_TYPE_IDENTICAL_ACCOUNT_GROUP) { in ParseReturnJson()
160 if (groupType == GROUP_TYPE_ACROSS_ACCOUNT_GROUP) { in ParseReturnJson()
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_hichain_test.cpp62 void OnGroupCreatedTest(const char *groupId, int32_t groupType) in OnGroupCreatedTest() argument
65 (void)groupType; in OnGroupCreatedTest()
68 void OnGroupDeletedTest(const char *groupId, int32_t groupType) in OnGroupDeletedTest() argument
71 (void)groupType; in OnGroupDeletedTest()
252 int32_t groupType = 0; variable
253 uint32_t ret = HichainGetJoinedGroups(groupType);
255 groupType = 99;
257 ret = HichainGetJoinedGroups(groupType);
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/include/dependency/hichain/
H A Dhichain_connector.h45 int32_t groupType; member
49 …GroupInfo() : groupName(""), groupId(""), groupOwner(""), groupType(0), groupVisibility(0), userId… in GroupInfo()
211 int32_t addMultiMembers(const int32_t groupType, const std::string &userId,
218 int32_t deleteMultiMembers(const int32_t groupType, const std::string &userId,
253 int32_t GetGroupId(const std::string &userId, const int32_t groupType, std::string &groupId);
254 int32_t ParseRemoteCredential(const int32_t groupType, const std::string &userId,
257 int32_t GetGroupIdExt(const std::string &userId, const int32_t groupType,
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_hichain.c56 GroupType groupType; member
364 int32_t groupType = 0; in ParseGroupInfo() local
365 if (!GetJsonObjectNumberItem(msg, FIELD_GROUP_TYPE, &groupType)) { in ParseGroupInfo()
370 groupInfo->groupType = (GroupType)groupType; in ParseGroupInfo()
386 AUTH_LOGI(AUTH_HICHAIN, "hichain OnGroupCreated, type=%{public}d", info.groupType); in OnGroupCreated()
388 g_dataChangeListener.onGroupCreated(info.groupId, (int32_t)info.groupType); in OnGroupCreated()
406 AnonymizeWrapper(anonyUdid), info.groupType); in OnDeviceBound()
408 if (info.groupType == AUTH_IDENTICAL_ACCOUNT_GROUP) { in OnDeviceBound()
435 AUTH_LOGI(AUTH_HICHAIN, "hichain OnGroupDeleted, type=%{public}d", info.groupType); in OnGroupDeleted()
437 g_dataChangeListener.onGroupDeleted(info.groupId, info.groupType); in OnGroupDeleted()
H A Dauth_hichain_adapter.c139 bool CheckDeviceInGroupByType(const char *udid, const char *uuid, HichainGroup groupType) in CheckDeviceInGroupByType() argument
143 (void)groupType; in CheckDeviceInGroupByType()
229 int groupType = 0; in HasTrustedRelationWithLocalDevice() local
230 …if ((GetJsonObjectNumberItem(groupItem, GROUP_TYPE, &groupType) && groupType == SAME_ACCOUNT_GROUY… in HasTrustedRelationWithLocalDevice()
274 uint32_t HichainGetJoinedGroups(int32_t groupType) in HichainGetJoinedGroups() argument
282 …if (gmInstance->getJoinedGroups(0, AUTH_APPID, (GroupType)groupType, &accountGroups, &groupCnt) !=… in HichainGetJoinedGroups()
/ohos5.0/foundation/communication/dsoftbus/core/authentication/include/
H A Dauth_hichain.h35 void (*onGroupCreated)(const char *groupId, int32_t groupType);
36 void (*onGroupDeleted)(const char *groupId, int32_t groupType);
45 uint32_t HichainGetJoinedGroups(int32_t groupType);
H A Dauth_hichain_adapter.h46 bool CheckDeviceInGroupByType(const char *udid, const char *uuid, HichainGroup groupType);
47 bool CheckHasRelatedGroupInfo(HichainGroup groupType);
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_distributed/include/device_manage/
H A Ddevice_permission_verification.h30 int32_t groupType; member
31 TrustedRelationshipGroupInfo() : groupType(0) {} in TrustedRelationshipGroupInfo()
33 : groupName(name), groupId(id), groupOwner(owner), groupType(type) in TrustedRelationshipGroupInfo()
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/dependency/hichain/
H A Dhichain_connector.cpp70 groupInfo.groupType = jsonObject.at(FIELD_GROUP_TYPE).get<int32_t>(); in from_json()
310 if (g_authFormPriorityMap.count(it->groupType) == 0) { in GetGroupType()
567 if (hostGroupInfo.groupType != GROUP_TYPE_PEER_TO_PEER_GROUP) { in IsDevicesInP2PGroup()
754 if (group.groupType == GROUP_TYPE_PEER_TO_PEER_GROUP) { in DeleteTimeOutGroup()
869 jsonObjGroup[FIELD_GROUP_TYPE] = groupType; in GetGroupId()
895 if (GetGroupId(userId, groupType, groupId) != DM_OK) { in ParseRemoteCredential()
901 jsonObj[FIELD_GROUP_TYPE] = groupType; in ParseRemoteCredential()
956 jsonObjGroup[FIELD_GROUP_TYPE] = groupType; in GetGroupIdExt()
985 int32_t groupType = 0; in ParseRemoteCredentialExt() local
989 groupType = IDENTICAL_ACCOUNT_GROUP; in ParseRemoteCredentialExt()
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_distributed/src/device_manage/
H A Ddevice_permission_verification.cpp56 groupInfo.groupType = jsonObject.at(FIELD_GROUP_TYPE).get<int32_t>(); in from_json()
99 a.groupName.c_str(), a.groupId.c_str(), a.groupType); in QueryTrustedRelationship()
100 if (a.groupType == PEER_TO_PEER_GROUP || a.groupType == ACROSS_ACCOUNT_AUTHORIZE_GROUP) { in QueryTrustedRelationship()
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/
H A DUTTest_hichain_connector.cpp136 group.groupType = 7;
156 group.groupType = 1;
218 groupInfo.groupType = 5;
852 int32_t groupType = 1; variable
870 int32_t groupType = 1; variable
888 int32_t groupType = 1; variable
907 int32_t groupType = 1; variable
924 int32_t groupType = 1; variable
941 int32_t groupType = 1; variable
958 int32_t groupType = 1; variable
[all …]
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/src/authority/
H A Dtrust_group_manager.cpp48 jsonObject.at(FIELD_GROUP_TYPE).get_to(groupInfo.groupType); in from_json()
128 if (groupInfo.groupType == GroupType::IDENTICAL_ACCOUNT_GROUP || in CheckGroupsInfo()
129 groupInfo.groupType == GroupType::PEER_TO_PEER_GROUP) { in CheckGroupsInfo()
130 HILOGI("check success type = %{public}d", groupInfo.groupType); in CheckGroupsInfo()
/ohos5.0/foundation/distributedhardware/device_manager/test/commonfuzztest/hichainconnector_fuzzer/
H A Dhichain_connector_fuzzer.cpp73 int32_t groupType = *(reinterpret_cast<const int32_t*>(data)); in HiChainConnectorFuzzTest() local
92 hichainConnector->GetGroupId(userId, groupType, queryParams); in HiChainConnectorFuzzTest()
93 hichainConnector->addMultiMembers(groupType, userId, jsonDeviceList); in HiChainConnectorFuzzTest()
94 hichainConnector->GetGroupIdExt(userId, groupType, queryParams, groupOwner); in HiChainConnectorFuzzTest()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/mock_common/include/
H A Dlnn_hichain_mock.h56 … int32_t osAccountId, const char *appId, int groupType, char **returnGroupVec, uint32_t *groupNum);
58 … int32_t osAccountId, const char *appId, int groupType, char **returnGroupVec, uint32_t *groupNum);
60 … int32_t osAccountId, const char *appId, int groupType, char **returnGroupVec, uint32_t *groupNum);
/ohos5.0/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/
H A Daccount_related_group_auth.c189 queryParams.groupType = IDENTICAL_ACCOUNT_GROUP; in IsPeerInIdenticalGroup()
218 queryParams->groupType = type; in GaGetAccountGroup()
383 int32_t groupType = AuthFormToGroupType(authForm); in QueryAuthGroupForServer() local
384 if (groupType == GROUP_TYPE_INVALID) { in QueryAuthGroupForServer()
389 queryParams.groupType = (uint32_t)groupType; in QueryAuthGroupForServer()
390 if (queryParams.groupType == IDENTICAL_ACCOUNT_GROUP) { in QueryAuthGroupForServer()
499 int32_t groupType = AuthFormToGroupType(authForm); in QueryGroupForAccountPlugin() local
500 if (groupType == GROUP_TYPE_INVALID) { in QueryGroupForAccountPlugin()
506 queryParams.groupType = (uint32_t)groupType; in QueryGroupForAccountPlugin()
507 if (queryParams.groupType == IDENTICAL_ACCOUNT_GROUP) { in QueryGroupForAccountPlugin()
[all …]
/ohos5.0/base/security/device_auth/services/legacy/group_auth/inc/
H A 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);
/ohos5.0/base/security/device_auth/services/legacy/group_manager/inc/
H A Dgroup_operation_common.h27 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);
/ohos5.0/base/security/device_auth/test/fuzztest/group_manage/getjoinedgroups_fuzzer/
H A 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()
/ohos5.0/base/security/device_auth/test/fuzztest/group_manage/groupoperationcommon_fuzzer/
H A Dgroupoperationcommon_fuzzer.cpp34 .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()
/ohos5.0/drivers/peripheral/sensor/hal/src/
H A Dsensor_channel.c158 enum SensorGroupType groupType; in OnSensorEventReceived() local
160 groupType = MEDICAL_SENSOR_TYPE; in OnSensorEventReceived()
162 groupType = TRADITIONAL_SENSOR_TYPE; in OnSensorEventReceived()
169 if (manager->recordDataCb[groupType] != NULL) { in OnSensorEventReceived()
170 manager->recordDataCb[groupType](event); in OnSensorEventReceived()

123