Home
last modified time | relevance | path

Searched refs:lightColor (Results 1 - 9 of 9) sorted by relevance

/base/powermgr/battery_manager/services/native/src/
H A Dbattery_light.cpp80 union LightColor lightColor; in TurnOn() local
81 lightColor.rgbColor.r = (color >> MOVE_RIGHT_16) & 0xFF; in TurnOn()
82 lightColor.rgbColor.g = (color >> MOVE_RIGHT_8) & 0xFF; in TurnOn()
83 lightColor.rgbColor.b = color & 0xFF; in TurnOn()
88 int32_t ret = OHOS::Sensors::TurnOn(lightId_, lightColor, animation); in TurnOn()
/base/powermgr/battery_manager/charger/src/
H A Dbattery_led.cpp67 effect.lightColor.colorValue.rgbColor.r = static_cast<uint8_t>((color >> MOVE_RIGHT_16) & 0xFF); in TurnOn()
68 effect.lightColor.colorValue.rgbColor.g = static_cast<uint8_t>((color >> MOVE_RIGHT_8) & 0xFF); in TurnOn()
69 effect.lightColor.colorValue.rgbColor.b = static_cast<uint8_t>(color & 0xFF); in TurnOn()
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adapter/src/
H A Dhdi_light_connection.cpp80 HDI::Light::V1_0::HdfLightColor lightColor; in TurnOn() local
81 lightColor.colorValue.singleColor = color.singleColor; in TurnOn()
89 effect.lightColor = lightColor; in TurnOn()
/base/sensors/miscdevice/services/miscdevice_service/src/
H A Dmiscdevice_service_stub.cpp241 LightColor lightColor; in TurnOnStub() local
242 lightColor.singleColor = data.ReadInt32(); in TurnOnStub()
246 return TurnOn(lightId, lightColor, *tmpAnimation); in TurnOnStub()
/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi.cpp632 // lightColor?: number in GetNotificationSlotByNumber()
633 NAPI_CALL(env, napi_has_named_property(env, value, "lightColor", &hasProperty)); in GetNotificationSlotByNumber()
635 int lightColor = 0; in GetNotificationSlotByNumber() local
636 napi_get_named_property(env, value, "lightColor", &nobj); in GetNotificationSlotByNumber()
642 napi_get_value_int32(env, nobj, &lightColor); in GetNotificationSlotByNumber()
643 LBSLOGI(NAPI_UTILS, "lightColor is: %{public}d", lightColor); in GetNotificationSlotByNumber()
644 slot.SetLedLightColor(lightColor); in GetNotificationSlotByNumber()
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dnotification_utils.h223 int32_t lightColor; member
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon.cpp184 // lightColor?: number in SetNotificationSlot()
186 napi_set_named_property(env, result, "lightColor", value); in SetNotificationSlot()
900 // lightColor?: number in GetNotificationSlotByNumber()
901 NAPI_CALL(env, napi_has_named_property(env, value, "lightColor", &hasProperty)); in GetNotificationSlotByNumber()
903 int lightColor = 0; in GetNotificationSlotByNumber() local
904 napi_get_named_property(env, value, "lightColor", &nobj); in GetNotificationSlotByNumber()
910 napi_get_value_int32(env, nobj, &lightColor); in GetNotificationSlotByNumber()
911 ANS_LOGI("lightColor is: %{public}d", lightColor); in GetNotificationSlotByNumber()
912 slot.SetLedLightColor(lightColor); in GetNotificationSlotByNumber()
[all...]
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_manager_impl.cpp105 .lightColor = 0, in GetSlot()
H A Dnotification_utils.cpp902 notificationSlot.lightColor = slot.GetLedLightColor(); // lightColor?: int32_t in SetNotificationSlot()

Completed in 11 milliseconds