return state_.load() == ADAPTER_STATE_ON;
}
- bool Enable() override {
+ bool Enable(bool start_restricted) override {
AdapterState current_state = GetState();
if (current_state != ADAPTER_STATE_OFF) {
LOG(INFO) << "Adapter not disabled - state: "
state_ = ADAPTER_STATE_TURNING_ON;
NotifyAdapterStateChanged(current_state, state_);
- int status = hal::BluetoothInterface::Get()->GetHALInterface()->enable();
+ int status = hal::BluetoothInterface::Get()->GetHALInterface()->enable(start_restricted);
if (status != BT_STATUS_SUCCESS) {
LOG(ERROR) << "Failed to enable Bluetooth - status: "
<< BtStatusText((const bt_status_t)status);