summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Panicker <apanicke@google.com>2016-03-21 09:57:05 -0700
committerAjay Panicker <apanicke@google.com>2016-03-21 21:25:10 +0000
commitde9f5001004d90267db3c302054f4614832e062d (patch)
tree563c971a7948b799fbbb84f05c0e9a10961ca43e
parentc1f3093377dca7d49e961f9d974c897aabcdc9d7 (diff)
downloadplatform_packages_apps_Test_connectivity-de9f5001004d90267db3c302054f4614832e062d.tar.gz
platform_packages_apps_Test_connectivity-de9f5001004d90267db3c302054f4614832e062d.tar.bz2
platform_packages_apps_Test_connectivity-de9f5001004d90267db3c302054f4614832e062d.zip
Add guest mode functionality (4/5)
Add a flag to enable() to start Bluetooth in restricted mode. In restricted mode, all devices that are paired during restricted mode are deleted upon leaving restricted mode. Right now restricted mode is only entered while a guest user is active Bug: 27410683 Change-Id: I7522a2a52de970bc107e63cb70016d54def14f70
-rw-r--r--sl4n/facades/bluetooth/bluetooth_binder_facade.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sl4n/facades/bluetooth/bluetooth_binder_facade.cpp b/sl4n/facades/bluetooth/bluetooth_binder_facade.cpp
index 51c1644..a15a347 100644
--- a/sl4n/facades/bluetooth/bluetooth_binder_facade.cpp
+++ b/sl4n/facades/bluetooth/bluetooth_binder_facade.cpp
@@ -55,7 +55,7 @@ std::tuple<bool, int> BluetoothBinderFacade::BluetoothBinderEnable() {
LOG(ERROR) << sl4n::kTagStr << ": IBluetooth interface not enabled";
return std::make_tuple(false, sl4n_error_codes::kFailInt);
}
- bool result = bt_iface->Enable();
+ bool result = bt_iface->Enable(false);
if (!result) {
LOG(ERROR) << sl4n::kTagStr << ": Failed to enable the Bluetooth service";
return std::make_tuple(false, sl4n_error_codes::kPassInt);
@@ -172,4 +172,4 @@ std::tuple<int, int> BluetoothBinderFacade::BluetoothBinderSetAdvSettings(
BluetoothBinderFacade::BluetoothBinderFacade() {
adv_settings_count = 0;
manu_data_count = 0;
-} \ No newline at end of file
+}