summaryrefslogtreecommitdiff
path: root/media/jni
diff options
context:
space:
mode:
authorjiabin <jiabin@google.com>2020-08-07 17:27:48 -0700
committerEric Laurent <elaurent@google.com>2020-12-21 17:01:20 +0100
commit9bb4798296e85cf308e322bbfab9f07f5ef882cf (patch)
treeab9d7dc91ed6d5fe45e48f8b49957b9664795b6b /media/jni
parentaea04ec44b3f53de079f17c2d32f994f01721c2f (diff)
Introduce device(s) role for strategy.
Adding interface for set/remove/getDevicesRoleForStrategy. This will be used for setting device(s) role, such as preferred, for strategy. Set/remove/getPreferreDeviceForStrategy are reimplemented by calling the new interfaces. Test: atest AudioHostTest Test: atest AudioServiceHostTest Test: atest AudioServiceTest Test: atest audiopolicy_tests Bug: 160352965 Change-Id: I2ba02c6b50af80846a25010ead05c4ae364868de Merged-In: I2ba02c6b50af80846a25010ead05c4ae364868de
Diffstat (limited to 'media/jni')
-rw-r--r--media/jni/audioeffect/android_media_AudioEffect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/jni/audioeffect/android_media_AudioEffect.cpp b/media/jni/audioeffect/android_media_AudioEffect.cpp
index d55e9d0efffd..0d53ab152129 100644
--- a/media/jni/audioeffect/android_media_AudioEffect.cpp
+++ b/media/jni/audioeffect/android_media_AudioEffect.cpp
@@ -333,7 +333,7 @@ android_media_AudioEffect_native_setup(JNIEnv *env, jobject thiz, jobject weak_t
if (deviceType != AUDIO_DEVICE_NONE) {
device.mType = (audio_devices_t)deviceType;
ScopedUtfChars address(env, deviceAddress);
- device.mAddress = address.c_str();
+ device.setAddress(address.c_str());
}
// create the native AudioEffect object