/foundation/communication/nfc/services/include/ |
H A D | bt_connection_manager.h | 58 class BtStateObserver : public Bluetooth::BluetoothHostObserver {
69 void OnDiscoveryResult(const Bluetooth::BluetoothRemoteDevice &device,
71 void OnPairRequested(const Bluetooth::BluetoothRemoteDevice &device) override {};
72 void OnPairConfirmed(const Bluetooth::BluetoothRemoteDevice &device, int reqType, int number) override {};
78 class BtRemoteDevObserver : public Bluetooth::BluetoothRemoteDeviceObserver {
82 void OnAclStateChanged(const Bluetooth::BluetoothRemoteDevice &device,
84 void OnPairStatusChanged(const Bluetooth::BluetoothRemoteDevice &device, int status, int cause) override;
85 void OnRemoteUuidChanged(const Bluetooth::BluetoothRemoteDevice &device,
86 const std::vector<Bluetooth::ParcelUuid> &uuids) override {};
87 void OnRemoteNameChanged(const Bluetooth [all...] |
H A D | ndef_bt_data_parser.h | 32 uint8_t transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO;
33 std::vector<Bluetooth::UUID> uuids_ {};
34 Bluetooth::BluetoothDeviceClass btClass_ {};
51 static std::vector<Bluetooth::UUID> GetUuidFromPayload(const std::string& payload, uint32_t& offset,
57 Bluetooth::BluetoothDeviceClass& btClass);
59 static Bluetooth::UUID FormatUuidTo128Bit(const std::string& uuid);
|
/foundation/communication/bluetooth_service/test/unittest/ble/ |
H A D | ble_test.h | 22 namespace Bluetooth { namespace 25 class BleAdvertiseCallbackTest : public Bluetooth::BleAdvertiseCallback { 39 class BleHostObserverTest : public Bluetooth::BluetoothHostObserver { 63 class BleCentralManagerCallbackTest : public Bluetooth::BleCentralManagerCallback { 69 void OnScanCallback(const Bluetooth::BleScanResult &result) in OnScanCallback() 73 void OnBleBatchScanResultsEvent(const std::vector<Bluetooth::BleScanResult> &results) in OnBleBatchScanResultsEvent() 84 Bluetooth::BluetoothHost *host_ = nullptr; 86 Bluetooth::BleAdvertiserSettings bleAdvertiserSettings_ {}; 90 Bluetooth::BleScanSettings bleScanSettings_ {}; 99 bool HaveUuid(Bluetooth [all...] |
H A D | ble_test.cpp | 24 namespace Bluetooth { namespace 31 Bluetooth::UUID g_uuid = Bluetooth::UUID::FromString("00000000-0000-1000-8000-00805F9B34FB"); 32 Bluetooth::UUID g_serviceDataUuid = Bluetooth::UUID::FromString("00000000-0000-1000-8000-00805F9B34FA"); 33 Bluetooth::UUID g_serviceUuid = Bluetooth::UUID::FromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF"); 34 Bluetooth::UUID g_serviceUuidMask = Bluetooth::UUID::FromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF"); 35 Bluetooth [all...] |
/foundation/communication/nfc/services/src/tag/ |
H A D | bt_connection_manager.cpp | 55 static Bluetooth::A2dpSource *g_a2dp;
56 static Bluetooth::HandsFreeAudioGateway *g_hfp;
57 static Bluetooth::HidHost *g_hid;
59 Bluetooth::BluetoothRemoteDevice g_device;
108 void BtConnectionManager::SendConnMsgToEvtHandler(NfcCommonEvent evt, const Bluetooth::BluetoothRemoteDevice &device,
in SendConnMsgToEvtHandler() 148 Bluetooth::BluetoothHost::GetDefaultHost().RegisterObserver(btObserver_);
in RegisterBtObserver() 156 Bluetooth::BluetoothHost::GetDefaultHost().DeregisterObserver(btObserver_);
in UnregisterBtObserverAndProfile() 162 Bluetooth::BluetoothHost::GetDefaultHost().DeregisterRemoteDeviceObserver(btRemoteDevObserver_);
in UnregisterBtObserverAndProfile() 237 bool isEnabled = Bluetooth::BluetoothHost::GetDefaultHost().IsBrEnabled();
in IsBtEnabled() 246 if (Bluetooth in HandleEnableBt() [all...] |
H A D | ndef_bt_data_parser.cpp | 99 Bluetooth::BluetoothDeviceClass& btClass)
in GetBtDevClass() 108 btClass = Bluetooth::BluetoothDeviceClass(devClass);
in GetBtDevClass() 126 Bluetooth::UUID NdefBtDataParser::FormatUuidTo128Bit(const std::string& uuid)
in FormatUuidTo128Bit() 133 std::string baseUuid = std::string(Bluetooth::BLUETOOTH_UUID_BASE_UUID);
in FormatUuidTo128Bit() 141 if ((uuid.length() / HEX_BYTE_LEN) == Bluetooth::BLE_UUID_LEN_16) {
in FormatUuidTo128Bit() 143 } else if (uuid.length() == Bluetooth::BLE_UUID_LEN_32) {
in FormatUuidTo128Bit() 145 } else if (uuid.length() == Bluetooth::BLE_UUID_LEN_128) {
in FormatUuidTo128Bit() 152 return Bluetooth::UUID::FromString(res);
in FormatUuidTo128Bit() 165 std::vector<Bluetooth::UUID> NdefBtDataParser::GetUuidFromPayload(const std::string& payload, uint32_t& offset,
in GetUuidFromPayload() 170 std::vector<Bluetooth in GetUuidFromPayload() [all...] |
/foundation/multimedia/av_session/services/session/server/test/ |
H A D | detect_bluetooth_host_observer_test.cpp | 64 int32_t transport = OHOS::Bluetooth::BTTransport::ADAPTER_BREDR; in HWTEST_F() 65 int32_t status = OHOS::Bluetooth::BTStateID::STATE_TURN_ON; in HWTEST_F() 78 int32_t transport = OHOS::Bluetooth::BTTransport::ADAPTER_BLE; in HWTEST_F() 79 int32_t status = OHOS::Bluetooth::BTStateID::STATE_TURN_ON; in HWTEST_F() 92 int32_t transport = OHOS::Bluetooth::BTTransport::ADAPTER_BLE; in HWTEST_F() 93 int32_t status = OHOS::Bluetooth::BTStateID::STATE_TURN_OFF; in HWTEST_F() 107 int32_t transport = OHOS::Bluetooth::BTTransport::ADAPTER_BREDR; in HWTEST_F() 108 int32_t status = OHOS::Bluetooth::BTStateID::STATE_TURN_ON; in HWTEST_F()
|
/foundation/communication/bluetooth/frameworks/cj/connection/src/ |
H A D | bluetooth_connection_impl.cpp | 29 using OHOS::Bluetooth::BluetoothRemoteDevice; 30 using Bluetooth::BT_ERR_INVALID_PARAM; 31 using Bluetooth::BT_NO_ERROR; 32 using Bluetooth::INVALID_NAME; 33 using Bluetooth::MajorClass; 34 using Bluetooth::BluetoothHost; 35 using Bluetooth::BT_TRANSPORT_BREDR; 36 using Bluetooth::PAIR_NONE; 37 using Bluetooth::GetProfileConnectionState; 38 using Bluetooth [all...] |
H A D | bluetooth_connection_common.cpp | 27 using Bluetooth::PAIR_NONE; 28 using Bluetooth::PAIR_PAIRING; 29 using Bluetooth::PAIR_PAIRED; 30 using Bluetooth::PIN_TYPE_CONFIRM_PASSKEY; 31 using Bluetooth::PIN_TYPE_NOTIFY_PASSKEY;
|
/foundation/multimedia/audio_framework/test/fuzztest/audiobluetoothmanager_fuzzer/ |
H A D | audiobluetoothmanager_fuzzer.cpp | 68 std::vector<Bluetooth::A2dpStreamInfo> info; in AudioA2dpManagerFuzzTest() 71 Bluetooth::AudioA2dpManager::SetDeviceAbsVolume(macAddress, volume); in AudioA2dpManagerFuzzTest() 72 Bluetooth::AudioA2dpManager::OffloadStartPlaying(sessionsID); in AudioA2dpManagerFuzzTest() 73 Bluetooth::AudioA2dpManager::OffloadStopPlaying(sessionsID); in AudioA2dpManagerFuzzTest() 74 Bluetooth::AudioA2dpManager::A2dpOffloadSessionRequest(info); in AudioA2dpManagerFuzzTest() 85 Bluetooth::AudioHfpManager::SetActiveHfpDevice(macAddress); in AudioHfpManagerFuzzTest() 86 Bluetooth::AudioHfpManager::ConnectScoWithAudioScene(scene); in AudioHfpManagerFuzzTest() 87 Bluetooth::AudioHfpManager::GetScoCategoryFromScene(scene); in AudioHfpManagerFuzzTest() 88 Bluetooth::AudioHfpManager::UpdateAudioScene(scene); in AudioHfpManagerFuzzTest()
|
/foundation/communication/bluetooth/frameworks/cj/access/src/ |
H A D | bluetooth_access_callback.cpp | 26 using Bluetooth::BluetoothHost; 27 using Bluetooth::BT_ERR_INTERNAL_ERROR; 28 using Bluetooth::BluetoothState; 29 using Bluetooth::BT_TRANSPORT_BREDR; 30 using Bluetooth::BT_TRANSPORT_BLE; 31 using Bluetooth::BTStateID;
|
H A D | bluetooth_access_impl.cpp | 23 using Bluetooth::BluetoothHost; 24 using Bluetooth::BTStateID; 25 using Bluetooth::BluetoothState;
|
/foundation/communication/nfc/test/unittest/services/services_tags_test/ |
H A D | bt_connection_manager_test.cpp | 79 data->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO;
in HWTEST_F() 111 data->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO;
in HWTEST_F() 130 data->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO;
in HWTEST_F() 149 data->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO;
in HWTEST_F() 168 data->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO;
in HWTEST_F() 187 data->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO;
in HWTEST_F() 206 data->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO;
in HWTEST_F() 227 data->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO;
in HWTEST_F() 235 info->state_ = Bluetooth::PAIR_NONE;
in HWTEST_F() 250 data->transport_ = Bluetooth in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/hardware/include/ |
H A D | bluetooth_hci_callbacks.h | 37 using OHOS::HDI::Bluetooth::Hci::V1_0::IHciCallback; 38 using OHOS::HDI::Bluetooth::Hci::V1_0::BtStatus; 39 using OHOS::HDI::Bluetooth::Hci::V1_0::BtType;
|
/foundation/communication/bluetooth/frameworks/cj/connection/include/ |
H A D | bluetooth_connection_impl.h | 26 using Bluetooth::BluetoothHostObserver; 27 using Bluetooth::BluetoothRemoteDevice; 28 using Bluetooth::BluetoothRemoteDeviceObserver; 29 using Bluetooth::ParcelUuid; 30 using Bluetooth::BluetoothDeviceClass; 31 using Bluetooth::DeviceBatteryInfo;
|
/foundation/communication/bluetooth/frameworks/cj/access/include/ |
H A D | bluetooth_access_impl.h | 26 using Bluetooth::BluetoothHostObserver; 27 using Bluetooth::BluetoothRemoteDevice; 28 using Bluetooth::BluetoothState;
|
/foundation/communication/nfc/test/fuzztest/services_test/btconnectionmanager_test/btconnectionmanager/btconnectionmanager_fuzzer/ |
H A D | btconnectionmanager_fuzzer.cpp | 54 btData->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO; in FuzzOnBtNtfClicked() 67 btData->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO; in FuzzHandleBtEnableFailed() 80 btData->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO; in FuzzHandleBtPairFailed() 93 btData->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO; in FuzzHandleBtConnectFailed() 106 btData->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO; in FuzzOnBtEnabled() 119 btData->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO; in FuzzOnPairStatusChanged() 123 info->state_ = Bluetooth::PAIR_NONE; in FuzzOnPairStatusChanged() 135 btData->transport_ = Bluetooth::GATT_TRANSPORT_TYPE_AUTO; in FuzzOnConnectionStateChanged() 139 info->state_ = static_cast<int32_t>(Bluetooth::BTConnectState::CONNECTED); in FuzzOnConnectionStateChanged()
|
/foundation/systemabilitymgr/samgr/test/autotest/testcases/level0/ |
H A D | case19_switch002.py | 39 self.driver.Bluetooth.disable()
50 driver.Bluetooth.enable()
58 CheckPoint("After turning on Bluetooth, 1494 was successfully loaded")
61 driver.Bluetooth.disable()
70 CheckPoint("After turning off Bluetooth, 1494 was successfully unloaded")
|
/foundation/communication/bluetooth/frameworks/inner/ipc/interface/ |
H A D | i_bluetooth_opp.h | 24 using OHOS::Bluetooth::IBluetoothOppObserver; 27 namespace Bluetooth { namespace 32 DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Bluetooth.IBluetoothOpp"); 45 } // namespace Bluetooth
|
H A D | i_bluetooth_pan.h | 24 using OHOS::Bluetooth::IBluetoothPanObserver; 27 namespace Bluetooth { namespace 32 DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Bluetooth.IBluetoothPan"); 52 } // namespace Bluetooth
|
H A D | i_bluetooth_hid_host.h | 24 using OHOS::Bluetooth::IBluetoothHidHostObserver; 27 namespace Bluetooth { namespace 32 DECLARE_INTERFACE_DESCRIPTOR(u"OHOS.Bluetooth.IBluetoothHidHost"); 52 } // Bluetooth
|
H A D | i_bluetooth_gatt_observer.h | 22 namespace Bluetooth { namespace 30 } // namespace Bluetooth
|
/foundation/multimedia/audio_framework/frameworks/native/bluetoothclient/ |
H A D | audio_bluetooth_manager.cpp | 29 namespace Bluetooth { namespace 41 OHOS::Bluetooth::ScoCategory AudioHfpManager::scoCategory = OHOS::Bluetooth::ScoCategory::SCO_DEFAULT; 42 OHOS::Bluetooth::RecognitionStatus AudioHfpManager::recognitionStatus = 43 OHOS::Bluetooth::RecognitionStatus::RECOGNITION_DISCONNECTED; 133 a2dpListener_->OnVirtualDeviceChanged(static_cast<int32_t>(Bluetooth::BT_VIRTUAL_DEVICE_REMOVE), in DisconnectBluetoothA2dpSink() 283 a2dpListener_->OnVirtualDeviceChanged(static_cast<int32_t>(Bluetooth::BT_VIRTUAL_DEVICE_ADD), macAddress); in CheckA2dpDeviceReconnect() 353 if (action == static_cast<int32_t>(Bluetooth::BT_VIRTUAL_DEVICE_ADD)) { in OnVirtualDeviceChanged() 357 if (action == static_cast<int32_t>(Bluetooth::BT_VIRTUAL_DEVICE_REMOVE)) { in OnVirtualDeviceChanged() 408 hfpListener_->OnVirtualDeviceChanged(static_cast<int32_t>(Bluetooth in CheckHfpDeviceReconnect() [all...] |
/foundation/communication/bluetooth/interfaces/inner_api/include/c_header/ |
H A D | ohos_bt_gatt_utils.h | 26 namespace Bluetooth {
namespace 45 } // namespace Bluetooth
|
/foundation/communication/netmanager_ext/services/networksharemanager/include/ |
H A D | networkshare_tracker.h | 97 class SharingPanObserver : public Bluetooth::PanObserver { 102 void OnConnectionStateChanged(const Bluetooth::BluetoothRemoteDevice &device, int state, int cause) override; 247 void SetBluetoothState(const Bluetooth::BTConnectState &state); 276 Bluetooth::BTConnectState curBluetoothState_ = Bluetooth::BTConnectState::DISCONNECTED;
|