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

1234567

/system/bt/service/common/bluetooth/binder/
H A Dparcel_helpers.h23 #include <bluetooth/advertise_data.h>
24 #include <bluetooth/advertise_settings.h>
25 #include <bluetooth/gatt_identifier.h>
26 #include <bluetooth/scan_filter.h>
27 #include <bluetooth/scan_result.h>
28 #include <bluetooth/scan_settings.h>
29 #include <bluetooth/uuid.h>
37 // Helpers for converting bluetooth::AdvertiseData to/from Parcel
40 const bluetooth::AdvertiseData& data,
43 std::unique_ptr<bluetooth
[all...]
H A DIBluetoothLowEnergy.h23 #include <bluetooth/advertise_data.h>
24 #include <bluetooth/advertise_settings.h>
25 #include <bluetooth/scan_filter.h>
26 #include <bluetooth/scan_settings.h>
27 #include <bluetooth/binder/IBluetoothLowEnergyCallback.h>
83 const bluetooth::ScanSettings& settings,
84 const std::vector<bluetooth::ScanFilter>& filters) = 0;
89 const bluetooth::AdvertiseData& advertise_data,
90 const bluetooth::AdvertiseData& scan_response,
91 const bluetooth
[all...]
H A DIBluetoothGattServer.h27 #include <bluetooth/binder/IBluetoothGattServerCallback.h>
28 #include <bluetooth/gatt_identifier.h>
68 int server_if, bool is_primary, const bluetooth::UUID& uuid,
69 std::unique_ptr<bluetooth::GattIdentifier>* out_id) = 0;
71 int server_if, const bluetooth::UUID& uuid,
73 std::unique_ptr<bluetooth::GattIdentifier>* out_id) = 0;
75 int server_if, const bluetooth::UUID& uuid, int permissions,
76 std::unique_ptr<bluetooth::GattIdentifier>* out_id) = 0;
89 const bluetooth::GattIdentifier& characteristic_id,
130 int server_if, bool is_primary, const bluetooth
[all...]
/system/bt/service/example/heart_rate/
H A Dconstants.h19 #include <bluetooth/uuid.h>
31 const bluetooth::UUID kCCCDescriptorUUID("2902");
32 const bluetooth::UUID kHRServiceUUID("180D");
33 const bluetooth::UUID kHRMeasurementUUID("2A37");
34 const bluetooth::UUID kBodySensorLocationUUID("2A38");
35 const bluetooth::UUID kHRControlPointUUID("2A39");
H A Dheart_rate_server.h26 #include <bluetooth/binder/IBluetooth.h>
27 #include <bluetooth/binder/IBluetoothGattServerCallback.h>
28 #include <bluetooth/gatt_identifier.h>
37 android::sp<ipc::binder::IBluetooth> bluetooth,
58 const bluetooth::GattIdentifier& service_id) override;
62 const bluetooth::GattIdentifier& characteristic_id) override;
66 const bluetooth::GattIdentifier& descriptor_id) override;
71 const bluetooth::GattIdentifier& characteristic_id) override;
76 const bluetooth::GattIdentifier& descriptor_id) override;
116 bluetooth
[all...]
H A Dheart_rate_server.cpp24 #include <bluetooth/low_energy_constants.h>
41 void OnScanResult(const bluetooth::ScanResult& scan_result) override {}
44 if (status != bluetooth::BLE_STATUS_SUCCESS) {
55 bluetooth::AdvertiseSettings settings(
56 bluetooth::AdvertiseSettings::MODE_LOW_POWER,
58 bluetooth::AdvertiseSettings::TX_POWER_LEVEL_MEDIUM,
61 bluetooth::AdvertiseData adv_data(data);
65 bluetooth::AdvertiseData scan_rsp;
72 const bluetooth::AdvertiseSettings& /* settings */) {
83 android::sp<ipc::binder::IBluetooth> bluetooth,
82 HeartRateServer( android::sp<ipc::binder::IBluetooth> bluetooth, scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, bool advertise) argument
[all...]
/system/bt/service/ipc/binder/
H A Dbluetooth_gatt_server_binder_server.h22 #include "service/common/bluetooth/binder/IBluetoothGattServer.h"
23 #include "service/common/bluetooth/binder/IBluetoothGattServerCallback.h"
26 namespace bluetooth { namespace
28 } // namespace bluetooth
36 public bluetooth::GattServer::Delegate {
38 explicit BluetoothGattServerBinderServer(bluetooth::Adapter* adapter);
47 int server_id, bool is_primary, const bluetooth::UUID& uuid,
48 std::unique_ptr<bluetooth::GattIdentifier>* out_id) override;
50 int server_id, const bluetooth::UUID& uuid,
52 std::unique_ptr<bluetooth
[all...]
H A Dbluetooth_low_energy_binder_server.h23 #include "service/common/bluetooth/binder/IBluetoothLowEnergy.h"
24 #include "service/common/bluetooth/binder/IBluetoothLowEnergyCallback.h"
25 #include "service/common/bluetooth/low_energy_constants.h"
29 namespace bluetooth { namespace
31 } // namespace bluetooth
40 public bluetooth::LowEnergyClient::Delegate {
42 explicit BluetoothLowEnergyBinderServer(bluetooth::Adapter* adapter);
55 const bluetooth::ScanSettings& settings,
56 const std::vector<bluetooth::ScanFilter>& filters) override;
60 const bluetooth
[all...]
H A Dbluetooth_gatt_client_binder_server.h22 #include "service/common/bluetooth/binder/IBluetoothGattClient.h"
23 #include "service/common/bluetooth/binder/IBluetoothGattClientCallback.h"
26 namespace bluetooth { namespace
28 } // namespace bluetooth
37 explicit BluetoothGattClientBinderServer(bluetooth::Adapter* adapter);
55 std::shared_ptr<bluetooth::GattClient> GetGattClient(int client_id);
59 bluetooth::BLEStatus status,
61 bluetooth::BluetoothInstance* instance) override;
63 bluetooth::Adapter* adapter_; // weak
H A Dinterface_with_instances_base.h25 #include "service/common/bluetooth/uuid.h"
52 bluetooth::BluetoothInstanceFactory* factory);
72 std::shared_ptr<bluetooth::BluetoothInstance> GetInstance(
78 bluetooth::BLEStatus status,
79 const bluetooth::UUID& uuid,
80 std::unique_ptr<bluetooth::BluetoothInstance> instance);
86 bluetooth::BLEStatus status,
88 bluetooth::BluetoothInstance* instance) = 0;
95 RemoteCallbackMap<bluetooth::UUID, android::IInterface> pending_callbacks_;
101 std::unordered_map<int, std::shared_ptr<bluetooth
[all...]
H A Dbluetooth_gatt_client_binder_server.cpp31 bluetooth::Adapter* adapter) : adapter_(adapter) {
39 bluetooth::GattClientFactory* gatt_client_factory =
62 std::shared_ptr<bluetooth::GattClient>
64 return std::static_pointer_cast<bluetooth::GattClient>(
69 bluetooth::BLEStatus status,
71 bluetooth::BluetoothInstance* instance) {
79 (status == bluetooth::BLE_STATUS_SUCCESS) ?
H A Dinterface_with_instances_base.cpp26 bluetooth::BluetoothInstanceFactory* factory) {
37 bluetooth::UUID app_uuid = bluetooth::UUID::GetRandom();
48 bluetooth::BluetoothInstanceFactory::RegisterCallback cb =
50 bluetooth::BLEStatus status,
51 const bluetooth::UUID& in_uuid,
52 std::unique_ptr<bluetooth::BluetoothInstance> instance) {
96 std::shared_ptr<bluetooth::BluetoothInstance>
100 return std::shared_ptr<bluetooth::BluetoothInstance>();
105 bluetooth
[all...]
/system/bt/test/suite/gatt/
H A Dgatt_test.h27 public bluetooth::hal::BluetoothGattInterface::ClientObserver,
28 public bluetooth::hal::BluetoothGattInterface::ServerObserver {
55 // bluetooth::hal::BluetoothGattInterface::ClientObserver overrides
57 bluetooth::hal::BluetoothGattInterface* /* unused */,
60 bluetooth::hal::BluetoothGattInterface* /* unused */,
63 bluetooth::hal::BluetoothGattInterface* /* unused */,
66 // bluetooth::hal::BluetoothGattInterface::ServerObserver overrides
68 bluetooth::hal::BluetoothGattInterface* /* unused */,
71 bluetooth::hal::BluetoothGattInterface* /* unused */,
75 bluetooth
[all...]
/system/bt/service/ipc/
H A Dipc_handler.h24 namespace bluetooth { namespace
26 } // namespace bluetooth
34 IPCHandler(bluetooth::Adapter* adapter, IPCManager::Delegate* delegate);
47 bluetooth::Adapter* adapter() const { return adapter_; }
54 bluetooth::Adapter* adapter_;
H A Dipc_handler.cpp23 IPCHandler::IPCHandler(bluetooth::Adapter* adapter,
/system/bt/service/
H A Dswitches.h21 namespace bluetooth { namespace
42 } // namespace bluetooth
H A Dmain.cpp39 const char kDisableProperty[] = "persist.bluetooth.disable";
61 if (command_line->HasSwitch(bluetooth::switches::kHelpLong) ||
62 command_line->HasSwitch(bluetooth::switches::kHelpShort)) {
63 LOG(INFO) << bluetooth::switches::kHelpMessage;
78 if (!bluetooth::Daemon::Initialize()) {
84 bluetooth::Daemon::Get()->StartMainLoop();
87 bluetooth::Daemon::Get()->ShutDown();
/system/bt/service/test/
H A Dadapter_unittest.cpp21 #include "service/common/bluetooth/util/address_helper.h"
25 namespace bluetooth { namespace
60 class TestObserver final : public bluetooth::Adapter::Observer {
62 TestObserver(bluetooth::Adapter* adapter)
64 prev_state_(bluetooth::ADAPTER_STATE_INVALID),
65 cur_state_(bluetooth::ADAPTER_STATE_INVALID),
75 bluetooth::AdapterState prev_state() const { return prev_state_; }
76 bluetooth::AdapterState cur_state() const { return cur_state_; }
86 // bluetooth::Adapter::Observer override:
87 void OnAdapterStateChanged(bluetooth
[all...]
H A Dstub_ipc_handler_binder.cpp26 bluetooth::Adapter* adapter,
/system/bt/service/hal/
H A Dgatt_helpers.h21 #include <hardware/bluetooth.h>
24 #include "service/common/bluetooth/gatt_identifier.h"
28 namespace bluetooth { namespace
41 } // namespace bluetooth
/system/bt/btif/include/
H A Dbtif_debug_conn.h21 #include <hardware/bluetooth.h>
/system/bt/service/common/bluetooth/
H A Dadapter_state.cpp17 #include "service/common/bluetooth/adapter_state.h"
19 namespace bluetooth { namespace
44 } // namespace bluetooth
H A Dadapter_state.h21 namespace bluetooth { namespace
24 // from frameworks/base/core/java/android/bluetooth/BluetoothAdapter.java.
25 // These values need to match their android.bluetooth.BluetoothAdapter
43 } // namespace bluetooth
/system/bt/service/common/bluetooth/util/
H A Daddress_helper.h19 #include <hardware/bluetooth.h>
/system/bt/osi/include/
H A Dwakelock.h22 #include <hardware/bluetooth.h>

Completed in 342 milliseconds

1234567