Home
last modified time | relevance | path

Searched refs:service_handle (Results 1 – 12 of 12) sorted by relevance

/system/bt/service/
Dgatt_server.cpp501 int service_handle) { in ServiceAddedCallback() argument
516 << " handle: " << service_handle in ServiceAddedCallback()
525 pending_handle_map_[*gatt_id] = service_handle; in ServiceAddedCallback()
526 CHECK(-1 == pending_decl_->service_handle); in ServiceAddedCallback()
527 pending_decl_->service_handle = service_handle; in ServiceAddedCallback()
536 int service_handle, in CharacteristicAddedCallback() argument
544 CHECK(pending_decl_->service_handle == service_handle); in CharacteristicAddedCallback()
551 << " service_handle: " << service_handle in CharacteristicAddedCallback()
569 int service_handle, in DescriptorAddedCallback() argument
577 CHECK(pending_decl_->service_handle == service_handle); in DescriptorAddedCallback()
[all …]
Dgatt_server.h213 ServiceDeclaration() : num_handles(0), service_handle(-1) {} in ServiceDeclaration()
217 int service_handle; member
266 int service_handle) override;
271 int service_handle,
277 int service_handle,
282 int service_handle) override;
286 int service_handle) override;
Dgatt_server_old.cpp118 int service_handle; member
155 g_internal->service_handle = srvc_handle; in ServiceAddedCallback()
516 server_if, service_handle, &c_uuid, properties, permissions); in AddCharacteristic()
523 service_handle(0), in ServerInternals()
532 gatt->server->delete_service(server_if, service_handle); in ~ServerInternals()
651 internal_->service_handle); in AddCharacteristic()
702 internal_->server_if, internal_->service_handle, GATT_TRANSPORT_LE); in Start()
705 internal_->service_handle); in Start()
715 internal_->server_if, internal_->service_handle); in Stop()
718 internal_->service_handle); in Stop()
/system/bt/btif/src/
Dbtif_gatt_server.c575 static bt_status_t btif_gatts_add_included_service(int server_if, int service_handle, in btif_gatts_add_included_service() argument
581 btif_cb.srvc_handle = (uint16_t) service_handle; in btif_gatts_add_included_service()
587 static bt_status_t btif_gatts_add_characteristic(int server_if, int service_handle, in btif_gatts_add_characteristic() argument
594 btif_cb.srvc_handle = (uint16_t) service_handle; in btif_gatts_add_characteristic()
602 static bt_status_t btif_gatts_add_descriptor(int server_if, int service_handle, bt_uuid_t *uuid, in btif_gatts_add_descriptor() argument
608 btif_cb.srvc_handle = (uint16_t) service_handle; in btif_gatts_add_descriptor()
615 static bt_status_t btif_gatts_start_service(int server_if, int service_handle, int transport) in btif_gatts_start_service() argument
620 btif_cb.srvc_handle = (uint16_t) service_handle; in btif_gatts_start_service()
626 static bt_status_t btif_gatts_stop_service(int server_if, int service_handle) in btif_gatts_stop_service() argument
631 btif_cb.srvc_handle = (uint16_t) service_handle; in btif_gatts_stop_service()
[all …]
/system/bt/stack/gap/
Dgap_ble.c384 UINT16 service_handle; in gap_attr_db_init() local
397 service_handle = GATTS_CreateService (gap_cb.gatt_if, &uuid, 0, GAP_MAX_ATTR_NUM, TRUE); in gap_attr_db_init()
399 GAP_TRACE_EVENT ("gap_attr_db_init service_handle = %d", service_handle); in gap_attr_db_init()
405 …p_db_attr->handle = GATTS_AddCharacteristic(service_handle, &uuid, GATT_PERM_READ, GATT_CHAR_PROP_… in gap_attr_db_init()
411 p_db_attr->handle = GATTS_AddCharacteristic(service_handle, in gap_attr_db_init()
425 p_db_attr->handle = GATTS_AddCharacteristic(service_handle, in gap_attr_db_init()
435 p_db_attr->handle = GATTS_AddCharacteristic(service_handle, &uuid, in gap_attr_db_init()
443 status = GATTS_StartService(gap_cb.gatt_if, service_handle, GAP_TRANSPORT_SUPPORTED ); in gap_attr_db_init()
446 gap_cb.gatt_if, service_handle, status); in gap_attr_db_init()
/system/bt/stack/srvc/
Dsrvc_dis.c94 if (handle >= dis_cb.service_handle && handle <= dis_cb.max_handle) in dis_valid_handle_range()
358 …dis_cb.service_handle = GATTS_CreateService (srvc_eng_cb.gatt_if , &uuid, 0, DIS_MAX_ATTR_NUM, TRU… in DIS_SrInit()
360 if (dis_cb.service_handle == 0) in DIS_SrInit()
365 dis_cb.max_handle = dis_cb.service_handle + DIS_MAX_ATTR_NUM; in DIS_SrInit()
372 …p_db_attr->handle = GATTS_AddCharacteristic(dis_cb.service_handle, &uuid, GATT_PERM_READ, GATT_CH… in DIS_SrInit()
381 …status = GATTS_StartService (srvc_eng_cb.gatt_if, dis_cb.service_handle, GATT_TRANSPORT_LE_BR_EDR); in DIS_SrInit()
Dsrvc_dis_int.h45 UINT16 service_handle; member
/system/bt/stack/gatt/
Dgatt_api.c276 UINT16 GATTS_AddIncludeService (UINT16 service_handle, UINT16 include_svc_handle) in GATTS_AddIncludeService() argument
281 if ((p_decl = gatt_find_hdl_buffer_by_handle(service_handle)) == NULL) in GATTS_AddIncludeService()
314 UINT16 GATTS_AddCharacteristic (UINT16 service_handle, tBT_UUID *p_char_uuid, in GATTS_AddCharacteristic() argument
319 if ((p_decl = gatt_find_hdl_buffer_by_handle(service_handle)) == NULL) in GATTS_AddCharacteristic()
356 UINT16 GATTS_AddCharDescriptor (UINT16 service_handle, in GATTS_AddCharDescriptor() argument
362 if ((p_decl = gatt_find_hdl_buffer_by_handle(service_handle)) == NULL) in GATTS_AddCharDescriptor()
463 tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle, in GATTS_StartService() argument
483 if ((p_list = gatt_find_hdl_buffer_by_handle(service_handle)) == NULL) in GATTS_StartService()
559 void GATTS_StopService (UINT16 service_handle) in GATTS_StopService() argument
561 UINT8 ii = gatt_sr_find_i_rcb_by_handle(service_handle); in GATTS_StopService()
[all …]
Dgatt_attr.c270 UINT16 service_handle = 0; in gatt_profile_db_init() local
281 service_handle = GATTS_CreateService (gatt_cb.gatt_if , &uuid, 0, GATTP_MAX_ATTR_NUM, TRUE); in gatt_profile_db_init()
287 …gatt_cb.handle_of_h_r = GATTS_AddCharacteristic(service_handle, &uuid, 0, GATT_CHAR_PROP_BIT… in gatt_profile_db_init()
294 status = GATTS_StartService (gatt_cb.gatt_if, service_handle, GATTP_TRANSPORT_SUPPORTED ); in gatt_profile_db_init()
/system/bt/stack/include/
Dgatt_api.h754 extern UINT16 GATTS_AddIncludeService (UINT16 service_handle,
776 extern UINT16 GATTS_AddCharacteristic (UINT16 service_handle, tBT_UUID *char_uuid,
798 extern UINT16 GATTS_AddCharDescriptor (UINT16 service_handle, tGATT_PERM perm,
830 extern tGATT_STATUS GATTS_StartService (tGATT_IF gatt_if, UINT16 service_handle,
845 extern void GATTS_StopService (UINT16 service_handle);
/system/bt/test/suite/gatt/
Dgatt_test.h42 int service_handle() const { return service_handle_; } in service_handle() function
Dgatt_unittest.cpp130 int srvc_handle = service_handle(); in TEST_F()