/aosp12/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothGattCallback.java | 38 public void onPhyUpdate(BluetoothGatt gatt, int txPhy, int rxPhy, int status) { in onPhyUpdate() argument 52 public void onPhyRead(BluetoothGatt gatt, int txPhy, int rxPhy, int status) { in onPhyRead() argument 65 public void onConnectionStateChange(BluetoothGatt gatt, int status, in onConnectionStateChange() argument 77 public void onServicesDiscovered(BluetoothGatt gatt, int status) { in onServicesDiscovered() argument 106 public void onCharacteristicWrite(BluetoothGatt gatt, in onCharacteristicWrite() argument 117 public void onCharacteristicChanged(BluetoothGatt gatt, in onCharacteristicChanged() argument 129 public void onDescriptorRead(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, in onDescriptorRead() argument 152 public void onReliableWriteCompleted(BluetoothGatt gatt, int status) { in onReliableWriteCompleted() argument 165 public void onReadRemoteRssi(BluetoothGatt gatt, int rssi, int status) { in onReadRemoteRssi() argument 179 public void onMtuChanged(BluetoothGatt gatt, int mtu, int status) { in onMtuChanged() argument [all …]
|
/aosp12/system/bt/bta/ |
H A D | Android.bp | 71 "gatt/bta_gattc_act.cc", 72 "gatt/bta_gattc_api.cc", 74 "gatt/bta_gattc_main.cc", 77 "gatt/bta_gatts_act.cc", 78 "gatt/bta_gatts_api.cc", 79 "gatt/bta_gatts_main.cc", 81 "gatt/database.cc", 181 "gatt/bta_gattc_act.cc", 182 "gatt/bta_gattc_api.cc", 187 "gatt/database.cc", [all …]
|
H A D | BUILD.gn | 42 "gatt/bta_gattc_act.cc", 43 "gatt/bta_gattc_api.cc", 44 "gatt/bta_gattc_cache.cc", 45 "gatt/bta_gattc_main.cc", 46 "gatt/bta_gattc_utils.cc", 47 "gatt/bta_gattc_queue.cc", 48 "gatt/bta_gatts_act.cc", 49 "gatt/bta_gatts_api.cc", 50 "gatt/bta_gatts_main.cc", 51 "gatt/bta_gatts_utils.cc", [all …]
|
/aosp12/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
H A D | GattClientListener.java | 184 public void onConnectionStateChange(BluetoothGatt gatt, int status, in onConnectionStateChange() argument 213 public void onServicesDiscovered(BluetoothGatt gatt, int status) { in onServicesDiscovered() argument 219 public void onCharacteristicRead(BluetoothGatt gatt, in onCharacteristicRead() argument 225 public void onCharacteristicWrite(BluetoothGatt gatt, in onCharacteristicWrite() argument 230 writeCharacteristic(gatt, (int) (timeElapse / MILLSEC)); in onCharacteristicWrite() 235 public void onCharacteristicChanged(BluetoothGatt gatt, in onCharacteristicChanged() argument 263 public void onMtuChanged(BluetoothGatt gatt, int mtu, int status) { in onMtuChanged() argument 268 writeCharacteristic(gatt, INIT_VALUE); in onMtuChanged() 277 private void writeCharacteristic(BluetoothGatt gatt, int value) { in writeCharacteristic() argument 279 BluetoothGattService service = gatt.getService(sUuid); in writeCharacteristic() [all …]
|
/aosp12/system/bt/service/ |
H A D | gatt_server_old.cc | 83 namespace gatt { namespace 115 const btgatt_interface_t* gatt; member 181 bluetooth::gatt::Characteristic& ctrl = in ServiceAddedCallback() 214 bluetooth::gatt::Characteristic& ch = in RequestReadCallback() 265 bluetooth::gatt::Characteristic& ch = in RequestWriteCallback() 361 g_internal->gatt->advertiser->Enable( in RegisterClientCallback() 477 namespace gatt { namespace 485 if (!gatt) { in Initialize() 516 : gatt(nullptr), in ServerInternals() 689 internal_->gatt->scanner->Scan(true); in ScanEnable() [all …]
|
/aosp12/system/bt/stack/ |
H A D | Android.bp | 40 "gatt", 149 "gatt/gatt_api.cc", 150 "gatt/gatt_attr.cc", 151 "gatt/gatt_auth.cc", 152 "gatt/gatt_cl.cc", 153 "gatt/gatt_db.cc", 154 "gatt/gatt_main.cc", 155 "gatt/gatt_sr.cc", 596 // gatt sr hash test 610 "gatt/gatt_db.cc", [all …]
|
H A D | BUILD.gn | 129 "gatt/att_protocol.cc", 131 "gatt/gatt_api.cc", 132 "gatt/gatt_attr.cc", 133 "gatt/gatt_auth.cc", 134 "gatt/gatt_cl.cc", 135 "gatt/gatt_db.cc", 136 "gatt/gatt_main.cc", 137 "gatt/gatt_sr.cc", 138 "gatt/gatt_sr_hash.cc", 139 "gatt/gatt_utils.cc", [all …]
|
/aosp12/system/bt/bta/vc/ |
H A D | devices_test.cc | 54 gatt::SetMockBtaGattQueue(&gatt_queue); in SetUp() 58 gatt::SetMockBtaGattQueue(nullptr); in TearDown() 59 gatt::SetMockBtaGattInterface(nullptr); in TearDown() 64 gatt::MockBtaGattInterface gatt_interface; 65 gatt::MockBtaGattQueue gatt_queue; 253 gatt::SetMockBtaGattQueue(nullptr); in TearDown() 260 gatt::DatabaseBuilder builder; in SetSampleDatabase1() 284 gatt::DatabaseBuilder builder; in SetSampleDatabase2() 294 gatt::MockBtaGattQueue gatt_queue; 296 std::list<gatt::Service> services; [all …]
|
H A D | vc_test.cc | 84 gatt::DatabaseBuilder builder; in set_sample_database() 164 gatt::SetMockBtaGattInterface(&gatt_interface); in SetUp() 165 gatt::SetMockBtaGattQueue(&gatt_queue); in SetUp() 172 uint16_t handle) -> const gatt::Characteristic* { in SetUp() 173 std::list<gatt::Service>& services = services_map[conn_id]; in SetUp() 202 Invoke([&](uint16_t conn_id) -> std::list<gatt::Service>* { in SetUp() 227 gatt::SetMockBtaGattQueue(nullptr); in TearDown() 228 gatt::SetMockBtaGattInterface(nullptr); in TearDown() 395 gatt::MockBtaGattInterface gatt_interface; 396 gatt::MockBtaGattQueue gatt_queue; [all …]
|
H A D | device.cc | 57 const gatt::Characteristic* p_char = in find_ccc_handle() 64 for (const gatt::Descriptor& desc : p_char->descriptors) { in find_ccc_handle() 73 const gatt::Service& service) { in set_volume_control_service_handles() 77 for (const gatt::Characteristic& chrc : service.characteristics) { in set_volume_control_service_handles() 112 const std::list<gatt::Service>* services = in UpdateHandles()
|
/aosp12/system/bt/bta/test/common/ |
H A D | bta_gatt_api_mock.cc | 20 static gatt::MockBtaGattInterface* gatt_interface = nullptr; 22 void gatt::SetMockBtaGattInterface( in SetMockBtaGattInterface() 60 const std::list<gatt::Service>* BTA_GATTC_GetServices(uint16_t conn_id) { in BTA_GATTC_GetServices() 64 const gatt::Characteristic* BTA_GATTC_GetCharacteristic(uint16_t conn_id, in BTA_GATTC_GetCharacteristic() 69 const gatt::Service* BTA_GATTC_GetOwningService(uint16_t conn_id, in BTA_GATTC_GetOwningService()
|
H A D | bta_gatt_queue_mock.cc | 20 static gatt::MockBtaGattQueue* gatt_queue = nullptr; 22 void gatt::SetMockBtaGattQueue(MockBtaGattQueue* mock_bta_gatt_queue) { in SetMockBtaGattQueue()
|
/aosp12/frameworks/base/core/java/android/bluetooth/le/ |
H A D | PeriodicAdvertisingManager.java | 155 IBluetoothGatt gatt; in registerSync() local 157 gatt = mBluetoothManager.getBluetoothGatt(); in registerSync() 174 gatt.registerSync( in registerSync() 197 IBluetoothGatt gatt; in unregisterSync() local 199 gatt = mBluetoothManager.getBluetoothGatt(); in unregisterSync() 211 gatt.unregisterSync(wrapper, mAttributionSource); in unregisterSync()
|
H A D | BluetoothLeScanner.java | 254 IBluetoothGatt gatt; in startScan() local 256 gatt = mBluetoothManager.getBluetoothGatt(); in startScan() 258 gatt = null; in startScan() 260 if (gatt == null) { in startScan() 276 BleScanCallbackWrapper wrapper = new BleScanCallbackWrapper(gatt, filters, in startScan() 281 gatt.startScanForIntent(callbackIntent, settings, filters, in startScan() 324 IBluetoothGatt gatt; in stopScan() local 326 gatt = mBluetoothManager.getBluetoothGatt(); in stopScan() 327 gatt.stopScanForIntent(callbackIntent, mAttributionSource); in stopScan()
|
H A D | BluetoothLeAdvertiser.java | 436 IBluetoothGatt gatt; 438 gatt = mBluetoothManager.getBluetoothGatt(); 446 if (gatt == null) { 460 gatt.startAdvertisingSet(parameters, advertiseData, scanResponse, periodicParameters, 488 IBluetoothGatt gatt; 490 gatt = mBluetoothManager.getBluetoothGatt(); 491 gatt.stopAdvertisingSet(wrapped, mAttributionSource);
|
/aosp12/system/bt/bta/gatt/ |
H A D | bta_gattc_int.h | 207 gatt::Database gatt_database; 211 gatt::DatabaseBuilder pending_discovery; 454 extern const std::list<gatt::Service>* bta_gattc_get_services(uint16_t conn_id); 455 extern const gatt::Service* bta_gattc_get_service_for_handle(uint16_t conn_id, 457 const gatt::Characteristic* bta_gattc_get_characteristic_srcb( 459 extern const gatt::Service* bta_gattc_get_service_for_handle_srcb( 461 extern const gatt::Characteristic* bta_gattc_get_characteristic( 463 extern const gatt::Descriptor* bta_gattc_get_descriptor(uint16_t conn_id, 465 extern const gatt::Characteristic* bta_gattc_get_owning_characteristic(
|
H A D | database.h | 30 namespace gatt { 117 std::vector<gatt::StoredAttribute> Serialize() const; 119 static Database Deserialize(const std::vector<gatt::StoredAttribute>& nv_attr,
|
H A D | bta_gattc_cache.cc | 44 using gatt::Characteristic; 45 using gatt::Database; 46 using gatt::DatabaseBuilder; 47 using gatt::Descriptor; 48 using gatt::IncludedService; 49 using gatt::Service; 50 using gatt::StoredAttribute; 119 p_srvc_cb->gatt_database = gatt::Database(); in bta_gattc_init_cache() 973 p_srcb->gatt_database = gatt::Database::Deserialize(attr, &success); in bta_gattc_cache_load()
|
/aosp12/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/ |
H A D | BluetoothMidiDevice.java | 99 public void onConnectionStateChange(BluetoothGatt gatt, int status, 113 public void onServicesDiscovered(BluetoothGatt gatt, int status) { 115 BluetoothGattService service = gatt.getService(MIDI_SERVICE); 125 boolean result = gatt.requestConnectionPriority( 142 public void onCharacteristicRead(BluetoothGatt gatt, 169 public void onCharacteristicWrite(BluetoothGatt gatt, 177 public void onCharacteristicChanged(BluetoothGatt gatt,
|
/aosp12/system/bt/test/mock/ |
H A D | mock_bta_gattc_api.cc | 44 const gatt::Characteristic* BTA_GATTC_GetCharacteristic(uint16_t conn_id, in BTA_GATTC_GetCharacteristic() 49 const gatt::Characteristic* BTA_GATTC_GetOwningCharacteristic(uint16_t conn_id, in BTA_GATTC_GetOwningCharacteristic() 54 const gatt::Descriptor* BTA_GATTC_GetDescriptor(uint16_t conn_id, in BTA_GATTC_GetDescriptor() 59 const gatt::Service* BTA_GATTC_GetOwningService(uint16_t conn_id, in BTA_GATTC_GetOwningService() 64 const std::list<gatt::Service>* BTA_GATTC_GetServices(uint16_t conn_id) { in BTA_GATTC_GetServices()
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
H A D | BluetoothAccessoryFragment.java | 249 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) { in onConnectionStateChange() argument 254 gatt.discoverServices(); in onConnectionStateChange() 259 public void onServicesDiscovered(BluetoothGatt gatt, int status) { in onServicesDiscovered() argument 262 Log.e(TAG, "Service discovery failure on " + gatt); in onServicesDiscovered() 267 final BluetoothGattService battService = gatt.getService(GATT_BATTERY_SERVICE_UUID); in onServicesDiscovered() 284 gatt.readCharacteristic(battLevel); in onServicesDiscovered() 288 public void onCharacteristicRead(BluetoothGatt gatt, in onCharacteristicRead() argument 292 Log.e(TAG, "Read characteristic failure on " + gatt + " " + characteristic); in onCharacteristicRead()
|
/aosp12/system/bt/bta/hh/ |
H A D | bta_hh_le.cc | 441 const gatt::Characteristic* p_char = in find_descriptor_by_short_uuid() 468 const gatt::Descriptor* p_desc = in bta_hh_le_read_char_descriptor() 667 const gatt::Characteristic* characteristic = in write_rpt_ctl_cfg_cb() 1281 const gatt::Service* service = in read_report_ref_desc_cb() 1452 const std::list<gatt::Service>* services = in bta_hh_le_srvc_search_cmpl() 1524 const gatt::Characteristic* p_char = in bta_hh_le_input_rpt_notify() 1536 const gatt::Service* p_svc = in bta_hh_le_input_rpt_notify() 1675 const gatt::Characteristic* p_char = in read_report_cb() 1708 const gatt::Service* p_svc = in read_report_cb() 1772 const gatt::Characteristic* p_char = in write_report_cb() [all …]
|
/aosp12/system/bt/stack/test/common/ |
H A D | mock_gatt_layer.cc | 20 static bluetooth::gatt::MockGattInterface* gatt_interface = nullptr; 22 void bluetooth::gatt::SetMockGattInterface( in SetMockGattInterface()
|
/aosp12/system/bt/test/suite/ |
H A D | Android.bp | 20 "gatt/gatt_test.cc", 21 "gatt/gatt_unittest.cc",
|
/aosp12/system/bt/bta/include/ |
H A D | bta_gatt_api.h | 523 extern const std::list<gatt::Service>* BTA_GATTC_GetServices(uint16_t conn_id); 538 extern const gatt::Characteristic* BTA_GATTC_GetCharacteristic(uint16_t conn_id, 554 extern const gatt::Descriptor* BTA_GATTC_GetDescriptor(uint16_t conn_id, 559 extern const gatt::Characteristic* BTA_GATTC_GetOwningCharacteristic( 564 extern const gatt::Service* BTA_GATTC_GetOwningService(uint16_t conn_id,
|