Home
last modified time | relevance | path

Searched refs:_hidl_cb (Results 1 – 25 of 38) sorted by relevance

12

/device/google/atv/audio_proxy/service/
DDeviceImpl.cpp41 Return<void> DeviceImpl::getMasterVolume(getMasterVolume_cb _hidl_cb) { in getMasterVolume() argument
42 _hidl_cb(Result::NOT_SUPPORTED, 0.f); in getMasterVolume()
50 Return<void> DeviceImpl::getMicMute(getMicMute_cb _hidl_cb) { in getMicMute() argument
51 _hidl_cb(Result::NOT_SUPPORTED, false); in getMicMute()
59 Return<void> DeviceImpl::getMasterMute(getMasterMute_cb _hidl_cb) { in getMasterMute() argument
60 _hidl_cb(Result::NOT_SUPPORTED, false); in getMasterMute()
65 getInputBufferSize_cb _hidl_cb) { in getInputBufferSize() argument
66 _hidl_cb(Result::NOT_SUPPORTED, 0); in getInputBufferSize()
75 openOutputStream_cb _hidl_cb) { in openOutputStream() argument
81 _hidl_cb(Result::NOT_SUPPORTED, nullptr, config); in openOutputStream()
[all …]
DDevicesFactoryImpl.cpp32 openDevice_cb _hidl_cb) { in openDevice() argument
36 _hidl_cb(Result::OK, new DeviceImpl(mBusDeviceProvider)); in openDevice()
38 _hidl_cb(Result::NOT_SUPPORTED, nullptr); in openDevice()
45 openPrimaryDevice_cb _hidl_cb) { in openPrimaryDevice() argument
47 _hidl_cb(Result::NOT_SUPPORTED, nullptr); in openPrimaryDevice()
DDeviceImpl.h56 Return<void> getMasterVolume(getMasterVolume_cb _hidl_cb) override;
58 Return<void> getMicMute(getMicMute_cb _hidl_cb) override;
60 Return<void> getMasterMute(getMasterMute_cb _hidl_cb) override;
62 getInputBufferSize_cb _hidl_cb) override;
67 openOutputStream_cb _hidl_cb) override;
72 openInputStream_cb _hidl_cb) override;
76 createAudioPatch_cb _hidl_cb) override;
79 getAudioPort_cb _hidl_cb) override;
81 Return<void> getHwAvSync(getHwAvSync_cb _hidl_cb) override;
85 getParameters_cb _hidl_cb) override;
[all …]
/device/generic/goldfish/audio/
Dprimary_device.cpp67 Return<void> PrimaryDevice::getMasterVolume(getMasterVolume_cb _hidl_cb) { in getMasterVolume() argument
69 _hidl_cb(Result::OK, in getMasterVolume()
72 _hidl_cb(Result::INVALID_STATE, 0); in getMasterVolume()
87 Return<void> PrimaryDevice::getMicMute(getMicMute_cb _hidl_cb) { in getMicMute() argument
90 _hidl_cb(Result::OK, value == 0); in getMicMute()
92 _hidl_cb(Result::INVALID_STATE, 0); in getMicMute()
106 Return<void> PrimaryDevice::getMasterMute(getMasterMute_cb _hidl_cb) { in getMasterMute() argument
109 _hidl_cb(Result::OK, value == 0); in getMasterMute()
111 _hidl_cb(Result::NOT_SUPPORTED, 0); in getMasterMute()
118 getInputBufferSize_cb _hidl_cb) { in getInputBufferSize() argument
[all …]
Dstream_common.cpp57 IStream::getSupportedSampleRates_cb _hidl_cb) const { in getSupportedSampleRates()
59 _hidl_cb(Result::OK, {m_config.sampleRateHz}); in getSupportedSampleRates()
61 _hidl_cb(Result::OK, {}); in getSupportedSampleRates()
75 IStream::getSupportedChannelMasks_cb _hidl_cb) const { in getSupportedChannelMasks()
77 _hidl_cb(Result::OK, {m_config.channelMask}); in getSupportedChannelMasks()
79 _hidl_cb(Result::OK, {}); in getSupportedChannelMasks()
92 void StreamCommon::getSupportedFormats(IStream::getSupportedFormats_cb _hidl_cb) const { in getSupportedFormats()
93 _hidl_cb(Result::OK, {m_config.format}); in getSupportedFormats()
101 void StreamCommon::getAudioProperties(IStream::getAudioProperties_cb _hidl_cb) const { in getAudioProperties()
102 _hidl_cb(m_config.sampleRateHz, m_config.channelMask, m_config.format); in getAudioProperties()
[all …]
Dprimary_device.h42 Return<void> getMasterVolume(getMasterVolume_cb _hidl_cb) override;
44 Return<void> getMicMute(getMicMute_cb _hidl_cb) override;
46 Return<void> getMasterMute(getMasterMute_cb _hidl_cb) override;
48 getInputBufferSize_cb _hidl_cb) override;
54 openOutputStream_cb _hidl_cb) override;
60 openInputStream_cb _hidl_cb) override;
64 createAudioPatch_cb _hidl_cb) override;
68 updateAudioPatch_cb _hidl_cb) override;
70 Return<void> getAudioPort(const AudioPort& port, getAudioPort_cb _hidl_cb) override;
73 Return<void> getHwAvSync(getHwAvSync_cb _hidl_cb) override;
[all …]
Dstream_out.cpp292 getSupportedSampleRates_cb _hidl_cb) { in getSupportedSampleRates() argument
293 mCommon.getSupportedSampleRates(format, _hidl_cb); in getSupportedSampleRates()
306 IStream::getSupportedChannelMasks_cb _hidl_cb) { in getSupportedChannelMasks() argument
307 mCommon.getSupportedChannelMasks(format, _hidl_cb); in getSupportedChannelMasks()
319 Return<void> StreamOut::getSupportedFormats(getSupportedFormats_cb _hidl_cb) { in getSupportedFormats() argument
320 mCommon.getSupportedFormats(_hidl_cb); in getSupportedFormats()
328 Return<void> StreamOut::getAudioProperties(getAudioProperties_cb _hidl_cb) { in getAudioProperties() argument
329 mCommon.getAudioProperties(_hidl_cb); in getAudioProperties()
351 Return<void> StreamOut::getDevices(getDevices_cb _hidl_cb) { in getDevices() argument
352 mCommon.getDevices(_hidl_cb); in getDevices()
[all …]
Dstream_out.h52 …Return<void> getSupportedSampleRates(AudioFormat format, getSupportedSampleRates_cb _hidl_cb) over…
55 …Return<void> getSupportedChannelMasks(AudioFormat format, getSupportedChannelMasks_cb _hidl_cb) ov…
58 Return<void> getSupportedFormats(getSupportedFormats_cb _hidl_cb) override;
60 Return<void> getAudioProperties(getAudioProperties_cb _hidl_cb) override;
64 Return<void> getDevices(getDevices_cb _hidl_cb) override;
69 getParameters_cb _hidl_cb) override;
74 Return<void> createMmapBuffer(int32_t minSizeFrames, createMmapBuffer_cb _hidl_cb) override;
75 Return<void> getMmapPosition(getMmapPosition_cb _hidl_cb) override;
83 prepareForWriting_cb _hidl_cb) override;
84 Return<void> getRenderPosition(getRenderPosition_cb _hidl_cb) override;
[all …]
Dstream_in.cpp274 getSupportedSampleRates_cb _hidl_cb) { in getSupportedSampleRates() argument
275 mCommon.getSupportedSampleRates(format, _hidl_cb); in getSupportedSampleRates()
288 IStream::getSupportedChannelMasks_cb _hidl_cb) { in getSupportedChannelMasks() argument
289 mCommon.getSupportedChannelMasks(format, _hidl_cb); in getSupportedChannelMasks()
301 Return<void> StreamIn::getSupportedFormats(getSupportedFormats_cb _hidl_cb) { in getSupportedFormats() argument
302 mCommon.getSupportedFormats(_hidl_cb); in getSupportedFormats()
310 Return<void> StreamIn::getAudioProperties(getAudioProperties_cb _hidl_cb) { in getAudioProperties() argument
311 mCommon.getAudioProperties(_hidl_cb); in getAudioProperties()
333 Return<void> StreamIn::getDevices(getDevices_cb _hidl_cb) { in getDevices() argument
334 mCommon.getDevices(_hidl_cb); in getDevices()
[all …]
Dstream_in.h52 …Return<void> getSupportedSampleRates(AudioFormat format, getSupportedSampleRates_cb _hidl_cb) over…
55 …Return<void> getSupportedChannelMasks(AudioFormat format, getSupportedChannelMasks_cb _hidl_cb) ov…
58 Return<void> getSupportedFormats(getSupportedFormats_cb _hidl_cb) override;
60 Return<void> getAudioProperties(getAudioProperties_cb _hidl_cb) override;
64 Return<void> getDevices(getDevices_cb _hidl_cb) override;
69 getParameters_cb _hidl_cb) override;
74 Return<void> createMmapBuffer(int32_t minSizeFrames, createMmapBuffer_cb _hidl_cb) override;
75 Return<void> getMmapPosition(getMmapPosition_cb _hidl_cb) override;
79 Return<void> getAudioSource(getAudioSource_cb _hidl_cb) override;
83 prepareForReading_cb _hidl_cb) override;
[all …]
Ddevice_factory.cpp31 openDevice_cb _hidl_cb) { in openDevice() argument
46 _hidl_cb(result, dev.release()); in openDevice()
50 Return<void> DevicesFactory::openPrimaryDevice(openPrimaryDevice_cb _hidl_cb) { in openPrimaryDevice() argument
51 _hidl_cb(Result::OK, new PrimaryDevice); in openPrimaryDevice()
Dstream_common.h45 IStream::getSupportedSampleRates_cb _hidl_cb) const;
49 IStream::getSupportedChannelMasks_cb _hidl_cb) const;
52 void getSupportedFormats(IStream::getSupportedFormats_cb _hidl_cb) const;
54 void getAudioProperties(IStream::getAudioProperties_cb _hidl_cb) const;
55 void getDevices(IStream::getDevices_cb _hidl_cb) const;
/device/google/cuttlefish/guest/hals/health/
Dhealth.cpp49 Return<void> getChargeCounter(getChargeCounter_cb _hidl_cb) override;
50 Return<void> getCurrentNow(getCurrentNow_cb _hidl_cb) override;
51 Return<void> getCapacity(getCapacity_cb _hidl_cb) override;
52 Return<void> getChargeStatus(getChargeStatus_cb _hidl_cb) override;
77 Return<void> HealthImpl::getChargeCounter(getChargeCounter_cb _hidl_cb) { in getChargeCounter() argument
78 _hidl_cb(Result::SUCCESS, 1900000); in getChargeCounter()
82 Return<void> HealthImpl::getCurrentNow(getCurrentNow_cb _hidl_cb) { in getCurrentNow() argument
83 _hidl_cb(Result::SUCCESS, 400000); in getCurrentNow()
87 Return<void> HealthImpl::getCapacity(getCapacity_cb _hidl_cb) { in getCapacity() argument
88 _hidl_cb(Result::SUCCESS, 85); in getCapacity()
[all …]
/device/google/atv/audio_proxy/
DStreamOutImpl.cpp208 AudioFormat format, getSupportedSampleRates_cb _hidl_cb) { in getSupportedSampleRates() argument
209 _hidl_cb(Result::OK, mStream->getSupportedSampleRates(format)); in getSupportedSampleRates()
214 AudioFormat format, getSupportedChannelMasks_cb _hidl_cb) { in getSupportedChannelMasks() argument
215 _hidl_cb(Result::OK, mStream->getSupportedChannelMasks(format)); in getSupportedChannelMasks()
235 getSupportedFormats_cb _hidl_cb) { in getSupportedFormats() argument
236 _hidl_cb(mStream->getSupportedFormats()); in getSupportedFormats()
244 Return<void> StreamOutImpl::getAudioProperties(getAudioProperties_cb _hidl_cb) { in getAudioProperties() argument
245 _hidl_cb(mStream->getSampleRate(), mStream->getChannelMask(), in getAudioProperties()
260 Return<void> StreamOutImpl::getDevices(getDevices_cb _hidl_cb) { in getDevices() argument
261 _hidl_cb(Result::NOT_SUPPORTED, {}); in getDevices()
[all …]
DStreamOutImpl.h59 AudioFormat format, getSupportedSampleRates_cb _hidl_cb) override;
61 AudioFormat format, getSupportedChannelMasks_cb _hidl_cb) override;
66 Return<void> getSupportedFormats(getSupportedFormats_cb _hidl_cb) override;
68 Return<void> getAudioProperties(getAudioProperties_cb _hidl_cb) override;
72 Return<void> getDevices(getDevices_cb _hidl_cb) override;
76 getParameters_cb _hidl_cb) override;
87 prepareForWriting_cb _hidl_cb) override;
88 Return<void> getRenderPosition(getRenderPosition_cb _hidl_cb) override;
90 getNextWriteTimestamp_cb _hidl_cb) override;
94 supportsPauseAndResume_cb _hidl_cb) override;
[all …]
/device/generic/goldfish/soundtrigger/
Dmain.cpp32 Return<void> getProperties(getProperties_cb _hidl_cb) override { in getProperties()
56 _hidl_cb(0, props); in getProperties()
63 loadSoundModel_cb _hidl_cb) override { in loadSoundModel()
67 _hidl_cb(0, genHandle()); in loadSoundModel()
74 loadPhraseSoundModel_cb _hidl_cb) override { in loadPhraseSoundModel()
78 _hidl_cb(0, genHandle()); in loadPhraseSoundModel()
111 loadSoundModel_2_1_cb _hidl_cb) override { in loadSoundModel_2_1()
115 _hidl_cb(0, genHandle()); in loadSoundModel_2_1()
122 loadPhraseSoundModel_2_1_cb _hidl_cb) override { in loadPhraseSoundModel_2_1()
126 _hidl_cb(0, genHandle()); in loadPhraseSoundModel_2_1()
/device/google/crosshatch/vibrator/
DVibrator.cpp157 perform_cb _hidl_cb) { in perform() argument
158 return performWrapper(effect, strength, _hidl_cb); in perform()
162 perform_cb _hidl_cb) { in perform_1_1() argument
163 return performWrapper(effect, strength, _hidl_cb); in perform_1_1()
167 perform_cb _hidl_cb) { in perform_1_2() argument
168 return performWrapper(effect, strength, _hidl_cb); in perform_1_2()
172 Return<void> Vibrator::performWrapper(T effect, EffectStrength strength, perform_cb _hidl_cb) { in performWrapper() argument
175 _hidl_cb(Status::UNSUPPORTED_OPERATION, 0); in performWrapper()
178 return performEffect(static_cast<Effect>(effect), strength, _hidl_cb); in performWrapper()
182 perform_cb _hidl_cb) { in performEffect() argument
[all …]
DVibrator.h43 Return<void> perform(V1_0::Effect effect, EffectStrength strength, perform_cb _hidl_cb)
45 Return<void> perform_1_1(V1_1::Effect_1_1 effect, EffectStrength strength, perform_cb _hidl_cb)
47 Return<void> perform_1_2(Effect effect, EffectStrength strength, perform_cb _hidl_cb) override;
52 Return<void> performWrapper(T effect, EffectStrength strength, perform_cb _hidl_cb);
53 Return<void> performEffect(Effect effect, EffectStrength strength, perform_cb _hidl_cb);
/device/linaro/hikey/power/
DPower.cpp67 Return<void> Power::getPlatformLowPowerStats(getPlatformLowPowerStats_cb _hidl_cb) { in getPlatformLowPowerStats() argument
71 _hidl_cb(states, Status::SUCCESS); in getPlatformLowPowerStats()
76 Return<void> Power::getSubsystemLowPowerStats(getSubsystemLowPowerStats_cb _hidl_cb) { in getSubsystemLowPowerStats() argument
83 _hidl_cb(subsystems, Status::SUCCESS); in getSubsystemLowPowerStats()
/device/google/sunfish/health/
DHealth.cpp154 Return<void> getStorageInfo(getStorageInfo_cb _hidl_cb) override;
155 Return<void> getDiskStats(getDiskStats_cb _hidl_cb) override;
169 Return<void> HealthImpl::getStorageInfo(getStorageInfo_cb _hidl_cb) in getStorageInfo() argument
175 _hidl_cb(Result::NOT_SUPPORTED, info_vec); in getStorageInfo()
177 _hidl_cb(Result::SUCCESS, info_vec); in getStorageInfo()
182 Return<void> HealthImpl::getDiskStats(getDiskStats_cb _hidl_cb) in getDiskStats() argument
188 _hidl_cb(Result::NOT_SUPPORTED, stats_vec); in getDiskStats()
190 _hidl_cb(Result::SUCCESS, stats_vec); in getDiskStats()
/device/google/sunfish/vibrator/drv2624/
DVibrator.cpp419 Return<void> Vibrator::perform(V1_0::Effect effect, EffectStrength strength, perform_cb _hidl_cb) { in perform() argument
420 return performWrapper(effect, strength, _hidl_cb); in perform()
424 perform_cb _hidl_cb) { in perform_1_1() argument
425 return performWrapper(effect, strength, _hidl_cb); in perform_1_1()
429 perform_cb _hidl_cb) { in perform_1_2() argument
430 return performWrapper(effect, strength, _hidl_cb); in perform_1_2()
433 Return<void> Vibrator::perform_1_3(Effect effect, EffectStrength strength, perform_cb _hidl_cb) { in perform_1_3() argument
434 return performWrapper(effect, strength, _hidl_cb); in perform_1_3()
438 Return<void> Vibrator::performWrapper(T effect, EffectStrength strength, perform_cb _hidl_cb) { in performWrapper() argument
442 _hidl_cb(Status::UNSUPPORTED_OPERATION, 0); in performWrapper()
[all …]
/device/google/sunfish/powerstats/
DRailDataProvider.cpp201 Return<void> RailDataProvider::getRailInfo(IPowerStats::getRailInfo_cb _hidl_cb) { in getRailInfo() argument
208 _hidl_cb(rInfo, Status::NOT_SUPPORTED); in getRailInfo()
219 _hidl_cb(rInfo, ret); in getRailInfo()
223 …der::getEnergyData(const hidl_vec<uint32_t>& railIndices, IPowerStats::getEnergyData_cb _hidl_cb) { in getEnergyData() argument
230 _hidl_cb(eVal, ret); in getEnergyData()
250 _hidl_cb(eVal, ret); in getEnergyData()
255 IPowerStats::streamEnergyData_cb _hidl_cb) { in streamEnergyData() argument
258 _hidl_cb(MessageQueueSync::Descriptor(), in streamEnergyData()
267 _hidl_cb(MessageQueueSync::Descriptor(), in streamEnergyData()
296 _hidl_cb(*(mOdpm.fmqSynchronized)->getDesc(), numSamples, in streamEnergyData()
DRailDataProvider.h34 Return<void> getRailInfo(IPowerStats::getRailInfo_cb _hidl_cb) override;
36 IPowerStats::getEnergyData_cb _hidl_cb) override;
38 IPowerStats::streamEnergyData_cb _hidl_cb) override;
/device/google/coral/powerstats/
DRailDataProvider.cpp201 Return<void> RailDataProvider::getRailInfo(IPowerStats::getRailInfo_cb _hidl_cb) { in getRailInfo() argument
208 _hidl_cb(rInfo, Status::NOT_SUPPORTED); in getRailInfo()
219 _hidl_cb(rInfo, ret); in getRailInfo()
223 …der::getEnergyData(const hidl_vec<uint32_t>& railIndices, IPowerStats::getEnergyData_cb _hidl_cb) { in getEnergyData() argument
230 _hidl_cb(eVal, ret); in getEnergyData()
250 _hidl_cb(eVal, ret); in getEnergyData()
255 IPowerStats::streamEnergyData_cb _hidl_cb) { in streamEnergyData() argument
258 _hidl_cb(MessageQueueSync::Descriptor(), in streamEnergyData()
267 _hidl_cb(MessageQueueSync::Descriptor(), in streamEnergyData()
296 _hidl_cb(*(mOdpm.fmqSynchronized)->getDesc(), numSamples, in streamEnergyData()
/device/google/coral/health/
DHealth.cpp169 Return<void> getStorageInfo(getStorageInfo_cb _hidl_cb) override;
170 Return<void> getDiskStats(getDiskStats_cb _hidl_cb) override;
184 Return<void> HealthImpl::getStorageInfo(getStorageInfo_cb _hidl_cb) in getStorageInfo() argument
190 _hidl_cb(Result::NOT_SUPPORTED, info_vec); in getStorageInfo()
192 _hidl_cb(Result::SUCCESS, info_vec); in getStorageInfo()
197 Return<void> HealthImpl::getDiskStats(getDiskStats_cb _hidl_cb) in getDiskStats() argument
203 _hidl_cb(Result::NOT_SUPPORTED, stats_vec); in getDiskStats()
205 _hidl_cb(Result::SUCCESS, stats_vec); in getDiskStats()

12