Home
last modified time | relevance | path

Searched refs:GATT_MAX_ATTR_LEN (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Bluetooth/system/btif/src/
Dbtif_gatt_client.cc439 log::assert_that(len <= GATT_MAX_ATTR_LEN, in read_char_cb()
462 log::assert_that(len <= GATT_MAX_ATTR_LEN, in read_using_char_uuid_cb()
487 log::assert_that(len <= GATT_MAX_ATTR_LEN, in read_desc_cb()
523 if (value.size() > GATT_MAX_ATTR_LEN) value.resize(GATT_MAX_ATTR_LEN); in btif_gattc_write_char()
553 if (value.size() > GATT_MAX_ATTR_LEN) value.resize(GATT_MAX_ATTR_LEN); in btif_gattc_write_char_descr()
Dbtif_gatt_util.cc54 p_dest->attr_value.len = std::min<uint16_t>(p_src->attr_value.len, GATT_MAX_ATTR_LEN); in btif_to_bta_response()
Dbtif_gatt_server.cc436 if (length > GATT_MAX_ATTR_LEN) length = GATT_MAX_ATTR_LEN; in btif_gatts_send_indication()
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_cl.cc689 if (value.len > GATT_MAX_ATTR_LEN) { in gatt_process_notification()
911 p_clcb->p_attr_buf = (uint8_t*)osi_malloc(GATT_MAX_ATTR_LEN); in gatt_process_read_by_type_rsp()
912 if (p_clcb->counter <= GATT_MAX_ATTR_LEN) { in gatt_process_read_by_type_rsp()
1010 p_clcb->p_attr_buf = (uint8_t*)osi_malloc(GATT_MAX_ATTR_LEN); in gatt_process_read_rsp()
1013 if (offset < GATT_MAX_ATTR_LEN) { in gatt_process_read_rsp()
1014 if ((len + offset) > GATT_MAX_ATTR_LEN) in gatt_process_read_rsp()
1015 len = GATT_MAX_ATTR_LEN - offset; in gatt_process_read_rsp()
1032 if (packet_is_full && (len + offset < GATT_MAX_ATTR_LEN)) { in gatt_process_read_rsp()
Dgatt_sr.cc515 &p_msg->attr_value.len, GATT_MAX_ATTR_LEN, sec_flag, key_size, in gatt_process_read_multi_req()
1012 if (len > GATT_MAX_ATTR_LEN) len = GATT_MAX_ATTR_LEN; in gatts_process_write_req()
Dgatt_utils.cc1706 if (cb_data.att_value.len > GATT_MAX_ATTR_LEN) { in gatt_end_operation()
1708 cb_data.att_value.len = GATT_MAX_ATTR_LEN; in gatt_end_operation()
/packages/modules/Bluetooth/system/include/hardware/
Dbt_gatt_types.h38 #define GATT_MAX_ATTR_LEN 512 macro
Dbt_gatt_client.h31 uint8_t value[GATT_MAX_ATTR_LEN];
53 uint8_t value[GATT_MAX_ATTR_LEN];
Dbt_gatt_server.h29 uint8_t value[GATT_MAX_ATTR_LEN];
/packages/modules/Bluetooth/system/stack/srvc/
Dsrvc_dis.cc151 if (strlen((char*)pp) > GATT_MAX_ATTR_LEN) in dis_read_attr_value()
152 p_value->len = GATT_MAX_ATTR_LEN; in dis_read_attr_value()
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gatts_int.h93 uint8_t value[GATT_MAX_ATTR_LEN];
Dbta_gattc_act.cc1084 if (attr.len > GATT_MAX_ATTR_LEN) { in bta_gattc_write()
/packages/modules/Bluetooth/system/stack/gap/
Dgap_ble.cc147 if (strlen((char*)p_dev_name) > GATT_MAX_ATTR_LEN) in read_attr_value()
148 p_value->len = GATT_MAX_ATTR_LEN; in read_attr_value()
/packages/modules/Bluetooth/system/bta/include/
Dbta_gatt_api.h139 uint8_t value[GATT_MAX_ATTR_LEN];
191 uint8_t value[GATT_MAX_ATTR_LEN];
/packages/modules/Bluetooth/system/stack/include/
Dgatt_api.h490 uint8_t value[GATT_MAX_ATTR_LEN]; /* the actual attribute value */
523 uint8_t value[GATT_MAX_ATTR_LEN]; /* the actual attribute value */
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothGattServer.java66 private static final int GATT_MAX_ATTR_LEN = 512; field in BluetoothGattServer
924 if (value.length > GATT_MAX_ATTR_LEN) { in notifyCharacteristicChanged()
DBluetoothGatt.java95 private static final int GATT_MAX_ATTR_LEN = 512; field in BluetoothGatt
1558 if (value.length > GATT_MAX_ATTR_LEN) { in writeCharacteristic()
/packages/modules/Bluetooth/system/bta/le_audio/
Dclient_parser.cc405 if (msg_len > GATT_MAX_ATTR_LEN) { in PrepareAseCtpEnable()
502 if (msg_len > GATT_MAX_ATTR_LEN) { in PrepareAseCtpUpdateMetadata()
/packages/modules/Bluetooth/system/bta/vc/
Dvc.cc1218 if (!n.is_notify || n.len > GATT_MAX_ATTR_LEN) { in gattc_callback()
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_gatt.cpp2122 if (env->GetArrayLength(val) < GATT_MAX_ATTR_LEN) { in gattServerSendResponseNative()
2125 response.attr_value.len = GATT_MAX_ATTR_LEN; in gattServerSendResponseNative()
/packages/modules/Bluetooth/system/bta/hearing_aid/
Dhearing_aid.cc2115 if (!p_data->notify.is_notify || p_data->notify.len > GATT_MAX_ATTR_LEN) { in hearingaid_gattc_callback()
/packages/modules/Bluetooth/system/bta/has/
Dhas_client.cc1963 if (evt.len > GATT_MAX_ATTR_LEN) { in OnGattNotification()
Dhas_client_test.cc886 ASSERT_TRUE(value.size() < GATT_MAX_ATTR_LEN); in InjectNotificationEvent()
/packages/modules/Bluetooth/system/bta/csis/
Dcsis_client.cc2115 if (!evt.is_notify || evt.len > GATT_MAX_ATTR_LEN) { in OnGattNotification()