mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:23:37 +00:00
Bluetooth: Add a second thread for the scheduler
Test: service call bluetooth_manager 6 # (Stop Bluetooth)
/data/nativetest64/VtsHalBluetoothV1_0TargetTest/\
VtsHalBluetoothV1_0TargetTest
Bug: 38178265, 34461621
Change-Id: Ia8f6683ca47c9deac43d1047846caee5688f1eca
(cherry picked from commit 74c601361c)
This commit is contained in:
@@ -20,10 +20,13 @@
|
||||
|
||||
#include <hidl/LegacySupport.h>
|
||||
|
||||
// Add an extra thread for calls to the scheduler service.
|
||||
static const size_t kMaxThreads = 2;
|
||||
|
||||
// Generated HIDL files
|
||||
using android::hardware::bluetooth::V1_0::IBluetoothHci;
|
||||
using android::hardware::defaultPassthroughServiceImplementation;
|
||||
|
||||
int main() {
|
||||
return defaultPassthroughServiceImplementation<IBluetoothHci>();
|
||||
return defaultPassthroughServiceImplementation<IBluetoothHci>(kMaxThreads);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user