Home
last modified time | relevance | path

Searched refs:charac (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Bluetooth/system/bta/hh/
Dbta_hh_headtracker.cc32 tBTA_HH_DEV_CB* p_dev_cb, const gatt::Characteristic& charac) { in bta_hh_headtracker_parse_version_charac() argument
35 charac.value_handle); in bta_hh_headtracker_parse_version_charac()
46 tBTA_HH_DEV_CB* p_dev_cb, const gatt::Characteristic& charac) { in bta_hh_headtracker_prase_control_charac() argument
49 charac.value_handle); in bta_hh_headtracker_prase_control_charac()
60 tBTA_HH_DEV_CB* p_dev_cb, const gatt::Characteristic& charac) { in bta_hh_headtracker_parse_report_charac() argument
63 charac.value_handle); in bta_hh_headtracker_parse_report_charac()
118 for (const gatt::Characteristic& charac : service->characteristics) { in bta_hh_headtracker_parse_service() local
119 if (charac.uuid == ANDROID_HEADTRACKER_VERSION_CHARAC_UUID) { in bta_hh_headtracker_parse_service()
120 version_found = bta_hh_headtracker_parse_version_charac(p_dev_cb, charac); in bta_hh_headtracker_parse_service()
121 } else if (charac.uuid == ANDROID_HEADTRACKER_CONTROL_CHARAC_UUID) { in bta_hh_headtracker_parse_service()
[all …]
Dbta_hh_le.cc1450 for (const gatt::Characteristic& charac : service->characteristics) { in bta_hh_le_parse_hogp_service() local
1451 if (!charac.uuid.Is16Bit()) continue; in bta_hh_le_parse_hogp_service()
1453 uint16_t uuid16 = charac.uuid.As16Bit(); in bta_hh_le_parse_hogp_service()
1454 log::info("{} {}", bta_hh_uuid_to_str(uuid16), charac.uuid.ToString()); in bta_hh_le_parse_hogp_service()
1458 p_dev_cb->hid_srvc.control_point_handle = charac.value_handle; in bta_hh_le_parse_hogp_service()
1462 BtaGattQueue::ReadCharacteristic(p_dev_cb->conn_id, charac.value_handle, in bta_hh_le_parse_hogp_service()
1467 BtaGattQueue::ReadCharacteristic(p_dev_cb->conn_id, charac.value_handle, in bta_hh_le_parse_hogp_service()
1470 bta_hh_le_read_char_descriptor(p_dev_cb, charac.value_handle, in bta_hh_le_parse_hogp_service()
1478 charac.value_handle); in bta_hh_le_parse_hogp_service()
1486 bta_hh_le_read_char_descriptor(p_dev_cb, charac.value_handle, in bta_hh_le_parse_hogp_service()
[all …]
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gattc_cache.cc652 for (const Characteristic& charac : service->characteristics) { in bta_gattc_get_characteristic_srcb() local
653 if (handle == charac.value_handle) return &charac; in bta_gattc_get_characteristic_srcb()
678 for (const Characteristic& charac : service->characteristics) { in bta_gattc_get_descriptor_srcb() local
679 for (const Descriptor& desc : charac.descriptors) { in bta_gattc_get_descriptor_srcb()
703 for (const Characteristic& charac : service->characteristics) { in bta_gattc_get_owning_characteristic_srcb() local
704 for (const Descriptor& desc : charac.descriptors) { in bta_gattc_get_owning_characteristic_srcb()
705 if (handle == desc.handle) return &charac; in bta_gattc_get_owning_characteristic_srcb()
931 for (const Characteristic& charac : service.characteristics) { in bta_gattc_get_db_size() local
934 db_size += charac.descriptors.size(); in bta_gattc_get_db_size()
990 for (const Characteristic& charac : service.characteristics) { in bta_gattc_get_gatt_db_impl() local
[all …]
Ddatabase.cc117 for (const Characteristic& charac : service.characteristics) { in Serialize() local
119 {charac.declaration_handle, in Serialize()
121 {.characteristic = {.properties = charac.properties, in Serialize()
122 .value_handle = charac.value_handle, in Serialize()
123 .uuid = charac.uuid}}}); in Serialize()
125 for (const Descriptor& desc : charac.descriptors) { in Serialize()
/packages/modules/Bluetooth/system/bta/hearing_aid/
Dhearing_aid.cc858 for (const gatt::Characteristic& charac : service->characteristics) { in OnServiceSearchComplete() local
859 if (charac.uuid == READ_ONLY_PROPERTIES_UUID) { in OnServiceSearchComplete()
865 charac.value_handle); in OnServiceSearchComplete()
867 conn_id, charac.value_handle, in OnServiceSearchComplete()
870 } else if (charac.uuid == AUDIO_CONTROL_POINT_UUID) { in OnServiceSearchComplete()
871 hearingDevice->audio_control_point_handle = charac.value_handle; in OnServiceSearchComplete()
873 } else if (charac.uuid == AUDIO_STATUS_UUID) { in OnServiceSearchComplete()
874 hearingDevice->audio_status_handle = charac.value_handle; in OnServiceSearchComplete()
877 find_ccc_handle(conn_id, charac.value_handle); in OnServiceSearchComplete()
883 log::info("audio_status_handle=0x{:x}, ccc=0x{:x}", charac.value_handle, in OnServiceSearchComplete()
[all …]
/packages/modules/Bluetooth/system/bta/le_audio/
Dclient.cc2549 uint16_t find_ccc_handle(const gatt::Characteristic& charac) { in find_ccc_handle() argument
2551 charac.descriptors.begin(), charac.descriptors.end(), in find_ccc_handle()
2556 return iter == charac.descriptors.end() ? 0 : (*iter).handle; in find_ccc_handle()
2775 for (const gatt::Characteristic& charac : pac_svc->characteristics) { in OnServiceSearchComplete() local
2776 if (charac.uuid == bluetooth::le_audio::uuid:: in OnServiceSearchComplete()
2779 hdl_pair.val_hdl = charac.value_handle; in OnServiceSearchComplete()
2780 hdl_pair.ccc_hdl = find_ccc_handle(charac); in OnServiceSearchComplete()
2806 charac.value_handle, hdl_pair.ccc_hdl, leAudioDevice->address_); in OnServiceSearchComplete()
2807 } else if (charac.uuid == in OnServiceSearchComplete()
2811 hdl_pair.val_hdl = charac.value_handle; in OnServiceSearchComplete()
[all …]
/packages/modules/Bluetooth/system/bta/csis/
Dcsis_client.cc1738 for (const gatt::Characteristic& charac : service->characteristics) { in OnCsisServiceFound() local
1739 if (charac.uuid == kCsisLockUuid) { in OnCsisServiceFound()
1742 FindCccHandle(device->conn_id, charac.value_handle); in OnCsisServiceFound()
1748 csis_inst->svc_data.lock_handle.val_hdl = charac.value_handle; in OnCsisServiceFound()
1752 charac.value_handle, ccc_handle); in OnCsisServiceFound()
1759 } else if (charac.uuid == kCsisRankUuid) { in OnCsisServiceFound()
1760 csis_inst->svc_data.rank_handle = charac.value_handle; in OnCsisServiceFound()
1764 } else if (charac.uuid == kCsisSirkUuid) { in OnCsisServiceFound()
1767 FindCccHandle(device->conn_id, charac.value_handle); in OnCsisServiceFound()
1769 csis_inst->svc_data.sirk_handle.val_hdl = charac.value_handle; in OnCsisServiceFound()
[all …]
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothGattServer.java533 for (BluetoothGattCharacteristic charac : svc.getCharacteristics()) { in getCharacteristicByHandle()
534 if (charac.getInstanceId() == handle) { in getCharacteristicByHandle()
535 return charac; in getCharacteristicByHandle()
549 for (BluetoothGattCharacteristic charac : svc.getCharacteristics()) { in getDescriptorByHandle()
550 for (BluetoothGattDescriptor desc : charac.getDescriptors()) { in getDescriptorByHandle()
DBluetoothGatt.java1029 for (BluetoothGattCharacteristic charac : svc.getCharacteristics()) { in getCharacteristicById()
1030 if (charac.getInstanceId() == instanceId) { in getCharacteristicById()
1031 return charac; in getCharacteristicById()
1045 for (BluetoothGattCharacteristic charac : svc.getCharacteristics()) { in getDescriptorById()
1046 for (BluetoothGattDescriptor desc : charac.getDescriptors()) { in getDescriptorById()
/packages/modules/Bluetooth/system/bta/has/
Dhas_client.cc1606 for (const gatt::Characteristic& charac : service.characteristics) { in CacheAttributeHandles() local
1607 if (charac.uuid == kUuidActivePresetIndex) { in CacheAttributeHandles()
1610 FindCccHandle(device->conn_id, charac.value_handle); in CacheAttributeHandles()
1616 device->active_preset_handle = charac.value_handle; in CacheAttributeHandles()
1618 } else if (charac.uuid == kUuidHearingAidPresetControlPoint) { in CacheAttributeHandles()
1621 FindCccHandle(device->conn_id, charac.value_handle); in CacheAttributeHandles()
1627 if (charac.properties & GATT_CHAR_PROP_BIT_NOTIFY) in CacheAttributeHandles()
1630 if (charac.properties & GATT_CHAR_PROP_BIT_INDICATE) in CacheAttributeHandles()
1635 charac.properties); in CacheAttributeHandles()
1640 device->cp_handle = charac.value_handle; in CacheAttributeHandles()
[all …]