/frameworks/av/media/libmediahelper/ |
D | AudioParameter.cpp | 29 const char * const AudioParameter::keyRouting = AUDIO_PARAMETER_STREAM_ROUTING; 30 const char * const AudioParameter::keySamplingRate = AUDIO_PARAMETER_STREAM_SAMPLING_RATE; 31 const char * const AudioParameter::keyFormat = AUDIO_PARAMETER_STREAM_FORMAT; 32 const char * const AudioParameter::keyChannels = AUDIO_PARAMETER_STREAM_CHANNELS; 33 const char * const AudioParameter::keyFrameCount = AUDIO_PARAMETER_STREAM_FRAME_COUNT; 34 const char * const AudioParameter::keyInputSource = AUDIO_PARAMETER_STREAM_INPUT_SOURCE; 35 const char * const AudioParameter::keyScreenState = AUDIO_PARAMETER_KEY_SCREEN_STATE; 36 const char * const AudioParameter::keyScreenRotation = AUDIO_PARAMETER_KEY_ROTATION; 37 const char * const AudioParameter::keyClosing = AUDIO_PARAMETER_KEY_CLOSING; 38 const char * const AudioParameter::keyExiting = AUDIO_PARAMETER_KEY_EXITING; [all …]
|
D | Android.bp | 35 "AudioParameter.cpp",
|
/frameworks/av/media/libaudiohal/impl/ |
D | CoreConversionHelperHidl.cpp | 34 AudioParameter halKeys(keys); in keysFromHal() 42 (halKeys.get(String8(AudioParameter::keyStreamSupportedChannels), value) == NO_ERROR || in keysFromHal() 43 halKeys.get(String8(AudioParameter::keyStreamSupportedSamplingRates), value) == NO_ERROR); in keysFromHal() 54 halKeys.get(String8(AudioParameter::keyAdditionalOutputDeviceDelay), in keysFromHal() 56 halKeys.get(String8(AudioParameter::keyMaxAdditionalOutputDeviceDelay), in keysFromHal() 63 if ((keepFormatValue && key == AudioParameter::keyFormat) || in keysFromHal() 64 (keepRoutingValue && key == AudioParameter::keyRouting) || in keysFromHal() 65 (keepDelayValue && key == AudioParameter::keyAdditionalOutputDeviceDelay) || in keysFromHal() 66 (keepDelayValue && key == AudioParameter::keyMaxAdditionalOutputDeviceDelay)) { in keysFromHal() 67 AudioParameter keepValueParam; in keysFromHal() [all …]
|
D | DeviceHalAidl.cpp | 236 AudioParameter parameters(kvPairs); in setParameters() 267 AudioParameter parameterKeys(keys), result; in getParameters() 1045 AudioParameter &keys, AudioParameter *result) { in filterAndRetrieveBtA2dpParameters() 1046 if (String8 key = String8(AudioParameter::keyReconfigA2dpSupported); keys.containsKey(key)) { in filterAndRetrieveBtA2dpParameters() 1062 AudioParameter &keys, AudioParameter *result) { in filterAndRetrieveBtLeParameters() 1063 if (String8 key = String8(AudioParameter::keyReconfigLeSupported); keys.containsKey(key)) { in filterAndRetrieveBtLeParameters() 1078 status_t DeviceHalAidl::filterAndUpdateBtA2dpParameters(AudioParameter ¶meters) { in filterAndUpdateBtA2dpParameters() 1082 parameters, String8(AudioParameter::keyBtA2dpSuspended), in filterAndUpdateBtA2dpParameters() 1084 if (trueOrFalse == AudioParameter::valueTrue) { in filterAndUpdateBtA2dpParameters() 1087 } else if (trueOrFalse == AudioParameter::valueFalse) { in filterAndUpdateBtA2dpParameters() [all …]
|
D | DeviceHalAidl.h | 209 status_t filterAndRetrieveBtA2dpParameters(AudioParameter &keys, AudioParameter *result); 210 status_t filterAndRetrieveBtLeParameters(AudioParameter &keys, AudioParameter *result); 211 status_t filterAndUpdateBtA2dpParameters(AudioParameter ¶meters); 212 status_t filterAndUpdateBtHfpParameters(AudioParameter ¶meters); 213 status_t filterAndUpdateBtLeParameters(AudioParameter ¶meters); 214 status_t filterAndUpdateBtScoParameters(AudioParameter ¶meters); 215 status_t filterAndUpdateScreenParameters(AudioParameter ¶meters); 216 status_t filterAndUpdateTelephonyParameters(AudioParameter ¶meters);
|
D | ConversionHelperAidl.h | 67 AudioParameter& parameters, const String8& key, const F& action) { in filterOutAndProcessParameter() 88 const AudioParameter& parameterKeys, 93 const AudioParameter& parameters);
|
D | ConversionHelperAidl.cpp | 35 const AudioParameter& parameterKeys, in parseAndGetVendorParameters() 66 AudioParameter reparse(String8(vendorParameters.c_str())); in parseAndGetVendorParameters() 80 const AudioParameter& parameters) { in parseAndSetVendorParameters()
|
D | StreamHalHidl.cpp | 309 AudioParameter param = AudioParameter(String8(address.get())); in legacyCreateAudioPatch() 310 param.addInt(String8(AudioParameter::keyRouting), (int)type); in legacyCreateAudioPatch() 312 param.addInt(String8(AudioParameter::keyInputSource), (int)source.value()); in legacyCreateAudioPatch() 319 AudioParameter param; in legacyReleaseAudioPatch() 320 param.addInt(String8(AudioParameter::keyRouting), 0); in legacyReleaseAudioPatch() 434 parameters.push_back({AudioParameter::keyPresentationId, std::to_string(presentationId)}); in selectPresentation() 435 parameters.push_back({AudioParameter::keyProgramId, std::to_string(programId)}); in selectPresentation() 1019 AudioParameter param; in exit() 1020 param.addInt(String8(AudioParameter::keyExiting), 1); in exit() 1021 param.add(String8(AudioParameter::keyClosing), String8(AudioParameter::valueTrue)); in exit()
|
D | DeviceHalHidl.cpp | 709 AudioParameter replyParams(reply); in supportsBluetoothVariableLatency() 716 *supports = trueOrFalse == AudioParameter::valueTrue; in supportsBluetoothVariableLatency() 737 AudioParameter repliedParameters(*reply); in getParametersFromStream() 775 stream, AudioParameter::keyStreamSupportedFormats, nullptr /*extraParameters*/, in getAudioMixPort() 788 AudioParameter formatParameter; in getAudioMixPort() 789 formatParameter.addInt(String8(AudioParameter::keyFormat), format); in getAudioMixPort() 793 stream, AudioParameter::keyStreamSupportedSamplingRates, in getAudioMixPort() 808 stream, AudioParameter::keyStreamSupportedChannels, in getAudioMixPort()
|
D | StreamHalAidl.cpp | 141 AudioParameter parameters(kvPairs); in setParameters() 145 parameters, String8(AudioParameter::keyStreamHwAvSync), in setParameters() 158 AudioParameter parameterKeys(keys), result; in getParameters() 690 AudioParameter parameters(kvPairs); in setParameters() 966 status_t StreamOutHalAidl::filterAndUpdateOffloadMetadata(AudioParameter ¶meters) { in filterAndUpdateOffloadMetadata() 970 parameters, String8(AudioParameter::keyOffloadCodecAverageBitRate), in filterAndUpdateOffloadMetadata() 978 parameters, String8(AudioParameter::keyOffloadCodecSampleRate), in filterAndUpdateOffloadMetadata() 985 parameters, String8(AudioParameter::keyOffloadCodecChannels), in filterAndUpdateOffloadMetadata() 1001 parameters, String8(AudioParameter::keyOffloadCodecDelaySamples), in filterAndUpdateOffloadMetadata() 1009 parameters, String8(AudioParameter::keyOffloadCodecPaddingSamples), in filterAndUpdateOffloadMetadata()
|
D | StreamHalAidl.h | 414 status_t filterAndUpdateOffloadMetadata(AudioParameter ¶meters);
|
/frameworks/av/media/libmediahelper/include/media/ |
D | AudioParameter.h | 26 class AudioParameter { 29 AudioParameter() {} in AudioParameter() function 30 AudioParameter(const String8& keyValuePairs); 31 virtual ~AudioParameter();
|
D | TypeConverter.h | 75 const char *del = AudioParameter::valueListSeparator) 97 const char *del = AudioParameter::valueListSeparator); 100 const std::string &str, const char *del = AudioParameter::valueListSeparator); 104 const char *del = AudioParameter::valueListSeparator); 459 const std::string &samplingRates, const char *del = AudioParameter::valueListSeparator); 462 const std::string &formats, const char *del = AudioParameter::valueListSeparator); 470 const std::string &channels, const char *del = AudioParameter::valueListSeparator); 473 const std::string &inChannels, const char *del = AudioParameter::valueListSeparator); 476 const std::string &outChannels, const char *del = AudioParameter::valueListSeparator);
|
/frameworks/av/services/audiopolicy/tests/ |
D | AudioPolicyManagerTestClient.h | 199 AudioParameter mAudioParameters; in getParameters() 206 String8(AudioParameter::keyStreamSupportedFormats), in getParameters() 208 mAudioParameters.addInt(String8(AudioParameter::keyStreamSupportedSamplingRates), 48000); in getParameters() 218 String8(AudioParameter::keyStreamSupportedChannels), String8(channelMasks.c_str())); in getParameters()
|
/frameworks/av/media/libaudiohal/tests/ |
D | CoreAudioHalAidl_test.cpp | 529 android::AudioParameter keys(android::String8(in_rawKeys.c_str())); in parseVendorParameterIds() 560 android::AudioParameter legacy(android::String8(in_rawKeysAndValues.c_str())); in parseVendorParameters() 600 android::AudioParameter legacy; in processVendorParameters() 629 android::AudioParameter params; in createParameterString() 635 android::AudioParameter params; in createParameterString() 726 EXPECT_EQ(OK, mDevice->setParameters(createParameterString(AudioParameter::keyScreenState, in TEST_F() 727 AudioParameter::valueOn))); in TEST_F() 729 EXPECT_EQ(OK, mDevice->setParameters(createParameterString(AudioParameter::keyScreenState, in TEST_F() 730 AudioParameter::valueOff))); in TEST_F() 734 createParameterString(AudioParameter::keyScreenState, "blah"))); in TEST_F() [all …]
|
/frameworks/av/services/audioflinger/ |
D | AudioFlinger.cpp | 1753 String8(AudioParameter::keyRouting), in filterReservedParameters() 1754 String8(AudioParameter::keySamplingRate), in filterReservedParameters() 1755 String8(AudioParameter::keyFormat), in filterReservedParameters() 1756 String8(AudioParameter::keyChannels), in filterReservedParameters() 1757 String8(AudioParameter::keyFrameCount), in filterReservedParameters() 1758 String8(AudioParameter::keyInputSource), in filterReservedParameters() 1759 String8(AudioParameter::keyMonoOutput), in filterReservedParameters() 1760 String8(AudioParameter::keyDeviceConnect), in filterReservedParameters() 1761 String8(AudioParameter::keyDeviceDisconnect), in filterReservedParameters() 1762 String8(AudioParameter::keyStreamSupportedFormats), in filterReservedParameters() [all …]
|
D | Threads.cpp | 788 AudioParameter param(keyValuePair); in sendSetParameterConfigEvent_l() 790 if (param.getInt(String8(AudioParameter::keyMonoOutput), value) == NO_ERROR) { in sendSetParameterConfigEvent_l() 795 param.remove(String8(AudioParameter::keyMonoOutput)); in sendSetParameterConfigEvent_l() 6409 AudioParameter param = AudioParameter(keyValuePair); in checkForNewParameter_l() 6411 if (param.getInt(String8(AudioParameter::keySamplingRate), value) == NO_ERROR) { in checkForNewParameter_l() 6414 if (param.getInt(String8(AudioParameter::keyFormat), value) == NO_ERROR) { in checkForNewParameter_l() 6422 if (param.getInt(String8(AudioParameter::keyChannels), value) == NO_ERROR) { in checkForNewParameter_l() 6430 if (param.getInt(String8(AudioParameter::keyFrameCount), value) == NO_ERROR) { in checkForNewParameter_l() 6440 if (param.getInt(String8(AudioParameter::keyRouting), value) == NO_ERROR) { in checkForNewParameter_l() 7099 AudioParameter param = AudioParameter(keyValuePair); in checkForNewParameter_l() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | DeviceDescriptor.cpp | 179 AudioParameter param(String8(mDeviceTypeAddr.getAddress())); in setEncapsulationInfoFromHal() 180 param.addInt(String8(AudioParameter::keyRouting), mDeviceTypeAddr.mType); in setEncapsulationInfoFromHal() 184 AudioParameter repliedParameters(reply); in setEncapsulationInfoFromHal()
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | AudioPolicyManager.h | 1247 AudioParameter param; in updateMono() 1248 param.addInt(String8(AudioParameter::keyMonoOutput), (int)mMasterMono); in updateMono()
|
D | AudioPolicyManager.cpp | 552 const String8 supportKey = isA2dp ? String8(AudioParameter::keyReconfigA2dpSupported) in handleDeviceConfigChange() 553 : String8(AudioParameter::keyReconfigLeSupported); in handleDeviceConfigChange() 555 AudioParameter repliedParameters(reply); in handleDeviceConfigChange() 559 const String8 key = isA2dp ? String8(AudioParameter::keyReconfigA2dp) in handleDeviceConfigChange() 560 : String8(AudioParameter::keyReconfigLe); in handleDeviceConfigChange() 561 AudioParameter param; in handleDeviceConfigChange()
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyService.cpp | 2416 AudioParameter param = AudioParameter(data->mKeyValuePairs); in insertCommand_l() 2417 AudioParameter param2 = AudioParameter(data2->mKeyValuePairs); in insertCommand_l()
|
/frameworks/base/core/jni/ |
D | android_media_AudioTrack.cpp | 1317 AudioParameter param = AudioParameter(); in android_media_AudioTrack_set_delay_padding()
|
/frameworks/av/media/libaudioclient/ |
D | AudioTrack.cpp | 3030 AudioParameter param = AudioParameter(); in selectPresentation() 3031 param.addInt(String8(AudioParameter::keyPresentationId), presentationId); in selectPresentation() 3032 param.addInt(String8(AudioParameter::keyProgramId), programId); in selectPresentation()
|
/frameworks/av/media/libstagefright/ |
D | Utils.cpp | 2313 AudioParameter param = AudioParameter(); in sendMetaDataToHal()
|