OSDN Git Service

audioserver: enable AAudioService for MR1
authorPhil Burk <philburk@google.com>
Fri, 29 Sep 2017 22:06:40 +0000 (15:06 -0700)
committerPhil Burk <philburk@google.com>
Sun, 1 Oct 2017 18:55:50 +0000 (11:55 -0700)
commit5b38eb309cebf994402f0a2461dae763bcd6b81a
treed2b5912b996317cd0594ce61e57da5eda035fd94
parent01fc3aee04547d95b1e28bc03256cd774355ba82
audioserver: enable AAudioService for MR1

Another CL in OC-DEV may have turned it off.
This was added to resolve merge conflicts and to
only enable AAudioService when supported by the vendor.

Bug: 65280854
Bug: 65262790
Test: Enter  adb shell setprop aaudio.mmap_policy 1
Test: Enter  adb shell killall audioserver
Test: Enter  adb shell dumpsys media.aaudio
Test: It should print "Can't find service: media.aaudio".
Test: Enter  adb shell setprop aaudio.mmap_policy 2
Test: Enter  adb shell killall audioserver
Test: Enter  adb shell dumpsys media.aaudio
Test: It should print a short dump because the service is running.

Change-Id: Ic68d136c99c16134aa704495311ab25285fd76a9
media/audioserver/main_audioserver.cpp