/ohos5.0/drivers/interface/light/v1_0/ |
H A D | LightTypes.idl | 20 * @brief Provides APIs for the light service. 22 * The light module provides a unified interface for the light service to access the light driver. 23 …* After obtaining the light driver object or proxy, the service can call related APIs to obtain li… 24 * turn on or off a light, and set the light blinking mode based on the light id. 31 * @brief Defines the light data structure, including the light id, lighting mode, 36 package ohos.hdi.light.v1_0; 39 * @brief Enumerates the light ids. 51 * @brief Enumerates the light types. 62 * @brief Defines the basic light information. 64 * Basic light information includes the light id, light name, light number and light type. [all …]
|
H A D | ILightInterface.idl | 20 * @brief Provides APIs for the light service. 22 * The light module provides a unified interface for the light service to access the light driver. 23 * After obtaining the driver object or proxy, the light service distinguishes light devices by id 24 …* and call related APIs to obtain light information, turn on or off a light, or set the blinking m… 31 * @brief Declares common APIs of the light module. These APIs can be used to obtain the light id, 32 * turn on or off a light, and set the light brightness and blinking mode. 39 * The operations include obtaining light information, turning on or off a light, 40 * and setting the light brightness or blinking mode. 43 package ohos.hdi.light.v1_0; 44 import ohos.hdi.light.v1_0.LightTypes; [all …]
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/light_v1_0/foo/light/v1_0/ |
H A D | LightTypes.idl | 20 * @brief Provides APIs for the light service. 22 * The light module provides a unified interface for the light service to access the light driver. 23 …* After obtaining the light driver object or proxy, the service can call related APIs to obtain li… 24 * turn on or off a light, and set the light blinking mode based on the light id. 31 * @brief Defines the light data structure, including the light id, lighting mode, 36 package ohos.hdi.light.v1_0; 39 * @brief Enumerates the light ids. 51 * @brief Enumerates the light types. 62 * @brief Defines the basic light information. 64 * Basic light information includes the light id, light name, light number and light type. [all …]
|
H A D | ILightInterface.idl | 20 * @brief Provides APIs for the light service. 22 * The light module provides a unified interface for the light service to access the light driver. 23 * After obtaining the driver object or proxy, the light service distinguishes light devices by id 24 …* and call related APIs to obtain light information, turn on or off a light, or set the blinking m… 31 * @brief Declares common APIs of the light module. These APIs can be used to obtain the light id, 32 * turn on or off a light, and set the light brightness and blinking mode. 39 * The operations include obtaining light information, turning on or off a light, 40 * and setting the light brightness or blinking mode. 43 package ohos.hdi.light.v1_0; 44 import ohos.hdi.light.v1_0.LightTypes; [all …]
|
/ohos5.0/docs/en/device-dev/driver/ |
H A D | driver-peripherals-light-des.md | 10 The figure below shows the light driver model. 20 **Figure 2** How light driver works 64 /* HCS of the light device. */ 65 light :: host { 110 3. Implement the light driver in **drivers\hdf_core\framework\model\misc\light\driver\src\light_dri… 207 … - The light driver parses the light device management configuration information from the HCS file. 329 /* The light driver service calls GetAllLightInfo() to obtain the light type information. */ 420 /* The light is steady on. */ 424 /* The light is blinking. */ 490 /* Read the light type information from HdfSBuf in the light abstract driver to LightInfo. */ [all …]
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/light_v1_0/dump_ast_target/ |
H A D | dump.txt | 2 package ohos.hdi.light.v1_0; 4 import ohos.hdi.light.v1_0.LightTypes; 8 [out] ohos.hdi.light.v1_0.HdfLightInfo[] info); 12 [in] ohos.hdi.light.v1_0.HdfLightEffect effect); 16 [in] ohos.hdi.light.v1_0.HdfLightColor[] colors); 24 package ohos.hdi.light.v1_0; 75 ohos.hdi.light.v1_0.WRGBColor wrgbColor; 76 ohos.hdi.light.v1_0.RGBColor rgbColor; 80 ohos.hdi.light.v1_0.ColorValue colorValue; 84 ohos.hdi.light.v1_0.HdfLightColor lightColor; [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-point-light-style-sys.md | 3 You can apply a point light style to components. 9 > The point light style is only available for the following components: **Image**, **Column**, **F… 13 You apply a point light style by setting the light source that emits illumination and the component… 21 … | No | Light source. The light source affects the surrounding components that are marked as ill… 22 …atedtype) | No | Whether the current component can be illuminated by the light source and the ill… 27 Each component allows for one light source. 35 …| [Dimension](ts-types.md#dimension10) | Yes | X-coordinate of the light source relative to… 36 …| [Dimension](ts-types.md#dimension10) | Yes | Y-coordinate of the light source relative to… 37 …d#dimension10) | Yes | Height of the light source. The higher the light source, the broader… 38 …| Intensity of the light source. The recommended value range is 0-1. When the intensity is **0**, …
|
H A D | ts-container-column-sys.md | 17 Sets the point light style. 27 …[PointLightStyle](ts-universal-attributes-point-light-style-sys.md#pointlightstyle) | Yes | Point…
|
H A D | ts-container-flex-sys.md | 17 Sets the point light style. 27 …[PointLightStyle](ts-universal-attributes-point-light-style-sys.md#pointlightstyle) | Yes | Point…
|
H A D | ts-container-row-sys.md | 17 Sets the point light style. 27 …[PointLightStyle](ts-universal-attributes-point-light-style-sys.md#pointlightstyle) | Yes | Point…
|
/ohos5.0/drivers/peripheral/light/ |
H A D | README.md | 5 …light driver model provides APIs for the upper-layer light hardware service layer to control light… 13 The directory structure of the light module is as follows: 16 /drivers/peripheral/misc/light 30 …light driver model provides APIs to obtain information about all the lights in the system and dyna… 32 **Table 1** Major APIs of the light module 36 …ts in the system. **lightInfo** indicates the double pointer to the basic light information. **cou… 37 … on available lights in the list based on the specified light type. **type** indicates the light t… 38 … | Turns off available lights in the light list based on the specified light type. **type** indi… 96 /* Turn off the light of the specified type in the light list. */
|
H A D | README_zh.md | 1 # light chapter 24 /drivers/peripheral/misc/light 25 ├── hal # light模块hal层代码 26 │ ├── include # light模块hal层内部头文件 27 │ └── src # light模块hal层代码的实现 28 ├── interfaces # light模块对上层服务提供的驱动能力接口 29 │ └── include # light模块对外提供的接口定义 30 └── test # light模块测试代码 31 └── unittest # light模块单元测试代码
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/ |
H A D | 3d_dm_shadowing_common.h | 63 CORE_RELAXEDP float light = 1.0; in CalcPcfShadow() local 127 return light; in CalcPcfShadow() 135 CORE_RELAXEDP float light = 1.0; in CalcPcfShadowMed() local 189 return light; in CalcPcfShadowMed() 208 return light; in CalcPcfShadowSimpleSample() 240 light = ReduceLightBleedingVsm(light, evaluatedLightBleedingVal); in CalcVsmShadow() 241 light = 1.0 - (1.0 - light) * shadowFactors.x; in CalcVsmShadow() 245 return light; in CalcVsmShadow() 265 light = ReduceLightBleedingVsm(light, evaluatedLightBleedingVal); in CalcVsmShadowSimpleSample() 266 light = 1.0 - (1.0 - light) * shadowFactors.x; in CalcVsmShadowSimpleSample() [all …]
|
/ohos5.0/docs/en/application-dev/graphics3d/ |
H A D | arkgraphics3D-scene.md | 3 A 3D scene consists of three essential parts: light, camera, and model. 122 Light in a 3D scene is a data model that simulates the impact of the light in the physical world on… 124 …light and spot light. Directional light, similar to the sunlight, emits parallel light rays with u… 126 The sample code for controlling light is as follows: 136 let sceneLightParameter: SceneNodeParameters = { name: "light" }; 137 // Create directional light. 138 … let light: Promise<Light> = sceneFactory.createLight(sceneLightParameter, LightType.DIRECTIONAL); 139 light.then(async (lightEntity: Light) => { 140 // Set the color of the directional light. 143 // Set other light parameters. [all …]
|
/ohos5.0/base/sensors/miscdevice/frameworks/native/light/ |
H A D | BUILD.gn | 26 "$SUBSYSTEM_DIR/interfaces/inner_api/light/light_agent.h", 27 "$SUBSYSTEM_DIR/interfaces/inner_api/light/light_agent_type.h", 32 include_dirs = [ "$SUBSYSTEM_DIR/interfaces/inner_api/light" ] 41 "$SUBSYSTEM_DIR/interfaces/inner_api/light", 56 "$SUBSYSTEM_DIR/frameworks/native/light:liblight_native", 57 "$SUBSYSTEM_DIR/frameworks/native/light:liblight_ndk", 58 "$SUBSYSTEM_DIR/frameworks/native/light:light_ndk_header", 82 "$SUBSYSTEM_DIR/interfaces/inner_api/light", 96 "$SUBSYSTEM_DIR/frameworks/native/light:light_ndk_header",
|
/ohos5.0/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adapter/src/ |
H A D | compatible_light_connection.cpp | 43 LightInfoIPC light; in GetLightList() local 44 light.SetLightName(lightInfo[i].lightName); in GetLightList() 45 light.SetLightId(lightInfo[i].lightId); in GetLightList() 46 light.SetLightNumber(lightInfo[i].lightNumber); in GetLightList() 47 light.SetLightType(lightInfo[i].lightType); in GetLightList() 48 lightList.push_back(light); in GetLightList()
|
H A D | hdi_light_connection.cpp | 65 LightInfoIPC light; in GetLightList() local 66 light.SetLightName(lightInfos[i].lightName); in GetLightList() 67 light.SetLightId(lightInfos[i].lightId); in GetLightList() 68 light.SetLightNumber(lightInfos[i].lightNumber); in GetLightList() 69 light.SetLightType(lightInfos[i].lightType); in GetLightList() 70 lightList.push_back(light); in GetLightList()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/ |
H A D | render_scene_viewer.cpp | 510 for (auto& light : lights_) { local 511 light->SetContextAndCallback( 526 for (auto& light : lights_) { local 527 light->SetLightType(newLights.at(index)->GetLightType()); 528 light->SetIntensity(newLights.at(index)->GetLightIntensity()); 529 light->SetColor(newLights.at(index)->GetLightColor()); 530 light->SetLightShadow(newLights.at(index)->GetLightShadow()); 531 light->SetPosition(newLights.at(index)->GetPosition()); 532 light->SetRotation(newLights.at(index)->GetRotation()); 547 for (auto& light : lights_) { local [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/datastore/ |
H A D | render_data_store_default_light.cpp | 72 void RenderDataStoreDefaultLight::AddLight(const RenderLight& light) in AddLight() argument 76 if (((light.color.x < 0.0f) && (light.color.y < 0.0f) && (light.color.z < 0.0f)) || in AddLight() 77 (light.color.w < lightIntensityEpsilon)) { in AddLight() 81 RenderLight renderLight = light; // copy in AddLight()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_manager/src/theme/system/ |
H A D | ArkSystemTypography.ts | 18 public static light = 300; 56 weight: ArkTypographyWeights.light, 60 weight: ArkTypographyWeights.light, 64 weight: ArkTypographyWeights.light,
|
/ohos5.0/base/sensors/miscdevice/test/fuzztest/light/startlight_fuzzer/ |
H A D | BUILD.gn | 23 "$SUBSYSTEM_DIR/test/fuzztest/light/startlight_fuzzer" 26 "$SUBSYSTEM_DIR/test/fuzztest/light/startlight_fuzzer", 27 "$SUBSYSTEM_DIR/interfaces/inner_api/light", 39 deps = [ "$SUBSYSTEM_DIR/frameworks/native/light:light_interface_native" ]
|
/ohos5.0/base/sensors/miscdevice/test/fuzztest/light/stoplight_fuzzer/ |
H A D | BUILD.gn | 23 "$SUBSYSTEM_DIR/test/fuzztest/light/stoplight_fuzzer" 26 "$SUBSYSTEM_DIR/test/fuzztest/light/stoplight_fuzzer", 27 "$SUBSYSTEM_DIR/interfaces/inner_api/light", 39 deps = [ "$SUBSYSTEM_DIR/frameworks/native/light:light_interface_native" ]
|
/ohos5.0/foundation/graphic/graphic_3d/kits/js/src/ |
H A D | LightJS.cpp | 144 if (auto light = interface_pointer_cast<SCENE_NS::ILight>(tro->GetNativeObject())) { in DisposeNative() local 149 ExecSyncTask([light = BASE_NS::move(light)]() mutable { in DisposeNative() 150 auto node = interface_pointer_cast<SCENE_NS::INode>(light); in DisposeNative() 282 if (auto light = interface_pointer_cast<SCENE_NS::ILight>(GetNativeObject())) { in SpotLightJS() local 283 light->Type()->SetValue(SCENE_NS::ILight::SCENE_LIGHT_SPOT); in SpotLightJS() 312 if (auto light = interface_pointer_cast<SCENE_NS::ILight>(GetNativeObject())) { in PointLightJS() local 313 light->Type()->SetValue(SCENE_NS::ILight::SCENE_LIGHT_POINT); in PointLightJS() 341 if (auto light = interface_pointer_cast<SCENE_NS::ILight>(GetNativeObject())) { in DirectionalLightJS() local 342 light->Type()->SetValue(SCENE_NS::ILight::SCENE_LIGHT_DIRECTIONAL); in DirectionalLightJS()
|
/ohos5.0/base/powermgr/battery_manager/test/unittest/src/ |
H A D | battery_light_test.cpp | 242 BatteryLight light; variable 243 GTEST_LOG_(INFO) << "initial:" << light.GetLightColor(); 244 light.TurnOn(123); 245 EXPECT_EQ(light.GetLightColor(), BatteryConfigTest::LIGHT_OFF); 246 light.TurnOff(); 247 EXPECT_EQ(light.GetLightColor(), BatteryConfigTest::LIGHT_OFF);
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-peripherals-light-des.md | 43 …口,接口声明见文件[/drivers/peripheral/light/interfaces/include](https://gitee.com/openharmony/drivers_peri… 63 light :: host { 397 HDF_LOGE("%s: light id info is null", __func__); 402 HDF_LOGE("%s: light read data failed", __func__); 458 HDF_LOGE("%s: light id info is null", __func__); 785 printf("test light get Module instance fail\n\r"); 789 printf("get light informations fail\n\r"); 820 printf("get light list num[%u]\n\r", g_count); 872 module_output_path = "drivers_peripheral_light/light" 877 "//drivers/peripheral/light/interfaces/include", [all …]
|