Home
last modified time | relevance | path

Searched refs:animation (Results 1 – 21 of 21) sorted by relevance

/base/sensors/miscdevice/interfaces/native/light/test/unittest/
Dlight_agent_test.cpp125 LightAnimation animation; variable
126 animation.mode = LIGHT_MODE_DEFAULT;
127 animation.onTime = 50;
128 animation.offTime = 50;
129 int32_t ret = TurnOn(lightId_, color, animation);
149 LightAnimation animation; variable
150 animation.mode = LIGHT_MODE_BUTT;
151 animation.onTime = 50;
152 animation.offTime = 50;
153 int32_t ret = TurnOn(lightId_, color, animation);
[all …]
/base/sensors/miscdevice/frameworks/native/miscdevice/src/
Dlight_client.cpp108 bool LightClient::IsLightAnimationValid(const LightAnimation &animation) in IsLightAnimationValid() argument
110 if ((animation.mode < 0) || (animation.mode >= LIGHT_MODE_BUTT)) { in IsLightAnimationValid()
111 MISC_HILOGE("animation mode is invalid, mode:%{pubilc}d", animation.mode); in IsLightAnimationValid()
114 if ((animation.onTime < 0) || (animation.offTime < 0)) { in IsLightAnimationValid()
116 animation.onTime, animation.offTime); in IsLightAnimationValid()
122 …32_t LightClient::TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) in TurnOn() argument
129 if (!IsLightAnimationValid(animation)) { in TurnOn()
134 return miscdeviceProxy_->TurnOn(lightId, color, animation); in TurnOn()
Dmiscdevice_service_proxy.cpp198 …viceServiceProxy::TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) in TurnOn() argument
215 if (!data.WriteBuffer(&animation, sizeof(LightAnimation))) { in TurnOn()
/base/sensors/miscdevice/services/miscdevice_service/src/
Dmiscdevice_service.cpp123 bool MiscdeviceService::IsLightAnimationValid(const LightAnimation &animation) in IsLightAnimationValid() argument
125 if ((animation.mode < 0) || (animation.mode >= LIGHT_MODE_BUTT)) { in IsLightAnimationValid()
126 MISC_HILOGE("animation mode is invalid, mode:%{pubilc}d", animation.mode); in IsLightAnimationValid()
129 if ((animation.onTime < 0) || (animation.offTime < 0)) { in IsLightAnimationValid()
131 animation.onTime, animation.offTime); in IsLightAnimationValid()
308 …iscdeviceService::TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) in TurnOn() argument
315 if (!IsLightAnimationValid(animation)) { in TurnOn()
319 int32_t ret = lightHdiConnection_.TurnOn(lightId, color, animation); in TurnOn()
/base/sensors/miscdevice/interfaces/native/light/test/fuzztest/startlight_fuzzer/
Dstartlight_fuzzer.cpp43 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/frameworks/native/miscdevice/include/
Dlight_client.h30 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation);
39 bool IsLightAnimationValid(const LightAnimation &animation);
Di_miscdevice_service.h39 …tual int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) = 0;
Dmiscdevice_service_proxy.h35 …int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) override;
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adpter/src/
Dhdi_light_connection.cpp78 …iLightConnection::TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) in TurnOn() argument
85 .flashMode = animation.mode, in TurnOn()
86 .onTime = animation.onTime, in TurnOn()
87 .offTime = animation.offTime in TurnOn()
Dcompatible_light_connection.cpp46 …LightConnection::TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) in TurnOn() argument
/base/sensors/miscdevice/interfaces/native/light/src/
Dlight_agent.cpp41 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) in TurnOn() argument
48 int32_t ret = client.TurnOn(lightId, color, animation); in TurnOn()
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/interface/src/
Dlight_hdi_connection.cpp60 …ghtHdiConnection::TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) in TurnOn() argument
63 int32_t ret = iLightHdiConnection_->TurnOn(lightId, color, animation); in TurnOn()
/base/update/update_app/entry/src/main/js/default/pages/index/
Dindex.css67 animation-name: one2;
68 animation-duration: 2s;
69 animation-iteration-count: infinite;
70 animation-timing-function: linear;
/base/sensors/miscdevice/interfaces/native/light/include/
Dlight_agent.h55 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation);
/base/sensors/miscdevice/services/miscdevice_service/include/
Dmiscdevice_service.h55 bool IsLightAnimationValid(const LightAnimation &animation);
63 …int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) override;
/base/powermgr/battery_manager/services/native/src/
Dbattery_light.cpp77 LightAnimation animation = { in TurnOn() local
81 int32_t ret = OHOS::Sensors::TurnOn(lightId_, lightColor, animation); in TurnOn()
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/interface/include/
Di_light_hdi_connection.h33 …tual int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) = 0;
Dlight_hdi_connection.h32 …int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) override;
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adpter/include/
Dcompatible_light_connection.h32 …int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) override;
Dhdi_light_connection.h32 …int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) override;
/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/ets/pages/
Denrolling.ets111 .animation({ duration: this.animationTime, curve: Curve.Linear })