Lines Matching defs:bt_iface

330 void HandleDisable(IBluetooth* bt_iface, const vector<string>& args) {
333 bt_iface->Disable(&status);
337 void HandleEnable(IBluetooth* bt_iface, const vector<string>& args) {
356 bt_iface->Enable(is_restricted_mode, &status);
360 void HandleGetState(IBluetooth* bt_iface, const vector<string>& args) {
364 bt_iface->GetState(&st);
369 void HandleIsEnabled(IBluetooth* bt_iface, const vector<string>& args) {
372 bt_iface->IsEnabled(&enabled);
376 void HandleGetLocalAddress(IBluetooth* bt_iface, const vector<string>& args) {
379 bt_iface->GetAddress(&address);
383 void HandleSetLocalName(IBluetooth* bt_iface, const vector<string>& args) {
392 bt_iface->SetName(String16(String8(name.c_str())), &status);
396 void HandleGetLocalName(IBluetooth* bt_iface, const vector<string>& args) {
399 bt_iface->GetName(&name);
403 void HandleAdapterInfo(IBluetooth* bt_iface, const vector<string>& args) {
409 bt_iface->GetAddress(&address);
413 bt_iface->GetState(&adapter_state);
419 bt_iface->GetName(&name);
423 bt_iface->IsMultiAdvertisementSupported(&multi_adv);
427 void HandleSupportsMultiAdv(IBluetooth* bt_iface, const vector<string>& args) {
431 bt_iface->IsMultiAdvertisementSupported(&multi_adv);
435 void HandleRegisterBLEAdvertiser(IBluetooth* bt_iface,
450 bt_iface->GetLeAdvertiserInterface(&ble_advertiser_iface);
463 void HandleUnregisterBLEAdvertiser(IBluetooth* bt_iface,
473 bt_iface->GetLeAdvertiserInterface(&ble_advertiser_iface);
484 void HandleRegisterBLE(IBluetooth* bt_iface, const vector<string>& args) {
498 bt_iface->GetLowEnergyInterface(&ble_iface);
510 void HandleUnregisterBLE(IBluetooth* bt_iface, const vector<string>& args) {
519 bt_iface->GetLowEnergyInterface(&ble_iface);
530 void HandleUnregisterAllBLE(IBluetooth* bt_iface, const vector<string>& args) {
534 bt_iface->GetLowEnergyInterface(&ble_iface);
544 void HandleRegisterGATT(IBluetooth* bt_iface, const vector<string>& args) {
558 bt_iface->GetGattClientInterface(&gatt_iface);
570 void HandleUnregisterGATT(IBluetooth* bt_iface, const vector<string>& args) {
579 bt_iface->GetGattClientInterface(&gatt_iface);
590 void HandleStartAdv(IBluetooth* bt_iface, const vector<string>& args) {
649 bt_iface->GetLeAdvertiserInterface(&ble_advertiser_iface);
699 bt_iface->GetName(&name_param);
714 void HandleStopAdv(IBluetooth* bt_iface, const vector<string>& args) {
721 bt_iface->GetLeAdvertiserInterface(&ble_advertiser_iface);
732 void HandleConnect(IBluetooth* bt_iface, const vector<string>& args) {
748 bt_iface->GetLowEnergyInterface(&ble_iface);
762 void HandleDisconnect(IBluetooth* bt_iface, const vector<string>& args) {
778 bt_iface->GetLowEnergyInterface(&ble_iface);
790 void HandleSetMtu(IBluetooth* bt_iface, const vector<string>& args) {
813 bt_iface->GetLowEnergyInterface(&ble_iface);
825 void HandleRegisterBLEScanner(IBluetooth* bt_iface,
840 bt_iface->GetLeScannerInterface(&ble_scanner_iface);
853 void HandleUnregisterBLEScanner(IBluetooth* bt_iface,
863 bt_iface->GetLeScannerInterface(&ble_scanner_iface);
874 void HandleStartLeScan(IBluetooth* bt_iface, const vector<string>& args) {
896 bt_iface->GetLeScannerInterface(&ble_scanner_iface);
911 void HandleStopLeScan(IBluetooth* bt_iface, const vector<string>& args) {
918 bt_iface->GetLeScannerInterface(&ble_scanner_iface);
929 void HandleHelp(IBluetooth* bt_iface, const vector<string>& args);
978 void HandleHelp(IBluetooth* /* bt_iface */, const vector<string>& /* args */) {
988 bool ExecuteCommand(const sp<IBluetooth>& bt_iface, std::string& command) {
1001 kCommandMap[i].func(bt_iface.get(), args);
1042 sp<IBluetooth> bt_iface;
1043 status_t status = getService(String16(kServiceName.c_str()), &bt_iface);
1051 if (android::IInterface::asBinder(bt_iface.get())->linkToDeath(dr) !=
1064 bt_iface->RegisterCallback(callback);
1088 if (!ExecuteCommand(bt_iface, command)) break;