Home
last modified time | relevance | path

Searched refs:alpha (Results 1 - 25 of 29) sorted by relevance

12

/drivers/peripheral/display/composer/test/common/
H A Dhdi_composition_check.cpp36 // simple hande the alpha it may not compatible with all scenarios
42 if (layers.alpha != -1) { in SimpleHandleAlpha()
45 color = (color & WHITE_TRANSPARENT) | (layers.alpha & ALPHA); // get the alpha in SimpleHandleAlpha()
48 color = color * (layers.alpha * INV); in SimpleHandleAlpha()
49 color = (color & WHITE_TRANSPARENT) | (layers.alpha & ALPHA); // get the alpha in SimpleHandleAlpha()
H A Ddisplay_test_utils.h64 int32_t alpha = -1; member
H A Dhdi_test_layer.h85 void SetAlpha(LayerAlpha alpha);
H A Dhdi_test_layer.cpp214 DISPLAY_TEST_CHK_RETURN((ret != DISPLAY_SUCCESS), DISPLAY_FAILURE, DISPLAY_TEST_LOGE("set alpha failed")); in PreparePresent()
265 void HdiTestLayer::SetAlpha(LayerAlpha alpha) in SetAlpha() argument
268 alpha_ = alpha; in SetAlpha()
/drivers/peripheral/display/composer/test/moduletest/
H A Dhdi_device_test.cpp148 // alpha layer test
153 .alpha = 0xFF
160 .alpha = 0xFF
167 .alpha = 0xFF
175 .alpha = 0xFF,
183 .alpha = 0xFF,
191 .alpha = 0xFF,
247 if ((setting.alpha >= 0) && (setting.alpha <= 0xff)) { // alpha ran in CreateTestLayer()
248 LayerAlpha alpha = { 0 }; CreateTestLayer() local
[all...]
/drivers/peripheral/display/hal/default_standard/src/display_device/core/
H A Dhdi_layer.cpp120 int32_t HdiLayer::SetLayerAlpha(LayerAlpha *alpha) in SetLayerAlpha() argument
122 DISPLAY_CHK_RETURN((alpha == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("in alpha is nullptr")); in SetLayerAlpha()
123 DISPLAY_LOGD("enable alpha %{public}d galpha 0x%{public}x", alpha->enGlobalAlpha, alpha->gAlpha); in SetLayerAlpha()
124 mAlpha = *alpha; in SetLayerAlpha()
H A Dhdi_session.cpp271 static int32_t SetLayerAlpha(uint32_t devId, uint32_t layerId, LayerAlpha *alpha) in SetLayerAlpha() argument
274 DISPLAY_CHK_RETURN((alpha == NULL), DISPLAY_NULL_PTR, DISPLAY_LOGE("alpha is nullptr")); in SetLayerAlpha()
275 return HdiSession::GetInstance().CallLayerFunction(devId, layerId, &HdiLayer::SetLayerAlpha, alpha); in SetLayerAlpha()
H A Dhdi_layer.h166 virtual int32_t SetLayerAlpha(LayerAlpha *alpha);
/drivers/peripheral/display/composer/test/fuzztest/layer_fuzzer/
H A Dlayer_fuzzer.cpp77 static int32_t GetLayerAlpha(LayerAlpha& alpha) in GetLayerAlpha() argument
79 alpha.enGlobalAlpha = GetRandBoolValue(GetData<uint32_t>()); in GetLayerAlpha()
80 alpha.enPixelAlpha = GetRandBoolValue(GetData<uint32_t>()); in GetLayerAlpha()
81 alpha.alpha0 = GetData<uint32_t>() % ALPHA_VALUE_RANGE; in GetLayerAlpha()
82 alpha.alpha1 = GetData<uint32_t>() % ALPHA_VALUE_RANGE; in GetLayerAlpha()
83 alpha.gAlpha = GetData<uint32_t>() % ALPHA_VALUE_RANGE; in GetLayerAlpha()
164 LayerAlpha alpha = {0}; in TestSetLayerAlpha() local
165 int32_t ret = GetLayerAlpha(alpha); in TestSetLayerAlpha()
170 ret = g_composerInterface->SetLayerAlpha(0, 0, alpha); in TestSetLayerAlpha()
/drivers/peripheral/display/composer/vdi_base/src/
H A Dhdi_layer.cpp131 int32_t HdiLayer::SetLayerAlpha(LayerAlpha *alpha) in SetLayerAlpha() argument
133 DISPLAY_CHK_RETURN((alpha == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("in alpha is nullptr")); in SetLayerAlpha()
134 DISPLAY_LOGD("enable alpha %{public}d galpha 0x%{public}x", alpha->enGlobalAlpha, alpha->gAlpha); in SetLayerAlpha()
135 mAlpha = *alpha; in SetLayerAlpha()
H A Dhdi_session.cpp295 static int32_t SetLayerAlpha(uint32_t devId, uint32_t layerId, LayerAlpha *alpha) in SetLayerAlpha() argument
298 DISPLAY_CHK_RETURN((alpha == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("alpha is nullptr")); in SetLayerAlpha()
299 return HdiSession::GetInstance().CallLayerFunction(devId, layerId, &HdiLayer::SetLayerAlpha, alpha); in SetLayerAlpha()
H A Ddisplay_composer_vdi_impl.cpp234 int32_t DisplayComposerVdiImpl::SetLayerAlpha(uint32_t devId, uint32_t layerId, const LayerAlpha& alpha) in SetLayerAlpha() argument
237 const_cast<LayerAlpha*>(&alpha)); in SetLayerAlpha()
/drivers/peripheral/display/composer/test/unittest/
H A Dhdi_composer_ut.cpp76 if ((setting.alpha >= 0) && (setting.alpha <= 0xff)) { // alpha rang 0x00 ~ 0xff in CreateTestLayer()
77 LayerAlpha alpha = { 0 }; in CreateTestLayer() local
78 alpha.gAlpha = setting.alpha; in CreateTestLayer()
79 alpha.enGlobalAlpha = true; in CreateTestLayer()
80 layer->SetAlpha(alpha); in CreateTestLayer()
575 LayerAlpha alpha = { 0 }; in HWTEST_F() local
576 alpha in HWTEST_F()
[all...]
/drivers/peripheral/display/interfaces/include/
H A Ddisplay_layer.h290 * @brief Sets the alpha value for a layer.
296 * @param alpha Indicates the pointer to the alpha value to set.
304 int32_t (*SetLayerAlpha)(uint32_t devId, uint32_t layerId, LayerAlpha *alpha);
307 * @brief Obtains the alpha value of a layer.
313 * @param alpha Indicates the pointer to the obtained alpha value.
321 int32_t (*GetLayerAlpha)(uint32_t devId, uint32_t layerId, LayerAlpha *alpha);
/drivers/peripheral/display/hdi_service/device/src/server/
H A Ddisplay_device_service.cpp248 int32_t DisplayDeviceService::SetLayerAlpha(uint32_t devId, uint32_t layerId, const LayerAlpha &alpha) in SetLayerAlpha() argument
250 return displayLayer_->SetLayerAlpha(devId, layerId, const_cast<LayerAlpha *>(&alpha)); in SetLayerAlpha()
253 int32_t DisplayDeviceService::GetLayerAlpha(uint32_t devId, uint32_t layerId, LayerAlpha &alpha) in GetLayerAlpha() argument
255 return displayLayer_->GetLayerAlpha(devId, layerId, &alpha); in GetLayerAlpha()
/drivers/peripheral/display/hdi_service/device/include/interfaces/
H A Didisplay_device.h84 virtual int32_t SetLayerAlpha(uint32_t devId, uint32_t layerId, const LayerAlpha &alpha) = 0;
85 virtual int32_t GetLayerAlpha(uint32_t devId, uint32_t layerId, LayerAlpha &alpha) = 0;
/drivers/peripheral/display/hdi_service/device/include/proxy/
H A Ddisplay_device_proxy.h78 int32_t SetLayerAlpha(uint32_t devId, uint32_t layerId, const LayerAlpha &alpha) override;
79 int32_t GetLayerAlpha(uint32_t devId, uint32_t layerId, LayerAlpha &alpha) override;
/drivers/peripheral/display/hdi_service/device/include/server/
H A Ddisplay_device_service.h74 int32_t SetLayerAlpha(uint32_t devId, uint32_t layerId, const LayerAlpha &alpha) override;
75 int32_t GetLayerAlpha(uint32_t devId, uint32_t layerId, LayerAlpha &alpha) override;
/drivers/interface/display/composer/v1_0/display_command/
H A Ddisplay_cmd_responser.h550 LayerAlpha alpha = {0}; in OnSetLayerAlpha() local
556 retBool = unpacker.ReadBool(alpha.enGlobalAlpha); in OnSetLayerAlpha()
559 retBool = unpacker.ReadBool(alpha.enPixelAlpha); in OnSetLayerAlpha()
562 retBool = unpacker.ReadUint8(alpha.alpha0); in OnSetLayerAlpha()
565 retBool = unpacker.ReadUint8(alpha.alpha1); in OnSetLayerAlpha()
568 retBool = unpacker.ReadUint8(alpha.gAlpha); in OnSetLayerAlpha()
573 ret = impl_->SetLayerAlpha(devId, layerId, alpha); in OnSetLayerAlpha()
H A Ddisplay_cmd_requester.h241 int32_t SetLayerAlpha(uint32_t devId, uint32_t layerId, const LayerAlpha &alpha) in SetLayerAlpha() argument
256 retBool = requestPacker_.WriteBool(alpha.enGlobalAlpha); in SetLayerAlpha()
260 retBool = requestPacker_.WriteBool(alpha.enPixelAlpha); in SetLayerAlpha()
264 retBool = requestPacker_.WriteUint8(alpha.alpha0); in SetLayerAlpha()
268 retBool = requestPacker_.WriteUint8(alpha.alpha1); in SetLayerAlpha()
272 retBool = requestPacker_.WriteUint8(alpha.gAlpha); in SetLayerAlpha()
/drivers/peripheral/display/composer/vdi_base/include/
H A Dhdi_layer.h146 virtual int32_t SetLayerAlpha(LayerAlpha *alpha);
H A Ddisplay_composer_vdi_impl.h61 virtual int32_t SetLayerAlpha(uint32_t devId, uint32_t layerId, const LayerAlpha& alpha) override;
/drivers/peripheral/display/composer/hdi_service/include/
H A Didisplay_composer_vdi.h68 virtual int32_t SetLayerAlpha(uint32_t devId, uint32_t layerId, const LayerAlpha& alpha) = 0;
/drivers/peripheral/display/hal/default_standard/src/display_device/
H A Ddisplay_composer_vdi_impl.h61 virtual int32_t SetLayerAlpha(uint32_t devId, uint32_t layerId, const LayerAlpha& alpha) override;
H A Ddisplay_composer_vdi_impl.cpp251 int32_t DisplayComposerVdiImpl::SetLayerAlpha(uint32_t devId, uint32_t layerId, const LayerAlpha& alpha) in SetLayerAlpha() argument
255 const_cast<LayerAlpha*>(&alpha)); in SetLayerAlpha()

Completed in 17 milliseconds

12