Home
last modified time | relevance | path

Searched refs:audioConfig (Results 1 – 12 of 12) sorted by relevance

/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/node/
DAudioRtpPayloadNodeTest.cpp116 AudioConfig audioConfig; member in __anona3b31d4a0111::AudioRtpPayloadNodeTest
130 setupNodes(&audioConfig); in SetUp()
171 audioConfig.setMediaDirection(kMediaDirection); in setupAudioConfig()
172 audioConfig.setRemoteAddress(kRemoteAddress); in setupAudioConfig()
173 audioConfig.setRemotePort(kRemotePort); in setupAudioConfig()
174 audioConfig.setRtcpConfig(rtcp); in setupAudioConfig()
175 audioConfig.setDscp(kDscp); in setupAudioConfig()
176 audioConfig.setRxPayloadTypeNumber(kRxPayload); in setupAudioConfig()
177 audioConfig.setTxPayloadTypeNumber(kTxPayload); in setupAudioConfig()
178 audioConfig.setSamplingRateKHz(kSamplingRate); in setupAudioConfig()
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/
DUtils.java108 private static RtpAddress buildRtpAddress(final AudioConfig audioConfig) { in buildRtpAddress() argument
111 addr.ipAddress = audioConfig.getRemoteRtpAddress().getAddress().getHostAddress(); in buildRtpAddress()
112 addr.portNumber = audioConfig.getRemoteRtpAddress().getPort(); in buildRtpAddress()
117 private static DtmfParams buildDtmfParams(final AudioConfig audioConfig) { in buildDtmfParams() argument
120 dtmfParams.txPayloadTypeNumber = audioConfig.getTxDtmfPayloadTypeNumber(); in buildDtmfParams()
121 dtmfParams.rxPayloadTypeNumber = audioConfig.getRxDtmfPayloadTypeNumber(); in buildDtmfParams()
122 dtmfParams.samplingRateKHz = audioConfig.getDtmfSamplingRateKHz(); in buildDtmfParams()
128 buildAmrParams(final AudioConfig audioConfig) { in buildAmrParams() argument
132 amrParams.amrMode = audioConfig.getAmrParams().getAmrMode(); in buildAmrParams()
133 amrParams.octetAligned = audioConfig.getAmrParams().getOctetAligned(); in buildAmrParams()
[all …]
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/
DBluetoothAudioConfigTest.java42 BluetoothAudioConfig audioConfig = new BluetoothAudioConfig( in createBluetoothAudioConfig() local
48 assertThat(audioConfig.getSampleRate()).isEqualTo(TEST_SAMPLE_RATE); in createBluetoothAudioConfig()
49 assertThat(audioConfig.getChannelConfig()).isEqualTo(TEST_CHANNEL_COUNT); in createBluetoothAudioConfig()
50 assertThat(audioConfig.getAudioFormat()).isEqualTo(AudioFormat.ENCODING_PCM_16BIT); in createBluetoothAudioConfig()
78 BluetoothAudioConfig audioConfig = new BluetoothAudioConfig( in bluetoothAudioConfigHashCode() local
84 int hashCode = audioConfig.getSampleRate() | (audioConfig.getChannelConfig() << 24) | ( in bluetoothAudioConfigHashCode()
85 audioConfig.getAudioFormat() << 28); in bluetoothAudioConfigHashCode()
88 assertThat(audioConfig.hashCode()).isEqualTo(hashCode); in bluetoothAudioConfigHashCode()
89 assertThat(audioConfig.describeContents()).isEqualTo(describeContents); in bluetoothAudioConfigHashCode()
94 BluetoothAudioConfig audioConfig = new BluetoothAudioConfig( in bluetoothAudioConfigToString() local
[all …]
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/
DRtpDecoderNodeTests.cpp188 AudioConfig audioConfig; member in RtpDecoderNodeTest
252 audioConfig.setMediaDirection(kMediaDirection); in setupAudioConfig()
253 audioConfig.setRemoteAddress(kRemoteAddress); in setupAudioConfig()
254 audioConfig.setRemotePort(kRemotePort); in setupAudioConfig()
255 audioConfig.setRtcpConfig(rtcp); in setupAudioConfig()
256 audioConfig.setDscp(kDscp); in setupAudioConfig()
257 audioConfig.setRxPayloadTypeNumber(kRxPayload); in setupAudioConfig()
258 audioConfig.setTxPayloadTypeNumber(kTxPayload); in setupAudioConfig()
259 audioConfig.setSamplingRateKHz(kSamplingRate); in setupAudioConfig()
260 audioConfig.setPtimeMillis(kPTimeMillis); in setupAudioConfig()
[all …]
/packages/modules/ImsMedia/tests/unit/src/com/android/telephony/imsmedia/
DImsAudioSessionTest.java61 AudioConfig audioConfig = new AudioConfig.Builder().build(); in testConstructorAndApis() local
62 imsAudioSession.addConfig(audioConfig); in testConstructorAndApis()
63 imsAudioSession.deleteConfig(audioConfig); in testConstructorAndApis()
64 imsAudioSession.modifySession(audioConfig); in testConstructorAndApis()
65 imsAudioSession.confirmConfig(audioConfig); in testConstructorAndApis()
78 verify(mMockIImsAudioSession).addConfig(audioConfig); in testConstructorAndApis()
79 verify(mMockIImsAudioSession).deleteConfig(audioConfig); in testConstructorAndApis()
80 verify(mMockIImsAudioSession).modifySession(audioConfig); in testConstructorAndApis()
81 verify(mMockIImsAudioSession).confirmConfig(audioConfig); in testConstructorAndApis()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dtransport_instance.h40 AudioConfiguration audioConfig) in IBluetoothTransportInstance() argument
41 : session_type_(sessionType), audio_config_(std::move(audioConfig)){}; in IBluetoothTransportInstance()
102 AudioConfiguration audioConfig) in IBluetoothSinkTransportInstance() argument
103 : IBluetoothTransportInstance{sessionType, audioConfig} {} in IBluetoothSinkTransportInstance()
115 AudioConfiguration audioConfig) in IBluetoothSourceTransportInstance() argument
116 : IBluetoothTransportInstance{sessionType, audioConfig} {} in IBluetoothSourceTransportInstance()
Dclient_interface_aidl.h86 bool UpdateAudioConfig(const AudioConfiguration& audioConfig);
/packages/modules/Bluetooth/system/audio_hal_interface/hidl/
Dclient_interface_hidl.h99 AudioConfiguration audioConfig) in IBluetoothTransportInstance() argument
102 audio_config_(std::move(audioConfig)), in IBluetoothTransportInstance()
156 AudioConfiguration audioConfig) in IBluetoothSinkTransportInstance() argument
157 : IBluetoothTransportInstance{sessionType, audioConfig} {} in IBluetoothSinkTransportInstance()
170 AudioConfiguration audioConfig) in IBluetoothSourceTransportInstance() argument
171 : IBluetoothTransportInstance{sessionType, audioConfig} {} in IBluetoothSourceTransportInstance()
217 bool UpdateAudioConfig(const AudioConfiguration& audioConfig);
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/
DAudioStreamGraphRtpTx.cpp181 AudioConfig* audioConfig = reinterpret_cast<AudioConfig*>(config); in createDtmfGraph() local
183 if (audioConfig->getTxDtmfPayloadTypeNumber() == 0) in createDtmfGraph()
190 mConfig = new AudioConfig(*audioConfig); in createDtmfGraph()
195 pDtmfEncoderNode->SetConfig(audioConfig); in createDtmfGraph()
/packages/modules/Bluetooth/system/audio_hal_interface/fuzzer/
Dlibbt_audio_hal_client_interface_fuzzer.cpp428 AudioConfiguration_2_1 audioConfig = {}; in process() local
429 audioConfig.pcmConfig(pcmConfig); in process()
430 audioConfig.codecConfig(codecConfig); in process()
435 mClientIfSink->UpdateAudioConfig_2_1(audioConfig); in process()
442 AudioConfiguration audioConfig = {}; in process() local
443 audioConfig.pcmConfig(pcmConfig); in process()
444 audioConfig.codecConfig(codecConfig); in process()
449 mClientIfSink->UpdateAudioConfig(audioConfig); in process()
/packages/modules/ImsMedia/test/imsmediahal/src/com/android/telephony/testimsmediahal/
DIImsMediaImpl.java89 AudioConfig audioConfig = (AudioConfig) Utils.convertToAudioConfig(config); in openSession() local
90 audioConfig.writeToParcel(parcel, 0); in openSession()
DIImsMediaSessionImpl.java83 AudioConfig audioConfig = Utils.convertToAudioConfig(config); in modifySession() local
84 audioConfig.writeToParcel(parcel, 0); in modifySession()