Use media utility function limitProcessMemory().
Test: restrict mediametrics memory by property, ensure restart
Bug: 152084875
Change-Id: I20b51cecd67e9ac5e03ab34c1c68b1cfd0b8a964
This change:
- Removes the old ISoundTriggerHw service and removes its code.
- Connects AudioPolicyManager to the new service via AIDL RPC (using
a new utility, BinderProxy).
Change-Id: I00366e2c5f252708e903b2311816d9eceb132a05
Bug: 142070343
Impose restrictions to limit effect of excessive memory
allocation.
adb shell setprop audio.maxmem SOME_VALUE_GREATER_THAN_60MB_IN_BYTES
adb shell pkill audioserver
and see what happens when AudioTracks / AudioRecords are created
Test: as above
Bug: 69927864
Change-Id: I0a6a90db3321f066a25fb2fcd01e9f834d199979
Use 4 threads instead of default 1, since audioserver
serves many clients.
Bug: 67203473
Test: audio still works
Change-Id: I7b191974f1a912fd8adf0096c3a1abf33a3d12fa
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
Call the MmapStreamInterface from AudioFlinger instead of the FakeHAL.
Fix sending timestamps from the thread.
Add shared mode in service.
Bug: 35260844
Test: CTS test_aaudio.cpp
Change-Id: I44c7e4ecae4ce205611b6b73a72e0ae8a5b243e5
Signed-off-by: Phil Burk <philburk@google.com>
Start hwbinder threadpool explicitly when starting services
for HIDL HALs using callbacks.
To be reverted when bug 31748996 is fixed.
Bug: 33700240
Test: check callbacks with broadcast radio HAL.
Change-Id: I504e97b6be4f95317ec04cc18df6ae545e74475d
audioflinger, audiopolicy, (fm) radio, soundtrigger moved to audioserver.
medialog is removed from mediaserver.
audioserver has same permissions and rights as mediaserver.
mediaserver is allowed to specify client uid to audioserver.
Subsequent CL will add medialog to audioserver.
TBD: Pare down permissions.
Bug: 24511453
Change-Id: Iccaa08b874a502710d142e72f8abbb3d97c44cfa