Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 142ba085 authored by Jasmine Cha's avatar Jasmine Cha Committed by Automerger Merge Worker
Browse files

audio: use binder threadpool am: d90c4742

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1986309

Change-Id: Ie5292a95af1b03719c8e79184bd6d40d5834fd8b
parents 27e3ce4c d90c4742
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -52,6 +52,7 @@ cc_binary {
    shared_libs: [
    shared_libs: [
        "libcutils",
        "libcutils",
        "libbinder",
        "libbinder",
        "libbinder_ndk",
        "libhidlbase",
        "libhidlbase",
        "liblog",
        "liblog",
        "libutils",
        "libutils",
+4 −0
Original line number Original line Diff line number Diff line
@@ -20,6 +20,7 @@
#include <string>
#include <string>
#include <vector>
#include <vector>


#include <android/binder_process.h>
#include <binder/ProcessState.h>
#include <binder/ProcessState.h>
#include <cutils/properties.h>
#include <cutils/properties.h>
#include <hidl/HidlTransportSupport.h>
#include <hidl/HidlTransportSupport.h>
@@ -52,6 +53,9 @@ int main(int /* argc */, char* /* argv */ []) {
    // start a threadpool for vndbinder interactions
    // start a threadpool for vndbinder interactions
    ::android::ProcessState::self()->startThreadPool();
    ::android::ProcessState::self()->startThreadPool();


    ABinderProcess_setThreadPoolMaxThreadCount(1);
    ABinderProcess_startThreadPool();

    const int32_t defaultValue = -1;
    const int32_t defaultValue = -1;
    int32_t value =
    int32_t value =
        property_get_int32("persist.vendor.audio.service.hwbinder.size_kbyte", defaultValue);
        property_get_int32("persist.vendor.audio.service.hwbinder.size_kbyte", defaultValue);