/device/google/atv/audio_proxy/service/ |
D | DeviceImpl.cpp | 41 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 …]
|
D | DevicesFactoryImpl.cpp | 32 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()
|
D | DeviceImpl.h | 56 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/ |
D | primary_device.cpp | 69 Return<void> PrimaryDevice::getMasterVolume(getMasterVolume_cb _hidl_cb) { in getMasterVolume() argument 71 _hidl_cb(Result::OK, mMasterVolume); in getMasterVolume() 73 _hidl_cb(FAILURE(Result::INVALID_STATE), 0); in getMasterVolume() 88 Return<void> PrimaryDevice::getMicMute(getMicMute_cb _hidl_cb) { in getMicMute() argument 91 _hidl_cb(Result::OK, value == 0); in getMicMute() 93 _hidl_cb(FAILURE(Result::INVALID_STATE), 0); in getMicMute() 107 Return<void> PrimaryDevice::getMasterMute(getMasterMute_cb _hidl_cb) { in getMasterMute() argument 110 _hidl_cb(Result::OK, value == 0); in getMasterMute() 112 _hidl_cb(FAILURE(Result::NOT_SUPPORTED), 0); in getMasterMute() 119 getInputBufferSize_cb _hidl_cb) { in getInputBufferSize() argument [all …]
|
D | stream_common.cpp | 58 IStream::getSupportedSampleRates_cb _hidl_cb) const { in getSupportedSampleRates() 60 _hidl_cb(Result::OK, {m_config.sampleRateHz}); in getSupportedSampleRates() 62 _hidl_cb(Result::OK, {}); in getSupportedSampleRates() 76 IStream::getSupportedChannelMasks_cb _hidl_cb) const { in getSupportedChannelMasks() 78 _hidl_cb(Result::OK, {m_config.channelMask}); in getSupportedChannelMasks() 80 _hidl_cb(Result::OK, {}); in getSupportedChannelMasks() 93 void StreamCommon::getSupportedFormats(IStream::getSupportedFormats_cb _hidl_cb) const { in getSupportedFormats() 94 _hidl_cb(Result::OK, {m_config.format}); in getSupportedFormats() 102 void StreamCommon::getAudioProperties(IStream::getAudioProperties_cb _hidl_cb) const { in getAudioProperties() 103 _hidl_cb(m_config.sampleRateHz, m_config.channelMask, m_config.format); in getAudioProperties() [all …]
|
D | primary_device.h | 43 Return<void> getMasterVolume(getMasterVolume_cb _hidl_cb) override; 45 Return<void> getMicMute(getMicMute_cb _hidl_cb) override; 47 Return<void> getMasterMute(getMasterMute_cb _hidl_cb) override; 49 getInputBufferSize_cb _hidl_cb) override; 55 openOutputStream_cb _hidl_cb) override; 61 openInputStream_cb _hidl_cb) override; 65 createAudioPatch_cb _hidl_cb) override; 69 updateAudioPatch_cb _hidl_cb) override; 71 Return<void> getAudioPort(const AudioPort& port, getAudioPort_cb _hidl_cb) override; 74 Return<void> getHwAvSync(getHwAvSync_cb _hidl_cb) override; [all …]
|
D | stream_out.cpp | 286 getSupportedSampleRates_cb _hidl_cb) { in getSupportedSampleRates() argument 287 mCommon.getSupportedSampleRates(format, _hidl_cb); in getSupportedSampleRates() 300 IStream::getSupportedChannelMasks_cb _hidl_cb) { in getSupportedChannelMasks() argument 301 mCommon.getSupportedChannelMasks(format, _hidl_cb); in getSupportedChannelMasks() 313 Return<void> StreamOut::getSupportedFormats(getSupportedFormats_cb _hidl_cb) { in getSupportedFormats() argument 314 mCommon.getSupportedFormats(_hidl_cb); in getSupportedFormats() 322 Return<void> StreamOut::getAudioProperties(getAudioProperties_cb _hidl_cb) { in getAudioProperties() argument 323 mCommon.getAudioProperties(_hidl_cb); in getAudioProperties() 345 Return<void> StreamOut::getDevices(getDevices_cb _hidl_cb) { in getDevices() argument 346 mCommon.getDevices(_hidl_cb); in getDevices() [all …]
|
D | stream_out.h | 55 …Return<void> getSupportedSampleRates(AudioFormat format, getSupportedSampleRates_cb _hidl_cb) over… 58 …Return<void> getSupportedChannelMasks(AudioFormat format, getSupportedChannelMasks_cb _hidl_cb) ov… 61 Return<void> getSupportedFormats(getSupportedFormats_cb _hidl_cb) override; 63 Return<void> getAudioProperties(getAudioProperties_cb _hidl_cb) override; 67 Return<void> getDevices(getDevices_cb _hidl_cb) override; 72 getParameters_cb _hidl_cb) override; 77 Return<void> createMmapBuffer(int32_t minSizeFrames, createMmapBuffer_cb _hidl_cb) override; 78 Return<void> getMmapPosition(getMmapPosition_cb _hidl_cb) override; 86 prepareForWriting_cb _hidl_cb) override; 87 Return<void> getRenderPosition(getRenderPosition_cb _hidl_cb) override; [all …]
|
D | stream_in.cpp | 256 getSupportedSampleRates_cb _hidl_cb) { in getSupportedSampleRates() argument 257 mCommon.getSupportedSampleRates(format, _hidl_cb); in getSupportedSampleRates() 270 IStream::getSupportedChannelMasks_cb _hidl_cb) { in getSupportedChannelMasks() argument 271 mCommon.getSupportedChannelMasks(format, _hidl_cb); in getSupportedChannelMasks() 283 Return<void> StreamIn::getSupportedFormats(getSupportedFormats_cb _hidl_cb) { in getSupportedFormats() argument 284 mCommon.getSupportedFormats(_hidl_cb); in getSupportedFormats() 292 Return<void> StreamIn::getAudioProperties(getAudioProperties_cb _hidl_cb) { in getAudioProperties() argument 293 mCommon.getAudioProperties(_hidl_cb); in getAudioProperties() 315 Return<void> StreamIn::getDevices(getDevices_cb _hidl_cb) { in getDevices() argument 316 mCommon.getDevices(_hidl_cb); in getDevices() [all …]
|
D | stream_in.h | 52 …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 …]
|
D | device_factory.cpp | 52 openDevice_cb _hidl_cb) { in openDevice() argument 54 _hidl_cb(Result::OK, new PrimaryDevice); in openDevice() 56 mLegacyFactory->openDevice(device, _hidl_cb); in openDevice() 62 Return<void> DevicesFactory::openPrimaryDevice(openPrimaryDevice_cb _hidl_cb) { in openPrimaryDevice() argument 63 _hidl_cb(Result::OK, new PrimaryDevice); in openPrimaryDevice()
|
D | stream_common.h | 45 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/ |
D | health.cpp | 49 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/ |
D | StreamOutImpl.cpp | 208 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 …]
|
D | StreamOutImpl.h | 59 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/ |
D | main.cpp | 32 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/ |
D | Vibrator.cpp | 157 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 …]
|
D | Vibrator.h | 43 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/ |
D | Power.cpp | 67 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/ |
D | Health.cpp | 153 Return<void> getStorageInfo(getStorageInfo_cb _hidl_cb) override; 154 Return<void> getDiskStats(getDiskStats_cb _hidl_cb) override; 168 Return<void> HealthImpl::getStorageInfo(getStorageInfo_cb _hidl_cb) in getStorageInfo() argument 174 _hidl_cb(Result::NOT_SUPPORTED, info_vec); in getStorageInfo() 176 _hidl_cb(Result::SUCCESS, info_vec); in getStorageInfo() 181 Return<void> HealthImpl::getDiskStats(getDiskStats_cb _hidl_cb) in getDiskStats() argument 187 _hidl_cb(Result::NOT_SUPPORTED, stats_vec); in getDiskStats() 189 _hidl_cb(Result::SUCCESS, stats_vec); in getDiskStats()
|
/device/google/sunfish/vibrator/drv2624/ |
D | Vibrator.cpp | 419 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/coral/powerstats/ |
D | RailDataProvider.cpp | 201 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/redbull/powerstats/ |
D | RailDataProvider.cpp | 187 Return<void> RailDataProvider::getRailInfo(IPowerStats::getRailInfo_cb _hidl_cb) { in getRailInfo() argument 194 _hidl_cb(rInfo, Status::NOT_SUPPORTED); in getRailInfo() 205 _hidl_cb(rInfo, ret); in getRailInfo() 208 …der::getEnergyData(const hidl_vec<uint32_t>& railIndices, IPowerStats::getEnergyData_cb _hidl_cb) { in getEnergyData() argument 214 _hidl_cb(eVal, ret); in getEnergyData() 233 _hidl_cb(eVal, ret); in getEnergyData() 237 IPowerStats::streamEnergyData_cb _hidl_cb) { in streamEnergyData() argument 240 _hidl_cb(MessageQueueSync::Descriptor(), in streamEnergyData() 249 _hidl_cb(MessageQueueSync::Descriptor(), in streamEnergyData() 278 _hidl_cb(*(mOdpm.fmqSynchronized)->getDesc(), numSamples, in streamEnergyData()
|
/device/google/sunfish/powerstats/ |
D | RailDataProvider.cpp | 201 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/redbull/health/ |
D | Health.cpp | 174 Return<void> getStorageInfo(getStorageInfo_cb _hidl_cb) override; 175 Return<void> getDiskStats(getDiskStats_cb _hidl_cb) override; 189 Return<void> HealthImpl::getStorageInfo(getStorageInfo_cb _hidl_cb) in getStorageInfo() argument 195 _hidl_cb(Result::NOT_SUPPORTED, info_vec); in getStorageInfo() 197 _hidl_cb(Result::SUCCESS, info_vec); in getStorageInfo() 202 Return<void> HealthImpl::getDiskStats(getDiskStats_cb _hidl_cb) in getDiskStats() argument 208 _hidl_cb(Result::NOT_SUPPORTED, stats_vec); in getDiskStats() 210 _hidl_cb(Result::SUCCESS, stats_vec); in getDiskStats()
|