/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_audio_manager.cpp | 46 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "failed: no proxy");
in EnableWearDetection() 53 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "failed: no proxy");
in DisableWearDetection() 60 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "failed: no proxy");
in GetWearDetectionState() 67 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "failed: no proxy");
in IsDeviceWearing() 74 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "failed: no proxy");
in IsWearDetectionSupported() 82 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "failed: no proxy");
in SendDeviceSelection() 89 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "failed: no proxy");
in EnableWearDetection() 96 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "failed: no proxy");
in DisableWearDetection() 103 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "failed: no proxy");
in GetWearDetectionState() 110 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetoot in IsDeviceWearing() local [all...] |
H A D | bluetooth_remote_device.cpp | 129 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in GetDeviceName() local 149 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in SetDeviceAlias() local 152 CHECK_AND_RETURN_LOG_RET(hostProxy != nullptr, BT_ERR_INVALID_STATE, "proxy is nullptr."); in SetDeviceAlias() 189 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in StartPair() local 199 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in StartCrediblePair() local 209 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in CancelPairing() local 248 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in GetDeviceClass() local 259 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in GetDeviceProductId() local 293 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in SetDevicePairingConfirmation() local 330 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetoot in GetDeviceProductType() local 356 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); SetDeviceCustomType() local 367 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); GetDeviceCustomType() local 383 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); GetDeviceVendorId() local 398 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); GetDeviceProductId() local 413 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); IsSupportVirtualAutoConnect() local 424 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); SetVirtualAutoConnectType() local [all...] |
H A D | bluetooth_map_mse.cpp | 142 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in GetDeviceState() local 153 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in GetDevicesByStates() local 171 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in Disconnect() local 182 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in SetConnectionStrategy() local 194 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in GetConnectionStrategy() local 205 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in SetMessageAccessAuthorization() local 219 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in GetMessageAccessAuthorization() local
|
H A D | bluetooth_pbap_pse.cpp | 146 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in GetDeviceState() local 158 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in GetDevicesByStates() local 176 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in Disconnect() local 187 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in SetConnectionStrategy() local 199 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in GetConnectionStrategy() local 220 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in SetShareType() local 232 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in GetShareType() local 244 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in SetPhoneBookAccessAuthorization() local 259 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off");
in GetPhoneBookAccessAuthorization() local
|
H A D | bluetooth_a2dp_src.cpp | 172 return BT_ERR_INVALID_STATE; in GetDevicesByStates() 200 return BT_ERR_INVALID_STATE; in GetDeviceState() 241 return BT_ERR_INVALID_STATE; in GetPlayingState() 259 return BT_ERR_INVALID_STATE; in Connect() 277 return BT_ERR_INVALID_STATE; in Disconnect() 342 return BT_ERR_INVALID_STATE; in SetConnectStrategy() 362 return BT_ERR_INVALID_STATE; in GetConnectStrategy() 365 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "failed: no proxy"); in GetConnectStrategy() 424 return BT_ERR_INVALID_STATE; in GetCodecPreference() 452 return BT_ERR_INVALID_STATE; in SetCodecPreference() 603 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); OffloadStartPlaying() local 615 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); OffloadStopPlaying() local 688 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); EnableAutoPlay() local 697 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); DisableAutoPlay() local 706 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); GetAutoPlayDisabledDuration() local [all...] |
H A D | bluetooth_pan.cpp | 196 return BT_ERR_INVALID_STATE; in GetDevicesByStates() 208 return BT_ERR_INVALID_STATE; in GetDeviceState() 220 return BT_ERR_INVALID_STATE; in Disconnect() 247 return BT_ERR_INVALID_STATE; in SetTethering() 260 return BT_ERR_INVALID_STATE; in IsTetheringOn()
|
H A D | bluetooth_opp.cpp | 267 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); in GetDevicesByStates() local 285 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); in GetDeviceState() local 296 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); in SendFile() local 306 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); in SetIncomingFileConfirmation() local 317 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); in GetCurrentTransferInformation() local 332 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); in CancelTransfer() local
|
H A D | bluetooth_host.cpp | 667 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in SatelliteControl() local 703 CHECK_AND_RETURN_LOG_RET(proxy != nullptr, BT_ERR_INVALID_STATE, "proxy is nullptr"); in GetBtState() 869 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in GetBtConnectionState() local 883 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in GetBtProfileConnState() local 959 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in SetLocalName() local 970 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in GetBtScanMode() local 981 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in SetBtScanMode() local 1010 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in StartBtDiscovery() local 1021 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in CancelBtDiscovery() local 1032 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetoot in IsBtDiscovering() local 1054 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); GetPairedDevices() local 1141 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); SetFastScan() local 1158 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); ConnectAllowedProfiles() local 1169 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); DisconnectAllowedProfiles() local 1193 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); SetFastScanLevel() local [all...] |
H A D | bluetooth_socket.cpp | 431 CHECK_AND_RETURN_LOG_RET(IS_BLE_ENABLED(), BT_ERR_INVALID_STATE, "BLE is not TURN_ON"); in Connect() local 433 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "BR is not TURN_ON"); in Connect() local 444 CHECK_AND_RETURN_LOG_RET(pimpl->socketStatus_ != SOCKET_CLOSED, BT_ERR_INVALID_STATE, "socket closed"); in Connect() 465 CHECK_AND_RETURN_LOG_RET(pimpl->RecvSocketPsmOrScn(), BT_ERR_INVALID_STATE, "recv psm or scn failed"); in Connect() 574 CHECK_AND_RETURN_LOG_RET(IS_BLE_ENABLED(), BT_ERR_INVALID_STATE, "BLE is not TURN_ON"); in Listen() local 576 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "BR is not TURN_ON"); in Listen() local 585 CHECK_AND_RETURN_LOG_RET(socketStatus_ != SOCKET_CLOSED, BT_ERR_INVALID_STATE, in Listen() 605 return BT_ERR_INVALID_STATE; in Listen() 608 CHECK_AND_RETURN_LOG_RET(RecvSocketPsmOrScn(), BT_ERR_INVALID_STATE, "recv psm or scn failed"); in Listen() local 616 return BT_ERR_INVALID_STATE; in Listen() [all...] |
H A D | bluetooth_hid_host.cpp | 239 return BT_ERR_INVALID_STATE; in GetDevicesByStates() 252 return BT_ERR_INVALID_STATE; in GetDeviceState() 265 return BT_ERR_INVALID_STATE; in Connect() 278 return BT_ERR_INVALID_STATE; in Disconnect() 292 return BT_ERR_INVALID_STATE; in SetConnectStrategy() 312 return BT_ERR_INVALID_STATE; in GetConnectStrategy()
|
H A D | bluetooth_hfp_ag.cpp | 448 return BT_ERR_INVALID_STATE; in GetConnectedDevices() 474 return BT_ERR_INVALID_STATE; in GetDeviceState() 488 return BT_ERR_INVALID_STATE; in Connect() 502 return BT_ERR_INVALID_STATE; in Disconnect() 527 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in ConnectSco() local 539 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in DisconnectSco() local 651 return BT_ERR_INVALID_STATE; in SetConnectStrategy() 671 return BT_ERR_INVALID_STATE; in GetConnectStrategy() 687 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off."); in IsInbandRingingEnabled() local 712 CHECK_AND_RETURN_LOG_RET(IS_BT_ENABLED(), BT_ERR_INVALID_STATE, "bluetoot in IsVgsSupported() local [all...] |
H A D | bluetooth_gatt_client.cpp | 388 return BT_ERR_INVALID_STATE; in DiscoverStart() 597 return BT_ERR_INVALID_STATE; in Connect() 652 return BT_ERR_INVALID_STATE; in Disconnect() 677 return BT_ERR_INVALID_STATE; in Close() 703 return BT_ERR_INVALID_STATE; in DiscoverServices() 768 return BT_ERR_INVALID_STATE; in ReadCharacteristic() 805 return BT_ERR_INVALID_STATE; in ReadDescriptor() 842 return BT_ERR_INVALID_STATE; in RequestBleMtuSize() 869 return BT_ERR_INVALID_STATE; in SetNotifyCharacteristicInner() 945 return BT_ERR_INVALID_STATE; in WriteCharacteristic() [all...] |
H A D | bluetooth_avrcp_tg.cpp | 113 return BT_ERR_INVALID_STATE; in SetDeviceAbsoluteVolume() 125 return BT_ERR_INVALID_STATE; in SetDeviceAbsVolumeAbility() 138 return BT_ERR_INVALID_STATE; in GetDeviceAbsVolumeAbility()
|
H A D | bluetooth_ble_advertiser.cpp | 317 return BT_ERR_INVALID_STATE; in StartAdvertising() 369 return BT_ERR_INVALID_STATE; in StartAdvertising() 442 return BT_ERR_INVALID_STATE; in EnableAdvertising() 469 return BT_ERR_INVALID_STATE; in DisableAdvertising() 495 return BT_ERR_INVALID_STATE; in StopAdvertising()
|
H A D | bluetooth_gatt_server.cpp | 606 return BT_ERR_INVALID_STATE; in AddService() 669 return BT_ERR_INVALID_STATE; in Close() 684 CHECK_AND_RETURN_LOG_RET(IS_BLE_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); in Connect() local 698 CHECK_AND_RETURN_LOG_RET(IS_BLE_ENABLED(), BT_ERR_INVALID_STATE, "bluetooth is off"); in CancelConnection() local 755 return BT_ERR_INVALID_STATE; in NotifyCharacteristicChanged() 787 return BT_ERR_INVALID_STATE; in RemoveGattService() 811 return BT_ERR_INVALID_STATE; in SendResponse()
|
H A D | bluetooth_utils.cpp | 154 { BtErrCode::BT_ERR_INVALID_STATE, "BT_ERR_INVALID_STATE" },
member in OHOS::Bluetooth::BtErrCode
|
H A D | bluetooth_ble_central_manager.cpp | 341 return BT_ERR_INVALID_STATE; in StartScan() 372 return BT_ERR_INVALID_STATE; in StopScan()
|
/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_errorcode.h | 37 BT_ERR_INVALID_STATE = BT_ERR_BASE_SYSCAP + 3, enumerator 70 ERR_INVALID_STATE = BT_ERR_INVALID_STATE,
|
/foundation/communication/bluetooth/frameworks/inner/ipc/src/ |
H A D | bluetooth_socket_observer_stub.cpp | 30 return BT_ERR_INVALID_STATE;
in OnRemoteRequest() 82 return BT_ERR_INVALID_STATE;
in OnRemoteRequest()
|
/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_host_server.cpp | 873 return BT_ERR_INVALID_STATE; in GetLocalAddress() 929 return BT_ERR_INVALID_STATE; in GetBtConnectionState() 945 return BT_ERR_INVALID_STATE; in GetBtProfileConnState() 996 return BT_ERR_INVALID_STATE; in GetLocalName() 1029 return BT_ERR_INVALID_STATE; in SetLocalName() 1047 return BT_ERR_INVALID_STATE; in GetBtScanMode() 1065 return BT_ERR_INVALID_STATE; in SetBtScanMode() 1119 return BT_ERR_INVALID_STATE; in StartBtDiscovery() 1138 return BT_ERR_INVALID_STATE; in CancelBtDiscovery() 1158 return BT_ERR_INVALID_STATE; in IsBtDiscovering() [all...] |
/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_bluetooth_error.cpp | 32 { BtErrCode::BT_ERR_INVALID_STATE, "Bluetooth disabled." }, member in OHOS::Bluetooth::BtErrCode
|