Home
last modified time | relevance | path

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

123

/packages/services/Car/service/src/com/android/car/audio/hal/
DHalAudioDeviceInfo.java159 AudioGain gain = Objects.requireNonNull(gains[index], "Audio gain can not be null"); in getAudioGain() local
160 if (gain.mode == JOINT) { in getAudioGain()
161 return checkAudioGainConfiguration(gain); in getAudioGain()
167 private static AudioGain checkAudioGainConfiguration(AudioGain gain) { in checkAudioGainConfiguration() argument
168 Preconditions.checkArgument(gain.maxValue >= gain.minValue, in checkAudioGainConfiguration()
170 gain.maxValue, gain.minValue); in checkAudioGainConfiguration()
171 Preconditions.checkArgument((gain.defaultValue >= gain.minValue) in checkAudioGainConfiguration()
172 && (gain.defaultValue <= gain.maxValue), in checkAudioGainConfiguration()
173 "Default gain %d not in range (%d,%d)", gain.defaultValue, in checkAudioGainConfiguration()
174 gain.minValue, gain.maxValue); in checkAudioGainConfiguration()
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_avrcp_audio_track.cc45 float gain; member
123 trackHolder->gain = kMaxTrackGain; in BtifAvrcpAudioTrackCreate()
185 void BtifAvrcpSetAudioTrackGain(void* handle, float gain) { in BtifAvrcpSetAudioTrackGain() argument
192 const float clampedGain = std::clamp(gain, kMinTrackGain, kMaxTrackGain); in BtifAvrcpSetAudioTrackGain()
193 if (clampedGain != gain) { in BtifAvrcpSetAudioTrackGain()
195 gain, clampedGain); in BtifAvrcpSetAudioTrackGain()
197 trackHolder->gain = clampedGain; in BtifAvrcpSetAudioTrackGain()
198 log::info("Avrcp audio track gain is set to {:f}", trackHolder->gain); in BtifAvrcpSetAudioTrackGain()
214 const float scaledGain = trackHolder->gain * kScaleQ15ToFloat; in transcodeQ15ToFloat()
225 const float scaledGain = trackHolder->gain * kScaleQ23ToFloat; in transcodeQ23ToFloat()
[all …]
Dbtif_avrcp_audio_track_linux.cc32 void BtifAvrcpSetAudioTrackGain(void* handle, float gain) {} in BtifAvrcpSetAudioTrackGain() argument
/packages/modules/Bluetooth/system/btif/test/
Dbtif_avrcp_audio_track_test.cc42 float gain; member
52 EXPECT_EQ(trackHolder->gain, 1.0f); in TEST_F()
61 EXPECT_EQ(trackHolder->gain, 0.0f); in TEST_F()
71 EXPECT_EQ(trackHolder->gain, 1.0f); in TEST_F()
81 EXPECT_EQ(trackHolder->gain, 0.0f); in TEST_F()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDeviceInfo.java273 int gain = gainInMillibels; in setCurrentGain() local
276 if (gain < mMinGain) { in setCurrentGain()
277 gain = mMinGain; in setCurrentGain()
278 } else if (gain > mMaxGain) { in setCurrentGain()
279 gain = mMaxGain; in setCurrentGain()
283 if (mAudioManager.setAudioDeviceGain(getAddress(), gain, true)) { in setCurrentGain()
287 mCurrentGain = gain; in setCurrentGain()
290 Slogf.e(CarLog.TAG_AUDIO, "Failed to setAudioPortGain " + gain in setCurrentGain()
DCarAudioGainMonitor.java83 CarAudioGainConfigInfo gain = gains.get(index); in handleAudioDeviceGainsChanged() local
84 int zone = gain.getZoneId(); in handleAudioDeviceGainsChanged()
88 gainsByZones.get(zone).add(gain); in handleAudioDeviceGainsChanged()
DAudioManagerWrapper.java86 boolean setAudioDeviceGain(String address, int gain, boolean isOutput) { in setAudioDeviceGain() argument
87 return AudioManagerHelper.setAudioDeviceGain(mAudioManager, address, gain, isOutput); in setAudioDeviceGain()
/packages/modules/Bluetooth/floss/pandora/floss/
Dsox_utils.py54 gain=None, argument
85 if gain is not None:
86 args += ['gain', str(gain)]
/packages/services/Car/car-builtin-lib/src/android/car/builtin/media/
DAudioManagerHelper.java126 AudioGain gain = deviceport.gains()[index]; in getAudioGain() local
127 if ((gain.mode() & AudioGain.MODE_JOINT) != 0) { in getAudioGain()
128 return checkAudioGainConfiguration(gain); in getAudioGain()
376 private AudioGainInfo(AudioGain gain) { in AudioGainInfo() argument
377 mMinGain = gain.minValue(); in AudioGainInfo()
378 mMaxGain = gain.maxValue(); in AudioGainInfo()
379 mDefaultGain = gain.defaultValue(); in AudioGainInfo()
380 mStepValue = gain.stepValue(); in AudioGainInfo()
/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.java138 public void informAudioTrackGain(float gain) { in informAudioTrackGain() argument
139 informAudioTrackGainNative(gain); in informAudioTrackGain()
187 private native void informAudioTrackGainNative(float gain); in informAudioTrackGainNative() argument
DA2dpSinkStreamHandler.java342 private void setFluorideAudioTrackGain(float gain) { in setFluorideAudioTrackGain() argument
343 mNativeInterface.informAudioTrackGain(gain); in setFluorideAudioTrackGain()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dbluetooth_audio_port_impl.cc115 .gain = track.gain}, in updateSourceMetadata()
173 .gain = track.gain, in updateSinkMetadata()
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_e2e_tests/attribution_scope/
Dattribution_scope_information_gain.json9 // Rejected due to information gain too high.
46 // Rejected due to information gain too high.
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcManager.java459 int gain = -1; in notifyPollingLoopFrame() local
461 gain = Byte.toUnsignedInt(p_data[pos + TLV_gain_offset]); in notifyPollingLoopFrame()
462 if (gain == 0XFF) { in notifyPollingLoopFrame()
463 gain = -1; in notifyPollingLoopFrame()
472 frames.add(new PollingFrame(frameType, frameData, gain, timestamp, false)); in notifyPollingLoopFrame()
/packages/modules/Bluetooth/system/embdrv/g722/fuzzer/
Dg722_fuzzer.cc91 uint16_t gain = fdp->ConsumeIntegral<uint16_t>(); in fuzz_decode() local
106 encoded_input.size(), gain); in fuzz_decode()
/packages/modules/Bluetooth/system/audio_hal_interface/
Daudio_linux.h258 float gain; // Normalized linear volume. 0=silence, 1=0dbfs... member
264 float gain; // Normalized linear volume. 0=silence, 1=0dbfs... member
/packages/modules/Bluetooth/system/embdrv/g722/
Dg722_decode.cc263 …22_decode(g722_decode_state_t *s, int16_t amp[], const uint8_t g722_data[], int len, uint16_t gain) in g722_decode() argument
405 xout1 = NLDECOMPRESS_PREPROCESS_SAMPLE_WITH_GAIN((int16_t) __ssat16(xout1 >> 11), gain); in g722_decode()
406 xout2 = NLDECOMPRESS_PREPROCESS_SAMPLE_WITH_GAIN((int16_t) __ssat16(xout2 >> 11), gain); in g722_decode()
/packages/modules/Bluetooth/system/gd/rust/topshim/le_audio/
Dle_audio_shim.cc527 .gain = static_cast<float>(m.gain), in source_metadata_changed()
559 .gain = static_cast<float>(m.gain), in sink_metadata_changed()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioDeviceInfoTest.java332 AudioGain gain = new AudioGain() {{ in hash_forTheSameHalAudioDeviceInfos_equals() local
346 .that(Objects.hash(PORT_NAME, gain, OUT_DEVICE, CONNECTION_BUS, in hash_forTheSameHalAudioDeviceInfos_equals()
353 AudioGain gain = new AudioGain() {{ in hash_withDifferentAudioGains_notEquals() local
367 .that(Objects.hash(PORT_NAME, gain, OUT_DEVICE, CONNECTION_BUS, ADDRESS_BUS_MEDIA)) in hash_withDifferentAudioGains_notEquals()
/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/btif/include/
Dbtif_avrcp_audio_track.h54 void BtifAvrcpSetAudioTrackGain(void* handle, float gain);
/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/AdServices/adservices/tests/unittest/service-core/assets/msmt_e2e_tests/flex_event/
Dflex_event_with_coarse_destinations.json41 // coarse_event_report_destinations, which increases information gain beyond the limit.
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_e2e_tests/flex_lite/
Dflex_lite_with_coarse_destinations.json30 // coarse_event_report_destinations, which increases information gain beyond the limit.

123