Home
last modified time | relevance | path

Searched refs:groupInfo (Results 1 – 12 of 12) sorted by relevance

/base/security/device_auth/test/fuzztest/device_auth_service/devauthservregdatachangelistener_fuzzer/
Ddevauthservregdatachangelistener_fuzzer.cpp23 static void OnGroupCreated(const char *groupInfo) {} in OnGroupCreated() argument
25 static void OnGroupDeleted(const char *groupInfo) {} in OnGroupDeleted() argument
27 static void OnDeviceBound(const char *peerUdid, const char *groupInfo) {} in OnDeviceBound() argument
29 static void OnDeviceUnBound(const char *peerUdid, const char *groupInfo) {} in OnDeviceUnBound() argument
/base/security/device_auth/test/fuzztest/group_manage/registerdatachangelistener_fuzzer/
Dregisterdatachangelistener_fuzzer.cpp19 void onGroupCreated(const char *groupInfo) {} in onGroupCreated() argument
21 void onGroupDeleted(const char *groupInfo) {} in onGroupDeleted() argument
23 void onDeviceBound(const char *peerUdid, const char *groupInfo) {} in onDeviceBound() argument
25 void onDeviceUnBound(const char *peerUdid, const char *groupInfo) {} in onDeviceUnBound() argument
/base/security/device_auth/test/fuzztest/group_manage/getgroupinfobyid_fuzzer/
Dgetgroupinfobyid_fuzzer.cpp34 char *groupInfo = nullptr; in FuzzDoGetGroupInfoById() local
35 gmInstance->getGroupInfoById(*osAccountId, appId.c_str(), groupId.c_str(), &groupInfo); in FuzzDoGetGroupInfoById()
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
Dcompatible_bind_sub_session_common.c507 static int32_t GenerateCompatibleInfo(CJson *groupInfo) in GenerateCompatibleInfo() argument
515 if (AddStringToJson(groupInfo, FIELD_DEVICE_ID, udid) != HC_SUCCESS) { in GenerateCompatibleInfo()
519 if (AddBoolToJson(groupInfo, FIELD_IS_UUID, true) != HC_SUCCESS) { in GenerateCompatibleInfo()
529 if (AddObjToJson(groupInfo, FIELD_GROUP_MANAGERS, managers) != HC_SUCCESS) { in GenerateCompatibleInfo()
536 if (AddIntToJson(groupInfo, FIELD_GROUP_VISIBILITY, GROUP_VISIBILITY_PUBLIC) != HC_SUCCESS) { in GenerateCompatibleInfo()
548 CJson *groupInfo = CreateJson(); in AddCompatibleInfoToSendData() local
549 if (groupInfo == NULL) { in AddCompatibleInfoToSendData()
553 int32_t res = GenerateCompatibleInfo(groupInfo); in AddCompatibleInfoToSendData()
555 FreeJson(groupInfo); in AddCompatibleInfoToSendData()
558 if (AddObjToJson(data, FIELD_GROUP_INFO, groupInfo) != HC_SUCCESS) { in AddCompatibleInfoToSendData()
[all …]
/base/security/device_auth/interfaces/inner_api/
Ddevice_auth.h173 void (*onGroupCreated)(const char *groupInfo);
175 void (*onGroupDeleted)(const char *groupInfo);
177 void (*onDeviceBound)(const char *peerUdid, const char *groupInfo);
179 void (*onDeviceUnBound)(const char *peerUdid, const char *groupInfo);
/base/security/device_auth/frameworks/src/lite/
Dipc_adapt.c532 const char *groupInfo = NULL; in OnGroupCreatedStub() local
536 …IpcRequestParamByType(cbDataCache, cacheNum, PARAM_TYPE_GROUP_INFO, (uint8_t *)(&groupInfo), NULL); in OnGroupCreatedStub()
537 onGroupCreatedHook(groupInfo); in OnGroupCreatedStub()
544 const char *groupInfo = NULL; in OnGroupDeletedStub() local
548 …IpcRequestParamByType(cbDataCache, cacheNum, PARAM_TYPE_GROUP_INFO, (uint8_t *)(&groupInfo), NULL); in OnGroupDeletedStub()
549 onDelGroupHook(groupInfo); in OnGroupDeletedStub()
556 const char *groupInfo = NULL; in OnDevBoundStub() local
562 …IpcRequestParamByType(cbDataCache, cacheNum, PARAM_TYPE_GROUP_INFO, (uint8_t *)(&groupInfo), NULL); in OnDevBoundStub()
563 onDevBoundHook(udid, groupInfo); in OnDevBoundStub()
570 const char *groupInfo = NULL; in OnDevUnboundStub() local
[all …]
/base/security/device_auth/frameworks/src/standard/
Dipc_adapt.cpp529 const char *groupInfo = nullptr; in OnGroupCreatedStub() local
535 reinterpret_cast<uint8_t *>(&groupInfo), nullptr); in OnGroupCreatedStub()
536 onGroupCreatedHook(groupInfo); in OnGroupCreatedStub()
542 const char *groupInfo = nullptr; in OnGroupDeletedStub() local
548 reinterpret_cast<uint8_t *>(&groupInfo), nullptr); in OnGroupDeletedStub()
549 onDelGroupHook(groupInfo); in OnGroupDeletedStub()
555 const char *groupInfo = nullptr; in OnDevBoundStub() local
563 reinterpret_cast<uint8_t *>(&groupInfo), nullptr); in OnDevBoundStub()
564 onDevBoundHook(udid, groupInfo); in OnDevBoundStub()
570 const char *groupInfo = nullptr; in OnDevUnboundStub() local
[all …]
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c312 static int32_t AddGroupNameToReturn(const TrustedGroupEntry *groupInfo, CJson *json) in AddGroupNameToReturn() argument
314 const char *groupName = StringGet(&groupInfo->name); in AddGroupNameToReturn()
326 static int32_t AddGroupIdToReturn(const TrustedGroupEntry *groupInfo, CJson *json) in AddGroupIdToReturn() argument
328 const char *groupId = StringGet(&groupInfo->id); in AddGroupIdToReturn()
340 static int32_t AddGroupOwnerToReturn(const TrustedGroupEntry *groupInfo, CJson *json) in AddGroupOwnerToReturn() argument
342 HcString entryManager = HC_VECTOR_GET(&groupInfo->managers, 0); in AddGroupOwnerToReturn()
355 static int32_t AddGroupTypeToReturn(const TrustedGroupEntry *groupInfo, CJson *json) in AddGroupTypeToReturn() argument
357 int32_t groupType = groupInfo->type; in AddGroupTypeToReturn()
365 static int32_t AddGroupVisibilityToReturn(const TrustedGroupEntry *groupInfo, CJson *json) in AddGroupVisibilityToReturn() argument
367 int groupVisibility = groupInfo->visibility; in AddGroupVisibilityToReturn()
[all …]
Dgroup_operation.c100 TrustedGroupEntry *groupInfo = *groupInfoPtr; in GenerateReturnGroupVec() local
107 int32_t result = GenerateReturnGroupInfo(groupInfo, groupInfoJson); in GenerateReturnGroupVec()
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
Dcompatible_auth_sub_session_common.c119 const TrustedGroupEntry *groupInfo, CJson *paramsData) in ExtractAndAddParams() argument
126 int32_t groupType = groupInfo->type; in ExtractAndAddParams()
144 res = groupAuth->fillDeviceAuthInfo(osAccountId, groupInfo, localAuthInfo, paramsData); in ExtractAndAddParams()
168 const TrustedGroupEntry *groupInfo = (TrustedGroupEntry *)(*ptr); in FillAuthParams() local
169 const char *groupId = StringGet(&(groupInfo->id)); in FillAuthParams()
176 if (!GaIsDeviceInGroup(groupInfo->type, osAccountId, peerUdid, peerAuthId, groupId)) { in FillAuthParams()
184 if (ExtractAndAddParams(osAccountId, groupId, groupInfo, paramsData) != HC_SUCCESS) { in FillAuthParams()
/base/security/device_auth/test/unittest/deviceauth/source/
Ddevice_auth_ipc_test.cpp181 static void OnGroupCreated(const char *groupInfo) in OnGroupCreated() argument
183 (void)groupInfo; in OnGroupCreated()
187 static void OnGroupDeleted(const char *groupInfo) in OnGroupDeleted() argument
189 (void)groupInfo; in OnGroupDeleted()
193 static void OnDeviceBound(const char *peerUdid, const char *groupInfo) in OnDeviceBound() argument
196 (void)groupInfo; in OnDeviceBound()
200 static void OnDeviceUnBound(const char *peerUdid, const char *groupInfo) in OnDeviceUnBound() argument
203 (void)groupInfo; in OnDeviceUnBound()
/base/security/device_auth/frameworks/src/
Dipc_service.c585 char *groupInfo = NULL; in IpcServiceGmGetGroupInfoById() local
605 callRet = g_devGroupMgrMethod.getGroupInfoById(osAccountId, appId, groupId, &groupInfo); in IpcServiceGmGetGroupInfoById()
609 if (groupInfo != NULL) { in IpcServiceGmGetGroupInfoById()
610 …codeCallReplay(outCache, PARAM_TYPE_GROUP_INFO, (const uint8_t *)groupInfo, strlen(groupInfo) + 1); in IpcServiceGmGetGroupInfoById()
611 g_devGroupMgrMethod.destroyInfo(&groupInfo); in IpcServiceGmGetGroupInfoById()