audio: Implement setting name and priority in StreamWorker
Audio threads need to be able to set their priority.
Also, traditionally these worker threads set a custom
thread name. Implement this functionality in StreamWorker.
Since initialization steps can fail, implement simple
error reporting via a string field `mError`. The state
of the string field replaces the dedicated `ERROR` worker
state.
Bug: 205884982
Test: atest libaudioaidlcommon_test --iterations
Merged-In: Ie9ab94922d47f277a4993a90b478a2fa76657923
Change-Id: Ie9ab94922d47f277a4993a90b478a2fa76657923
(cherry picked from commit e9e0f7c0f54a013088f4235f182c6f07ab7a4d9f)
diff --git a/audio/aidl/common/Android.bp b/audio/aidl/common/Android.bp
index 6a1c4a4..37da9d6 100644
--- a/audio/aidl/common/Android.bp
+++ b/audio/aidl/common/Android.bp
@@ -30,9 +30,11 @@
export_include_dirs: ["include"],
header_libs: [
"libbase_headers",
+ "libsystem_headers",
],
export_header_lib_headers: [
"libbase_headers",
+ "libsystem_headers",
],
}