/base/sensors/miscdevice/interfaces/native/light/test/unittest/ |
D | light_agent_test.cpp | 125 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/ |
D | light_client.cpp | 108 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()
|
D | miscdevice_service_proxy.cpp | 198 …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/ |
D | miscdevice_service.cpp | 123 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/ |
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/frameworks/native/miscdevice/include/ |
D | light_client.h | 30 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation); 39 bool IsLightAnimationValid(const LightAnimation &animation);
|
D | i_miscdevice_service.h | 39 …tual int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) = 0;
|
D | miscdevice_service_proxy.h | 35 …int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) override;
|
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adpter/src/ |
D | hdi_light_connection.cpp | 78 …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()
|
D | compatible_light_connection.cpp | 46 …LightConnection::TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) in TurnOn() argument
|
/base/sensors/miscdevice/interfaces/native/light/src/ |
D | light_agent.cpp | 41 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/ |
D | light_hdi_connection.cpp | 60 …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/ |
D | index.css | 67 animation-name: one2; 68 animation-duration: 2s; 69 animation-iteration-count: infinite; 70 animation-timing-function: linear;
|
/base/sensors/miscdevice/interfaces/native/light/include/ |
D | light_agent.h | 55 int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation);
|
/base/sensors/miscdevice/services/miscdevice_service/include/ |
D | miscdevice_service.h | 55 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/ |
D | battery_light.cpp | 77 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/ |
D | i_light_hdi_connection.h | 33 …tual int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) = 0;
|
D | light_hdi_connection.h | 32 …int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) override;
|
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adpter/include/ |
D | compatible_light_connection.h | 32 …int32_t TurnOn(int32_t lightId, const LightColor &color, const LightAnimation &animation) override;
|
D | hdi_light_connection.h | 32 …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/ |
D | enrolling.ets | 111 .animation({ duration: this.animationTime, curve: Curve.Linear })
|