Lines Matching refs:bt_iface

384 void HandleDisable(IBluetooth* bt_iface, const vector<string>& args) {  in HandleDisable()  argument
387 bt_iface->Disable(&status); in HandleDisable()
391 void HandleEnable(IBluetooth* bt_iface, const vector<string>& args) { in HandleEnable() argument
393 bt_iface->Enable(&status); in HandleEnable()
397 void HandleGetState(IBluetooth* bt_iface, const vector<string>& args) { in HandleGetState() argument
401 bt_iface->GetState(&st); in HandleGetState()
406 void HandleIsEnabled(IBluetooth* bt_iface, const vector<string>& args) { in HandleIsEnabled() argument
409 bt_iface->IsEnabled(&enabled); in HandleIsEnabled()
413 void HandleGetLocalAddress(IBluetooth* bt_iface, const vector<string>& args) { in HandleGetLocalAddress() argument
416 bt_iface->GetAddress(&address); in HandleGetLocalAddress()
420 void HandleSetLocalName(IBluetooth* bt_iface, const vector<string>& args) { in HandleSetLocalName() argument
429 bt_iface->SetName(String16(String8(name.c_str())), &status); in HandleSetLocalName()
433 void HandleGetLocalName(IBluetooth* bt_iface, const vector<string>& args) { in HandleGetLocalName() argument
436 bt_iface->GetName(&name); in HandleGetLocalName()
440 void HandleAdapterInfo(IBluetooth* bt_iface, const vector<string>& args) { in HandleAdapterInfo() argument
446 bt_iface->GetAddress(&address); in HandleAdapterInfo()
450 bt_iface->GetState(&adapter_state); in HandleAdapterInfo()
456 bt_iface->GetName(&name); in HandleAdapterInfo()
460 bt_iface->IsMultiAdvertisementSupported(&multi_adv); in HandleAdapterInfo()
464 void HandleSupportsMultiAdv(IBluetooth* bt_iface, const vector<string>& args) { in HandleSupportsMultiAdv() argument
468 bt_iface->IsMultiAdvertisementSupported(&multi_adv); in HandleSupportsMultiAdv()
472 void HandleRegisterBLEAdvertiser(IBluetooth* bt_iface, in HandleRegisterBLEAdvertiser() argument
487 bt_iface->GetLeAdvertiserInterface(&ble_advertiser_iface); in HandleRegisterBLEAdvertiser()
500 void HandleUnregisterBLEAdvertiser(IBluetooth* bt_iface, in HandleUnregisterBLEAdvertiser() argument
510 bt_iface->GetLeAdvertiserInterface(&ble_advertiser_iface); in HandleUnregisterBLEAdvertiser()
521 void HandleRegisterBLE(IBluetooth* bt_iface, const vector<string>& args) { in HandleRegisterBLE() argument
535 bt_iface->GetLowEnergyInterface(&ble_iface); in HandleRegisterBLE()
547 void HandleUnregisterBLE(IBluetooth* bt_iface, const vector<string>& args) { in HandleUnregisterBLE() argument
556 bt_iface->GetLowEnergyInterface(&ble_iface); in HandleUnregisterBLE()
567 void HandleUnregisterAllBLE(IBluetooth* bt_iface, const vector<string>& args) { in HandleUnregisterAllBLE() argument
571 bt_iface->GetLowEnergyInterface(&ble_iface); in HandleUnregisterAllBLE()
581 void HandleRegisterGATT(IBluetooth* bt_iface, const vector<string>& args) { in HandleRegisterGATT() argument
595 bt_iface->GetGattClientInterface(&gatt_iface); in HandleRegisterGATT()
607 void HandleUnregisterGATT(IBluetooth* bt_iface, const vector<string>& args) { in HandleUnregisterGATT() argument
616 bt_iface->GetGattClientInterface(&gatt_iface); in HandleUnregisterGATT()
627 void HandleStartAdv(IBluetooth* bt_iface, const vector<string>& args) { in HandleStartAdv() argument
686 bt_iface->GetLeAdvertiserInterface(&ble_advertiser_iface); in HandleStartAdv()
736 bt_iface->GetName(&name_param); in HandleStartAdv()
751 void HandleStopAdv(IBluetooth* bt_iface, const vector<string>& args) { in HandleStopAdv() argument
758 bt_iface->GetLeAdvertiserInterface(&ble_advertiser_iface); in HandleStopAdv()
769 void HandleConnect(IBluetooth* bt_iface, const vector<string>& args) { in HandleConnect() argument
785 bt_iface->GetLowEnergyInterface(&ble_iface); in HandleConnect()
799 void HandleDisconnect(IBluetooth* bt_iface, const vector<string>& args) { in HandleDisconnect() argument
815 bt_iface->GetLowEnergyInterface(&ble_iface); in HandleDisconnect()
827 void HandleSetMtu(IBluetooth* bt_iface, const vector<string>& args) { in HandleSetMtu() argument
850 bt_iface->GetLowEnergyInterface(&ble_iface); in HandleSetMtu()
862 void HandleRegisterBLEScanner(IBluetooth* bt_iface, in HandleRegisterBLEScanner() argument
877 bt_iface->GetLeScannerInterface(&ble_scanner_iface); in HandleRegisterBLEScanner()
890 void HandleUnregisterBLEScanner(IBluetooth* bt_iface, in HandleUnregisterBLEScanner() argument
900 bt_iface->GetLeScannerInterface(&ble_scanner_iface); in HandleUnregisterBLEScanner()
911 void HandleStartLeScan(IBluetooth* bt_iface, const vector<string>& args) { in HandleStartLeScan() argument
933 bt_iface->GetLeScannerInterface(&ble_scanner_iface); in HandleStartLeScan()
948 void HandleStopLeScan(IBluetooth* bt_iface, const vector<string>& args) { in HandleStopLeScan() argument
955 bt_iface->GetLeScannerInterface(&ble_scanner_iface); in HandleStopLeScan()
966 void HandleHelp(IBluetooth* bt_iface, const vector<string>& args);
1025 bool ExecuteCommand(const sp<IBluetooth>& bt_iface, std::string& command) { in ExecuteCommand() argument
1038 kCommandMap[i].func(bt_iface.get(), args); in ExecuteCommand()
1079 sp<IBluetooth> bt_iface; in main() local
1080 status_t status = getService(String16(kServiceName.c_str()), &bt_iface); in main()
1088 if (android::IInterface::asBinder(bt_iface.get())->linkToDeath(dr) != in main()
1101 bt_iface->RegisterCallback(callback); in main()
1125 if (!ExecuteCommand(bt_iface, command)) break; in main()