Home
last modified time | relevance | path

Searched refs:effect (Results 1 – 25 of 47) sorted by relevance

12

/drivers/peripheral/light/test/unittest/hdi/
Dhdf_light_hdi_test.cpp63 static void InitConfig(HdfLightEffect &effect) in InitConfig() argument
65 effect.lightColor.colorValue.rgbColor.r = MIN_VALUE; in InitConfig()
66 effect.lightColor.colorValue.rgbColor.g = MIN_VALUE; in InitConfig()
67 effect.lightColor.colorValue.rgbColor.b = MIN_VALUE; in InitConfig()
68 effect.flashEffect.flashMode = HDF_LIGHT_FLASH_NONE; in InitConfig()
81 HdfLightEffect effect; variable
82 InitConfig(effect);
83 effect.lightColor.colorValue.rgbColor.r = MAX_VALUE;
85 int32_t ret = g_lightInterface->TurnOnLight(LIGHT_ID_BATTERY, effect);
104 HdfLightEffect effect; variable
[all …]
Dhdf_light_hdi_common_test.cpp61 static void InitConfig(HdfLightEffect &effect) in InitConfig() argument
63 effect.lightColor.colorValue.rgbColor.r = MIN_VALUE; in InitConfig()
64 effect.lightColor.colorValue.rgbColor.g = MIN_VALUE; in InitConfig()
65 effect.lightColor.colorValue.rgbColor.b = MIN_VALUE; in InitConfig()
66 effect.flashEffect.flashMode = HDF_LIGHT_FLASH_NONE; in InitConfig()
111 HdfLightEffect effect; variable
112 InitConfig(effect);
113 effect.lightColor.colorValue.rgbColor.r = MAX_VALUE;
115 int32_t ret = g_lightInterface->TurnOnLight(g_info[0].lightId, effect);
134 HdfLightEffect effect; variable
[all …]
/drivers/peripheral/light/test/unittest/common/
Dhdf_light_test.cpp138 struct LightEffect effect; variable
139 effect.flashEffect.flashMode = LIGHT_FLASH_NONE;
140 effect.flashEffect.onTime = 0;
141 effect.flashEffect.offTime = 0;
144 effect.lightColor.colorValue.rgbColor.r = 255;
145 effect.lightColor.colorValue.rgbColor.g = 0;
146 effect.lightColor.colorValue.rgbColor.b = 0;
147 int32_t ret = g_lightDev->TurnOnLight(g_lightInfo[i].lightId, &effect);
155 effect.lightColor.colorValue.rgbColor.r = 0;
156 effect.lightColor.colorValue.rgbColor.g = 255;
[all …]
/drivers/interface/audio/effect/v1_0/
DEffectTypes.idl16 package ohos.hdi.audio.effect.v1_0;
19 * @brief Defines audio effect info for the effect loading.
22 String libName; /**< assign the effect library name which is used to create contoller */
23 String effectId; /**< effectId of the effect */
24 int ioDirection; /**< Identify the direction of the effect */
28 * @brief Defines effect contoller info including which library its belongs to and it's effectId.
31 String libName; /**< assign the effect library name which is used to create contoller */
32 String effectId; /**< effectId of the effect */
36 * @brief Defines the effect controller descriptor.
39 String effectId; /**< effectId of the effect controller */
[all …]
DIEffectModel.idl16 package ohos.hdi.audio.effect.v1_0;
17 import ohos.hdi.audio.effect.v1_0.EffectTypes;
18 import ohos.hdi.audio.effect.v1_0.IEffectControl;
22 …* @brief Query whether the vendor/OEM supplies effect libraries. If supplies, use the supplied eff…
23 * If not, use the system service software effect.
25 * @param supply indicates the state whether the vendor/OEM supplies effect libraries.
37 * @param descs Indicates the effect list.
47 * @brief Create an effect controller which is used to operate the effect instance.
61 * @brief Destroy the effect controller specified by the controllerId.
73 * @brief Get a descriptor of specified effect.
[all …]
DIEffectControl.idl16 package ohos.hdi.audio.effect.v1_0;
17 import ohos.hdi.audio.effect.v1_0.EffectTypes;
36 * @brief Send the effect processing command.
50 * @brief Get the descriptor of the effect.
52 * @param desc Indicates the specified effect descriptor.
/drivers/interface/vibrator/v1_1/
DVibratorTypes.idl26 /**< Indicates the periodic vibration with the preset effect. */
28 /**< Indicates invalid the effect mode. */
33 * @brief Enumerates the effect types of the composite effects.
38 /**< Indicates the time effect type of the given time series. */
40 /**< Indicates primitive vibration effect type for a given primitive vibration sequence. */
42 /**< Indicates invalid the effect type. */
69 * @brief Defines the time effect parameters.
83 * @brief Defines the primitive effect parameters.
85 * The parameters include delay, effect id and vibration intensity.
98 * The parameters include time effect and primitive effect.
[all …]
DIVibratorInterface.idl23 * set the vibrator effect using the functions provided by the driver object or agent.
32 * that support setting intensity and Start the vibrator according to the incoming vibration effect.
57 * @brief Controls the vibrator to perform a periodic vibration with the preset effect.
62 * @param effectType Indicates the pointer to the preset effect type. It is recommended that the
87 …* @param vibratorInfo Indicates the pointer to the vibration effect, For details, see {@link HdfVi…
97 * @brief Start the vibrator according to the incoming vibration effect.
115 … * @brief Controls the vibrator to perform a periodic vibration with the custom composite effect.
117 * @param effect Indicates the pointer to the custom composite effect type. For details,
125 EnableCompositeEffect([in] struct HdfCompositeEffect effect);
127 * @brief Obtains the vibration effect information with the specified effect type.
[all …]
/drivers/peripheral/light/test/benchmarktest/
Dhdf_light_benchmark_test.cpp105 HdfLightEffect effect; in BENCHMARK_F() local
106 effect.lightColor.colorValue.rgbColor.r = COLORVALUE_RED; in BENCHMARK_F()
107 effect.lightColor.colorValue.rgbColor.g = COLORVALUE_GREEN; in BENCHMARK_F()
108 effect.lightColor.colorValue.rgbColor.b = COLORVALUE_BLUE; in BENCHMARK_F()
109 effect.flashEffect.flashMode = LIGHT_FLASH_NONE; in BENCHMARK_F()
112 ret = g_lightInterface->TurnOnLight(iter.lightId, effect); in BENCHMARK_F()
143 HdfLightEffect effect; in BENCHMARK_F() local
144 effect.lightColor.colorValue.rgbColor.r = COLORVALUE_RED; in BENCHMARK_F()
145 effect.lightColor.colorValue.rgbColor.g = COLORVALUE_GREEN; in BENCHMARK_F()
146 effect.lightColor.colorValue.rgbColor.b = COLORVALUE_BLUE; in BENCHMARK_F()
[all …]
/drivers/peripheral/light/
DREADME_zh.md45 …2_t (*TurnOnLight)(uint32_t lightId, struct LightEffect *effect) | 打开指定类型的灯,lightId表示灯类型,effect表示要…
65 struct LightEffect effect;
76 effect.lightBrightness = 0x00800000; // 亮度值,RGB最高位表示颜色:R:16-31位、G:8-15位、B:0-7位
77 effect.flashEffect.flashMode = LIGHT_FLASH_NONE;
80 ret = g_lightDev->TurnOnLight(g_lightInfo[i].lightId, &effect);
89 effect.lightBrightness = 0x00800000;
90 effect.flashEffect.flashMode = LIGHT_FLASH_TIMED;
91 effect.flashEffect.onTime = g_onTime; // 一个闪烁周期内亮灯时长(ms)
92 effect.flashEffect.offTime = g_offTime; // 一个闪烁周期内熄灯时长(ms)
95 ret = g_lightDev->TurnOnLight(g_lightInfo[i].lightId, &effect);
DREADME.md5 …cluding obtaining the light type, setting the lighting mode and blinking effect, and turning on or…
37effect) | Turns on available lights in the list based on the specified light type. **type** indica…
57 struct LightEffect effect;
68effect.lightBrightness = 0x80000000; // Brightness value. The most significant bit indicates the c…
69 effect.flashEffect.flashMode = LIGHT_FLASH_NONE;
72 ret = g_lightDev->TurnOnLight(g_lightInfo[i].lightType, &effect);
81 effect.lightBrightness = 0x80000000;
82 effect.flashEffect.flashMode = LIGHT_FLASH_TIMED;
83 effect.flashEffect.onTime = g_onTime; // Light on time in a blinking period, in ms
84 effect.flashEffect.offTime = g_offTime; // Light off time in a blinking period, in ms
[all …]
/drivers/peripheral/light/test/performance/hdi/
Dhdf_light_hdi_performance_test.cpp110 HdfLightEffect effect; variable
111 effect.flashEffect.flashMode = HDF_LIGHT_FLASH_NONE;
113 ret = g_lightInterface->TurnOnLight(iter.lightId, effect);
152 HdfLightEffect effect; variable
153 effect.lightColor.colorValue.rgbColor.r = 0xFF;
154 effect.flashEffect.flashMode = HDF_LIGHT_FLASH_BLINK;
155 effect.flashEffect.onTime = ON_TIME;
156 effect.flashEffect.offTime = OFF_TIME;
158 ret = g_lightInterface->TurnOnLight(iter.lightId, effect);
/drivers/peripheral/light/hdi_service/
Dlight_if_service.cpp115 int32_t LightIfService::TurnOnLight(int32_t lightId, const HdfLightEffect& effect) in TurnOnLight() argument
124 lightEffectVdi.lightColor.colorValue.rgbColor.b = effect.lightColor.colorValue.rgbColor.b; in TurnOnLight()
125 lightEffectVdi.lightColor.colorValue.rgbColor.g = effect.lightColor.colorValue.rgbColor.g; in TurnOnLight()
126 lightEffectVdi.lightColor.colorValue.rgbColor.r = effect.lightColor.colorValue.rgbColor.r; in TurnOnLight()
127 lightEffectVdi.lightColor.colorValue.wrgbColor.b = effect.lightColor.colorValue.wrgbColor.b; in TurnOnLight()
128 lightEffectVdi.lightColor.colorValue.wrgbColor.g = effect.lightColor.colorValue.wrgbColor.g; in TurnOnLight()
129 lightEffectVdi.lightColor.colorValue.wrgbColor.r = effect.lightColor.colorValue.wrgbColor.r; in TurnOnLight()
130 lightEffectVdi.lightColor.colorValue.wrgbColor.w = effect.lightColor.colorValue.wrgbColor.w; in TurnOnLight()
131 lightEffectVdi.flashEffect.flashMode = effect.flashEffect.flashMode; in TurnOnLight()
132 lightEffectVdi.flashEffect.onTime = effect.flashEffect.onTime; in TurnOnLight()
[all …]
/drivers/peripheral/light/hdi_impl/
Dlight_interface_impl.cpp75 int32_t LightInterfaceImpl::TurnOnLight(int32_t lightId, const HdfLightEffectVdi& effect) in TurnOnLight() argument
85 lightEffect.lightColor.colorValue.rgbColor.b = effect.lightColor.colorValue.rgbColor.b; in TurnOnLight()
86 lightEffect.lightColor.colorValue.rgbColor.g = effect.lightColor.colorValue.rgbColor.g; in TurnOnLight()
87 lightEffect.lightColor.colorValue.rgbColor.r = effect.lightColor.colorValue.rgbColor.r; in TurnOnLight()
88 lightEffect.lightColor.colorValue.wrgbColor.b = effect.lightColor.colorValue.wrgbColor.b; in TurnOnLight()
89 lightEffect.lightColor.colorValue.wrgbColor.g = effect.lightColor.colorValue.wrgbColor.g; in TurnOnLight()
90 lightEffect.lightColor.colorValue.wrgbColor.r = effect.lightColor.colorValue.wrgbColor.r; in TurnOnLight()
91 lightEffect.lightColor.colorValue.wrgbColor.w = effect.lightColor.colorValue.wrgbColor.w; in TurnOnLight()
92 lightEffect.flashEffect.flashMode = effect.flashEffect.flashMode; in TurnOnLight()
93 lightEffect.flashEffect.onTime = effect.flashEffect.onTime; in TurnOnLight()
[all …]
/drivers/peripheral/light/hal/src/
Dlight_controller.c176 static int32_t OnLightValidityJudgment(uint32_t lightId, struct LightEffect *effect) in OnLightValidityJudgment() argument
183 …if (effect->flashEffect.flashMode < LIGHT_FLASH_NONE || effect->flashEffect.flashMode > LIGHT_FLAS… in OnLightValidityJudgment()
188 if ((effect->flashEffect.flashMode == LIGHT_FLASH_BLINK) && (effect->flashEffect.onTime == 0 || in OnLightValidityJudgment()
189 effect->flashEffect.offTime == 0)) { in OnLightValidityJudgment()
197 static int32_t OnLight(uint32_t lightId, struct LightEffect *effect) in OnLight() argument
201 if (effect == NULL) { in OnLight()
206 ret = OnLightValidityJudgment(lightId, effect); in OnLight()
236 if (!HdfSbufWriteBuffer(msg, effect, sizeof(*effect))) { in OnLight()
250 if (memcpy_s(&g_lightEffect, sizeof(g_lightEffect), effect, sizeof(*effect)) != EOK) { in OnLight()
/drivers/hdf_core/framework/model/misc/vibrator/driver/include/
Dvibrator_haptic.h33 const char *effect; member
43 const char *effect; member
/drivers/hdf_core/framework/model/misc/vibrator/driver/src/
Dvibrator_haptic.c87 ret = parser->GetString(childNode, "effectName", &effectNode->effect, NULL); in ParserHapticEffect()
187 uint32_t effect; in ProcessHapticEffect() local
198 effect = hapticData->currentEffectSeq[hapticData->currentSeqIndex]; in ProcessHapticEffect()
199 SetEffectVibrator(effect); in ProcessHapticEffect()
268 if ((effectCfg->cfgMode == VIBRATOR_MODE_PRESET) && (effectCfg->effect != NULL)) { in GetHapticSeqByEffect()
270 if (strcmp(effectCfg->effect, pos->effect) == 0 && pos->seq != NULL) { in GetHapticSeqByEffect()
394 pos->effect = NULL; in FreeHapticConfig()
Dvibrator_driver.c151 config.effect = NULL; in StartOnce()
165 const char *effect = NULL; in StartEffect() local
173 effect = HdfSbufReadString(data); in StartEffect()
174 CHECK_VIBRATOR_NULL_PTR_RETURN_VALUE(effect, HDF_FAILURE); in StartEffect()
188 config.effect = effect; in StartEffect()
301 config.effect = NULL; in EnableModulationParameter()
/drivers/peripheral/vibrator/
DREADME.md8 - Vibration with the specified effect (**StartEffect**). The effect is configured in the HDF Config…
42 … char *effectType) | Starts vibration with a given effect, which is specifie…
56 VIBRATOR_MODE_PRESET = 1, // Start periodic vibration with the preset effect.
91 /* Start vibration with the preset effect. */
/drivers/interface/vibrator/v1_0/
DVibratorTypes.idl26 /**< Indicates the periodic vibration with the preset effect. */
28 /**< Indicates invalid the effect mode. */
/drivers/peripheral/vibrator/hdi_service/
Dvibrator_if_service.cpp203 int32_t VibratorIfService::EnableCompositeEffect(const HdfCompositeEffect &effect) in EnableCompositeEffect() argument
212 for (const auto &compositeEffects : effect.compositeEffects) { in EnableCompositeEffect()
214 if (effect.type == HDF_EFFECT_TYPE_TIME) { in EnableCompositeEffect()
219 } else if (effect.type == HDF_EFFECT_TYPE_PRIMITIVE) { in EnableCompositeEffect()
228 compositeEffectVdi.type = effect.type; in EnableCompositeEffect()
/drivers/peripheral/vibrator/hal/src/
Dvibrator_controller.c222 static int32_t Start(const char *effect) in Start() argument
227 if (effect == NULL) { in Start()
241 if (!HdfSbufWriteString(msg, effect)) { in Start()
258 static int32_t GetEffectInfo(const char *effect, struct EffectInfo *effectInfo) in GetEffectInfo() argument
260 if (!strcmp(effect, "haptic.clock.timer")) { in GetEffectInfo()
/drivers/peripheral/vibrator/test/benchmarktest/
Dhdf_vibrator_benchmark_test.cpp231 HdfCompositeEffect effect; in BENCHMARK_F() local
232 effect.type = HDF_EFFECT_TYPE_PRIMITIVE; in BENCHMARK_F()
233 effect.compositeEffects = vec; in BENCHMARK_F()
236 ret = g_vibratorInterface->EnableCompositeEffect(effect); in BENCHMARK_F()
/drivers/peripheral/light/interfaces/include/
Dlight_if.h84 int32_t (*TurnOnLight)(uint32_t lightId, struct LightEffect *effect);
/drivers/peripheral/audio/test/benchmarktest/
DBUILD.gn37 "effect/audio_effectcontrol_benchmarktest.cpp",
38 "effect/audio_effectmodel_benchmarktest.cpp",

12