Home
last modified time | relevance | path

Searched refs:devId (Results 1 – 25 of 87) sorted by relevance

1234

/drivers/peripheral/display/hdi_service/device/src/server/
Ddisplay_device_service.cpp49 int32_t DisplayDeviceService::GetDisplayCapability(uint32_t devId, DisplayCapability &info) in GetDisplayCapability() argument
51 return displayDevice_->GetDisplayCapability(devId, &info); in GetDisplayCapability()
54 int32_t DisplayDeviceService::GetDisplaySupportedModes(uint32_t devId, uint32_t &num, DisplayModeIn… in GetDisplaySupportedModes() argument
56 return displayDevice_->GetDisplaySupportedModes(devId, &num, modes); in GetDisplaySupportedModes()
59 int32_t DisplayDeviceService::GetDisplayMode(uint32_t devId, uint32_t &modeId) in GetDisplayMode() argument
61 return displayDevice_->GetDisplayMode(devId, &modeId); in GetDisplayMode()
64 int32_t DisplayDeviceService::SetDisplayMode(uint32_t devId, uint32_t modeId) in SetDisplayMode() argument
66 return displayDevice_->SetDisplayMode(devId, modeId); in SetDisplayMode()
69 int32_t DisplayDeviceService::GetDisplayPowerStatus(uint32_t devId, DispPowerStatus &status) in GetDisplayPowerStatus() argument
71 return displayDevice_->GetDisplayPowerStatus(devId, &status); in GetDisplayPowerStatus()
[all …]
Ddisplay_device_host_driver.cpp174 static void HotPlugCallbackFunc(uint32_t devId, bool connected, void *data) in HotPlugCallbackFunc() argument
176 HDF_LOGI("hotplug callback %{public}d %{public}d", devId, connected); in HotPlugCallbackFunc()
178 auto ret = callbackRemote->OnHotplugIn(devId, connected); in HotPlugCallbackFunc()
180 HDF_LOGE("failed to hotplug callback %{public}d %{public}d", devId, connected); in HotPlugCallbackFunc()
182 HDF_LOGD("succ to hotplug callback %{public}d %{public}d", devId, connected); in HotPlugCallbackFunc()
210 uint32_t devId = 0; in GetDisplayCapability() local
211 if (!data->ReadUint32(devId)) { in GetDisplayCapability()
216 int32_t ret = device_->GetDisplayCapability(devId, capability); in GetDisplayCapability()
236 uint32_t devId = 0; in GetDisplaySupportedModes() local
238 if (!data->ReadUint32(devId)) { in GetDisplaySupportedModes()
[all …]
/drivers/peripheral/display/interfaces/include/
Ddisplay_device.h61 typedef void (*HotPlugCallback)(uint32_t devId, bool connected, void *data);
90 typedef void (*RefreshCallback)(uint32_t devId, void *data);
126 int32_t (*RegDisplayVBlankCallback)(uint32_t devId, VBlankCallback callback, void *data);
142 int32_t (*RegDisplayRefreshCallback)(uint32_t devId, RefreshCallback callback, void *data);
156 int32_t (*GetDisplayCapability)(uint32_t devId, DisplayCapability *info);
172 int32_t (*GetDisplaySupportedModes)(uint32_t devId, uint32_t *num, DisplayModeInfo *modes);
186 int32_t (*GetDisplayMode)(uint32_t devId, uint32_t *modeId);
200 int32_t (*SetDisplayMode)(uint32_t devId, uint32_t modeId);
213 int32_t (*GetDisplayPowerStatus)(uint32_t devId, DispPowerStatus *status);
226 int32_t (*SetDisplayPowerStatus)(uint32_t devId, DispPowerStatus status);
[all …]
Ddisplay_layer.h62 int32_t (*InitDisplay)(uint32_t devId);
76 int32_t (*DeinitDisplay)(uint32_t devId);
90 int32_t (*GetDisplayInfo)(uint32_t devId, DisplayInfo *dispInfo);
112 int32_t (*CreateLayer)(uint32_t devId, const LayerInfo *layerInfo, uint32_t *layerId);
127 int32_t (*CloseLayer)(uint32_t devId, uint32_t layerId);
147 int32_t (*SetLayerVisible)(uint32_t devId, uint32_t layerId, bool visible);
165 int32_t (*GetLayerVisibleState)(uint32_t devId, uint32_t layerId, bool *visible);
182 int32_t (*SetLayerSize)(uint32_t devId, uint32_t layerId, IRect *rect);
199 int32_t (*GetLayerSize)(uint32_t devId, uint32_t layerId, IRect *rect);
215 int32_t (*SetLayerCrop)(uint32_t devId, uint32_t layerId, IRect *rect);
[all …]
/drivers/peripheral/display/hdi_service/device/include/server/
Ddisplay_device_service.h36 int32_t GetDisplayCapability(uint32_t devId, DisplayCapability &info) override;
37 … int32_t GetDisplaySupportedModes(uint32_t devId, uint32_t &num, DisplayModeInfo *modes) override;
38 int32_t GetDisplayMode(uint32_t devId, uint32_t &modeId) override;
39 int32_t SetDisplayMode(uint32_t devId, uint32_t modeId) override;
40 int32_t GetDisplayPowerStatus(uint32_t devId, DispPowerStatus &status) override;
41 int32_t SetDisplayPowerStatus(uint32_t devId, DispPowerStatus status) override;
42 int32_t GetDisplayBacklight(uint32_t devId, uint32_t &level) override;
43 int32_t SetDisplayBacklight(uint32_t devId, uint32_t level) override;
44 int32_t GetDisplayProperty(uint32_t devId, uint32_t id, uint64_t &value) override;
45 int32_t SetDisplayProperty(uint32_t devId, uint32_t id, uint64_t value) override;
[all …]
/drivers/peripheral/display/hdi_service/device/include/interfaces/
Didisplay_device.h46 virtual int32_t GetDisplayCapability(uint32_t devId, DisplayCapability &info) = 0;
47 …virtual int32_t GetDisplaySupportedModes(uint32_t devId, uint32_t &num, DisplayModeInfo *modes) = …
48 virtual int32_t GetDisplayMode(uint32_t devId, uint32_t &modeId) = 0;
49 virtual int32_t SetDisplayMode(uint32_t devId, uint32_t modeId) = 0;
50 virtual int32_t GetDisplayPowerStatus(uint32_t devId, DispPowerStatus &status) = 0;
51 virtual int32_t SetDisplayPowerStatus(uint32_t devId, DispPowerStatus status) = 0;
52 virtual int32_t GetDisplayBacklight(uint32_t devId, uint32_t &level) = 0;
53 virtual int32_t SetDisplayBacklight(uint32_t devId, uint32_t level) = 0;
54 virtual int32_t GetDisplayProperty(uint32_t devId, uint32_t id, uint64_t &value) = 0;
55 virtual int32_t SetDisplayProperty(uint32_t devId, uint32_t id, uint64_t value) = 0;
[all …]
/drivers/interface/display/composer/v1_0/include/
Didisplay_composer_interface.h94 virtual int32_t SetClientBufferCacheCount(uint32_t devId, uint32_t count) = 0;
108 virtual int32_t GetDisplayCapability(uint32_t devId, DisplayCapability& info) = 0;
123 … virtual int32_t GetDisplaySupportedModes(uint32_t devId, std::vector<DisplayModeInfo>& modes) = 0;
137 virtual int32_t GetDisplayMode(uint32_t devId, uint32_t& modeId) = 0;
151 virtual int32_t SetDisplayMode(uint32_t devId, uint32_t modeId) = 0;
164 virtual int32_t GetDisplayPowerStatus(uint32_t devId, DispPowerStatus& status) = 0;
177 virtual int32_t SetDisplayPowerStatus(uint32_t devId, DispPowerStatus status) = 0;
191 virtual int32_t GetDisplayBacklight(uint32_t devId, uint32_t& level) = 0;
204 virtual int32_t SetDisplayBacklight(uint32_t devId, uint32_t level) = 0;
218 virtual int32_t GetDisplayProperty(uint32_t devId, uint32_t id, uint64_t& value) = 0;
[all …]
/drivers/peripheral/display/hdi_service/device/include/proxy/
Ddisplay_device_proxy.h40 int32_t GetDisplayCapability(uint32_t devId, DisplayCapability &info) override;
41 … int32_t GetDisplaySupportedModes(uint32_t devId, uint32_t &num, DisplayModeInfo *modes) override;
42 int32_t GetDisplayMode(uint32_t devId, uint32_t &modeId) override;
43 int32_t SetDisplayMode(uint32_t devId, uint32_t modeId) override;
44 int32_t GetDisplayPowerStatus(uint32_t devId, DispPowerStatus &status) override;
45 int32_t SetDisplayPowerStatus(uint32_t devId, DispPowerStatus status) override;
46 int32_t GetDisplayBacklight(uint32_t devId, uint32_t &level) override;
47 int32_t SetDisplayBacklight(uint32_t devId, uint32_t level) override;
48 int32_t GetDisplayProperty(uint32_t devId, uint32_t id, uint64_t &value) override;
49 int32_t SetDisplayProperty(uint32_t devId, uint32_t id, uint64_t value) override;
[all …]
/drivers/peripheral/display/composer/hdi_service/include/
Didisplay_composer_vdi.h37 virtual int32_t GetDisplayCapability(uint32_t devId, DisplayCapability& info) = 0;
38 … virtual int32_t GetDisplaySupportedModes(uint32_t devId, std::vector<DisplayModeInfo>& modes) = 0;
39 virtual int32_t GetDisplayMode(uint32_t devId, uint32_t& modeId) = 0;
40 virtual int32_t SetDisplayMode(uint32_t devId, uint32_t modeId) = 0;
41 virtual int32_t GetDisplayPowerStatus(uint32_t devId, DispPowerStatus& status) = 0;
42 virtual int32_t SetDisplayPowerStatus(uint32_t devId, DispPowerStatus status) = 0;
43 virtual int32_t GetDisplayBacklight(uint32_t devId, uint32_t& level) = 0;
44 virtual int32_t SetDisplayBacklight(uint32_t devId, uint32_t level) = 0;
45 virtual int32_t GetDisplayProperty(uint32_t devId, uint32_t id, uint64_t& value) = 0;
47 uint32_t devId, std::vector<uint32_t>& layers, std::vector<int32_t>& types) = 0;
[all …]
Ddisplay_composer_service.h36 int32_t SetClientBufferCacheCount(uint32_t devId, uint32_t count) override;
37 int32_t GetDisplayCapability(uint32_t devId, DisplayCapability& info) override;
38 int32_t GetDisplaySupportedModes(uint32_t devId, std::vector<DisplayModeInfo>& modes) override;
39 int32_t GetDisplayMode(uint32_t devId, uint32_t& modeId) override;
40 int32_t SetDisplayMode(uint32_t devId, uint32_t modeId) override;
41 int32_t GetDisplayPowerStatus(uint32_t devId, DispPowerStatus& status) override;
42 int32_t SetDisplayPowerStatus(uint32_t devId, DispPowerStatus status) override;
43 int32_t GetDisplayBacklight(uint32_t devId, uint32_t& level) override;
44 int32_t SetDisplayBacklight(uint32_t devId, uint32_t level) override;
45 int32_t GetDisplayProperty(uint32_t devId, uint32_t id, uint64_t& value) override;
[all …]
/drivers/hdf_core/framework/model/camera/device_impl/src/
Dcamera_isp.c22 int32_t devId = subDev.devId; in CameraCmdIspQueryConfig() local
27 ctrlSize = deviceConfig->isp.isp[devId].ctrlValueNum; in CameraCmdIspQueryConfig()
29 if (ctrlId == deviceConfig->isp.isp[devId].ctrlCap[i].ctrlId) { in CameraCmdIspQueryConfig()
30 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->isp.isp[devId].ctrlCap[i].ctrlId); in CameraCmdIspQueryConfig()
31 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->isp.isp[devId].ctrlCap[i].max); in CameraCmdIspQueryConfig()
32 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->isp.isp[devId].ctrlCap[i].min); in CameraCmdIspQueryConfig()
33 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->isp.isp[devId].ctrlCap[i].step); in CameraCmdIspQueryConfig()
34 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->isp.isp[devId].ctrlCap[i].def); in CameraCmdIspQueryConfig()
42 static int32_t CameraIspGetConfig(struct CameraDevice *camDev, int32_t devId, struct CameraCtrlConf… in CameraIspGetConfig() argument
49 if (deviceDriver->isp[devId]->devOps->getConfig == NULL) { in CameraIspGetConfig()
[all …]
Dcamera_sensor.c22 int32_t devId = subDev.devId; in CameraCmdSensorQueryConfig() local
27 ctrlSize = deviceConfig->sensor.sensor[devId].ctrlValueNum; in CameraCmdSensorQueryConfig()
29 if (ctrlId == deviceConfig->sensor.sensor[devId].ctrlCap[i].ctrlId) { in CameraCmdSensorQueryConfig()
30 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->sensor.sensor[devId].ctrlCap[i].ctrlId); in CameraCmdSensorQueryConfig()
31 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->sensor.sensor[devId].ctrlCap[i].max); in CameraCmdSensorQueryConfig()
32 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->sensor.sensor[devId].ctrlCap[i].min); in CameraCmdSensorQueryConfig()
33 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->sensor.sensor[devId].ctrlCap[i].step); in CameraCmdSensorQueryConfig()
34 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->sensor.sensor[devId].ctrlCap[i].def); in CameraCmdSensorQueryConfig()
42 static int32_t CameraSensorGetConfig(struct CameraDevice *camDev, int32_t devId, struct CameraCtrlC… in CameraSensorGetConfig() argument
49 if (deviceDriver->sensor[devId]->devOps->getConfig == NULL) { in CameraSensorGetConfig()
[all …]
Dcamera_vcm.c22 int32_t devId = subDev.devId; in CameraCmdVcmQueryConfig() local
27 ctrlSize = deviceConfig->vcm.vcm[devId].ctrlValueNum; in CameraCmdVcmQueryConfig()
29 if (ctrlId == deviceConfig->vcm.vcm[devId].ctrlCap[i].ctrlId) { in CameraCmdVcmQueryConfig()
30 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->vcm.vcm[devId].ctrlCap[i].ctrlId); in CameraCmdVcmQueryConfig()
31 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->vcm.vcm[devId].ctrlCap[i].max); in CameraCmdVcmQueryConfig()
32 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->vcm.vcm[devId].ctrlCap[i].min); in CameraCmdVcmQueryConfig()
33 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->vcm.vcm[devId].ctrlCap[i].step); in CameraCmdVcmQueryConfig()
34 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->vcm.vcm[devId].ctrlCap[i].def); in CameraCmdVcmQueryConfig()
42 static int32_t CameraVcmGetConfig(struct CameraDevice *camDev, int32_t devId, struct CameraCtrlConf… in CameraVcmGetConfig() argument
49 if (deviceDriver->vcm[devId]->devOps->getConfig == NULL) { in CameraVcmGetConfig()
[all …]
Dcamera_lens.c22 int32_t devId = subDev.devId; in CameraCmdLensQueryConfig() local
27 ctrlSize = deviceConfig->lens.lens[devId].ctrlValueNum; in CameraCmdLensQueryConfig()
29 if (ctrlId == deviceConfig->lens.lens[devId].ctrlCap[i].ctrlId) { in CameraCmdLensQueryConfig()
30 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->lens.lens[devId].ctrlCap[i].ctrlId); in CameraCmdLensQueryConfig()
31 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->lens.lens[devId].ctrlCap[i].max); in CameraCmdLensQueryConfig()
32 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->lens.lens[devId].ctrlCap[i].min); in CameraCmdLensQueryConfig()
33 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->lens.lens[devId].ctrlCap[i].step); in CameraCmdLensQueryConfig()
34 isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->lens.lens[devId].ctrlCap[i].def); in CameraCmdLensQueryConfig()
42 static int32_t CameraLensGetConfig(struct CameraDevice *camDev, int32_t devId, struct CameraCtrlCon… in CameraLensGetConfig() argument
49 if (deviceDriver->lens[devId]->devOps->getConfig == NULL) { in CameraLensGetConfig()
[all …]
Dcamera_flash.c22 int32_t devId = subDev.devId; in CameraCmdFlashQueryConfig() local
27 ctrlSize = deviceConfig->flash.flash[devId].ctrlValueNum; in CameraCmdFlashQueryConfig()
29 if (ctrlId == deviceConfig->flash.flash[devId].ctrlCap[i].ctrlId) { in CameraCmdFlashQueryConfig()
30 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->flash.flash[devId].ctrlCap[i].ctrlId); in CameraCmdFlashQueryConfig()
31 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->flash.flash[devId].ctrlCap[i].max); in CameraCmdFlashQueryConfig()
32 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->flash.flash[devId].ctrlCap[i].min); in CameraCmdFlashQueryConfig()
33 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->flash.flash[devId].ctrlCap[i].step); in CameraCmdFlashQueryConfig()
34 … isFailed |= !HdfSbufWriteInt32(rspData, deviceConfig->flash.flash[devId].ctrlCap[i].def); in CameraCmdFlashQueryConfig()
42 static int32_t CameraFlashGetConfig(struct CameraDevice *camDev, int32_t devId, struct CameraCtrlCo… in CameraFlashGetConfig() argument
49 if (deviceDriver->flash[devId]->devOps->getConfig == NULL) { in CameraFlashGetConfig()
[all …]
Dcamera_uvc.c19 static int32_t CameraCmdUvcCheckDeviceOps(struct CameraDeviceDriver *deviceDriver, int32_t devId) in CameraCmdUvcCheckDeviceOps() argument
25 if (deviceDriver->uvc[devId] == NULL) { in CameraCmdUvcCheckDeviceOps()
29 if (deviceDriver->uvc[devId]->devOps == NULL) { in CameraCmdUvcCheckDeviceOps()
40 int32_t devId = subDev.devId; in CameraCmdUvcQueryConfig() local
47 ret = CameraCmdUvcCheckDeviceOps(deviceDriver, devId); in CameraCmdUvcQueryConfig()
50 deviceDriver->uvc[devId]->devOps->uvcQueryCtrl(deviceDriver, &queryctrl); in CameraCmdUvcQueryConfig()
66 int32_t devId = subDev.devId; in CameraCmdUvcSetConfig() local
71 ret = CameraCmdUvcCheckDeviceOps(deviceDriver, devId); in CameraCmdUvcSetConfig()
76 return deviceDriver->uvc[devId]->devOps->setConfig(deviceDriver, &ctrlConfig); in CameraCmdUvcSetConfig()
82 int32_t devId = subDev.devId; in CameraCmdUvcGetConfig() local
[all …]
/drivers/peripheral/display/hal/default_standard/src/display_device/
Ddisplay_composer_vdi_impl.h35 virtual int32_t GetDisplayCapability(uint32_t devId, DisplayCapability& info) override;
36 …virtual int32_t GetDisplaySupportedModes(uint32_t devId, std::vector<DisplayModeInfo>& modes) over…
37 virtual int32_t GetDisplayMode(uint32_t devId, uint32_t& modeId) override;
38 virtual int32_t SetDisplayMode(uint32_t devId, uint32_t modeId) override;
39 virtual int32_t GetDisplayPowerStatus(uint32_t devId, DispPowerStatus& status) override;
40 virtual int32_t SetDisplayPowerStatus(uint32_t devId, DispPowerStatus status) override;
41 virtual int32_t GetDisplayBacklight(uint32_t devId, uint32_t& level) override;
42 virtual int32_t SetDisplayBacklight(uint32_t devId, uint32_t level) override;
43 virtual int32_t GetDisplayProperty(uint32_t devId, uint32_t id, uint64_t& value) override;
44 virtual int32_t GetDisplayCompChange(uint32_t devId, std::vector<uint32_t>& layers,
[all …]
Ddisplay_composer_vdi_impl.cpp40 int32_t DisplayComposerVdiImpl::GetDisplayCapability(uint32_t devId, DisplayCapability& info) in GetDisplayCapability() argument
43 … int32_t ec = composerModel_->CallDisplayFunction(devId, &HdiDisplay::GetDisplayCapability, &info); in GetDisplayCapability()
48 int32_t DisplayComposerVdiImpl::GetDisplaySupportedModes(uint32_t devId, std::vector<DisplayModeInf… in GetDisplaySupportedModes() argument
53 int32_t ec = composerModel_->CallDisplayFunction(devId, &HdiDisplay::GetDisplaySupportedModes, in GetDisplaySupportedModes()
61 …ec = composerModel_->CallDisplayFunction(devId, &HdiDisplay::GetDisplaySupportedModes, &num, modes… in GetDisplaySupportedModes()
67 int32_t DisplayComposerVdiImpl::GetDisplayMode(uint32_t devId, uint32_t& modeId) in GetDisplayMode() argument
70 int32_t ec = composerModel_->CallDisplayFunction(devId, &HdiDisplay::GetDisplayMode, &modeId); in GetDisplayMode()
75 int32_t DisplayComposerVdiImpl::SetDisplayMode(uint32_t devId, uint32_t modeId) in SetDisplayMode() argument
78 int32_t ec = composerModel_->CallDisplayFunction(devId, &HdiDisplay::SetDisplayMode, modeId); in SetDisplayMode()
83 int32_t DisplayComposerVdiImpl::GetDisplayPowerStatus(uint32_t devId, DispPowerStatus& status) in GetDisplayPowerStatus() argument
[all …]
/drivers/interface/display/composer/v1_0/hdi_impl/
Ddisplay_composer_hdi_impl.h127 virtual int32_t SetClientBufferCacheCount(uint32_t devId, uint32_t cacheCount) override in SetClientBufferCacheCount() argument
130 return ToDispErrCode(hdi_->SetClientBufferCacheCount(devId, cacheCount)); in SetClientBufferCacheCount()
133 virtual int32_t GetDisplayCapability(uint32_t devId, DisplayCapability& info) override in GetDisplayCapability() argument
136 return ToDispErrCode(hdi_->GetDisplayCapability(devId, info)); in GetDisplayCapability()
139 …virtual int32_t GetDisplaySupportedModes(uint32_t devId, std::vector<DisplayModeInfo>& modes) over… in GetDisplaySupportedModes() argument
142 return ToDispErrCode(hdi_->GetDisplaySupportedModes(devId, modes)); in GetDisplaySupportedModes()
145 virtual int32_t GetDisplayMode(uint32_t devId, uint32_t& modeId) override in GetDisplayMode() argument
148 return ToDispErrCode(hdi_->GetDisplayMode(devId, modeId)); in GetDisplayMode()
151 virtual int32_t SetDisplayMode(uint32_t devId, uint32_t modeId) override in SetDisplayMode() argument
154 return ToDispErrCode(hdi_->SetDisplayMode(devId, modeId)); in SetDisplayMode()
[all …]
/drivers/peripheral/display/hal/default_standard/src/display_device/core/
Dhdi_session.cpp59 void HdiSession::DoHotPlugCallback(uint32_t devId, bool connect) in DoHotPlugCallback() argument
63 callback.first(devId, connect, callback.second); in DoHotPlugCallback()
78 static int32_t GetDisplayCapability(uint32_t devId, DisplayCapability *info) in GetDisplayCapability() argument
82 …return HdiSession::GetInstance().CallDisplayFunction(devId, &HdiDisplay::GetDisplayCapability, inf… in GetDisplayCapability()
85 static int32_t GetDisplaySupportedModes(uint32_t devId, uint32_t *num, DisplayModeInfo *modes) in GetDisplaySupportedModes() argument
89 …return HdiSession::GetInstance().CallDisplayFunction(devId, &HdiDisplay::GetDisplaySupportedModes,… in GetDisplaySupportedModes()
92 static int32_t GetDisplayMode(uint32_t devId, uint32_t *mode) in GetDisplayMode() argument
96 return HdiSession::GetInstance().CallDisplayFunction(devId, &HdiDisplay::GetDisplayMode, mode); in GetDisplayMode()
99 static int32_t SetDisplayMode(uint32_t devId, uint32_t mode) in SetDisplayMode() argument
102 return HdiSession::GetInstance().CallDisplayFunction(devId, &HdiDisplay::SetDisplayMode, mode); in SetDisplayMode()
[all …]
Dhdi_session.h34 … int32_t CallDisplayFunction(uint32_t devId, int32_t (HdiDisplay::*member)(Args...), Args... args) in CallDisplayFunction() argument
36 DISPLAY_LOGD("device Id : %{public}d", devId); in CallDisplayFunction()
37 …DISPLAY_CHK_RETURN((devId == INVALIDE_DISPLAY_ID), DISPLAY_FAILURE, DISPLAY_LOGE("invalid device i… in CallDisplayFunction()
38 auto iter = mHdiDisplays.find(devId); in CallDisplayFunction()
40 DISPLAY_LOGE("can not find display %{public}d", devId)); in CallDisplayFunction()
46 …int32_t CallLayerFunction(uint32_t devId, uint32_t layerId, int32_t (HdiLayer::*member)(Args...), … in CallLayerFunction() argument
48 DISPLAY_LOGD("device Id : %{public}d", devId); in CallLayerFunction()
49 …DISPLAY_CHK_RETURN((devId == INVALIDE_DISPLAY_ID), DISPLAY_FAILURE, DISPLAY_LOGE("invalid device i… in CallLayerFunction()
50 auto iter = mHdiDisplays.find(devId); in CallLayerFunction()
52 DISPLAY_LOGE("can not find display %{public}d", devId)); in CallLayerFunction()
[all …]
/drivers/peripheral/display/hdi_service/device/src/proxy/display_device_proxy/
Ddisplay_device_proxy.cpp114 int32_t DisplayDeviceProxy::RegDisplayVBlankCallback(uint32_t devId, VBlankCallback callback, void … in RegDisplayVBlankCallback() argument
117 if (callback == nullptr || (devId > MAX_DEVID)) { in RegDisplayVBlankCallback()
128 … if (!data.WriteInterfaceToken(DisplayDeviceProxy::GetDescriptor()) || !data.WriteUint32(devId)) { in RegDisplayVBlankCallback()
142 int32_t DisplayDeviceProxy::RegDisplayRefreshCallback(uint32_t devId, RefreshCallback callback, voi… in RegDisplayRefreshCallback() argument
145 if (callback == nullptr || (devId > MAX_DEVID)) { in RegDisplayRefreshCallback()
157 … if (!data.WriteInterfaceToken(DisplayDeviceProxy::GetDescriptor()) || !data.WriteUint32(devId)) { in RegDisplayRefreshCallback()
170 int32_t DisplayDeviceProxy::GetDisplayCapability(uint32_t devId, DisplayCapability &info) in GetDisplayCapability() argument
174 if (devId > MAX_DEVID) { in GetDisplayCapability()
181 … if (!data.WriteInterfaceToken(DisplayDeviceProxy::GetDescriptor()) || !data.WriteUint32(devId)) { in GetDisplayCapability()
199 int32_t DisplayDeviceProxy::GetDisplaySupportedModes(uint32_t devId, uint32_t &num, DisplayModeInfo… in GetDisplaySupportedModes() argument
[all …]
/drivers/peripheral/display/composer/test/fuzztest/device_fuzzer/
Ddevice_fuzzer.cpp138 int32_t TestSetClientBufferCacheCount(uint32_t devId) in TestSetClientBufferCacheCount() argument
141 int32_t ret = g_composerInterface->SetClientBufferCacheCount(devId, cacheCount); in TestSetClientBufferCacheCount()
149 int32_t TestGetDisplayCapability(uint32_t devId) in TestGetDisplayCapability() argument
157 ret = g_composerInterface->GetDisplayCapability(devId, info); in TestGetDisplayCapability()
165 int32_t TestGetDisplaySupportedModes(uint32_t devId) in TestGetDisplaySupportedModes() argument
175 int32_t ret = g_composerInterface->GetDisplaySupportedModes(devId, infos); in TestGetDisplaySupportedModes()
183 int32_t TestSetGetDisplayMode(uint32_t devId) in TestSetGetDisplayMode() argument
186 int32_t ret = g_composerInterface->SetDisplayMode(devId, modeId); in TestSetGetDisplayMode()
191 ret = g_composerInterface->GetDisplayMode(devId, modeId); in TestSetGetDisplayMode()
199 int32_t TestSetGetDisplayPowerStatus(uint32_t devId) in TestSetGetDisplayPowerStatus() argument
[all …]
/drivers/hdf_core/framework/model/display/driver/
Dhdf_disp.c64 static int32_t InitDisp(uint32_t devId);
65 int32_t DispOn(uint32_t devId);
66 int32_t DispOff(uint32_t devId);
67 int32_t SetDispBacklight(uint32_t devId, uint32_t level);
68 static int32_t GetDispInfo(uint32_t devId, struct DispInfo *info);
69 static int32_t SetDispPower(uint32_t devId, uint32_t powerStatus);
70 static void EsdCheckStartUp(struct DispEsd *esd, uint32_t devId);
71 static void EsdCheckEnd(struct DispEsd *esd, uint32_t devId);
92 static int32_t InitDisp(uint32_t devId) in InitDisp() argument
97 int32_t DispOn(uint32_t devId) in DispOn() argument
[all …]
/drivers/peripheral/display/composer/hdi_service/src/
Ddisplay_composer_service.cpp169 int32_t DisplayComposerService::SetClientBufferCacheCount(uint32_t devId, uint32_t count) in SetClientBufferCacheCount() argument
174 DeviceCache* devCache = cacheMgr_->DeviceCacheInstance(devId); in SetClientBufferCacheCount()
181 int32_t DisplayComposerService::GetDisplayCapability(uint32_t devId, DisplayCapability& info) in GetDisplayCapability() argument
186 int32_t ret = vdiImpl_->GetDisplayCapability(devId, info); in GetDisplayCapability()
191 int32_t DisplayComposerService::GetDisplaySupportedModes(uint32_t devId, std::vector<DisplayModeInf… in GetDisplaySupportedModes() argument
196 int32_t ret = vdiImpl_->GetDisplaySupportedModes(devId, modes); in GetDisplaySupportedModes()
201 int32_t DisplayComposerService::GetDisplayMode(uint32_t devId, uint32_t& modeId) in GetDisplayMode() argument
206 int32_t ret = vdiImpl_->GetDisplayMode(devId, modeId); in GetDisplayMode()
211 int32_t DisplayComposerService::SetDisplayMode(uint32_t devId, uint32_t modeId) in SetDisplayMode() argument
216 int32_t ret = vdiImpl_->SetDisplayMode(devId, modeId); in SetDisplayMode()
[all …]

1234