/drivers/peripheral/sensor/hdi_service/ |
H A D | sensor_clients_manager.cpp | 108 void SensorClientsManager::ReportDataCbRegister(int groupId, int serviceId, const sptr<ISensorCallback> &callbackObj)
in ReportDataCbRegister() argument 112 if (clients_.find(groupId) == clients_.end() || clients_[groupId].find(serviceId) == clients_[groupId].end()) {
in ReportDataCbRegister() 114 HDF_LOGE("%{public}s: the callback of service %{public}d is null", __func__, serviceId);
in ReportDataCbRegister() 117 clients_[groupId].emplace(serviceId, callbackObj);
in ReportDataCbRegister() 118 HDF_LOGD("%{public}s: service %{public}d insert the callback", __func__, serviceId);
in ReportDataCbRegister() 122 auto it = clients_[groupId].find(serviceId);
in ReportDataCbRegister() 124 HDF_LOGD("%{public}s: service %{public}d update the callback", __func__, serviceId);
in ReportDataCbRegister() 129 void SensorClientsManager::ReportDataCbUnRegister(int groupId, int serviceId, const sptr<ISensorCallback> &callbackObj)
in ReportDataCbUnRegister() argument 133 if (clients_.find(groupId) == clients_.end() || clients_[groupId].find(serviceId) == clients_[groupId].end()) {
in ReportDataCbUnRegister() 134 HDF_LOGD("%{public}s: service %{public}d already UnRegister", __func__, serviceId);
in ReportDataCbUnRegister() 279 OpenSensor(int sensorId, int serviceId) OpenSensor() argument 288 IsNeedOpenSensor(int sensorId, int serviceId) IsNeedOpenSensor() argument 304 IsNeedCloseSensor(int sensorId, int serviceId) IsNeedCloseSensor() argument 337 IsUpadateSensorState(int sensorId, int serviceId, bool isOpen) IsUpadateSensorState() argument 392 SetClientSenSorConfig(int32_t sensorId, int32_t serviceId, int64_t samplingInterval, int64_t &reportInterval) SetClientSenSorConfig() argument 417 IsNotNeedReportData(SensorClientInfo &sensorClientInfo, const int32_t &sensorId, const int32_t &serviceId) IsNotNeedReportData() argument 465 int32_t serviceId = *it; ReportEachClient() local [all...] |
H A D | sensor_if_service.cpp | 143 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); in GetAllSensorInfo() local 144 HDF_LOGI("%{public}s: serviceId = %{public}d", __func__, serviceId); in GetAllSensorInfo() 190 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); in Enable() local 191 HDF_LOGI("%{public}s: sensorId %{public}d, serviceId = %{public}d", __func__, sensorId, serviceId); in Enable() 193 if (!SensorClientsManager::GetInstance()->IsUpadateSensorState(sensorId, serviceId, ENABLE_SENSOR)) { in Enable() 206 HDF_LOGE("%{public}s failed, error code is %{public}d, sensorId = %{public}d, serviceId = %{public}d", __func__, in Enable() 207 ret, sensorId, serviceId); in Enable() 209 SensorClientsManager::GetInstance()->OpenSensor(sensorId, serviceId); in Enable() 218 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); Disable() local 261 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); SetBatch() local 271 SetBatchSenior(int32_t serviceId, int32_t sensorId, int32_t mode, int64_t samplingInterval, int64_t reportInterval) SetBatchSenior() argument 352 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); SetMode() local 374 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); SetOption() local 396 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); Register() local 436 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); Unregister() local 480 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); AddCallbackMap() local 510 RemoveCallbackMap(int32_t groupId, int serviceId, const sptr<ISensorCallback> &callbackObj) RemoveCallbackMap() argument 563 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); AddSensorDeathRecipient() local 583 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); RemoveSensorDeathRecipient() local 622 int32_t serviceId = SensorClientsManager::GetInstance()->GetServiceId(groupId, *callBackIter); OnRemoteDied() local 653 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); RemoveDeathNotice() local 674 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); ReadData() local 688 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); SetSdcSensor() local 738 uint32_t serviceId = static_cast<uint32_t>(HdfRemoteGetCallingPid()); GetSdcSensorInfo() local [all...] |
H A D | sensor_clients_manager.h | 44 void ReportDataCbRegister(int groupId, int serviceId, const sptr<ISensorCallback> &callbackObj);
45 void ReportDataCbUnRegister(int groupId, int serviceId, const sptr<ISensorCallback> &callbackObj);
50 bool IsUpadateSensorState(int sensorId, int serviceId, bool isOpen);
52 const int32_t &serviceId);
60 bool IsNeedOpenSensor(int sensorId, int serviceId);
61 bool IsNeedCloseSensor(int sensorId, int serviceId);
63 void OpenSensor(int sensorId, int serviceId);
74 void SetClientSenSorConfig(int32_t sensorId, int32_t serviceId, int64_t samplingInterval, int64_t &reportInterval);
|
H A D | sensor_client_info.cpp | 42 void SensorClientInfo::PrintClientMapInfo(int32_t serviceId, int32_t sensorId)
in PrintClientMapInfo() argument 45 __func__, serviceId, sensorId, curCountMap_[sensorId], periodCountMap_[sensorId]);
in PrintClientMapInfo()
|
H A D | sensor_client_info.h | 40 void PrintClientMapInfo(int32_t serviceId, int32_t sensorId);
|
H A D | sensor_if_service.h | 42 int32_t SetBatchSenior(int32_t serviceId, int32_t sensorId, int32_t mode, int64_t samplingInterval, 59 int32_t RemoveCallbackMap(int32_t groupId, int serviceId, const sptr<ISensorCallback> &callbackObj);
|
H A D | sensor_hdi_dump.cpp | 191 auto serviceId = entry.first;
local 193 sensorInfoData += "serviceId=" + std::to_string(serviceId) + " ";
205 sensorEnabled.find(sensorId)->second.find(serviceId) != sensorEnabled.find(sensorId)->second.end()) {
|
/drivers/hdf_core/framework/model/network/wifi/platform/src/message/ |
H A D | message_router.c | 184 static void NotifyAllNodesServiceDel(const NodeId nodeId, ServiceId serviceId) in NotifyAllNodesServiceDel() argument 192 ErrorCode subErrCode = g_messageNodes[i]->NotifyServiceDel(g_messageNodes[i], serviceId); in NotifyAllNodesServiceDel() 194 HDF_LOGE("%s:Rollback service add to node failed!nodeId=%hhu,serviceId=%d,errCode=%d", __func__, i, in NotifyAllNodesServiceDel() 195 serviceId, subErrCode); in NotifyAllNodesServiceDel() 218 HDF_LOGE("%s:Notify service add to node failed!nodeId=%d,serviceId=%d,errCode=%d", __func__, in NotifyAllNodesServiceAdd() 219 notifyNodeIndex, mapper->serviceId, errCode); in NotifyAllNodesServiceAdd() 233 ErrorCode subErrCode = g_messageNodes[i]->NotifyServiceDel(g_messageNodes[i], mapper->serviceId); in NotifyAllNodesServiceAdd() 235 HDF_LOGE("%s:Rollback service add to node failed!nodeId=%d,serviceId=%d,errCode=%d", __func__, i, in NotifyAllNodesServiceAdd() 236 mapper->serviceId, subErrCode); in NotifyAllNodesServiceAdd() 249 if (remoteService->serviceId > in DoRegistService() 371 UnregistServiceInner(const NodeId nodeId, const DispatcherId dispatcherId, const ServiceId serviceId) UnregistServiceInner() argument 409 UnregistLocalService(const DispatcherId dispatcherId, ServiceId serviceId) UnregistLocalService() argument 414 UnregistRemoteService(NodeId nodeId, ServiceId serviceId) UnregistRemoteService() argument 419 CheckServiceID(ServiceId serviceId, bool allowSync) CheckServiceID() argument 445 RefRemoteService(ServiceId serviceId) RefRemoteService() argument [all...] |
H A D | sidecar.c | 25 ServiceId serviceId; member 37 if (receiver >= MESSAGE_ENGINE_MAX_SERVICE || privateData->serviceId >= MESSAGE_ENGINE_MAX_SERVICE) { in MessageInputCheck() 76 ServiceId serviceId = GetServiceID(id); in DispatchToMessage() local 84 if (serviceId >= MESSAGE_ENGINE_MAX_SERVICE) { in DispatchToMessage() 87 context = CreateMessageContext(RESERVED_SERVICE_ID, serviceId, cmd, reqData); in DispatchToMessage() 95 targetService = RefRemoteService(serviceId); in DispatchToMessage() 122 context = CreateMessageContext(privateData->serviceId, receiver, commandId, sendData); in SideCarSendSyncMessage() 158 context = CreateMessageContext(privateData->serviceId, receiver, commandId, reqData); in SideCarSendAsyncMessageInner() 219 HDF_LOGE("Destroy service! id=%d", data->serviceId); in DestroyService() 220 errCode = UnregistLocalService(data->dispatcherId, data->serviceId); in DestroyService() [all...] |
/drivers/hdf_core/adapter/uhdf2/ipc/src/ |
H A D | hdf_remote_service.c | 46 struct HdfRemoteService *HdfRemoteServiceGet(int32_t serviceId) in HdfRemoteServiceGet() argument 48 return HdfRemoteAdapterGetSa(serviceId); in HdfRemoteServiceGet() 51 int HdfRemoteServiceRegister(int32_t serviceId, struct HdfRemoteService *service) in HdfRemoteServiceRegister() argument 53 return HdfRemoteAdapterAddSa(serviceId, service); in HdfRemoteServiceRegister()
|
/drivers/hdf_core/framework/model/network/wifi/platform/include/message/ |
H A D | message_router_inner.h | 32 ErrorCode (*NotifyServiceDel)(const struct MessageNode *, const ServiceId serviceId) 45 ServiceId serviceId 53 RemoteService *RefRemoteService(ServiceId serviceId); 65 ErrorCode UnregistRemoteService(NodeId nodeId, ServiceId serviceId);
|
H A D | message_router.h | 40 ErrorCode UnregistLocalService(const DispatcherId dispatcherId, ServiceId serviceId);
|
H A D | sidecar.h | 94 ServiceId serviceId; member 111 .serviceId = (SERVICE_ID), \
|
/drivers/hdf_core/interfaces/inner_api/ipc/ |
H A D | hdf_remote_service.h | 117 * @param serviceId Indicates the ID of the service to add. 121 int HdfRemoteServiceRegister(int32_t serviceId, struct HdfRemoteService *service); 126 * @param serviceId Indicates the ID of the service to obtain. 129 struct HdfRemoteService *HdfRemoteServiceGet(int32_t serviceId);
|
/drivers/hdf_core/framework/model/network/wifi/platform/src/message/nodes/ |
H A D | local_node.c | 167 service->serviceId = mapper->serviceId; in CreateLocalNodeService()
|
/drivers/hdf_core/framework/support/platform/include/hdmi/ |
H A D | hdmi_cec.h | 175 uint16_t serviceId; member 186 uint16_t serviceId; member
|
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
H A D | hdmi_cec.c | 374 data[DATA_THIRD_OFFSET_ELEMENT] = digital->systemData.arib.serviceId >> HDMI_ONE_BYTE_SHIFT; in HdmiCecEncodingDigitalServiceId() 375 data[DATA_FORTH_OFFSET_ELEMENT] = digital->systemData.arib.serviceId & HDMI_ONE_BYTE_MARK; in HdmiCecEncodingDigitalServiceId() 395 data[DATA_THIRD_OFFSET_ELEMENT] = digital->systemData.dvb.serviceId >> HDMI_ONE_BYTE_SHIFT; in HdmiCecEncodingDigitalServiceId() 396 data[DATA_FORTH_OFFSET_ELEMENT] = digital->systemData.dvb.serviceId & HDMI_ONE_BYTE_MARK; in HdmiCecEncodingDigitalServiceId()
|