/system/sepolicy/prebuilts/api/26.0/private/ |
D | bluetooth.te | 1 # bluetooth subsystem 3 typeattribute bluetooth coredomain; 4 typeattribute bluetooth domain_deprecated; 6 app_domain(bluetooth) 7 net_domain(bluetooth) 10 type_transition bluetooth bluetooth_data_file:sock_file bluetooth_socket; 13 allowxperm bluetooth self:udp_socket ioctl priv_sock_ioctls; 15 wakelock_use(bluetooth); 18 allow bluetooth bluetooth_data_file:dir create_dir_perms; 19 allow bluetooth bluetooth_data_file:notdevfile_class_set create_file_perms; [all …]
|
/system/sepolicy/private/ |
D | bluetooth.te | 1 # bluetooth app 3 typeattribute bluetooth coredomain; 5 app_domain(bluetooth) 6 net_domain(bluetooth) 9 type_transition bluetooth bluetooth_data_file:sock_file bluetooth_socket; 12 allowxperm bluetooth self:udp_socket ioctl priv_sock_ioctls; 14 wakelock_use(bluetooth); 17 allow bluetooth bluetooth_data_file:dir create_dir_perms; 18 allow bluetooth bluetooth_data_file:notdevfile_class_set create_file_perms; 19 allow bluetooth bluetooth_logs_data_file:dir rw_dir_perms; [all …]
|
/system/bt/service/common/ |
D | Android.bp | 11 "bluetooth/adapter_state.cc", 12 "bluetooth/advertise_data.cc", 13 "bluetooth/advertise_settings.cc", 14 "bluetooth/characteristic.cc", 15 "bluetooth/descriptor.cc", 16 "bluetooth/scan_filter.cc", 17 "bluetooth/scan_result.cc", 18 "bluetooth/scan_settings.cc", 19 "bluetooth/service.cc", 20 "bluetooth/util/atomic_string.cc", [all …]
|
/system/bt/service/test/ |
D | parcelable_unittest.cc | 32 using bluetooth::AdvertiseData; 33 using bluetooth::AdvertiseSettings; 34 using bluetooth::Characteristic; 35 using bluetooth::Descriptor; 36 using bluetooth::ScanFilter; 37 using bluetooth::ScanResult; 38 using bluetooth::ScanSettings; 39 using bluetooth::Service; 40 using bluetooth::UUID; 42 namespace bluetooth { namespace [all …]
|
D | adapter_unittest.cc | 24 namespace bluetooth { namespace 60 class TestObserver final : public bluetooth::Adapter::Observer { 62 explicit TestObserver(bluetooth::Adapter* adapter) in TestObserver() 64 prev_state_(bluetooth::ADAPTER_STATE_INVALID), in TestObserver() 65 cur_state_(bluetooth::ADAPTER_STATE_INVALID), in TestObserver() 73 bluetooth::AdapterState prev_state() const { return prev_state_; } in prev_state() 74 bluetooth::AdapterState cur_state() const { return cur_state_; } in cur_state() 85 void OnAdapterStateChanged(bluetooth::Adapter* adapter, in OnAdapterStateChanged() 86 bluetooth::AdapterState prev_state, in OnAdapterStateChanged() 87 bluetooth::AdapterState new_state) override { in OnAdapterStateChanged() [all …]
|
D | ParcelableTest.aidl | 8 import android.bluetooth.AdvertiseData; 9 import android.bluetooth.AdvertiseSettings; 10 import android.bluetooth.BluetoothGattCharacteristic; 11 import android.bluetooth.BluetoothGattDescriptor; 12 import android.bluetooth.BluetoothGattIncludedService; 13 import android.bluetooth.BluetoothGattService; 14 import android.bluetooth.ScanFilter; 15 import android.bluetooth.ScanResult; 16 import android.bluetooth.ScanSettings; 17 import android.bluetooth.UUID;
|
/system/bt/service/ipc/binder/ |
D | bluetooth_le_scanner_binder_server.h | 33 using android::bluetooth::BnBluetoothLeScanner; 34 using android::bluetooth::IBluetoothLeScannerCallback; 36 namespace bluetooth { 47 public bluetooth::LowEnergyScanner::Delegate { 49 explicit BluetoothLeScannerBinderServer(bluetooth::Adapter* adapter); 59 const android::bluetooth::ScanSettings& settings, 60 const std::vector<android::bluetooth::ScanFilter>& filters, 64 void OnScanResult(bluetooth::LowEnergyScanner* scanner, 65 const bluetooth::ScanResult& result) override; 74 std::shared_ptr<bluetooth::LowEnergyScanner> GetLEScanner(int scanner_id); [all …]
|
D | bluetooth_gatt_server_binder_server.h | 27 using android::bluetooth::BnBluetoothGattServer; 28 using android::bluetooth::IBluetoothGattServerCallback; 32 namespace bluetooth { 42 public bluetooth::GattServer::Delegate { 44 explicit BluetoothGattServerBinderServer(bluetooth::Adapter* adapter); 49 const ::android::sp<::android::bluetooth::IBluetoothGattServerCallback>& 55 const ::android::bluetooth::BluetoothGattService& service, 68 void OnCharacteristicReadRequest(bluetooth::GattServer* gatt_server, 72 void OnDescriptorReadRequest(bluetooth::GattServer* gatt_server, 76 void OnCharacteristicWriteRequest(bluetooth::GattServer* gatt_server, [all …]
|
D | bluetooth_le_advertiser_binder_server.h | 33 using android::bluetooth::BnBluetoothLeAdvertiser; 34 using android::bluetooth::IBluetoothLeAdvertiserCallback; 36 namespace bluetooth { 47 explicit BluetoothLeAdvertiserBinderServer(bluetooth::Adapter* adapter); 58 const android::bluetooth::AdvertiseData& advertise_data, 59 const android::bluetooth::AdvertiseData& scan_response, 60 const android::bluetooth::AdvertiseSettings& settings, 71 std::shared_ptr<bluetooth::LowEnergyAdvertiser> GetLEAdvertiser( 75 void OnRegisterInstanceImpl(bluetooth::BLEStatus status, 77 bluetooth::BluetoothInstance* instance) override; [all …]
|
D | bluetooth_low_energy_binder_server.h | 33 using android::bluetooth::BnBluetoothLowEnergy; 34 using android::bluetooth::IBluetoothLowEnergyCallback; 36 namespace bluetooth { 47 public bluetooth::LowEnergyClient::Delegate { 49 explicit BluetoothLowEnergyBinderServer(bluetooth::Adapter* adapter); 66 void OnConnectionState(bluetooth::LowEnergyClient* client, int status, 68 void OnMtuChanged(bluetooth::LowEnergyClient* client, int status, 78 std::shared_ptr<bluetooth::LowEnergyClient> GetLEClient(int client_id); 81 void OnRegisterInstanceImpl(bluetooth::BLEStatus status, 83 bluetooth::BluetoothInstance* instance) override; [all …]
|
D | interface_with_instances_base.cc | 26 bluetooth::BluetoothInstanceFactory* factory) { in RegisterInstanceBase() 37 bluetooth::UUID app_uuid = bluetooth::UUID::GetRandom(); in RegisterInstanceBase() 48 bluetooth::BluetoothInstanceFactory::RegisterCallback cb = [weak_ptr_to_this]( in RegisterInstanceBase() 49 bluetooth::BLEStatus status, const bluetooth::UUID& in_uuid, in RegisterInstanceBase() 50 std::unique_ptr<bluetooth::BluetoothInstance> instance) { in RegisterInstanceBase() 93 std::shared_ptr<bluetooth::BluetoothInstance> 97 return std::shared_ptr<bluetooth::BluetoothInstance>(); in GetInstance() 102 bluetooth::BLEStatus status, const bluetooth::UUID& uuid, in OnRegisterInstance() 103 std::unique_ptr<bluetooth::BluetoothInstance> instance) { in OnRegisterInstance() 118 if (status != bluetooth::BLE_STATUS_SUCCESS) { in OnRegisterInstance() [all …]
|
D | bluetooth_binder_server.h | 41 using android::bluetooth::BnBluetooth; 42 using android::bluetooth::IBluetoothCallback; 43 using android::bluetooth::IBluetoothGattClient; 44 using android::bluetooth::IBluetoothGattServer; 45 using android::bluetooth::IBluetoothLowEnergy; 46 using android::bluetooth::IBluetoothLeAdvertiser; 47 using android::bluetooth::IBluetoothLeScanner; 54 public bluetooth::Adapter::Observer { 56 explicit BluetoothBinderServer(bluetooth::Adapter* adapter); 68 ::std::vector<::android::bluetooth::UUID>* _aidl_return) override; [all …]
|
D | interface_with_instances_base.h | 52 bluetooth::BluetoothInstanceFactory* factory); 72 std::shared_ptr<bluetooth::BluetoothInstance> GetInstance(int instance_id); 77 bluetooth::BLEStatus status, const bluetooth::UUID& uuid, 78 std::unique_ptr<bluetooth::BluetoothInstance> instance); 84 bluetooth::BLEStatus status, android::sp<IInterface> callback, 85 bluetooth::BluetoothInstance* instance) = 0; 92 RemoteCallbackMap<bluetooth::UUID, android::IInterface> pending_callbacks_; 98 std::unordered_map<int, std::shared_ptr<bluetooth::BluetoothInstance>>
|
D | bluetooth_gatt_client_binder_server.h | 27 using android::bluetooth::BnBluetoothGattClient; 28 using android::bluetooth::IBluetoothGattClientCallback; 32 namespace bluetooth { 43 explicit BluetoothGattClientBinderServer(bluetooth::Adapter* adapter); 62 std::shared_ptr<bluetooth::GattClient> GetGattClient(int client_id); 65 void OnRegisterInstanceImpl(bluetooth::BLEStatus status, 67 bluetooth::BluetoothInstance* instance) override; 69 bluetooth::Adapter* adapter_; // weak
|
D | bluetooth_le_scanner_binder_server.cc | 35 bluetooth::Adapter* adapter) in BluetoothLeScannerBinderServer() 46 bluetooth::LowEnergyScannerFactory* ble_factory = in RegisterScanner() 66 int scanner_id, const android::bluetooth::ScanSettings& settings, in StartScan() 67 const std::vector<android::bluetooth::ScanFilter>& filters, in StartScan() 79 std::vector<bluetooth::ScanFilter> flt; in StartScan() 105 bluetooth::LowEnergyScanner* scanner, const bluetooth::ScanResult& result) { in OnScanResult() 126 std::shared_ptr<bluetooth::LowEnergyScanner> 128 return std::static_pointer_cast<bluetooth::LowEnergyScanner>( in GetLEScanner() 133 bluetooth::BLEStatus status, android::sp<IInterface> callback, in OnRegisterInstanceImpl() 134 bluetooth::BluetoothInstance* instance) { in OnRegisterInstanceImpl() [all …]
|
D | bluetooth_gatt_client_binder_server.cc | 23 using android::bluetooth::IBluetoothGattClientCallback; 33 bluetooth::Adapter* adapter) in BluetoothGattClientBinderServer() 43 bluetooth::GattClientFactory* gatt_client_factory = in RegisterClient() 69 std::shared_ptr<bluetooth::GattClient> 71 return std::static_pointer_cast<bluetooth::GattClient>( in GetGattClient() 76 bluetooth::BLEStatus status, android::sp<IInterface> callback, in OnRegisterInstanceImpl() 77 bluetooth::BluetoothInstance* instance) { in OnRegisterInstanceImpl() 83 cb->OnClientRegistered(status, (status == bluetooth::BLE_STATUS_SUCCESS) in OnRegisterInstanceImpl()
|
D | bluetooth_gatt_server_binder_server.cc | 27 using ::android::bluetooth::IBluetoothGattServerCallback; 37 bluetooth::Adapter* adapter) in BluetoothGattServerBinderServer() 46 bluetooth::GattServerFactory* gatt_server_factory = in RegisterServer() 66 int server_id, const android::bluetooth::BluetoothGattService& service, in AddService() 81 auto callback = [=](bluetooth::BLEStatus status, in AddService() 82 const bluetooth::Service& service) { in AddService() 125 static_cast<bluetooth::GATTError>(status), offset, value); in SendResponse() 146 auto callback = [=](bluetooth::GATTError error) { in SendNotification() 177 bluetooth::GattServer* gatt_server, const std::string& device_address, in OnCharacteristicReadRequest() 194 bluetooth::GattServer* gatt_server, const std::string& device_address, in OnDescriptorReadRequest() [all …]
|
D | bluetooth_le_advertiser_binder_server.cc | 35 bluetooth::Adapter* adapter) in BluetoothLeAdvertiserBinderServer() 46 bluetooth::LowEnergyAdvertiserFactory* adv_factory = in RegisterAdvertiser() 67 int advertiser_id, const android::bluetooth::AdvertiseData& advertise_data, in StartMultiAdvertising() 68 const android::bluetooth::AdvertiseData& scan_response, in StartMultiAdvertising() 69 const android::bluetooth::AdvertiseSettings& settings, bool* _aidl_return) { in StartMultiAdvertising() 84 auto callback = [=](bluetooth::BLEStatus status) { in StartMultiAdvertising() 129 auto callback = [=](bluetooth::BLEStatus status) { in StopMultiAdvertising() 165 std::shared_ptr<bluetooth::LowEnergyAdvertiser> 167 return std::static_pointer_cast<bluetooth::LowEnergyAdvertiser>( in GetLEAdvertiser() 172 bluetooth::BLEStatus status, android::sp<IInterface> callback, in OnRegisterInstanceImpl() [all …]
|
/system/bt/service/example/heart_rate/ |
D | heart_rate_server.cc | 32 using android::bluetooth::IBluetoothLeAdvertiser; 33 using android::bluetooth::BluetoothGattService; 38 : public android::bluetooth::BnBluetoothLeAdvertiserCallback { 41 android::sp<android::bluetooth::IBluetooth> bt) in CLIBluetoothLeAdvertiserCallback() 46 if (status != bluetooth::BLE_STATUS_SUCCESS) { in OnAdvertiserRegistered() 59 std::vector<uint8_t> data{0x03, bluetooth::kEIRTypeComplete16BitUUIDs, in OnAdvertiserRegistered() 61 0x02, bluetooth::kEIRTypeTxPower, in OnAdvertiserRegistered() 64 data.push_back(bluetooth::kEIRTypeCompleteLocalName); in OnAdvertiserRegistered() 69 bluetooth::AdvertiseSettings settings( in OnAdvertiserRegistered() 70 bluetooth::AdvertiseSettings::MODE_LOW_POWER, timeout, in OnAdvertiserRegistered() [all …]
|
D | constants.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");
|
/system/bt/service/common/android/bluetooth/ |
D | IBluetooth.aidl | 17 package android.bluetooth; 19 import android.bluetooth.IBluetoothCallback; 20 import android.bluetooth.IBluetoothLowEnergy; 21 import android.bluetooth.IBluetoothLeAdvertiser; 22 import android.bluetooth.IBluetoothLeScanner; 23 import android.bluetooth.IBluetoothGattClient; 24 import android.bluetooth.IBluetoothGattServer; 26 import android.bluetooth.UUID;
|
/system/bt/test/suite/gatt/ |
D | gatt_test.h | 27 public bluetooth::hal::BluetoothGattInterface::ClientObserver, 28 public bluetooth::hal::BluetoothGattInterface::ScannerObserver, 29 public bluetooth::hal::BluetoothGattInterface::ServerObserver { 61 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, 63 void ScanResultCallback(bluetooth::hal::BluetoothGattInterface* /* unused */, 69 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, 72 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, 75 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, 78 bluetooth::hal::BluetoothGattInterface* /* unused */, int status,
|
D | gatt_test.cc | 48 bluetooth::hal::BluetoothGattInterface::Initialize(); in SetUp() 49 ASSERT_TRUE(bluetooth::hal::BluetoothGattInterface::IsInitialized()); in SetUp() 50 auto gatt_interface = bluetooth::hal::BluetoothGattInterface::Get(); in SetUp() 73 bluetooth::hal::BluetoothGattInterface::CleanUp(); in TearDown() 93 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, in RegisterClientCallback() 101 bluetooth::hal::BluetoothGattInterface* /* unused */, const RawAddress& bda, in ScanResultCallback() 108 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, in RegisterServerCallback() 116 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, in ServiceAddedCallback() 125 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, in ServiceStoppedCallback() 134 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, in ServiceDeletedCallback()
|
/system/bt/service/ |
D | BUILD.gn | 20 "common/bluetooth/adapter_state.cc", 21 "common/bluetooth/advertise_data.cc", 22 "common/bluetooth/advertise_settings.cc", 23 "common/bluetooth/characteristic.cc", 24 "common/bluetooth/descriptor.cc", 25 "common/bluetooth/scan_filter.cc", 26 "common/bluetooth/scan_result.cc", 27 "common/bluetooth/scan_settings.cc", 28 "common/bluetooth/service.cc", 29 "common/bluetooth/util/atomic_string.cc", [all …]
|
D | main.cc | 52 if (command_line->HasSwitch(bluetooth::switches::kHelpLong) || in main() 53 command_line->HasSwitch(bluetooth::switches::kHelpShort)) { in main() 54 LOG(INFO) << bluetooth::switches::kHelpMessage; in main() 69 if (!bluetooth::Daemon::Initialize()) { in main() 75 bluetooth::Daemon::Get()->StartMainLoop(); in main() 78 bluetooth::Daemon::Get()->ShutDown(); in main()
|