Lines Matching refs:proxy

434         sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
435 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INTERNAL_ERROR, "proxy is nullptr");
436 return proxy->EnableBle();
441 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
442 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INTERNAL_ERROR, "proxy is nullptr");
443 return proxy->DisableBt();
453 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
454 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INTERNAL_ERROR, "proxy is nullptr");
455 return proxy->EnableBluetoothToRestrictMode();
472 sptr<IBluetoothHost> proxy = iface_cast<IBluetoothHost>(remote);
473 CHECK_AND_RETURN_LOG(proxy != nullptr, "proxy is nullptr");
474 proxy->RegisterObserver(observerImp_);
475 proxy->RegisterBleAdapterObserver(bleObserverImp_);
476 proxy->RegisterRemoteDeviceObserver(remoteObserverImp_);
477 proxy->RegisterBlePeripheralCallback(bleRemoteObserverImp_);
478 proxy->RegisterBtResourceManagerObserver(resourceManagerObserverImp_);
486 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
487 CHECK_AND_RETURN_LOG(proxy != nullptr, "proxy is nullptr");
488 proxy->DeregisterObserver(observerImp_);
489 proxy->DeregisterBleAdapterObserver(bleObserverImp_);
490 proxy->DeregisterRemoteDeviceObserver(remoteObserverImp_);
491 proxy->DeregisterBlePeripheralCallback(bleRemoteObserverImp_);
492 proxy->DeregisterBtResourceManagerObserver(resourceManagerObserverImp_);
522 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
523 return proxy != nullptr || saManagerStatus_ == SaManagerStatus::LOAD_FAIL;
562 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
563 CHECK_AND_RETURN_LOG(proxy != nullptr, "proxy is nullptr");
564 proxy->SyncRandomAddress(stagingRealAddr_, stagingRandomAddr_);
609 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
610 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INTERNAL_ERROR, "proxy is nullptr");
612 return proxy->EnableBt();
658 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
659 CHECK_AND_RETURN_LOG(proxy != nullptr, "proxy is nullptr");
660 proxy->UpdateVirtualDevice(action, address);
675 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
676 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INTERNAL_ERROR, "proxy is nullptr");
677 return proxy->SatelliteControl(type, state);
687 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
688 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BTStateID::STATE_TURN_OFF, "proxy is nullptr");
691 proxy->GetBtState(state);
702 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
703 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "proxy is nullptr");
705 int ret = proxy->GetBtState(state);
727 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
728 if (proxy == nullptr) {
732 return proxy->BluetoothFactoryReset();
787 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
788 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INTERNAL_ERROR, "proxy is nullptr");
790 return proxy->DisableBle();
803 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
804 if (proxy == nullptr) {
805 HILOGD("proxy is nullptr");
809 return proxy->IsBrEnabled();
814 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
815 if (proxy == nullptr) {
816 HILOGD("proxy is nullptr");
820 return proxy->IsBleEnabled();
825 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
826 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "failed: no proxy");
828 return proxy->GetLocalAddress(addr);
835 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
836 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, profileList, "proxy is nullptr");
838 profileList = proxy->GetProfileList();
845 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
846 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, INVALID_VALUE, "proxy is nullptr");
848 return proxy->GetMaxNumConnectedAudioDevices();
857 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
858 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, state, "proxy is nullptr");
860 proxy->GetBtConnectionState(state);
871 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
872 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
874 int ret = proxy->GetBtConnectionState(state);
885 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
886 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
888 return proxy->GetBtProfileConnState(profileId, state);
894 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
895 CHECK_AND_RETURN_LOG(proxy != nullptr, "proxy is nullptr");
898 proxy->GetLocalSupportedUuids(stringUuids);
919 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
920 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BluetoothDeviceClass(0), "proxy is nullptr");
922 int LocalDeviceClass = proxy->GetLocalDeviceClass();
929 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
930 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, false, "proxy is nullptr");
933 return proxy->SetLocalDeviceClass(cod);
939 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
940 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, std::string(), "proxy is nullptr");
943 proxy->GetLocalName(name);
950 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
951 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
953 return proxy->GetLocalName(name);
961 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
962 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
964 return proxy->SetLocalName(name);
972 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
973 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
975 return proxy->GetBtScanMode(scanMode);
983 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
984 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
986 return proxy->SetBtScanMode(mode, duration);
992 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
993 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, INVALID_VALUE, "proxy is nullptr");
995 return proxy->GetBondableMode(transport);
1001 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1002 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, false, "proxy is nullptr");
1004 return proxy->SetBondableMode(transport, mode);
1012 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1013 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
1015 return proxy->StartBtDiscovery();
1023 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1024 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
1026 return proxy->CancelBtDiscovery();
1034 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1035 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "proxy is nullptr");
1037 return proxy->IsBtDiscovering(isDiscovering, transport);
1045 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1046 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, 0, "proxy is nullptr");
1048 return proxy->GetBtDiscoveryEndMillis();
1056 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1057 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
1060 int32_t ret = proxy->GetPairedDevices(pairedAddr);
1074 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1075 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
1078 return proxy->RemovePair(device.GetTransportType(), rawAddrSptr);
1084 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1085 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, false, "proxy is nullptr");
1087 return proxy->RemoveAllPairs();
1108 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1109 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, INVALID_VALUE, "proxy is nullptr");
1111 return proxy->GetBleMaxAdvertisingDataLength();
1132 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1133 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
1135 return proxy->GetLocalProfileUuids(uuids);
1143 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1144 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "proxy is nullptr");
1146 return proxy->SetFastScan(isEnable);
1160 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1161 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "pimpl or bluetooth host is nullptr");
1163 return proxy->ConnectAllowedProfiles(remoteAddr);
1171 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1172 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "pimpl or bluetooth host is nullptr");
1174 return proxy->DisconnectAllowedProfiles(remoteAddr);
1194 sptr<IBluetoothHost> proxy = GetRemoteProxy<IBluetoothHost>(BLUETOOTH_HOST);
1195 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_UNAVAILABLE_PROXY, "pimpl or bluetooth host is nullptr");
1196 return proxy->SetFastScanLevel(level);