Lines Matching refs:bt_iface
256 void HandleDisable(IBluetooth* bt_iface, const vector<string>& args) { in HandleDisable() argument
258 PrintCommandStatus(bt_iface->Disable()); in HandleDisable()
261 void HandleEnable(IBluetooth* bt_iface, const vector<string>& args) { in HandleEnable() argument
279 PrintCommandStatus(bt_iface->Enable(is_restricted_mode)); in HandleEnable()
282 void HandleGetState(IBluetooth* bt_iface, const vector<string>& args) { in HandleGetState() argument
285 bt_iface->GetState()); in HandleGetState()
289 void HandleIsEnabled(IBluetooth* bt_iface, const vector<string>& args) { in HandleIsEnabled() argument
291 bool enabled = bt_iface->IsEnabled(); in HandleIsEnabled()
295 void HandleGetLocalAddress(IBluetooth* bt_iface, const vector<string>& args) { in HandleGetLocalAddress() argument
297 string address = bt_iface->GetAddress(); in HandleGetLocalAddress()
301 void HandleSetLocalName(IBluetooth* bt_iface, const vector<string>& args) { in HandleSetLocalName() argument
310 PrintCommandStatus(bt_iface->SetName(name)); in HandleSetLocalName()
313 void HandleGetLocalName(IBluetooth* bt_iface, const vector<string>& args) { in HandleGetLocalName() argument
315 string name = bt_iface->GetName(); in HandleGetLocalName()
319 void HandleAdapterInfo(IBluetooth* bt_iface, const vector<string>& args) { in HandleAdapterInfo() argument
324 PrintFieldAndValue("\tAddress", bt_iface->GetAddress()); in HandleAdapterInfo()
326 static_cast<bluetooth::AdapterState>(bt_iface->GetState()))); in HandleAdapterInfo()
327 PrintFieldAndValue("\tName", bt_iface->GetName()); in HandleAdapterInfo()
329 bt_iface->IsMultiAdvertisementSupported()); in HandleAdapterInfo()
332 void HandleSupportsMultiAdv(IBluetooth* bt_iface, const vector<string>& args) { in HandleSupportsMultiAdv() argument
335 bool status = bt_iface->IsMultiAdvertisementSupported(); in HandleSupportsMultiAdv()
339 void HandleRegisterBLE(IBluetooth* bt_iface, const vector<string>& args) { in HandleRegisterBLE() argument
352 sp<IBluetoothLowEnergy> ble_iface = bt_iface->GetLowEnergyInterface(); in HandleRegisterBLE()
363 void HandleUnregisterBLE(IBluetooth* bt_iface, const vector<string>& args) { in HandleUnregisterBLE() argument
371 sp<IBluetoothLowEnergy> ble_iface = bt_iface->GetLowEnergyInterface(); in HandleUnregisterBLE()
382 void HandleUnregisterAllBLE(IBluetooth* bt_iface, const vector<string>& args) { in HandleUnregisterAllBLE() argument
385 sp<IBluetoothLowEnergy> ble_iface = bt_iface->GetLowEnergyInterface(); in HandleUnregisterAllBLE()
395 void HandleRegisterGATT(IBluetooth* bt_iface, const vector<string>& args) { in HandleRegisterGATT() argument
408 sp<IBluetoothGattClient> gatt_iface = bt_iface->GetGattClientInterface(); in HandleRegisterGATT()
419 void HandleUnregisterGATT(IBluetooth* bt_iface, const vector<string>& args) { in HandleUnregisterGATT() argument
427 sp<IBluetoothGattClient> gatt_iface = bt_iface->GetGattClientInterface(); in HandleUnregisterGATT()
438 void HandleStartAdv(IBluetooth* bt_iface, const vector<string>& args) { in HandleStartAdv() argument
497 sp<IBluetoothLowEnergy> ble_iface = bt_iface->GetLowEnergyInterface(); in HandleStartAdv()
553 void HandleStopAdv(IBluetooth* bt_iface, const vector<string>& args) { in HandleStopAdv() argument
559 sp<IBluetoothLowEnergy> ble_iface = bt_iface->GetLowEnergyInterface(); in HandleStopAdv()
569 void HandleConnect(IBluetooth* bt_iface, const vector<string>& args) { in HandleConnect() argument
584 sp<IBluetoothLowEnergy> ble_iface = bt_iface->GetLowEnergyInterface(); in HandleConnect()
596 void HandleDisconnect(IBluetooth* bt_iface, const vector<string>& args) { in HandleDisconnect() argument
611 sp<IBluetoothLowEnergy> ble_iface = bt_iface->GetLowEnergyInterface(); in HandleDisconnect()
622 void HandleSetMtu(IBluetooth* bt_iface, const vector<string>& args) { in HandleSetMtu() argument
644 sp<IBluetoothLowEnergy> ble_iface = bt_iface->GetLowEnergyInterface(); in HandleSetMtu()
654 void HandleStartLeScan(IBluetooth* bt_iface, const vector<string>& args) { in HandleStartLeScan() argument
675 sp<IBluetoothLowEnergy> ble_iface = bt_iface->GetLowEnergyInterface(); in HandleStartLeScan()
688 void HandleStopLeScan(IBluetooth* bt_iface, const vector<string>& args) { in HandleStopLeScan() argument
694 sp<IBluetoothLowEnergy> ble_iface = bt_iface->GetLowEnergyInterface(); in HandleStopLeScan()
707 void HandleHelp(IBluetooth* bt_iface, const vector<string>& args);
758 bool ExecuteCommand(sp<IBluetooth> bt_iface, std::string &command) { in ExecuteCommand() argument
773 kCommandMap[i].func(bt_iface.get(), args); in ExecuteCommand()
815 sp<IBluetooth> bt_iface = IBluetooth::getClientInterface(); in main() local
816 if (!bt_iface.get()) { in main()
822 if (android::IInterface::asBinder(bt_iface.get())->linkToDeath(dr) != in main()
835 bt_iface->RegisterCallback(callback); in main()
861 if (!ExecuteCommand(bt_iface, command)) in main()