Loading media/libaudioclient/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,6 @@ cc_library { "libaudioclient_aidl_conversion", "libaudioutils", "libbinder", "libbinder_ndk", "libcutils", "liblog", "libutils", Loading media/libaudioclient/PolicyAidlConversion.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -242,6 +242,7 @@ aidl2legacy_AudioMix(const media::AudioMix& aidl) { legacy.mCbFlags = VALUE_OR_RETURN(aidl2legacy_AudioMixCallbackFlag_uint32_t_mask(aidl.cbFlags)); legacy.mAllowPrivilegedMediaPlaybackCapture = aidl.allowPrivilegedMediaPlaybackCapture; legacy.mVoiceCommunicationCaptureAllowed = aidl.voiceCommunicationCaptureAllowed; legacy.mToken = aidl.mToken; return legacy; } Loading @@ -265,6 +266,7 @@ legacy2aidl_AudioMix(const AudioMix& legacy) { aidl.cbFlags = VALUE_OR_RETURN(legacy2aidl_uint32_t_AudioMixCallbackFlag_mask(legacy.mCbFlags)); aidl.allowPrivilegedMediaPlaybackCapture = legacy.mAllowPrivilegedMediaPlaybackCapture; aidl.voiceCommunicationCaptureAllowed = legacy.mVoiceCommunicationCaptureAllowed; aidl.mToken = legacy.mToken; return aidl; } Loading media/libaudioclient/aidl/android/media/AudioMix.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -39,4 +39,6 @@ parcelable AudioMix { boolean allowPrivilegedMediaPlaybackCapture; /** Indicates if the caller can capture voice communication output */ boolean voiceCommunicationCaptureAllowed; /** Identifies the owner of the AudioPolicy that this AudioMix belongs to */ IBinder mToken; } media/libaudioclient/include/media/AudioPolicy.h +2 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #ifndef ANDROID_AUDIO_POLICY_H #define ANDROID_AUDIO_POLICY_H #include <binder/IBinder.h> #include <binder/Parcel.h> #include <media/AudioDeviceTypeAddr.h> #include <system/audio.h> Loading Loading @@ -127,6 +128,7 @@ public: audio_devices_t mDeviceType; String8 mDeviceAddress; uint32_t mCbFlags; // flags indicating which callbacks to use, see kCbFlag* sp<IBinder> mToken; /** Ignore the AUDIO_FLAG_NO_MEDIA_PROJECTION */ bool mAllowPrivilegedMediaPlaybackCapture = false; /** Indicates if the caller can capture voice communication output */ Loading media/libaudioclient/tests/audiorouting_tests.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "AudioRoutingTest" #include <string.h> #include <binder/Binder.h> #include <binder/ProcessState.h> #include <cutils/properties.h> #include <gtest/gtest.h> Loading Loading @@ -149,6 +152,7 @@ class AudioRoutingTest : public ::testing::Test { config.sample_rate = 48000; AudioMix mix(criteria, mixType, config, mixFlag, String8{mAddress.c_str()}, 0); mix.mDeviceType = deviceType; mix.mToken = sp<BBinder>::make(); mMixes.push(mix); if (OK == AudioSystem::registerPolicyMixes(mMixes, true)) { mPolicyMixRegistered = true; Loading Loading
media/libaudioclient/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,6 @@ cc_library { "libaudioclient_aidl_conversion", "libaudioutils", "libbinder", "libbinder_ndk", "libcutils", "liblog", "libutils", Loading
media/libaudioclient/PolicyAidlConversion.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -242,6 +242,7 @@ aidl2legacy_AudioMix(const media::AudioMix& aidl) { legacy.mCbFlags = VALUE_OR_RETURN(aidl2legacy_AudioMixCallbackFlag_uint32_t_mask(aidl.cbFlags)); legacy.mAllowPrivilegedMediaPlaybackCapture = aidl.allowPrivilegedMediaPlaybackCapture; legacy.mVoiceCommunicationCaptureAllowed = aidl.voiceCommunicationCaptureAllowed; legacy.mToken = aidl.mToken; return legacy; } Loading @@ -265,6 +266,7 @@ legacy2aidl_AudioMix(const AudioMix& legacy) { aidl.cbFlags = VALUE_OR_RETURN(legacy2aidl_uint32_t_AudioMixCallbackFlag_mask(legacy.mCbFlags)); aidl.allowPrivilegedMediaPlaybackCapture = legacy.mAllowPrivilegedMediaPlaybackCapture; aidl.voiceCommunicationCaptureAllowed = legacy.mVoiceCommunicationCaptureAllowed; aidl.mToken = legacy.mToken; return aidl; } Loading
media/libaudioclient/aidl/android/media/AudioMix.aidl +2 −0 Original line number Diff line number Diff line Loading @@ -39,4 +39,6 @@ parcelable AudioMix { boolean allowPrivilegedMediaPlaybackCapture; /** Indicates if the caller can capture voice communication output */ boolean voiceCommunicationCaptureAllowed; /** Identifies the owner of the AudioPolicy that this AudioMix belongs to */ IBinder mToken; }
media/libaudioclient/include/media/AudioPolicy.h +2 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #ifndef ANDROID_AUDIO_POLICY_H #define ANDROID_AUDIO_POLICY_H #include <binder/IBinder.h> #include <binder/Parcel.h> #include <media/AudioDeviceTypeAddr.h> #include <system/audio.h> Loading Loading @@ -127,6 +128,7 @@ public: audio_devices_t mDeviceType; String8 mDeviceAddress; uint32_t mCbFlags; // flags indicating which callbacks to use, see kCbFlag* sp<IBinder> mToken; /** Ignore the AUDIO_FLAG_NO_MEDIA_PROJECTION */ bool mAllowPrivilegedMediaPlaybackCapture = false; /** Indicates if the caller can capture voice communication output */ Loading
media/libaudioclient/tests/audiorouting_tests.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,9 @@ //#define LOG_NDEBUG 0 #define LOG_TAG "AudioRoutingTest" #include <string.h> #include <binder/Binder.h> #include <binder/ProcessState.h> #include <cutils/properties.h> #include <gtest/gtest.h> Loading Loading @@ -149,6 +152,7 @@ class AudioRoutingTest : public ::testing::Test { config.sample_rate = 48000; AudioMix mix(criteria, mixType, config, mixFlag, String8{mAddress.c_str()}, 0); mix.mDeviceType = deviceType; mix.mToken = sp<BBinder>::make(); mMixes.push(mix); if (OK == AudioSystem::registerPolicyMixes(mMixes, true)) { mPolicyMixRegistered = true; Loading