Home
last modified time | relevance | path

Searched refs:devType (Results 1 – 25 of 36) sorted by relevance

12

/base/security/device_security_level/services/dslm/
Ddslm_core_process.c182 int32_t OnPeerStatusReceiver(const DeviceIdentify *deviceId, uint32_t status, uint32_t devType) in OnPeerStatusReceiver() argument
195 ScheduleDslmStateMachine(info, event, &devType); in OnPeerStatusReceiver()
201 uint32_t devType = 0; in InitSelfDeviceSecureLevel() local
202 const DeviceIdentify *device = GetSelfDevice(&devType); in InitSelfDeviceSecureLevel()
216 info->deviceType = devType; in InitSelfDeviceSecureLevel()
236 ret = OnPeerStatusReceiver(device, ONLINE_STATUS_ONLINE, devType); in InitSelfDeviceSecureLevel()
272 uint32_t devType = 0; in RefreshDeviceOnlineStatus() local
279 return GetSelfDevice(&devType); in RefreshDeviceOnlineStatus()
282 if (GetPeerDeviceOnlineStatus(deviceId, &devType)) { in RefreshDeviceOnlineStatus()
283 (void)OnPeerStatusReceiver(deviceId, ONLINE_STATUS_ONLINE, devType); in RefreshDeviceOnlineStatus()
[all …]
/base/security/device_security_level/services/msg/
Ddslm_messenger_wrapper.c87 bool GetPeerDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType) in GetPeerDeviceOnlineStatus() argument
94 if (devId == NULL || devType == NULL) { in GetPeerDeviceOnlineStatus()
98 bool ret = GetDeviceOnlineStatus(g_messenger, devId, devType); in GetPeerDeviceOnlineStatus()
103 const DeviceIdentify *GetSelfDevice(uint32_t *devType) in GetSelfDevice() argument
113 if (devType != NULL) { in GetSelfDevice()
114 *devType = type; in GetSelfDevice()
/base/security/device_security_level/services/include/
Ddslm_messenger_wrapper.h33 typedef int32_t (*StatusReceiver)(const DeviceIdentify *devId, uint32_t status, uint32_t devType);
37 typedef int32_t (*DeviceProcessor)(const DeviceIdentify *devId, uint32_t devType, void *para);
48 bool GetPeerDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType);
50 const DeviceIdentify *GetSelfDevice(uint32_t *devType);
Ddslm_core_process.h39 int32_t OnPeerStatusReceiver(const DeviceIdentify *deviceId, uint32_t status, uint32_t devType);
/base/security/device_security_level/baselib/msglib/src/common/
Dmessenger.c40 …l GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devType) in GetDeviceOnlineStatus() argument
42 return GetDeviceOnlineStatusImpl(messenger, devId, devType); in GetDeviceOnlineStatus()
45 bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType) in GetSelfDeviceIdentify() argument
47 return GetSelfDeviceIdentifyImpl(messenger, devId, devType); in GetSelfDeviceIdentify()
Dmessenger_device_status_manager.h38 bool MessengerGetDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType);
40 bool MessengerGetSelfDeviceIdentify(DeviceIdentify *devId, uint32_t *devType);
Dmessenger_impl.c106 …tDeviceOnlineStatusImpl(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devType) in GetDeviceOnlineStatusImpl() argument
113 return MessengerGetDeviceOnlineStatus(devId, devType); in GetDeviceOnlineStatusImpl()
116 bool GetSelfDeviceIdentifyImpl(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType) in GetSelfDeviceIdentifyImpl() argument
123 return MessengerGetSelfDeviceIdentify(devId, devType); in GetSelfDeviceIdentifyImpl()
Dmessenger_impl.h34 …DeviceOnlineStatusImpl(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devType);
36 bool GetSelfDeviceIdentifyImpl(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType
Dmessenger_device_session_manager.c447 uint32_t devType; in MessengerSendMsgTo() local
448 MessengerGetSelfDeviceIdentify(&self, &devType); in MessengerSendMsgTo()
/base/security/device_security_level/baselib/msglib/src/standard/
Dmessenger_device_status_manager.cpp38 …eReceiver = std::function<int32_t(const DeviceIdentify *devId, uint32_t status, uint32_t devType)>;
117 …ic void ProcessDeviceStatusReceiver(const DeviceIdentify *devId, uint32_t status, uint32_t devType) in ProcessDeviceStatusReceiver() argument
132 uint32_t devType {0}; in ProcessDeviceStatusReceiver() member
140 data->devType = devType; in ProcessDeviceStatusReceiver()
145 (status == EVENT_NODE_STATE_ONLINE) ? " online " : " offline ", devType); in ProcessDeviceStatusReceiver()
161 processor(&queueData->srcIdentity, queueData->status, queueData->devType); in ProcessDeviceStatusReceiver()
273 auto process = [](const DeviceIdentify *devId, uint32_t devType, void *para) -> int32_t { in InitDeviceStatusManager() argument
275 …tate::ProcessDeviceStatusReceiver(devId, DslmDeviceState::State::EVENT_NODE_STATE_ONLINE, devType); in InitDeviceStatusManager()
294 bool MessengerGetDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType) in MessengerGetDeviceOnlineStatus() argument
302 if (result == true && devType != nullptr) { in MessengerGetDeviceOnlineStatus()
[all …]
/base/security/device_security_level/baselib/msglib/src/lite/
Dmessenger_device_status_manager.c31 static int32_t InitDeviceOnlineProcessor(const DeviceIdentify *devId, uint32_t devType, void *para);
43 uint32_t devType; member
79 deviceStatusReceiver(&queueData->srcIdentity, queueData->status, queueData->devType); in ProcessDeviceStatusReceived()
83 …ic void ProcessDeviceStatusReceiver(const DeviceIdentify *devId, uint32_t status, uint32_t devType) in ProcessDeviceStatusReceiver() argument
111 data->devType = devType; in ProcessDeviceStatusReceiver()
164 static int32_t InitDeviceOnlineProcessor(const DeviceIdentify *devId, uint32_t devType, void *para) in InitDeviceOnlineProcessor() argument
167 ProcessDeviceStatusReceiver(devId, EVENT_NODE_STATE_ONLINE, devType); in InitDeviceOnlineProcessor()
277 bool MessengerGetDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType) in MessengerGetDeviceOnlineStatus() argument
284 if (result == true && devType != NULL) { in MessengerGetDeviceOnlineStatus()
285 *devType = info.deviceTypeId; in MessengerGetDeviceOnlineStatus()
[all …]
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_msg_interface_mock.cpp31 …rn int32_t OnPeerStatusReceiver(const DeviceIdentify *deviceId, uint32_t status, uint32_t devType);
66 …uto loopback = [this, self](const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType) { in MakeSelfDeviceId() argument
114 …tDeviceOnlineStatusImpl(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devType) in GetDeviceOnlineStatusImpl() argument
116 return GetDslmMsgInterface()->GetDeviceOnlineStatus(messenger, devId, devType); in GetDeviceOnlineStatusImpl()
119 bool GetSelfDeviceIdentifyImpl(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType) in GetSelfDeviceIdentifyImpl() argument
121 return GetDslmMsgInterface()->GetSelfDeviceIdentify(messenger, devId, devType); in GetSelfDeviceIdentifyImpl()
Ddslm_msg_interface_mock.h39 …DeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devType) = 0;
41 …ol GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType) = 0;
54 bool(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devType));
55 …GetSelfDeviceIdentify, bool(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType));
/base/security/device_security_level/baselib/msglib/include/
Dmessenger.h36 …ef int32_t (*DeviceStatusReceiver)(const DeviceIdentify *devId, uint32_t status, uint32_t devType);
40 typedef int32_t (*DeviceProcessor)(const DeviceIdentify *devId, uint32_t devType, void *para);
84 … GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devType);
86 bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType);
/base/update/updater/services/ui/driver/
Dsurface_dev.cpp23 std::unique_ptr<GraphicDrv> SurfaceDev::MakeDevDrv(DevType devType) in MakeDevDrv() argument
26 switch (devType) { in MakeDevDrv()
Dsurface_dev.h39 std::unique_ptr<GraphicDrv> MakeDevDrv(DevType devType);
Dinput_event.cpp107 uint32_t dev = sta[i].devType; in HdfInit()
/base/security/device_auth/services/data_manager/inc/
Ddata_manager.h52 uint8_t devType; /* 0 - accessory, 1 - controller, 2 - proxy */ member
/base/security/device_auth/services/group_auth/src/group_auth_manager/
Dgroup_auth_data_operation.c50 returnEntry->devType = entry->devType; in GaDeepCopyDeviceEntry()
/base/security/device_auth/services/data_manager/src/
Ddata_manager.c50 uint8_t devType; member
285 returnEntry->devType = entry->devType; in GenerateDeviceEntryFromEntry()
351 deviceEntry->devType = device->info.data.devType; in GenerateDeviceEntryFromTlv()
578 element->info.data.devType = entry->devType; in SetDeviceElement()
1223 …printf(fd, "|||%-12s = %-28d| |\n", "devType", device->devType); in DumpDevice()
/base/update/updater/
Dupdater_ux_guide.md359 LOG(INFO) << "hdf devType:" << sta[i].devType << ", devIndex:" << idx;
/base/powermgr/battery_manager/charger/src/
Dcharger_thread.cpp352 uint32_t devType = INDEV_TYPE_UNKNOWN; in InitInput() local
353 ret = inputInterface->GetDeviceType(POWERKEY_INPUT_DEVICE, devType); in InitInput()
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_unrelated_group_auth/
Daccount_unrelated_group_auth.c303 if (AddIntToJson(paramsData, FIELD_SELF_TYPE, localAuthInfo->devType) != HC_SUCCESS) { in AddNonAccountAuthInfo()
315 if (AddIntToJson(paramsData, FIELD_PEER_USER_TYPE, peerAuthInfo->devType) != HC_SUCCESS) { in AddNonAccountAuthInfo()
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/
Dpeer_to_peer_group.c203 peerUserType = devAuthParams->devType; in GetPeerDevUserTypeFromDb()
292 if (AddIntToJson(jsonParams, FIELD_USER_TYPE, deviceInfo->devType) != HC_SUCCESS) { in AddAuthIdAndUserTypeToParams()
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
Dcompatible_bind_sub_session_common.c154 …if ((deviceInfo->devType != userType) || ((oriAuthId != NULL) && (strcmp(oriAuthId, authId) != 0))… in CheckAuthIdAndUserTypeValid()
292 if (AddIntToJson(params, FIELD_USER_TYPE, devAuthParams->devType) != HC_SUCCESS) { in AddDevInfoToParams()

12