/system/bt/stack/a2dp/ |
D | a2dp_vendor_ldac.cc | 46 uint8_t sampleRate; /* Sampling Frequency */ member 131 *p_result = (uint8_t)(p_ie->sampleRate & A2DP_LDAC_SAMPLING_FREQ_MASK); in A2DP_BuildInfoLdac() 183 p_ie->sampleRate = *p_codec_info++ & A2DP_LDAC_SAMPLING_FREQ_MASK; in A2DP_ParseInfoLdac() 189 if (A2DP_BitsSet(p_ie->sampleRate) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoLdac() 197 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoLdac() 290 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityLdac() 295 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_NS_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityLdac() 352 return (ldac_cie_a.sampleRate == ldac_cie_b.sampleRate) && in A2DP_VendorCodecEqualsLdac() 396 switch (ldac_cie.sampleRate) { in A2DP_VendorGetTrackSampleRateLdac() 546 AppendField(&field, (ldac_cie.sampleRate == 0), "NONE"); in A2DP_VendorCodecInfoStringLdac() [all …]
|
D | a2dp_aac.cc | 47 uint16_t sampleRate; /* Sampling Frequency */ member 158 if (p_ie->sampleRate == 0) return A2DP_INVALID_PARAMS; in A2DP_BuildInfoAac() 159 *p_result++ = (uint8_t)(p_ie->sampleRate & A2DP_AAC_SAMPLING_FREQ_MASK0); in A2DP_BuildInfoAac() 160 *p_result = (uint8_t)((p_ie->sampleRate & A2DP_AAC_SAMPLING_FREQ_MASK1) >> 8); in A2DP_BuildInfoAac() 204 p_ie->sampleRate = (*p_codec_info & A2DP_AAC_SAMPLING_FREQ_MASK0) | in A2DP_ParseInfoAac() 223 if (A2DP_BitsSet(p_ie->sampleRate) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoAac() 233 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAac() 307 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityAac() 320 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_BAD_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityAac() 377 (aac_cie_a.sampleRate == aac_cie_b.sampleRate) && in A2DP_CodecEqualsAac() [all …]
|
D | a2dp_vendor_aptx_hd.cc | 44 uint8_t sampleRate; /* Sampling Frequency */ member 115 *p_result++ = p_ie->sampleRate | p_ie->channelMode; in A2DP_BuildInfoAptxHd() 166 p_ie->sampleRate = *p_codec_info & 0xF0; in A2DP_ParseInfoAptxHd() 177 if (A2DP_BitsSet(p_ie->sampleRate) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoAptxHd() 185 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAptxHd() 236 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityAptxHd() 241 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_NS_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityAptxHd() 298 return (aptx_hd_cie_a.sampleRate == aptx_hd_cie_b.sampleRate) && in A2DP_VendorCodecEqualsAptxHd() 320 if (aptx_hd_cie.sampleRate == A2DP_APTX_HD_SAMPLERATE_44100) return 44100; in A2DP_VendorGetTrackSampleRateAptxHd() 321 if (aptx_hd_cie.sampleRate == A2DP_APTX_HD_SAMPLERATE_48000) return 48000; in A2DP_VendorGetTrackSampleRateAptxHd() [all …]
|
D | a2dp_vendor_aptx.cc | 44 uint8_t sampleRate; /* Sampling Frequency */ member 108 *p_result++ = p_ie->sampleRate | p_ie->channelMode; in A2DP_BuildInfoAptx() 155 p_ie->sampleRate = *p_codec_info & 0xF0; in A2DP_ParseInfoAptx() 161 if (A2DP_BitsSet(p_ie->sampleRate) == A2DP_SET_ZERO_BIT) in A2DP_ParseInfoAptx() 169 if (A2DP_BitsSet(p_ie->sampleRate) != A2DP_SET_ONE_BIT) in A2DP_ParseInfoAptx() 218 cfg_cie.sampleRate, p_cap->sampleRate); in A2DP_CodecInfoMatchesCapabilityAptx() 223 if ((cfg_cie.sampleRate & p_cap->sampleRate) == 0) return A2DP_NS_SAMP_FREQ; in A2DP_CodecInfoMatchesCapabilityAptx() 284 return (aptx_cie_a.sampleRate == aptx_cie_b.sampleRate) && in A2DP_VendorCodecEqualsAptx() 305 if (aptx_cie.sampleRate == A2DP_APTX_SAMPLERATE_44100) return 44100; in A2DP_VendorGetTrackSampleRateAptx() 306 if (aptx_cie.sampleRate == A2DP_APTX_SAMPLERATE_48000) return 48000; in A2DP_VendorGetTrackSampleRateAptx() [all …]
|
D | a2dp_aac_decoder.cc | 93 if (!info || info->sampleRate <= 0) { in a2dp_aac_decoder_decode_packet()
|
/system/media/audio_utils/include/audio_utils/ |
D | TimestampVerifier.h | 46 constexpr TimestampVerifier(const F (&frames)[N], const T (&timeNs)[N], uint32_t sampleRate) { in TimestampVerifier() argument 48 add(frames[i], timeNs[i], sampleRate); in TimestampVerifier() 60 constexpr void add(F frames, T timeNs, uint32_t sampleRate) { in add() argument 70 && mSampleRate == sampleRate) { in add() 74 if (mDiscontinuity || mSampleRate != sampleRate) { in add() 83 > kDiscontinuityZeroStartThresholdMs * sampleRate / MILLIS_PER_SECOND in add() 96 mSampleRate = sampleRate; in add() 98 assert(sampleRate != 0); in add() 101 || computeRatio(timestamp, mLastTimestamp, sampleRate) in add() 110 const double jitterMs = computeJitterMs(timestamp, mLastTimestamp, sampleRate); in add() [all …]
|
D | PowerLog.h | 54 PowerLog(uint32_t sampleRate,
|
/system/media/audio_utils/spdif/ |
D | DTSFrameScanner.cpp | 109 int32_t sampleRate = kDTSSampleRateTable[sfreq]; in parseHeader() local 110 if (sampleRate < 0) { in parseHeader() 111 ALOGE("DTSFrameScanner: ERROR - invalid sampleRate[%u] = %d", sfreq, sampleRate); in parseHeader() 114 mSampleRate = (uint32_t) sampleRate; in parseHeader()
|
/system/bt/audio_hal_interface/ |
D | codec_status.cc | 55 if ((static_cast<SampleRate>(sbc_capability.sampleRate & in sbc_offloading_capability_match() 56 sbc_config.sampleRate) == in sbc_offloading_capability_match() 90 (static_cast<SampleRate>(aac_capability.sampleRate & in aac_offloading_capability_match() 91 aac_config.sampleRate) == in aac_offloading_capability_match() 112 if ((static_cast<SampleRate>(aptx_capability.sampleRate & in aptx_offloading_capability_match() 113 aptx_config.sampleRate) == in aptx_offloading_capability_match() 132 if ((static_cast<SampleRate>(ldac_capability.sampleRate & in ldac_offloading_capability_match() 133 ldac_config.sampleRate) == in ldac_offloading_capability_match() 225 sbc_config.sampleRate = A2dpCodecToHalSampleRate(current_codec); in A2dpSbcToHalConfig() 226 if (sbc_config.sampleRate == SampleRate::RATE_UNKNOWN) { in A2dpSbcToHalConfig() [all …]
|
D | client_interface_unittest.cc | 168 (pcm_config.sampleRate != SampleRate::RATE_UNKNOWN && in IsSoftwarePcmParametersSupported() 172 (pcm_config.sampleRate & pcm_capabilities.sampleRate && in IsSoftwarePcmParametersSupported() 197 (sbc_config.sampleRate & sbc_capability.sampleRate && in IsCodecOffloadingSupported() 214 aac_config.sampleRate & aac_capability.sampleRate && in IsCodecOffloadingSupported() 228 (ldac_config.sampleRate & ldac_capability.sampleRate && in IsCodecOffloadingSupported() 240 (aptx_config.sampleRate & aptx_capability.sampleRate && in IsCodecOffloadingSupported() 280 pcm_config.sampleRate = sample_rate_pair.hal_sample_rate_; in TEST_F() 349 .sampleRate = sample_rate_pair.hal_sample_rate_, in SbcCodecConfigurationsGenerator() 429 .sampleRate = sample_rate_pair.hal_sample_rate_, in AacCodecConfigurationsGenerator() 496 .sampleRate = sample_rate_pair.hal_sample_rate_, in LdacCodecConfigurationsGenerator() [all …]
|
D | client_interface.h | 163 .sampleRate = SampleRate::RATE_UNKNOWN,
|
D | a2dp_encoding.cc | 296 pcm_config->sampleRate = A2dpCodecToHalSampleRate(current_codec); in a2dp_get_selected_hal_pcm_config() 299 return (pcm_config->sampleRate != SampleRate::RATE_UNKNOWN && in a2dp_get_selected_hal_pcm_config()
|
D | hearing_aid_software_encoding.cc | 136 hal_pcm_config->sampleRate = SampleRate::RATE_16000; in HearingAidGetSelectedHalPcmConfig()
|
/system/chre/core/include/chre/core/ |
D | audio_request_manager.h | 117 uint32_t sampleCount, uint32_t sampleRate) { in getDurationFromSampleCountAndRate() argument 122 return Nanoseconds((sampleCount * kOneSecondInNanoseconds) / sampleRate); in getDurationFromSampleCountAndRate() 135 uint32_t sampleRate, Nanoseconds duration) { in getSampleCountFromRateAndDuration() argument 141 return static_cast<uint32_t>((sampleRate * duration.toRawNanoseconds()) in getSampleCountFromRateAndDuration()
|
/system/chre/chre_api/include/chre_api/chre/ |
D | audio.h | 126 uint32_t sampleRate; member 247 uint32_t sampleRate; member
|
/system/chre/chre_api/legacy/v1_2/chre/ |
D | audio.h | 126 uint32_t sampleRate; member 247 uint32_t sampleRate; member
|
/system/chre/apps/chqts/src/general_test/ |
D | basic_audio_test.cc | 102 } else if (source.sampleRate > kMaxAudioSampleRate in validateAudioSource() 103 || source.sampleRate < kMinAudioSampleRate) { in validateAudioSource() 132 return (source.sampleRate == kRequiredSampleRate in validateMinimumAudioSource()
|
/system/media/audio_utils/tests/ |
D | timestampverifier_tests.cpp | 28 size_t N, uint32_t sampleRate, size_t errors, size_t discontinuities) { in makeVerifier() argument 34 tv.add(f, t, sampleRate); in makeVerifier() 35 f += sampleRate; in makeVerifier()
|
/system/chre/apps/audio_stress_test/ |
D | audio_stress_test.cc | 108 source.name, source.sampleRate, in discoverAudioHandle() 113 if (source.sampleRate == kBufferSampleRate in discoverAudioHandle()
|
/system/chre/platform/android/ |
D | platform_audio.cc | 166 audioSource->sampleRate = kAndroidAudioSampleRate; in getAudioSource() 180 mDataEvent.sampleRate = kAndroidAudioSampleRate; in initAudioDataEvent()
|
/system/chre/platform/linux/ |
D | platform_audio.cc | 117 audioSource->sampleRate = in getAudioSource() 158 source->dataEvent.sampleRate = in addAudioSource()
|
/system/media/audio_utils/ |
D | PowerLog.cpp | 43 PowerLog::PowerLog(uint32_t sampleRate, in PowerLog() argument 53 , mSampleRate(sampleRate) in PowerLog()
|
/system/chre/apps/audio_world/ |
D | audio_world.cc | 127 audioSource.name, audioSource.sampleRate, in nanoappStart()
|
/system/bt/audio_bluetooth_hw/ |
D | device_port_proxy.cc | 275 if (pcm_cfg.sampleRate == SampleRate::RATE_UNKNOWN || in LoadAudioConfig() 280 audio_cfg->sample_rate = SampleRateToAudioFormat(pcm_cfg.sampleRate); in LoadAudioConfig()
|
/system/chre/core/ |
D | audio_request_manager.cc | 130 handle, source.name, mAudioRequestLists[i].available, source.sampleRate, in logStateToBuffer() 166 audioSource.sampleRate, Nanoseconds(bufferDuration)); in validateConfigureSourceArguments()
|