Loading libs/binder/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,6 @@ cc_library_shared { "libcutils", "libutils", "libbinderthreadstate", "libvndksupport", ], header_libs: [ Loading libs/binder/ProcessState.cpp +5 −12 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ #include <utils/String8.h> #include <utils/String8.h> #include <utils/threads.h> #include <vndksupport/linker.h> #include <private/binder/binder_module.h> #include <private/binder/Static.h> Loading @@ -44,22 +43,16 @@ #define BINDER_VM_SIZE ((1 * 1024 * 1024) - sysconf(_SC_PAGE_SIZE) * 2) #define DEFAULT_MAX_BINDER_THREADS 15 const char* kDefaultVendorDriver = "/dev/vndbinder"; #ifdef __ANDROID_VNDK__ const char* kDefaultDriver = "/dev/vndbinder"; #else const char* kDefaultDriver = "/dev/binder"; #endif // ------------------------------------------------------------------------- namespace android { static const char *getDefaultBinderDriver() { // Some libs might have their system variants loaded in a vendor process, so // we cannot depend on a compile time check. if (android_is_in_vendor_process()) { return kDefaultVendorDriver; } return kDefaultDriver; } class PoolThread : public Thread { public: Loading @@ -84,7 +77,7 @@ sp<ProcessState> ProcessState::self() if (gProcess != nullptr) { return gProcess; } gProcess = new ProcessState(getDefaultBinderDriver()); gProcess = new ProcessState(kDefaultDriver); return gProcess; } Loading Loading
libs/binder/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -120,7 +120,6 @@ cc_library_shared { "libcutils", "libutils", "libbinderthreadstate", "libvndksupport", ], header_libs: [ Loading
libs/binder/ProcessState.cpp +5 −12 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ #include <utils/String8.h> #include <utils/String8.h> #include <utils/threads.h> #include <vndksupport/linker.h> #include <private/binder/binder_module.h> #include <private/binder/Static.h> Loading @@ -44,22 +43,16 @@ #define BINDER_VM_SIZE ((1 * 1024 * 1024) - sysconf(_SC_PAGE_SIZE) * 2) #define DEFAULT_MAX_BINDER_THREADS 15 const char* kDefaultVendorDriver = "/dev/vndbinder"; #ifdef __ANDROID_VNDK__ const char* kDefaultDriver = "/dev/vndbinder"; #else const char* kDefaultDriver = "/dev/binder"; #endif // ------------------------------------------------------------------------- namespace android { static const char *getDefaultBinderDriver() { // Some libs might have their system variants loaded in a vendor process, so // we cannot depend on a compile time check. if (android_is_in_vendor_process()) { return kDefaultVendorDriver; } return kDefaultDriver; } class PoolThread : public Thread { public: Loading @@ -84,7 +77,7 @@ sp<ProcessState> ProcessState::self() if (gProcess != nullptr) { return gProcess; } gProcess = new ProcessState(getDefaultBinderDriver()); gProcess = new ProcessState(kDefaultDriver); return gProcess; } Loading