Home
last modified time | relevance | path

Searched refs:gain (Results 1 – 25 of 48) sorted by relevance

12

/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioFocusTest.java363 int gain = AUDIOFOCUS_GAIN; in rejectedInteractions_focusRequestRejected() local
364 testInteraction(ATTR_INVALID, ATTR_INVALID, interaction, gain, false); in rejectedInteractions_focusRequestRejected()
365 testInteraction(ATTR_INVALID, ATTR_MEDIA, interaction, gain, false); in rejectedInteractions_focusRequestRejected()
366 testInteraction(ATTR_INVALID, ATTR_NAVIGATION, interaction, gain, false); in rejectedInteractions_focusRequestRejected()
367 testInteraction(ATTR_INVALID, ATTR_VOICE_COMMAND, interaction, gain, false); in rejectedInteractions_focusRequestRejected()
368 testInteraction(ATTR_INVALID, ATTR_CALL_RING, interaction, gain, false); in rejectedInteractions_focusRequestRejected()
369 testInteraction(ATTR_INVALID, ATTR_CALL, interaction, gain, false); in rejectedInteractions_focusRequestRejected()
370 testInteraction(ATTR_INVALID, ATTR_ALARM, interaction, gain, false); in rejectedInteractions_focusRequestRejected()
371 testInteraction(ATTR_INVALID, ATTR_NOTIFICATION, interaction, gain, false); in rejectedInteractions_focusRequestRejected()
372 testInteraction(ATTR_INVALID, ATTR_SYSTEM_SOUND, interaction, gain, false); in rejectedInteractions_focusRequestRejected()
[all …]
/packages/modules/Bluetooth/system/embdrv/lc3/test/
Dsns.py32 (self.ind_lf, self.ind_hf, self.shape, self.gain) = \
41 'shape' : self.shape, 'gain' : self.gain,
272 self.gain = np.argmin(dMSE[self.shape])
274 gain = G[self.shape][self.gain]
293 scf_q = st1 + gain * fftpack.idct(xq[self.shape], norm = 'ortho')
316 b.write_uint(self.gain >> gain_lsb_bits, gain_msb_bits)
327 index_joint = self.idx_a + (self.gain & 1) * sz_shape_a
334 index_joint = sz_shape_a + (self.gain & 1) + 2 * self.idx_a
399 gain = G[self.shape][self.gain]
402 + gain * fftpack.idct(y, norm = 'ortho')
[all …]
Dsns_py.c94 int shape, gain; in unquantize_py() local
98 &lfcb_idx, &hfcb_idx, &y_obj, &shape, &gain)) in unquantize_py()
106 (unsigned)gain < (unsigned)lc3_sns_vq_gains[shape].count); in unquantize_py()
110 unquantize(lfcb_idx, hfcb_idx, y, shape, gain, scf); in unquantize_py()
/packages/modules/Bluetooth/system/embdrv/lc3/src/
Dsns.c545 const float *c, int shape, int gain, float *scf) in unquantize() argument
549 float g = lc3_sns_vq_gains[shape].v[gain]; in unquantize()
745 c, cn, &data->shape, &data->gain); in lc3_sns_analyze()
748 cn[data->shape], data->shape, data->gain, scf); in lc3_sns_analyze()
770 unquantize(data->lfcb, data->hfcb, cn, data->shape, data->gain, scf); in lc3_sns_synthesize()
805 2 * (data->idx_b + 1) + data->ls_b : data->gain & 1; in lc3_sns_put_data()
808 lc3_put_bits(bits, data->gain >> submode, 1); in lc3_sns_put_data()
817 data->idx_a : size_a + 2 * data->idx_a + (data->gain & 1); in lc3_sns_put_data()
819 lc3_put_bits(bits, data->gain >> submode, 2); in lc3_sns_put_data()
840 data->gain = lc3_get_bits(bits, 1 + shape_msb); in lc3_sns_get_data()
[all …]
Dtns.c60 const float *x, float *gain, float (*a)[9]) in compute_lpc_coeffs() argument
116 gain[f] = err; in compute_lpc_coeffs()
144 gain[f] /= err; in compute_lpc_coeffs()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/media/
DAudioManagerHelper.java127 AudioGain gain = deviceport.gains()[index]; in getAudioGain() local
128 if ((gain.mode() & AudioGain.MODE_JOINT) != 0) { in getAudioGain()
129 return checkAudioGainConfiguration(gain); in getAudioGain()
390 private AudioGainInfo(AudioGain gain) { in AudioGainInfo() argument
391 mMinGain = gain.minValue(); in AudioGainInfo()
392 mMaxGain = gain.maxValue(); in AudioGainInfo()
393 mDefaultGain = gain.defaultValue(); in AudioGainInfo()
394 mStepValue = gain.stepValue(); in AudioGainInfo()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dbluetooth_audio_port_impl.cc108 .gain = metadata.gain, in updateSourceMetadata()
127 .gain = metadata.gain, in updateSinkMetadata()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DBubbleFunScorer.java73 double gain = shapeFunction(rssi + 0.5) in scoreCandidate() local
80 gain *= LOW_BAND_FACTOR; in scoreCandidate()
95 return new ScoredCandidate(score, TYPICAL_SCAN_RSSI_STD * gain, in scoreCandidate()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/
DA2dpSinkNativeInterface.java141 public void informAudioTrackGain(float gain) { in informAudioTrackGain() argument
142 informAudioTrackGainNative(gain); in informAudioTrackGain()
200 private native void informAudioTrackGainNative(float gain); in informAudioTrackGainNative() argument
DA2dpSinkStreamHandler.java355 private void setFluorideAudioTrackGain(float gain) { in setFluorideAudioTrackGain() argument
356 mNativeInterface.informAudioTrackGain(gain); in setFluorideAudioTrackGain()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioGainMonitor.java78 CarAudioGainConfigInfo gain = gains.get(index); in handleAudioDeviceGainsChanged() local
79 int zone = gain.getZoneId(); in handleAudioDeviceGainsChanged()
83 gainsByZones.get(zone).add(gain); in handleAudioDeviceGainsChanged()
DCarVolumeGroup.java578 void onAudioGainChanged(List<Integer> halReasons, CarAudioGainConfigInfo gain) { in onAudioGainChanged() argument
579 if (getCarAudioDeviceInfoForAddress(gain.getDeviceAddress()) == null) { in onAudioGainChanged()
582 gain.getDeviceAddress(), in onAudioGainChanged()
588 int halIndex = gain.getVolumeIndex(); in onAudioGainChanged()
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperAidl.java329 AudioGainConfigInfo gain = gains[index]; in onAudioDeviceGainsChanged() local
330 carAudioGainConfigs.add(new CarAudioGainConfigInfo(gain)); in onAudioDeviceGainsChanged()
347 .map(gain -> gain.toString()) in onAudioDeviceGainsChanged()
/packages/modules/Bluetooth/system/embdrv/g722/
Dg722_decode.cc264 …22_decode(g722_decode_state_t *s, int16_t amp[], const uint8_t g722_data[], int len, uint16_t gain) in g722_decode() argument
406 xout1 = NLDECOMPRESS_PREPROCESS_SAMPLE_WITH_GAIN((int16_t) __ssat16(xout1 >> 11), gain); in g722_decode()
407 xout2 = NLDECOMPRESS_PREPROCESS_SAMPLE_WITH_GAIN((int16_t) __ssat16(xout2 >> 11), gain); in g722_decode()
/packages/modules/Bluetooth/system/service/
Da2dp_sink.cc104 void A2dpSink::SetAudioTrackGain(float gain) { in SetAudioTrackGain() argument
108 ->set_audio_track_gain(gain); in SetAudioTrackGain()
/packages/modules/Bluetooth/system/bta/le_audio/
Dle_audio_utils.cc163 track.content_type, track.gain); in GetAllowedAudioContextsFromSourceMetadata()
187 audioSourceToStr(track.source), track.source, track.gain, in GetAllowedAudioContextsFromSinkMetadata()
/packages/modules/Bluetooth/system/service/hal/
Dfake_bluetooth_av_interface.cc64 void FakeSetAudioTrackGain(float gain) { in FakeSetAudioTrackGain() argument
65 if (g_a2dp_sink_handler) return g_a2dp_sink_handler->SetAudioTrackGain(gain); in FakeSetAudioTrackGain()
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.kt627 val gain = fractionComplete * 40 - 40 in <lambda>() constant
630 val volume = 10.0.pow(gain / 20f.toDouble()).toFloat() in <lambda>()
633 fractionComplete * 100, volume, gain) in <lambda>()
/packages/modules/Bluetooth/system/service/ipc/binder/
Dbluetooth_a2dp_sink_binder_server.cc138 Status BluetoothA2dpSinkBinderServer::SetAudioTrackGain(float gain, in SetAudioTrackGain() argument
148 a2dp_sink->SetAudioTrackGain(gain); in SetAudioTrackGain()
/packages/apps/Camera2/src/com/android/camera/util/
DCaptureDataSerializer.java200 float gain = lensShading.getGainFactor(ch, c, r); in toString() local
201 str.append(gain); in toString()
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_a2dp_sink.cpp216 jfloat gain) { in informAudioTrackGainNative() argument
218 sBluetoothA2dpInterface->set_audio_track_gain((float)gain); in informAudioTrackGainNative()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_avrcp_audio_track.h54 void BtifAvrcpSetAudioTrackGain(void* handle, float gain);
/packages/modules/Bluetooth/system/btif/src/
Dbtif_avrcp_audio_track_linux.cc32 void BtifAvrcpSetAudioTrackGain(void* handle, float gain) {} in BtifAvrcpSetAudioTrackGain() argument
Dbtif_a2dp_sink.cc733 void btif_a2dp_sink_set_audio_track_gain(float gain) { in btif_a2dp_sink_set_audio_track_gain() argument
734 LOG_INFO("%s: set gain to %f", __func__, gain); in btif_a2dp_sink_set_audio_track_gain()
738 BtifAvrcpSetAudioTrackGain(btif_a2dp_sink_cb.audio_track, gain); in btif_a2dp_sink_set_audio_track_gain()
/packages/modules/Bluetooth/system/service/common/android/bluetooth/
DIBluetoothA2dpSink.aidl30 boolean SetAudioTrackGain(float gain); in SetAudioTrackGain() argument

12