Home
last modified time | relevance | path

Searched refs:bluetooth (Results 1 - 25 of 504) sorted by relevance

12345678910>>...21

/foundation/communication/bluetooth_service/services/bluetooth/server/include/
H A Dbluetooth_ble_filter_matcher.h34 static MatchResult MatchesScanFilters(const std::vector<bluetooth::BleScanFilterImpl> &bleScanFilters,
36 static MatchResult MatchesScanFilter(const bluetooth::BleScanFilterImpl &filter,
38 static MatchResult MatchesAddress(const bluetooth::BleScanFilterImpl &filter,
40 static MatchResult MatchesName(const bluetooth::BleScanFilterImpl &filter,
42 static MatchResult MatchesServiceUuids(const bluetooth::BleScanFilterImpl &filter,
44 static MatchResult MatchesManufacturerDatas(const bluetooth::BleScanFilterImpl &filter,
46 static MatchResult MatchesServiceDatas(const bluetooth::BleScanFilterImpl &filter,
48 static bool MatchesUuidWithMask(bluetooth::Uuid filterUuid, bluetooth::Uuid uuid, bluetooth
[all...]
/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/
H A Dbluetooth_a2dp_a2dpCodecStatus.h26 public bluetooth::CodecStatus {
29 BluetoothA2dpCodecStatus(const bluetooth::CodecStatus& other) in BluetoothA2dpCodecStatus()
30 : bluetooth::CodecStatus(other) {} // NOLINT(implicit) in BluetoothA2dpCodecStatus()
32 : bluetooth::CodecStatus(other) {} // NOLINT(implicit) in BluetoothA2dpCodecStatus()
43 class BluetoothA2dpOffloadCodecStatus : public Parcelable, public bluetooth::OffloadCodecStatus {
46 explicit BluetoothA2dpOffloadCodecStatus(const bluetooth::OffloadCodecStatus &other) in BluetoothA2dpOffloadCodecStatus()
47 : bluetooth::OffloadCodecStatus(other) {} in BluetoothA2dpOffloadCodecStatus()
49 : bluetooth::OffloadCodecStatus(other) {} in BluetoothA2dpOffloadCodecStatus()
H A Dbluetooth_a2dp_a2dpCodecInfo.h25 public bluetooth::CodecInfo {
28 BluetoothA2dpCodecInfo(const bluetooth::CodecInfo& other) in BluetoothA2dpCodecInfo()
29 : bluetooth::CodecInfo(other) {} // NOLINT(implicit) in BluetoothA2dpCodecInfo()
31 : bluetooth::CodecInfo(other) {} // NOLINT(implicit) in BluetoothA2dpCodecInfo()
42 class BluetoothA2dpOffloadCodecInfo : public Parcelable, public bluetooth::OffloadCodecInfo {
45 explicit BluetoothA2dpOffloadCodecInfo(const bluetooth::OffloadCodecInfo &other) in BluetoothA2dpOffloadCodecInfo()
46 : bluetooth::OffloadCodecInfo(other) {} in BluetoothA2dpOffloadCodecInfo()
48 : bluetooth::OffloadCodecInfo(other) {} in BluetoothA2dpOffloadCodecInfo()
H A Dbluetooth_ble_advertiser_data.h23 class BluetoothBleAdvertiserData : public Parcelable, public bluetooth::AdvertiserData {
26 explicit BluetoothBleAdvertiserData(const bluetooth::AdvertiserData &other) : bluetooth::AdvertiserData(other) in BluetoothBleAdvertiserData()
28 explicit BluetoothBleAdvertiserData(const BluetoothBleAdvertiserData &other) : bluetooth::AdvertiserData(other) in BluetoothBleAdvertiserData()
30 BluetoothBleAdvertiserData& operator=(const bluetooth::AdvertiserData &other) = delete;
43 bool ReadServiceUuids(std::vector<bluetooth::Uuid> &serviceUuids, Parcel &parcel);
49 bool ReadServiceData(std::map<bluetooth::Uuid, std::string> &serviceData, Parcel &parcel);
H A Dbluetooth_ble_scan_result.h24 class BluetoothBleScanResult : public Parcelable, public bluetooth::ScanResult {
27 explicit BluetoothBleScanResult(const bluetooth::ScanResult &other) : bluetooth::ScanResult(other) in BluetoothBleScanResult()
29 explicit BluetoothBleScanResult(const BluetoothBleScanResult &other) : bluetooth::ScanResult(other) in BluetoothBleScanResult()
31 explicit BluetoothBleScanResult(const bluetooth::BleScanResultImpl &other) : bluetooth::ScanResult(other) in BluetoothBleScanResult()
H A Dbluetooth_raw_address.h24 class BluetoothRawAddress : public Parcelable, public bluetooth::RawAddress {
27 BluetoothRawAddress(const bluetooth::RawAddress &other) : bluetooth::RawAddress(other) in BluetoothRawAddress()
29 BluetoothRawAddress(const BluetoothRawAddress &other) : bluetooth::RawAddress(other) in BluetoothRawAddress()
31 explicit BluetoothRawAddress(const std::string &address) : bluetooth::RawAddress(address) in BluetoothRawAddress()
H A Dbluetooth_bt_uuid.h25 * @brief This class provides bluetooth uuid.
29 class BluetoothUuid : public Parcelable, public bluetooth::Uuid {
44 explicit BluetoothUuid(const bluetooth::Uuid &other) : bluetooth::Uuid(other) in BluetoothUuid()
53 BluetoothUuid(const BluetoothUuid &other) : bluetooth::Uuid(other) in BluetoothUuid()
H A Dbluetooth_avrcp_mpItem.h25 public bluetooth::AvrcMpItem {
28 explicit BluetoothAvrcpMpItem(const bluetooth::AvrcMpItem &other) : bluetooth::AvrcMpItem(other) in BluetoothAvrcpMpItem()
30 BluetoothAvrcpMpItem(const BluetoothAvrcpMpItem &other) : bluetooth::AvrcMpItem(other) in BluetoothAvrcpMpItem()
H A Dbluetooth_avrcp_meItem.h25 public bluetooth::AvrcMeItem {
28 explicit BluetoothAvrcpMeItem(const bluetooth::AvrcMeItem &other) : bluetooth::AvrcMeItem(other) in BluetoothAvrcpMeItem()
30 BluetoothAvrcpMeItem(const BluetoothAvrcpMeItem &other) : bluetooth::AvrcMeItem(other) in BluetoothAvrcpMeItem()
H A Dbluetooth_gatt_service_parcel.h24 class BluetoothGattService : public Parcelable, public bluetooth::Service {
27 BluetoothGattService(const bluetooth::Service &other) : bluetooth::Service(other) in BluetoothGattService()
29 BluetoothGattService(const BluetoothGattService &other) : bluetooth::Service(other) in BluetoothGattService()
H A Dbluetooth_hfp_hf_call.h24 class BluetoothHfpHfCall : public Parcelable, public bluetooth::HandsFreeUnitCalls {
27 BluetoothHfpHfCall(const bluetooth::HandsFreeUnitCalls& other): bluetooth::HandsFreeUnitCalls(other) {} in BluetoothHfpHfCall()
28 BluetoothHfpHfCall(const BluetoothHfpHfCall& other): bluetooth::HandsFreeUnitCalls(other) {} in BluetoothHfpHfCall()
H A Dbluetooth_gatt_device.h24 class BluetoothGattDevice : public Parcelable, public bluetooth::GattDevice {
27 BluetoothGattDevice(const bluetooth::GattDevice &other) : bluetooth::GattDevice(other) in BluetoothGattDevice()
29 BluetoothGattDevice(const BluetoothGattDevice &other) : bluetooth::GattDevice(other) in BluetoothGattDevice()
H A Dbluetooth_ble_advertiser_settings.h24 class BluetoothBleAdvertiserSettings : public Parcelable, public bluetooth::AdvertiserSettings {
27 explicit BluetoothBleAdvertiserSettings(const bluetooth::AdvertiserSettings &other) in BluetoothBleAdvertiserSettings()
28 : bluetooth::AdvertiserSettings(other) in BluetoothBleAdvertiserSettings()
30 BluetoothBleAdvertiserSettings(const BluetoothBleAdvertiserSettings &other) : bluetooth::AdvertiserSettings(other) in BluetoothBleAdvertiserSettings()
H A Dbluetooth_ble_scan_settings.h24 class BluetoothBleScanSettings : public Parcelable, public bluetooth::ScanSettings {
27 explicit BluetoothBleScanSettings(const bluetooth::ScanSettings &other) : bluetooth::ScanSettings(other) in BluetoothBleScanSettings()
29 BluetoothBleScanSettings(const BluetoothBleScanSettings &other) : bluetooth::ScanSettings(other) in BluetoothBleScanSettings()
H A Dbluetooth_gatt_characteristic_parcel.h24 class BluetoothGattCharacteristic : public Parcelable, public bluetooth::Characteristic {
27 explicit BluetoothGattCharacteristic(const bluetooth::Characteristic &other) : bluetooth::Characteristic(other) in BluetoothGattCharacteristic()
29 explicit BluetoothGattCharacteristic(const BluetoothGattCharacteristic &other) : bluetooth::Characteristic(other) in BluetoothGattCharacteristic()
H A Dbluetooth_device_battery_info.h24 class BluetoothBatteryInfo : public Parcelable, public bluetooth::BatteryInfo {
27 explicit BluetoothBatteryInfo(const bluetooth::BatteryInfo& other) in BluetoothBatteryInfo()
28 : bluetooth::BatteryInfo(other) {} in BluetoothBatteryInfo()
30 : bluetooth::BatteryInfo(other) {} in BluetoothBatteryInfo()
H A Dbluetooth_gatt_descriptor_parcel.h24 class BluetoothGattDescriptor : public Parcelable, public bluetooth::Descriptor {
27 explicit BluetoothGattDescriptor(const bluetooth::Descriptor &other) : bluetooth::Descriptor(other) in BluetoothGattDescriptor()
29 explicit BluetoothGattDescriptor(const BluetoothGattDescriptor &other) : bluetooth::Descriptor(other) in BluetoothGattDescriptor()
H A Dparcel_bt_uuid.cpp21 bool ParcelBtUuid::WriteToParcel(MessageParcel &parcel, bluetooth::Uuid &uuid) in WriteToParcel()
23 bluetooth::Uuid::UUID128Bit uuid128 = uuid.ConvertTo128Bits(); in WriteToParcel()
44 bluetooth::Uuid ParcelBtUuid::ReadFromParcel(MessageParcel &parcel) in ReadFromParcel()
49 return bluetooth::Uuid::ConvertFromMostAndLeastBit(mostSigBits, leastSigBits); in ReadFromParcel()
H A Dbluetooth_a2dp_a2dpCodecStatus.cpp26 BluetoothA2dpCodecInfo info = bluetooth::CodecInfo(codecInfo); in Marshalling()
34 info = bluetooth::CodecInfo(infoLocalCap); in Marshalling()
43 info = bluetooth::CodecInfo(infoConfirmCap); in Marshalling()
72 codecInfo = bluetooth::CodecInfo(*info); in ReadFromParcel()
99 BluetoothA2dpOffloadCodecInfo info = BluetoothA2dpOffloadCodecInfo(bluetooth::OffloadCodecInfo(offloadInfo)); in Marshalling()
123 offloadInfo = bluetooth::OffloadCodecInfo(*info); in ReadFromParcel()
H A Dparcel_bt_uuid.h33 static bool WriteToParcel(MessageParcel &parcel, bluetooth::Uuid &uuid);
42 static bluetooth::Uuid ReadFromParcel(MessageParcel &parcel);
/foundation/communication/bluetooth_service/services/bluetooth/server/src/
H A Dbluetooth_gatt_server_server.cpp34 using namespace OHOS::bluetooth;
43 bluetooth::IProfileGattServer *serverService_;
51 bluetooth::IProfileGattServer *GetServicePtr() in GetServicePtr()
53 if (bluetooth::IProfileManager::GetInstance() == nullptr) { in GetServicePtr()
56 return static_cast<bluetooth::IProfileGattServer *>( in GetServicePtr()
57 bluetooth::IProfileManager::GetInstance()->GetProfileService(bluetooth::PROFILE_NAME_GATT_SERVER)); in GetServicePtr()
60 class BluetoothGattServerServer::impl::SystemStateObserver : public bluetooth::ISystemStateObserver {
65 void OnSystemStateChange(const bluetooth::BTSystemState state) override
69 case bluetooth
[all...]
H A Dbluetooth_ble_filter_matcher.cpp20 using namespace OHOS::bluetooth;
22 const std::vector<bluetooth::BleScanFilterImpl> &bleScanFilters, in MatchesScanFilters()
39 const bluetooth::BleScanFilterImpl &filter, in MatchesScanFilter()
65 MatchResult BluetoothBleFilterMatcher::MatchesAddress(const bluetooth::BleScanFilterImpl &filter, in MatchesAddress()
82 MatchResult BluetoothBleFilterMatcher::MatchesName(const bluetooth::BleScanFilterImpl &filter, in MatchesName()
99 MatchResult BluetoothBleFilterMatcher::MatchesServiceUuids(const bluetooth::BleScanFilterImpl &filter, in MatchesServiceUuids()
106 bluetooth::Uuid filterUuid = filter.GetServiceUuid(); in MatchesServiceUuids()
108 std::vector<bluetooth::Uuid> resultUuids = result.GetServiceUuids(); in MatchesServiceUuids()
124 bluetooth::Uuid uuidMask = filter.GetServiceUuidMask(); in MatchesServiceUuids()
133 MatchResult BluetoothBleFilterMatcher::MatchesManufacturerDatas(const bluetooth
[all...]
/foundation/communication/bluetooth/frameworks/inner/ipc/interface/
H A Di_bluetooth_socket.h31 bluetooth::Uuid uuid;
39 bluetooth::Uuid uuid;
52 virtual int RegisterClientObserver(const BluetoothRawAddress &dev, const bluetooth::Uuid uuid,
54 virtual int DeregisterClientObserver(const BluetoothRawAddress &dev, const bluetooth::Uuid uuid,
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gatt/
H A Dgatt_database.h32 namespace bluetooth { namespace
117 explicit Descriptor(const bluetooth::Descriptor &src) in Descriptor()
135 explicit Characteristic(const bluetooth::Characteristic &src) in Characteristic()
156 explicit IncludeService(const bluetooth::Service &src) in IncludeService()
178 explicit Service(const bluetooth::Service &src) in Service()
198 int AddService(bluetooth::Service &service);
211 int CheckLegalityOfServiceDefinition(bluetooth::Service &service);
214 static int CountDescriptorByUuid(const std::vector<bluetooth::Descriptor> &descriptors, const Uuid &uuid);
215 std::pair<uint16_t, uint16_t> CalculateAndAssignHandle(const bluetooth::Service &service);
218 int CheckIncludeServicesLegality(bluetooth
[all...]
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_gatt_server.cpp42 bluetooth::GattDevice device_;
48 RequestInformation(uint8_t type, const bluetooth::GattDevice &device, GattCharacteristic *characteristic) in RequestInformation()
54 RequestInformation(uint8_t type, const bluetooth::GattDevice &device, GattDescriptor *decriptor)
60 RequestInformation(uint8_t type, const bluetooth::GattDevice &device) : type_(type), device_(device) in device_()
84 std::list<bluetooth::GattDevice> devices_;
88 const bluetooth::GattDevice &device, uint16_t handle, const uint8_t *value, size_t length, int ret);
89 int RespondCharacteristicWrite(const bluetooth::GattDevice &device, uint16_t handle, int ret);
91 const bluetooth::GattDevice &device, uint16_t handle, const uint8_t *value, size_t length, int ret);
92 int RespondDescriptorWrite(const bluetooth::GattDevice &device, uint16_t handle, int ret);
96 bluetooth
[all...]

Completed in 7 milliseconds

12345678910>>...21