/base/sensors/miscdevice/test/unittest/light/ |
H A D | light_agent_test.cpp | 175 LightAnimation animation; in HWTEST_F() local 176 animation.mode = LIGHT_MODE_DEFAULT; in HWTEST_F() 177 animation.onTime = 50; in HWTEST_F() 178 animation.offTime = 50; in HWTEST_F() 179 int32_t ret = TurnOn(g_lightId, color, animation); in HWTEST_F() 199 LightAnimation animation; in HWTEST_F() local 200 animation.mode = LIGHT_MODE_BUTT; in HWTEST_F() 201 animation.onTime = 50; in HWTEST_F() 202 animation.offTime = 50; in HWTEST_F() 203 int32_t ret = TurnOn(g_lightId, color, animation); in HWTEST_F() 222 LightAnimation animation; HWTEST_F() local 245 LightAnimation animation; HWTEST_F() local 268 LightAnimation animation; HWTEST_F() local 291 LightAnimation animation; HWTEST_F() local 315 LightAnimation animation; HWTEST_F() local [all...] |
/base/sensors/miscdevice/frameworks/native/light/src/ |
H A D | light_client.cpp | 128 bool LightClient::IsLightAnimationValid(const LightAnimation &animation) in IsLightAnimationValid() argument 131 if ((animation.mode < 0) || (animation.mode >= LIGHT_MODE_BUTT)) { in IsLightAnimationValid() 132 MISC_HILOGE("animation mode is invalid, mode:%{public}d", animation.mode); in IsLightAnimationValid() 135 if ((animation.onTime < 0) || (animation.offTime < 0)) { in IsLightAnimationValid() 136 MISC_HILOGE("animation onTime or offTime is invalid, onTime:%{public}d, offTime:%{public}d", in IsLightAnimationValid() 137 animation.onTime, animation in IsLightAnimationValid() 143 TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) TurnOn() argument [all...] |
/base/sensors/miscdevice/test/fuzztest/light/startlight_fuzzer/ |
H A D | startlight_fuzzer.cpp | 43 LightAnimation animation; in StartLightFuzzTest() local 44 GetObject<LightAnimation>(animation, data + startPos, size - startPos); in StartLightFuzzTest() 45 OHOS::Sensors::TurnOn(lightId, color, animation); in StartLightFuzzTest()
|
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adapter/src/ |
H A D | hdi_light_connection.cpp | 77 int32_t HdiLightConnection::TurnOn(int32_t lightId, const LightColor &color, const LightAnimationIPC &animation) in TurnOn() argument 84 flashEffect.flashMode = animation.GetMode(); in TurnOn() 85 flashEffect.onTime = animation.GetOnTime(); in TurnOn() 86 flashEffect.offTime = animation.GetOffTime(); in TurnOn()
|
H A D | compatible_light_connection.cpp | 53 int32_t CompatibleLightConnection::TurnOn(int32_t lightId, const LightColor &color, const LightAnimationIPC &animation) in TurnOn() argument 60 int32_t mode = animation.GetMode(); in TurnOn() 61 int32_t onTime = animation.GetOnTime(); in TurnOn() 62 int32_t offTime = animation.GetOffTime(); in TurnOn() 65 MISC_HILOGE("animation parameter error"); in TurnOn()
|
/base/sensors/miscdevice/frameworks/native/light/include/ |
H A D | light_client.h | 31 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation); 40 bool IsLightAnimationValid(const LightAnimation &animation);
|
/base/sensors/miscdevice/frameworks/native/light/ |
H A D | light_agent.cpp | 38 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) in TurnOn() argument 45 int32_t ret = client.TurnOn(lightId, color, animation); in TurnOn()
|
/base/sensors/miscdevice/interfaces/inner_api/light/ |
H A D | light_agent.h | 50 * @param animation Indicates the blinking parameters. 55 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation);
|
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/interface/src/ |
H A D | light_hdi_connection.cpp | 65 int32_t LightHdiConnection::TurnOn(int32_t lightId, const LightColor &color, const LightAnimationIPC &animation) in TurnOn() argument 68 int32_t ret = iLightHdiConnection_->TurnOn(lightId, color, animation); in TurnOn()
|
/base/msdp/device_status/test/unittest/intention/drag/include/ |
H A D | drag_manager_test.h | 34 static void AssignToAnimation(PreviewAnimation &animation);
|
H A D | drag_server_test.h | 62 void AssignToAnimation(PreviewAnimation &animation);
|
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adapter/include/ |
H A D | compatible_light_connection.h | 33 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimationIPC &animation) override;
|
H A D | hdi_light_connection.h | 32 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimationIPC &animation) override;
|
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/interface/include/ |
H A D | i_light_hdi_connection.h | 35 virtual int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimationIPC &animation) = 0;
|
H A D | light_hdi_connection.h | 32 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimationIPC &animation) override;
|
/base/powermgr/battery_manager/services/native/src/ |
H A D | battery_light.cpp | 84 LightAnimation animation = { in TurnOn() local 88 int32_t ret = OHOS::Sensors::TurnOn(lightId_, lightColor, animation); in TurnOn()
|
/base/msdp/device_status/frameworks/native/interaction/src/ |
H A D | interaction_manager.cpp | 208 const PreviewAnimation &animation) in UpdatePreviewStyleWithAnimation() 210 return INTER_MGR_IMPL.UpdatePreviewStyleWithAnimation(previewStyle, animation); in UpdatePreviewStyleWithAnimation() 330 const PreviewAnimation &animation) in UpdatePreviewStyleWithAnimation() 332 return DRAG_MANAGER.UpdatePreviewStyleWithAnimation(previewStyle, animation); in UpdatePreviewStyleWithAnimation() 207 UpdatePreviewStyleWithAnimation(const PreviewStyle &previewStyle, const PreviewAnimation &animation) UpdatePreviewStyleWithAnimation() argument 329 UpdatePreviewStyleWithAnimation(const PreviewStyle &previewStyle, const PreviewAnimation &animation) UpdatePreviewStyleWithAnimation() argument
|
/base/sensors/miscdevice/services/miscdevice_service/include/ |
H A D | miscdevice_service.h | 63 bool IsLightAnimationValid(const LightAnimationIPC &animation); 77 virtual int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimationIPC &animation) override;
|
/base/msdp/device_status/frameworks/native/interaction/include/ |
H A D | drag_manager_impl.h | 59 int32_t UpdatePreviewStyleWithAnimation(const PreviewStyle &previewStyle, const PreviewAnimation &animation);
|
/base/msdp/device_status/test/unittest/intention/services/include/ |
H A D | intention_service_test.h | 80 void AssignToAnimation(PreviewAnimation &animation);
|
/base/sensors/miscdevice/frameworks/native/common/include/ |
H A D | miscdevice_service_proxy.h | 41 virtual int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimationIPC &animation) override;
|
H A D | i_miscdevice_service.h | 50 virtual int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimationIPC &animation) = 0;
|
/base/sensors/miscdevice/services/miscdevice_service/src/ |
H A D | miscdevice_service.cpp | 270 bool MiscdeviceService::IsLightAnimationValid(const LightAnimationIPC &animation) in IsLightAnimationValid() argument 273 int32_t mode = animation.GetMode(); in IsLightAnimationValid() 274 int32_t onTime = animation.GetOnTime(); in IsLightAnimationValid() 275 int32_t offTime = animation.GetOffTime(); in IsLightAnimationValid() 277 MISC_HILOGE("animation mode is invalid, mode:%{public}d", mode); in IsLightAnimationValid() 281 MISC_HILOGE("animation onTime or offTime is invalid, onTime:%{public}d, offTime:%{public}d", in IsLightAnimationValid() 605 int32_t MiscdeviceService::TurnOn(int32_t lightId, const LightColor &color, const LightAnimationIPC &animation) in TurnOn() argument 613 if (!IsLightAnimationValid(animation)) { in TurnOn() 614 MISC_HILOGE("animation is invalid"); in TurnOn() 617 int32_t ret = lightHdiConnection_.TurnOn(lightId, color, animation); in TurnOn() [all...] |
/base/powermgr/battery_manager/charger/src/ |
H A D | animation_config.cpp | 27 constexpr const char* ANIMATION_CONFIG_PATH = "/system/etc/charger/resources/animation.json"; 28 constexpr const char* CHARGER_ANIMATION_NAME = "animation"; 51 auto animation = configObj_[CHARGER_ANIMATION_NAME]; in ParseConfig() local 52 ParseAnimationConfig(animation); in ParseConfig()
|
/base/msdp/device_status/services/communication/base/ |
H A D | i_devicestatus.h | 79 const PreviewAnimation &animation) = 0;
|