Home
last modified time | relevance | path

Searched refs:audioDevice (Results 1 – 13 of 13) sorted by relevance

/frameworks/av/services/audioflinger/sounddose/tests/
Dsounddosemanager_tests.cpp211 AudioDevice audioDevice = {}; in TEST_F() local
212 audioDevice.address.set<AudioDeviceAddress::id>("test"); in TEST_F()
214 /*in_currentDbA=*/101.f, audioDevice); in TEST_F()
233 AudioDevice audioDevice = {}; in TEST_F() local
234 audioDevice.address.set<AudioDeviceAddress::id>("test"); in TEST_F()
236 /*in_currentDbA=*/101.f, audioDevice); in TEST_F()
254 AudioDevice audioDevice = {}; in TEST_F() local
255 audioDevice.address.set<AudioDeviceAddress::id>("test"); in TEST_F()
256 auto status = halCallback->onNewMelValues(/*in_melRecord=*/{}, audioDevice); in TEST_F()
265 auto audioDevice = aidl::android::legacy2aidl_audio_device_AudioDevice( in TEST_F() local
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidAudioRoutingHelper.java117 for (AudioDeviceInfo audioDevice : audioDevices) { in getMatchedHearingDeviceAttributes()
119 if (audioDevice.getType() == AudioDeviceInfo.TYPE_HEARING_AID in getMatchedHearingDeviceAttributes()
120 || audioDevice.getType() == AudioDeviceInfo.TYPE_BLE_HEADSET) { in getMatchedHearingDeviceAttributes()
121 if (matchAddress(device, audioDevice)) { in getMatchedHearingDeviceAttributes()
122 return new AudioDeviceAttributes(audioDevice); in getMatchedHearingDeviceAttributes()
129 private boolean matchAddress(CachedBluetoothDevice device, AudioDeviceInfo audioDevice) { in matchAddress() argument
130 final String audioDeviceAddress = audioDevice.getAddress(); in matchAddress()
141 AudioDeviceAttributes audioDevice) { in setPreferredDeviceForStrategies() argument
144 status &= mAudioManager.setPreferredDeviceForStrategy(strategy, audioDevice); in setPreferredDeviceForStrategies()
/frameworks/av/services/audioflinger/sounddose/
DSoundDoseManager.cpp209 audio_port_handle_t SoundDoseManager::getIdForAudioDevice(const AudioDevice& audioDevice) const { in getIdForAudioDevice()
222 audioDevice, &type, &address); in getIdForAudioDevice()
501 const media::ISoundDose::AudioDeviceCategory& audioDevice) { in setAudioDeviceCategory() argument
503 audioDevice.address.c_str(), audioDevice.csdCompatible); in setAudioDeviceCategory()
510 std::make_pair(audioDevice.address, in setAudioDeviceCategory()
511 static_cast<audio_devices_t>(audioDevice.internalAudioType))); in setAudioDeviceCategory()
513 deviceIt->second = audioDevice.csdCompatible; in setAudioDeviceCategory()
516 std::make_pair(audioDevice.address, in setAudioDeviceCategory()
517 static_cast<audio_devices_t>(audioDevice.internalAudioType)), in setAudioDeviceCategory()
518 audioDevice.csdCompatible); in setAudioDeviceCategory()
[all …]
DSoundDoseManager.h118 const aidl::android::media::audio::common::AudioDevice& audioDevice) const;
133 const media::ISoundDose::AudioDeviceCategory& audioDevice);
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/spatial/domain/interactor/
DSpatialAudioComponentInteractor.kt66 .map { audioDevice -> in <lambda>() method
67 if (audioDevice is AudioOutputDevice.Unknown) { in <lambda>()
70 audioDevice.getAudioDeviceAttributes() in <lambda>()
/frameworks/av/media/libaudioclient/aidl/android/media/
DISoundDose.aidl80 oneway void setAudioDeviceCategory(in AudioDeviceCategory audioDevice); in setAudioDeviceCategory() argument
/frameworks/base/services/core/java/com/android/server/audio/
DBtHelper.java894 AudioDeviceAttributes audioDevice = btHeadsetDeviceToAudioDevice(btDevice); in handleBtScoActiveDeviceChange() local
897 result |= mDeviceBroker.handleDeviceConnection(audioDevice, isActive, btDevice); in handleBtScoActiveDeviceChange()
906 outDeviceType, audioDevice.getAddress(), audioDevice.getName()), in handleBtScoActiveDeviceChange()
912 inDevice, audioDevice.getAddress(), audioDevice.getName()), in handleBtScoActiveDeviceChange()
916 mResolvedScoAudioDevices.put(btDevice, audioDevice); in handleBtScoActiveDeviceChange()
DAudioDeviceBroker.java854 int audioDevice, @AudioSystem.AudioFormatNativeEnumForBtCodec int codec) { in BtDeviceInfo() argument
862 mAudioSystemDevice = audioDevice; in BtDeviceInfo()
943 int audioDevice; in createBtDeviceInfo() local
947 audioDevice = AudioSystem.DEVICE_IN_BLUETOOTH_A2DP; in createBtDeviceInfo()
950 audioDevice = AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP; in createBtDeviceInfo()
953 audioDevice = AudioSystem.DEVICE_OUT_HEARING_AID; in createBtDeviceInfo()
957 audioDevice = AudioSystem.DEVICE_OUT_BLE_HEADSET; in createBtDeviceInfo()
959 audioDevice = AudioSystem.DEVICE_IN_BLE_HEADSET; in createBtDeviceInfo()
963 audioDevice = AudioSystem.DEVICE_OUT_BLE_BROADCAST; in createBtDeviceInfo()
968 audioDevice = AudioSystem.DEVICE_OUT_BLUETOOTH_SCO; in createBtDeviceInfo()
[all …]
/frameworks/av/services/audiopolicy/fuzzer/
Daudiopolicy_fuzzer.cpp110 std::string audioDevice = toString(enumVal); in __anon6924a65a0502() local
111 if (audio_device_from_string(audioDevice.c_str(), &audioDeviceHal)) { in __anon6924a65a0502()
978 audio_devices_t audioDevice = getValueFromVector<audio_devices_t>(mFdp, kAudioDevices); in testHDMIPortSelection() local
981 audioDevice, AUDIO_POLICY_DEVICE_STATE_AVAILABLE, "" /*address*/, "" /*name*/, audioFormat); in testHDMIPortSelection()
998 mManager->setDeviceConnectionState(audioDevice, AUDIO_POLICY_DEVICE_STATE_UNAVAILABLE, in testHDMIPortSelection()
/frameworks/av/media/libaudioclient/tests/
Daudio_aidl_legacy_conversion_tests.cpp517 AudioDevice audioDevice; in createAudioPortConfigFw() local
518 audioDevice.type = device; in createAudioPortConfigFw()
519 ext.device = audioDevice; in createAudioPortConfigFw()
/frameworks/base/services/core/jni/tvinput/
DJTvInputHal.cpp357 deviceInfo.aidlAudioDevice = aidlTvInputDeviceInfo.audioDevice; in createDeviceInfoWrapper()
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp2618 AudioHwDevice *audioDevice = new AudioHwDevice(handle, name, dev, flags); in loadHwModule_ll() local
2620 mPrimaryHardwareDev = audioDevice; in loadHwModule_ll()
2638 mAudioHwDevs.add(handle, audioDevice); in loadHwModule_ll()
2640 mInputBufferSizeOrderedDevs.insert(audioDevice); in loadHwModule_ll()
2645 return audioDevice; in loadHwModule_ll()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiControlService.java4760 @NonNull AudioDeviceAttributes audioDevice, in onAudioDeviceVolumeChanged()
4810 @NonNull AudioDeviceAttributes audioDevice, in onAudioDeviceVolumeAdjusted()