/drivers/hdf_core/adapter/khdf/linux/platform/pwm/ |
D | pwm_hi35xx_linux.c | 39 …ic int Hi35xxPwmApply(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state) in Hi35xxPwmApply() argument 41 static int Hi35xxPwmApply(struct pwm_chip *chip, struct pwm_device *pwm, struct pwm_state *state) in Hi35xxPwmApply() 47 if (hi35xxChip == NULL || pwm == NULL || state == NULL) { in Hi35xxPwmApply() 52 if (state->polarity != PWM_POLARITY_NORMAL && state->polarity != PWM_POLARITY_INVERSED) { in Hi35xxPwmApply() 53 HDF_LOGE("Hi35xxPwmApply: polarity %u is invalid!", state->polarity); in Hi35xxPwmApply() 57 if (state->period < PWM_MIN_PERIOD) { in Hi35xxPwmApply() 58 …HDF_LOGE("Hi35xxPwmApply: period %llu is not support, min period %d!", state->period, PWM_MIN_PERI… in Hi35xxPwmApply() 61 if (state->duty_cycle < 1 || state->duty_cycle > state->period) { in Hi35xxPwmApply() 63 state->duty_cycle, state->period); in Hi35xxPwmApply() 69 if (pwm->state.polarity != state->polarity) { in Hi35xxPwmApply() [all …]
|
D | pwm_adapter.c | 40 pwm->cfg.period = device->state.period; in HdfPwmOpen() 41 pwm->cfg.duty = device->state.duty_cycle; in HdfPwmOpen() 42 pwm->cfg.polarity = device->state.polarity; in HdfPwmOpen() 43 pwm->cfg.status = device->state.enabled ? PWM_ENABLE_STATUS : PWM_DISABLE_STATUS; in HdfPwmOpen() 61 struct pwm_state state; in HdfPwmSetConfig() local 68 state.duty_cycle = config->duty; in HdfPwmSetConfig() 69 state.enabled = (config->status == PWM_ENABLE_STATUS) ? true : false; in HdfPwmSetConfig() 70 state.period = config->period; in HdfPwmSetConfig() 71 state.polarity = config->polarity; in HdfPwmSetConfig() 74 ret = pwm_apply_state(pwm->priv, &state); in HdfPwmSetConfig()
|
/drivers/peripheral/display/composer/test/benchmark/ |
D | display_benchmark_test.cpp | 46 void TearDown(const ::benchmark::State &state); 49 void DisplayBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument 58 BENCHMARK_F(DisplayBenchmarkTest, SetClientBufferCacheCountTest)(benchmark::State &state) in BENCHMARK_F() 62 for (auto _ : state) { in BENCHMARK_F() 72 BENCHMARK_F(DisplayBenchmarkTest, GetDisplayCapabilityTest)(benchmark::State &state) in BENCHMARK_F() 76 for (auto _ : state) { in BENCHMARK_F() 89 BENCHMARK_F(DisplayBenchmarkTest, GetDisplaySupportedModesTest)(benchmark::State &state) in BENCHMARK_F() 93 for (auto _ : state) { in BENCHMARK_F() 106 BENCHMARK_F(DisplayBenchmarkTest, GetDisplayModeTest)(benchmark::State &state) in BENCHMARK_F() 110 for (auto _ : state) { in BENCHMARK_F() [all …]
|
/drivers/peripheral/input/test/benchmarktest/ |
D | input_benchmark_test.cpp | 43 void SetUp(const ::benchmark::State &state); 44 void TearDown(const ::benchmark::State &state); 47 void InputBenchmarkTest::SetUp(const ::benchmark::State &state) in SetUp() argument 55 void InputBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument 65 BENCHMARK_F(InputBenchmarkTest, HdfInput_ScanInputDevice_test)(benchmark::State &state) in BENCHMARK_F() 71 for (auto _ : state) { in BENCHMARK_F() 86 BENCHMARK_F(InputBenchmarkTest, HdfInput_OpenInputDevice_test)(benchmark::State &state) in BENCHMARK_F() 91 for (auto _ : state) { in BENCHMARK_F() 106 BENCHMARK_F(InputBenchmarkTest, HdfInput_GetInputDevice_test)(benchmark::State &state) in BENCHMARK_F() 114 for (auto _ : state) { in BENCHMARK_F() [all …]
|
/drivers/peripheral/audio/test/benchmarktest/render/ |
D | audio_render_benchmarktest.cpp | 58 virtual void SetUp(const ::benchmark::State &state); 59 virtual void TearDown(const ::benchmark::State &state); 153 void AudioRenderBenchmarkTest::SetUp(const ::benchmark::State &state) in SetUp() argument 176 void AudioRenderBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument 195 BENCHMARK_F(AudioRenderBenchmarkTest, StartAndStop)(benchmark::State &state) in BENCHMARK_F() 199 for (auto _ : state) { in BENCHMARK_F() 210 BENCHMARK_F(AudioRenderBenchmarkTest, Pause)(benchmark::State &state) in BENCHMARK_F() 216 for (auto _ : state) { in BENCHMARK_F() 228 BENCHMARK_F(AudioRenderBenchmarkTest, Resume)(benchmark::State &state) in BENCHMARK_F() 237 for (auto _ : state) { in BENCHMARK_F() [all …]
|
/drivers/peripheral/usb/test/benchmarktest/ |
D | usb_benchmark_function_test.cpp | 36 void SetUp(const ::benchmark::State &state); 37 void TearDown(const ::benchmark::State &state); 40 void UsbBenchmarkFunctionTest::SetUp(const ::benchmark::State& state) in SetUp() argument 49 void UsbBenchmarkFunctionTest::TearDown(const ::benchmark::State& state) {} in TearDown() argument 58 BENCHMARK_F(UsbBenchmarkFunctionTest, GetCurrentFunctions)(benchmark::State &state) in BENCHMARK_F() 63 for (auto _ : state) { in BENCHMARK_F() 79 BENCHMARK_F(UsbBenchmarkFunctionTest, SetCurrentFunctions)(benchmark::State &state) in BENCHMARK_F() 83 for (auto _ : state) { in BENCHMARK_F() 99 BENCHMARK_F(UsbBenchmarkFunctionTest, SetPortRole)(benchmark::State &state) in BENCHMARK_F() 103 for (auto _ : state) { in BENCHMARK_F() [all …]
|
D | usb_benchmark_request_test.cpp | 53 void SetUp(const ::benchmark::State &state); 54 void TearDown(const ::benchmark::State &state); 72 void HdfUsbdBenchmarkRequestTest::SetUp(const ::benchmark::State& state) in SetUp() argument 81 void HdfUsbdBenchmarkRequestTest::TearDown(const ::benchmark::State& state) {} in TearDown() argument 108 BENCHMARK_F(HdfUsbdBenchmarkRequestTest, SetConfig)(benchmark::State& state) in BENCHMARK_F() 116 for (auto _ : state) { in BENCHMARK_F() 132 BENCHMARK_F(HdfUsbdBenchmarkRequestTest, GetConfig)(benchmark::State& state) in BENCHMARK_F() 140 for (auto _ : state) { in BENCHMARK_F() 157 BENCHMARK_F(HdfUsbdBenchmarkRequestTest, ClaimInterface)(benchmark::State& state) in BENCHMARK_F() 165 for (auto _ : state) { in BENCHMARK_F() [all …]
|
D | usb_benchmark_device_test.cpp | 38 void SetUp(const ::benchmark::State &state); 39 void TearDown(const ::benchmark::State &state); 42 void UsbBenchmarkDeviceTest::SetUp(const ::benchmark::State &state) in SetUp() argument 51 void UsbBenchmarkDeviceTest::TearDown(const ::benchmark::State &state) {} in TearDown() argument 60 BENCHMARK_F(UsbBenchmarkDeviceTest, OpenDevice)(benchmark::State &state) in BENCHMARK_F() 70 for (auto _ : state) { in BENCHMARK_F() 87 BENCHMARK_F(UsbBenchmarkDeviceTest, CloseDevice)(benchmark::State &state) in BENCHMARK_F() 97 for (auto _ : state) { in BENCHMARK_F()
|
D | usb_benchmark_transfer_test.cpp | 56 void SetUp(const ::benchmark::State &state); 57 void TearDown(const ::benchmark::State &state); 103 void HdfUsbdBenchmarkTransferTest::SetUp(const ::benchmark::State& state) in SetUp() argument 112 void HdfUsbdBenchmarkTransferTest::TearDown(const ::benchmark::State& state) in TearDown() argument 142 BENCHMARK_F(HdfUsbdBenchmarkTransferTest, ControlTransferRead)(benchmark::State& state) in BENCHMARK_F() 151 for (auto _ : state) { in BENCHMARK_F() 169 BENCHMARK_F(HdfUsbdBenchmarkTransferTest, ControlTransferWrite)(benchmark::State& state) in BENCHMARK_F() 182 for (auto _ : state) { in BENCHMARK_F() 199 BENCHMARK_F(HdfUsbdBenchmarkTransferTest, BulkTransferRead)(benchmark::State& state) in BENCHMARK_F() 211 for (auto _ : state) { in BENCHMARK_F() [all …]
|
/drivers/hdf_core/framework/core/shared/include/ |
D | hdf_power_state.h | 20 static inline bool IsPowerWakeState(uint32_t state) in IsPowerWakeState() argument 22 return state == POWER_STATE_DOZE_RESUME || state == POWER_STATE_RESUME; in IsPowerWakeState() 25 static inline bool IsValidPowerState(uint32_t state) in IsValidPowerState() argument 27 return state < POWER_STATE_MAX; in IsValidPowerState()
|
/drivers/peripheral/vibrator/test/benchmarktest/ |
D | hdf_vibrator_benchmark_test.cpp | 44 void SetUp(const ::benchmark::State &state); 45 void TearDown(const ::benchmark::State &state); 48 void VibratorBenchmarkTest::SetUp(const ::benchmark::State &state) in SetUp() argument 53 void VibratorBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument 63 BENCHMARK_F(VibratorBenchmarkTest, StartOnce)(benchmark::State &state) in BENCHMARK_F() 69 for (auto _ : state) { in BENCHMARK_F() 87 BENCHMARK_F(VibratorBenchmarkTest, Start)(benchmark::State &state) in BENCHMARK_F() 93 for (auto _ : state) { in BENCHMARK_F() 111 BENCHMARK_F(VibratorBenchmarkTest, Stop)(benchmark::State &state) in BENCHMARK_F() 117 for (auto _ : state) { in BENCHMARK_F() [all …]
|
/drivers/peripheral/audio/test/benchmarktest/capture/ |
D | audio_capture_benchmarktest.cpp | 49 virtual void SetUp(const ::benchmark::State &state); 50 virtual void TearDown(const ::benchmark::State &state); 150 void AudioCaptureBenchmarkTest::SetUp(const ::benchmark::State &state) in SetUp() argument 185 void AudioCaptureBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument 201 BENCHMARK_F(AudioCaptureBenchmarkTest, CaptureFrame)(benchmark::State &state) in BENCHMARK_F() 213 for (auto _ : state) { in BENCHMARK_F() 228 BENCHMARK_F(AudioCaptureBenchmarkTest, GetCapturePosition)(benchmark::State &state) in BENCHMARK_F() 245 for (auto _ : state) { in BENCHMARK_F() 260 BENCHMARK_F(AudioCaptureBenchmarkTest, StartAndStop)(benchmark::State &state) in BENCHMARK_F() 264 for (auto _ : state) { in BENCHMARK_F() [all …]
|
/drivers/peripheral/sensor/test/benchmarktest/ |
D | sensor_benchmark_test.cpp | 49 void SetUp(const ::benchmark::State &state); 50 void TearDown(const ::benchmark::State &state); 53 void SensorBenchmarkTest::SetUp(const ::benchmark::State &state) in SetUp() argument 58 void SensorBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument 68 BENCHMARK_F(SensorBenchmarkTest, GetAllSensorInfo)(benchmark::State &state) in BENCHMARK_F() 74 for (auto _ : state) { in BENCHMARK_F() 89 BENCHMARK_F(SensorBenchmarkTest, register)(benchmark::State &state) in BENCHMARK_F() 95 for (auto _ : state) { in BENCHMARK_F() 112 BENCHMARK_F(SensorBenchmarkTest, Unregister)(benchmark::State &state) in BENCHMARK_F() 118 for (auto _ : state) { in BENCHMARK_F() [all …]
|
/drivers/peripheral/audio/test/benchmarktest/adapter/ |
D | audio_adapter_benchmarktest.cpp | 46 void SetUp(const ::benchmark::State &state); 47 void TearDown(const ::benchmark::State &state); 112 void AudioAdapterBenchmarkTest::SetUp(const ::benchmark::State &state) in SetUp() argument 139 void AudioAdapterBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument 151 BENCHMARK_F(AudioAdapterBenchmarkTest, InitAllPorts)(benchmark::State &state) in BENCHMARK_F() 155 for (auto _ : state) { in BENCHMARK_F() 164 BENCHMARK_F(AudioAdapterBenchmarkTest, CreateRenderAndDestroyRender)(benchmark::State &state) in BENCHMARK_F() 178 for (auto _ : state) { in BENCHMARK_F() 192 BENCHMARK_F(AudioAdapterBenchmarkTest, CreateCaptureAndDestroyCapture)(benchmark::State &state) in BENCHMARK_F() 205 for (auto _ : state) { in BENCHMARK_F() [all …]
|
/drivers/peripheral/audio/test/benchmarktest/effect/ |
D | audio_effectcontrol_benchmarktest.cpp | 44 virtual void SetUp(const ::benchmark::State &state); 45 virtual void TearDown(const ::benchmark::State &state); 69 void AudioEffectControlBenchmarkTest::SetUp(const ::benchmark::State &state) in SetUp() argument 88 void AudioEffectControlBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument 111 BENCHMARK_F(AudioEffectControlBenchmarkTest, EffectProcess)(benchmark::State &state) in BENCHMARK_F() 118 for (auto _ : state) { in BENCHMARK_F() 127 BENCHMARK_F(AudioEffectControlBenchmarkTest, SendCommand)(benchmark::State &state) in BENCHMARK_F() 135 for (auto _ : state) { in BENCHMARK_F() 145 BENCHMARK_F(AudioEffectControlBenchmarkTest, GetEffectDescriptor)(benchmark::State &state) in BENCHMARK_F() 151 for (auto _ : state) { in BENCHMARK_F() [all …]
|
D | audio_effectmodel_benchmarktest.cpp | 42 virtual void SetUp(const ::benchmark::State &state); 43 virtual void TearDown(const ::benchmark::State &state); 76 void AudioEffectModelBenchmarkTest::SetUp(const ::benchmark::State &state) in SetUp() argument 85 void AudioEffectModelBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument 103 BENCHMARK_F(AudioEffectModelBenchmarkTest, IsSupplyEffectLibs)(benchmark::State &state) in BENCHMARK_F() 109 for (auto _ : state) { in BENCHMARK_F() 118 BENCHMARK_F(AudioEffectModelBenchmarkTest, GetAllEffectDescriptors)(benchmark::State &state) in BENCHMARK_F() 125 for (auto _ : state) { in BENCHMARK_F() 141 …NCHMARK_F(AudioEffectModelBenchmarkTest, CreateAndDestroyEffectController)(benchmark::State &state) in BENCHMARK_F() 152 for (auto _ : state) { in BENCHMARK_F() [all …]
|
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/ |
D | audio_bluetooth_manager.cpp | 53 static void AudioOnConnectionStateChanged(const RawAddress &device, int state) in AudioOnConnectionStateChanged() argument 55 HDF_LOGI("%{public}s, state:%{public}d", __func__, state); in AudioOnConnectionStateChanged() 56 (void) state; in AudioOnConnectionStateChanged() 203 BTAudioStreamState state = getStateFunc(); in WriteFrame() local 204 if (state != BTAudioStreamState::STARTED) { in WriteFrame() 205 HDF_LOGE("%{public}s: state=%{public}hhu", __func__, state); in WriteFrame() 244 BTAudioStreamState state = getStateFunc(); in SuspendPlaying() local 245 HDF_LOGE("%{public}s: state=%{public}hhu", __func__, state); in SuspendPlaying() 246 if (state == BTAudioStreamState::STARTED) { in SuspendPlaying() 249 HDF_LOGE("%{public}s: state=%{public}hhu is bad state", __func__, state); in SuspendPlaying() [all …]
|
/drivers/peripheral/audio/test/benchmarktest/manager/ |
D | audio_manager_benchmarktest.cpp | 35 void SetUp(const ::benchmark::State &state); 36 void TearDown(const ::benchmark::State &state); 72 void AudioManagerBenchmarkTest::SetUp(const ::benchmark::State &state) in SetUp() argument 78 void AudioManagerBenchmarkTest::TearDown(const ::benchmark::State &state) in TearDown() argument 83 BENCHMARK_F(AudioManagerBenchmarkTest, GetAllAdapters)(benchmark::State &state) in BENCHMARK_F() 92 for (auto _ : state) { in BENCHMARK_F() 102 BENCHMARK_F(AudioManagerBenchmarkTest, LoadAdapterAndUnloadAdapter)(benchmark::State &state) in BENCHMARK_F() 114 for (auto _ : state) { in BENCHMARK_F() 119 for (auto _ : state) { in BENCHMARK_F()
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
D | audio_usb_mixer.c | 334 struct UsbMixerBuild *state, int32_t unitId, int32_t index, char *buf, int32_t bufLen) in AudioUsbCheckMappedSelectorName() argument 339 if (state == NULL || state->selectorMap == NULL || buf == NULL) { in AudioUsbCheckMappedSelectorName() 344 …for (usbMixerSelectorMap = state->selectorMap; usbMixerSelectorMap != NULL && usbMixerSelectorMap-… in AudioUsbCheckMappedSelectorName() 355 static void *AudioUsbFindAudioControlUnit(struct UsbMixerBuild *state, unsigned char unit) in AudioUsbFindAudioControlUnit() argument 364 …featureUnitDesc = AudioUsbFindDesc(state->buffer, state->bufLen, featureUnitDesc, USB_DT_CS_INTERF… in AudioUsbFindAudioControlUnit() 374 …featureUnitDesc = AudioUsbFindDesc(state->buffer, state->bufLen, featureUnitDesc, USB_DT_CS_INTERF… in AudioUsbFindAudioControlUnit() 745 static int32_t AudioUsbParseUnit(struct UsbMixerBuild *state, int32_t unitId); 841 static int32_t AudioUsbGetClusterChannelsV3(struct UsbMixerBuild *state, uint32_t clusterId) in AudioUsbGetClusterChannelsV3() argument 848 usbCtlMsgParam.pipe = usb_rcvctrlpipe(state->audioUsbDriver->dev, 0); in AudioUsbGetClusterChannelsV3() 852 usbCtlMsgParam.index = AudioUsbCtrlIntf(state->audioUsbDriver); in AudioUsbGetClusterChannelsV3() [all …]
|
/drivers/peripheral/codec/test/benchmarktest/ |
D | codec_benchmark_omx_test.cpp | 228 void SetUp(benchmark::State &state) in SetUp() argument 239 void TearDown(benchmark::State &state) in TearDown() argument 265 BENCHMARK_F(CodecBenchmarkOmxTest, GetComponentVersion)(benchmark::State &state) in BENCHMARK_F() 270 for (auto _ : state) { in BENCHMARK_F() 279 BENCHMARK_F(CodecBenchmarkOmxTest, GetParameter)(benchmark::State &state) in BENCHMARK_F() 292 for (auto _ : state) { in BENCHMARK_F() 301 BENCHMARK_F(CodecBenchmarkOmxTest, SetParameter)(benchmark::State &state) in BENCHMARK_F() 310 for (auto _ : state) { in BENCHMARK_F() 319 BENCHMARK_F(CodecBenchmarkOmxTest, GetConfig)(benchmark::State &state) in BENCHMARK_F() 329 for (auto _ : state) { in BENCHMARK_F() [all …]
|
D | codec_benchmark_manager_test.cpp | 30 void SetUp(const ::benchmark::State &state) in SetUp() argument 35 void TearDown(const ::benchmark::State &state) in TearDown() argument 46 BENCHMARK_F(CodecBenchmarkManagerTest, GetComponentNum)(benchmark::State &state) in BENCHMARK_F() 51 for (auto _ : state) { in BENCHMARK_F() 61 BENCHMARK_F(CodecBenchmarkManagerTest, GetComponentCapabilityList)(benchmark::State &state) in BENCHMARK_F() 70 for (auto _ : state) { in BENCHMARK_F() 79 BENCHMARK_F(CodecBenchmarkManagerTest, CreateComponent)(benchmark::State &state) in BENCHMARK_F() 96 for (auto _ : state) { in BENCHMARK_F() 108 BENCHMARK_F(CodecBenchmarkManagerTest, DestroyComponent)(benchmark::State &state) in BENCHMARK_F() 125 for (auto _ : state) { in BENCHMARK_F()
|
/drivers/hdf_core/adapter/uhdf2/host/src/ |
D | devhost_service_full.c | 88 static int DevHostServiceFullDispatchPowerState(struct HdfDevice *device, uint32_t state) in DevHostServiceFullDispatchPowerState() argument 94 if (IsPowerWakeState(state)) { in DevHostServiceFullDispatchPowerState() 97 ret = PowerStateChange(deviceNode->powerToken, state); in DevHostServiceFullDispatchPowerState() 100 deviceNode->driver->entry->moduleName, state, ret); in DevHostServiceFullDispatchPowerState() 108 ret = PowerStateChange(deviceNode->powerToken, state); in DevHostServiceFullDispatchPowerState() 111 deviceNode->driver->entry->moduleName, state, ret); in DevHostServiceFullDispatchPowerState() 175 int DevHostServiceFullPmNotify(struct IDevHostService *service, uint32_t state) in DevHostServiceFullPmNotify() argument 180 if (hostService == NULL || !IsValidPowerState(state)) { in DevHostServiceFullPmNotify() 185 if (IsPowerWakeState(state)) { in DevHostServiceFullPmNotify() 187 if (DevHostServiceFullDispatchPowerState(device, state) != HDF_SUCCESS) { in DevHostServiceFullPmNotify() [all …]
|
/drivers/interface/battery/v1_0/ |
D | Types.idl | 49 /** Unknown state */ 51 /** Normal state */ 53 /** Overheated state */ 55 /** Overvoltage state */ 57 /** Cool state */ 59 /** Exhausted state */ 72 /** Unknown state */ 74 /** Charging enabled state */ 76 /** Charging disabled state */ 78 /** Battery full state */
|
/drivers/interface/battery/v1_1/ |
D | Types.idl | 49 /** Unknown state */ 51 /** Normal state */ 53 /** Overheated state */ 55 /** Overvoltage state */ 57 /** Cool state */ 59 /** Exhausted state */ 72 /** Unknown state */ 74 /** Charging enabled state */ 76 /** Charging disabled state */ 78 /** Battery full state */
|
/drivers/hdf_core/framework/model/camera/buffer_manager/src/ |
D | camera_buffer_manager.c | 19 void CameraBufferDone(struct CameraBuffer *buffer, enum BufferState state) in CameraBufferDone() argument 24 if (buffer->state != BUFFER_STATE_ACTIVE) { in CameraBufferDone() 28 if (state != BUFFER_STATE_DONE && state != BUFFER_STATE_ERROR && state != BUFFER_STATE_QUEUED) { in CameraBufferDone() 29 state = BUFFER_STATE_ERROR; in CameraBufferDone() 33 if (state != BUFFER_STATE_QUEUED) { in CameraBufferDone() 37 buffer->state = state; in CameraBufferDone() 38 if (state != BUFFER_STATE_QUEUED) { in CameraBufferDone() 44 if (state != BUFFER_STATE_QUEUED) { in CameraBufferDone() 213 if (buffer->state != BUFFER_STATE_DEQUEUED) { in BufferQueueReturnBuffer() 305 switch (buffer->state) { in BufferQueueAcquireBuffer() [all …]
|