Home
last modified time | relevance | path

Searched refs:GATT_SUCCESS (Results 1 – 25 of 68) sorted by relevance

123

/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_sr.cc254 if (status == GATT_SUCCESS) { in process_read_multi_rsp()
288 tGATT_STATUS ret_code = GATT_SUCCESS; in gatt_sr_process_app_rsp()
299 return (GATT_SUCCESS); in gatt_sr_process_app_rsp()
301 if (op_code == GATT_REQ_PREPARE_WRITE && status == GATT_SUCCESS) in gatt_sr_process_app_rsp()
304 if (op_code == GATT_REQ_EXEC_WRITE && status != GATT_SUCCESS) in gatt_sr_process_app_rsp()
309 if (gatt_sr_is_cback_cnt_zero(tcb) && status == GATT_SUCCESS) { in gatt_sr_process_app_rsp()
319 if ((sr_res_p->status == GATT_SUCCESS) && (sr_res_p->p_rsp_msg)) { in gatt_sr_process_app_rsp()
415 tGATT_STATUS err = GATT_SUCCESS; in gatt_process_read_multi_req()
450 if (err != GATT_SUCCESS) { in gatt_process_read_multi_req()
468 if (err == GATT_SUCCESS) { in gatt_process_read_multi_req()
[all …]
Dgatt_cl.cc97 gatt_end_operation(p_clcb, GATT_SUCCESS, NULL); in gatt_act_discovery()
136 if (st != GATT_SUCCESS && st != GATT_CMD_STARTED) { in gatt_act_discovery()
221 if (op_code == 0 || (rt != GATT_SUCCESS && rt != GATT_CMD_STARTED)) { in gatt_act_read()
243 if (rt != GATT_SUCCESS) { in gatt_act_write()
258 if (rt != GATT_SUCCESS && rt != GATT_CMD_STARTED && in gatt_act_write()
260 if (rt != GATT_SUCCESS) { in gatt_act_write()
303 if (rt != GATT_SUCCESS) { in gatt_send_queue_write_cancel()
335 p_clcb->status = GATT_SUCCESS; in gatt_check_write_long_terminate()
376 if (rt != GATT_SUCCESS && rt != GATT_CMD_STARTED && rt != GATT_CONGESTED) { in gatt_send_prepare_write()
506 status = GATT_SUCCESS; in gatt_proc_disc_error_rsp()
[all …]
Dgatt_db.cc144 return GATT_SUCCESS; in gatts_check_attr_readability()
177 if (status != GATT_SUCCESS) return status; in read_attr_value()
192 return GATT_SUCCESS; in read_attr_value()
212 return GATT_SUCCESS; in read_attr_value()
231 return GATT_SUCCESS; in read_attr_value()
247 return GATT_SUCCESS; in read_attr_value()
300 } else if (status == GATT_SUCCESS) { in gatts_db_read_attr_value_by_type()
638 status = GATT_SUCCESS; in gatts_write_attr_perm_check()
642 status = GATT_SUCCESS; in gatts_write_attr_perm_check()
662 return GATT_SUCCESS; in gatts_write_attr_perm_check()
Dgatt_attr.cc228 return GATT_SUCCESS; in read_attr_value()
499 if (status != GATT_SUCCESS) { in gatt_disc_cmpl_cback()
527 if (status != GATT_SUCCESS) { in gatt_svc_read_cl_supp_feat_req()
548 if (status != GATT_SUCCESS) { in gatt_att_write_cl_supp_feat()
615 if (status == GATT_SUCCESS) { in gatt_cl_op_cmpl_cback()
644 if (status != GATT_SUCCESS) { in gatt_cl_op_cmpl_cback()
768 if (GATTC_Read(conn_id, GATT_READ_BY_TYPE, &param) != GATT_SUCCESS) { in read_sr_supported_feat_req()
992 return GATT_SUCCESS; in gatt_sr_read_db_hash()
1006 return GATT_SUCCESS; in gatt_sr_read_cl_supp_feat()
1086 return GATT_SUCCESS; in gatt_sr_write_cl_supp_feat()
Dgatt_api.cc470 return GATT_SUCCESS; in GATTS_HandleValueIndication()
482 if (cmd_status == GATT_SUCCESS || cmd_status == GATT_CONGESTED) { in GATTS_HandleValueIndication()
577 return GATT_SUCCESS; in GATTS_HandleValueNotification()
787 return GATT_SUCCESS; in GATTC_Discover()
902 return GATT_SUCCESS; in GATTC_Read()
952 return GATT_SUCCESS; in GATTC_Write()
990 return GATT_SUCCESS; in GATTC_ExecuteWrite()
1017 return GATT_SUCCESS; in GATTC_SendHandleValueConfirm()
1422 return GATT_SUCCESS; in GATT_Disconnect()
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_gatt_api.cc77 tGATT_STATUS GATTC_ConfigureMTU::return_value = GATT_SUCCESS;
78 tGATT_STATUS GATTC_Discover::return_value = GATT_SUCCESS;
79 tGATT_STATUS GATTC_ExecuteWrite::return_value = GATT_SUCCESS;
80 tGATT_STATUS GATTC_Read::return_value = GATT_SUCCESS;
81 tGATT_STATUS GATTC_SendHandleValueConfirm::return_value = GATT_SUCCESS;
82 tGATT_STATUS GATTC_Write::return_value = GATT_SUCCESS;
83 tGATT_STATUS GATTS_AddService::return_value = GATT_SUCCESS;
85 tGATT_STATUS GATTS_HandleValueIndication::return_value = GATT_SUCCESS;
86 tGATT_STATUS GATTS_HandleValueNotification::return_value = GATT_SUCCESS;
88 tGATT_STATUS GATTS_SendRsp::return_value = GATT_SUCCESS;
[all …]
Dmock_stack_gatt_attr.cc61 return GATT_SUCCESS; in proc_read_req()
66 return GATT_SUCCESS; in proc_write_req()
71 return GATT_SUCCESS; in read_attr_value()
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gatts_act.cc166 tGATT_STATUS status = GATT_SUCCESS; in bta_gatts_register()
183 if (status == GATT_SUCCESS) { in bta_gatts_register()
261 status = GATT_SUCCESS; in bta_gatts_deregister()
299 cb_data.srvc_oper.status = GATT_SUCCESS; in bta_gatts_delete_service()
325 cb_data.srvc_oper.status = GATT_SUCCESS; in bta_gatts_stop_service()
343 (tGATTS_RSP*)p_msg->api_rsp.p_rsp) != GATT_SUCCESS) { in bta_gatts_send_rsp()
394 if ((status != GATT_SUCCESS || !p_msg->api_indicate.need_confirm) && in bta_gatts_indicate_handle()
427 status = GATT_SUCCESS; in bta_gatts_open()
464 status = GATT_SUCCESS; in bta_gatts_cancel_open()
497 if (status != GATT_SUCCESS) { in bta_gatts_close()
Dbta_gattc_act.cc210 status = GATT_SUCCESS; in bta_gattc_register()
360 bta_gattc_send_open_cback(p_clcb->p_rcb, GATT_SUCCESS, p_clcb->bda, in bta_gattc_open_error()
468 cb_data.status = GATT_SUCCESS; in bta_gattc_cancel_bk_conn()
487 cb_data.status = GATT_SUCCESS; in bta_gattc_cancel_open_ok()
546 bta_gattc_reset_discover_st(p_clcb->p_srcb, GATT_SUCCESS); in bta_gattc_conn()
582 bta_gattc_send_open_cback(p_clcb->p_rcb, GATT_SUCCESS, p_clcb->bda, in bta_gattc_conn()
616 .status = GATT_SUCCESS, in bta_gattc_close()
711 bta_gattc_cb.clcb[i].status = GATT_SUCCESS; in bta_gattc_set_discover_st()
736 if (status != GATT_SUCCESS && status != GATT_CMD_STARTED) { in bta_gattc_cfg_mtu()
753 if (p_clcb->status != GATT_SUCCESS) { in bta_gattc_start_discover_internal()
[all …]
Dbta_gattc_cache.cc243 bta_gattc_reset_discover_st(p_clcb->p_srcb, GATT_SUCCESS); in bta_gattc_explore_srvc_finished()
367 return GATT_SUCCESS; in bta_gattc_sdp_service_disc()
443 if (p_clcb && (status != GATT_SUCCESS || p_clcb->status != GATT_SUCCESS)) { in bta_gattc_disc_cmpl_cback()
444 if (status == GATT_SUCCESS) p_clcb->status = status; in bta_gattc_disc_cmpl_cback()
643 if (status != GATT_SUCCESS) return false; in bta_gattc_read_db_hash()
669 if (p_data->status == GATT_SUCCESS) { in bta_gattc_read_db_hash_cmpl()
719 bta_gattc_reset_discover_st(p_clcb->p_srcb, GATT_SUCCESS); in bta_gattc_read_db_hash_cmpl()
729 bta_gattc_reset_discover_st(p_clcb->p_srcb, GATT_SUCCESS); in bta_gattc_read_db_hash_cmpl()
763 if (status != GATT_SUCCESS) { in bta_gattc_read_ext_prop_desc_cmpl()
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/internal/bluetooth/
DIBluetoothGattImpl.java98 callback.onClientRegistered(BluetoothGatt.GATT_SUCCESS, clientIf); in registerClient()
182 callback.onSearchComplete(serverAddress, BluetoothGatt.GATT_SUCCESS); in discoverServices()
254 BluetoothGatt.GATT_SUCCESS, in writeCharacteristic()
394 BluetoothGatt.GATT_SUCCESS, in writeDescriptor()
435 callback.onServerRegistered(BluetoothGatt.GATT_SUCCESS, serverIf); in registerServer()
517 BluetoothGatt.GATT_SUCCESS, 0 /*srvcType*/, 0 /*srvcInstId*/, in endServiceDeclaration()
626 callback.onNotificationSent(address, BluetoothGatt.GATT_SUCCESS); in sendNotification()
691 BluetoothGatt.GATT_SUCCESS, clientIf, isConnected, in newClientConnectionStateChangeRunnable()
703 BluetoothGatt.GATT_SUCCESS, serverIf, isConnected, in newServerConnectionStateChangeRunnable()
/packages/modules/Connectivity/nearby/tests/multidevices/clients/test_support/fastpair_provider/src/android/nearby/fastpair/provider/bluetooth/
DBluetoothGattServerHelper.java234 if (status != BluetoothGatt.GATT_SUCCESS) { in onConnectionStateChange()
280 if (status != BluetoothGatt.GATT_SUCCESS) { in onConnectionStateChange()
309 bluetoothGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, in onCharacteristicReadRequest()
344 device, requestId, BluetoothGatt.GATT_SUCCESS, offset, null); in onCharacteristicWriteRequest()
369 device, requestId, BluetoothGatt.GATT_SUCCESS, offset, value); in onDescriptorReadRequest()
399 device, requestId, BluetoothGatt.GATT_SUCCESS, offset, null); in onDescriptorWriteRequest()
424 device, requestId, BluetoothGatt.GATT_SUCCESS, 0, null); in onExecuteWrite()
/packages/modules/Bluetooth/system/stack/test/gatt/
Dgatt_sr_test.cc52 tGATT_STATUS return_status_{GATT_SUCCESS};
76 return GATT_SUCCESS; in attp_send_cl_confirmation_msg()
80 return GATT_SUCCESS; in attp_send_cl_msg()
83 return GATT_SUCCESS; in attp_send_sr_msg()
94 return GATT_SUCCESS; in gatts_db_read_attr_value_by_type()
100 return GATT_SUCCESS; in GATTS_HandleValueIndication()
106 return GATT_SUCCESS; in gatts_read_attr_perm_check()
113 return GATT_SUCCESS; in gatts_read_attr_value_by_handle()
Dmock_gatt_utils_ref.cc41 return GATT_SUCCESS; in attp_send_cl_confirmation_msg()
45 return GATT_SUCCESS; in attp_send_cl_msg()
48 return GATT_SUCCESS; in attp_send_sr_msg()
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/common/bluetooth/gatt/
DBluetoothGattHelperTest.java360 BluetoothGatt.GATT_SUCCESS, BluetoothGatt.STATE_CONNECTED); in test_BluetoothGattCallback_onConnectionStateChange_connected_success()
364 BluetoothGatt.GATT_SUCCESS, in test_BluetoothGattCallback_onConnectionStateChange_connected_success()
382 BluetoothGatt.GATT_SUCCESS, BluetoothGatt.STATE_CONNECTED); in test_BluetoothGattCallback_onConnectionStateChange_connected_success_withMtuOption()
402 BluetoothGatt.GATT_SUCCESS, BluetoothGatt.STATE_CONNECTED); in test_BluetoothGattCallback_onConnectionStateChange_connected_success_failMtuOption()
418 BluetoothGatt.GATT_SUCCESS, BluetoothGatt.STATE_CONNECTED); in test_BluetoothGattCallback_onConnectionStateChange_connected_unexpectedSuccess()
451 BluetoothGatt.GATT_SUCCESS, in test_BluetoothGattCallback_onConnectionStateChange_disconnected_unexpectedSuccess()
489 BluetoothGatt.GATT_SUCCESS, BluetoothGatt.STATE_DISCONNECTED); in test_BluetoothGattCallback_onConnectionStateChange_disconnected_success()
493 BluetoothGatt.GATT_SUCCESS); in test_BluetoothGattCallback_onConnectionStateChange_disconnected_success()
614 mMockBluetoothGattWrapper, MTU, BluetoothGatt.GATT_SUCCESS); in testBluetoothGattCallback_onMtuChangedDuringConnection_success()
620 BluetoothGatt.GATT_SUCCESS, in testBluetoothGattCallback_onMtuChangedDuringConnection_success()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryStateMachineTest.java19 import static android.bluetooth.BluetoothGatt.GATT_SUCCESS;
184 GATT_SUCCESS, BluetoothProfile.STATE_CONNECTED); in testSuccessfullyConnected()
216 GATT_SUCCESS, BluetoothProfile.STATE_DISCONNECTED); in testConnectedStateChanges()
230 GATT_SUCCESS, BluetoothProfile.STATE_DISCONNECTED); in testConnectedStateChanges()
323 GATT_SUCCESS, BluetoothProfile.STATE_CONNECTED); in reconnect()
/packages/modules/Bluetooth/android/pandora/server/src/com/android/pandora/
DGattServerManager.kt47 check(status == BluetoothGatt.GATT_SUCCESS) in onServiceAdded()
66 BluetoothGatt.GATT_SUCCESS, in onCharacteristicReadRequest()
71 server.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset, ByteArray(0)) in onCharacteristicReadRequest()
/packages/modules/Bluetooth/system/bta/hh/
Dbta_hh_le.cc187 if (r_status == GATT_SUCCESS) { in bta_hh_le_enable()
512 if (status == GATT_SUCCESS && len == 2) { in bta_hh_le_save_report_ref()
694 if (status == GATT_SUCCESS) in write_rpt_ctl_cfg_cb()
754 cback_data.status = (status == GATT_SUCCESS) ? BTA_HH_OK : BTA_HH_ERR; in write_proto_mode_cb()
756 if (status == GATT_SUCCESS) in write_proto_mode_cb()
762 p_dev_cb->status = (status == GATT_SUCCESS) ? BTA_HH_OK : BTA_HH_ERR_PROTO; in write_proto_mode_cb()
833 if (status == GATT_SUCCESS && len) { in get_protocol_mode_cb()
1122 if (p_data->status == GATT_SUCCESS) { in bta_hh_gatt_open()
1218 if (status != GATT_SUCCESS) { in read_hid_info_cb()
1239 if (status != GATT_SUCCESS) { in read_hid_report_map_cb()
[all …]
/packages/modules/Bluetooth/system/bta/csis/
Dcsis_client_test.cc195 cb(conn_id, GATT_SUCCESS, handle, value.size(), value.data(), in set_sample_database()
323 cb(conn_id, GATT_SUCCESS, handle, value.size(), value.data(), in set_sample_database_double_csis()
377 .WillByDefault(Return(GATT_SUCCESS)); in SetUp()
381 .WillByDefault(Return(GATT_SUCCESS)); in SetUp()
390 cb(conn_id, GATT_SUCCESS, handle, value.size(), value.data(), in SetUp()
412 app_register_callback.Run(gatt_if, GATT_SUCCESS); in TestAppRegister()
466 .status = GATT_SUCCESS, in InjectConnectedEvent()
481 .status = GATT_SUCCESS, in InjectDisconnectedEvent()
493 .status = GATT_SUCCESS, in GetSearchCompleteEvent()
520 .status = GATT_SUCCESS, in GetDisconnectedEvent()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBassClientStateMachineTest.java20 import static android.bluetooth.BluetoothGatt.GATT_SUCCESS;
231 GATT_SUCCESS, BluetoothProfile.STATE_CONNECTED); in testSuccessfullyConnected()
569 status = GATT_SUCCESS; in gattCallbackOnServicesDiscovered()
594 cb.onCharacteristicRead(null, characteristic, GATT_SUCCESS); in gattCallbackOnCharacteristicRead()
625 cb.onCharacteristicRead(null, characteristic, GATT_SUCCESS); in gattCallbackOnCharacteristicRead()
635 cb.onCharacteristicRead(null, characteristic, GATT_SUCCESS); in gattCallbackOnCharacteristicRead()
662 cb.onCharacteristicRead(null, characteristic, GATT_SUCCESS); in gattCallbackOnCharacteristicRead()
684 cb.onCharacteristicRead(null, characteristic, GATT_SUCCESS); in gattCallbackOnCharacteristicRead()
701 cb.onCharacteristicRead(null, characteristic, GATT_SUCCESS); in gattCallbackOnCharacteristicRead()
744 cb.onCharacteristicWrite(null, characteristic, GATT_SUCCESS); in gattCharacteristicWrite()
[all …]
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/helpers/bluetooth/
DBluetoothGattMaster.java141 device, requestId, BluetoothGatt.GATT_SUCCESS, offset,
161 mGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset,
176 device, requestId, BluetoothGatt.GATT_SUCCESS, offset, descriptor.getValue());
192 mGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset,
/packages/modules/Bluetooth/system/bta/vc/
Dvc_test.cc235 cb(conn_id, GATT_SUCCESS, handle, value.size(), value.data(), in set_sample_database()
290 .WillByDefault(Return(GATT_SUCCESS)); in SetUp()
294 .WillByDefault(Return(GATT_SUCCESS)); in SetUp()
303 cb(conn_id, GATT_SUCCESS, handle, value.size(), value.data(), in SetUp()
324 app_register_callback.Run(gatt_if, GATT_SUCCESS); in TestAppRegister()
416 .status = GATT_SUCCESS, in GetConnectedEvent()
429 .status = GATT_SUCCESS, in GetDisconnectedEvent()
441 .status = GATT_SUCCESS, in GetSearchCompleteEvent()
968 cb(conn_id, GATT_SUCCESS, handle, (uint16_t)value.size(), value.data(), in TEST_F()
978 cb(conn_id, GATT_SUCCESS, handle, (uint16_t)value.size(), value.data(), in TEST_F()
[all …]
/packages/modules/Bluetooth/system/bta/has/
Dhas_client.cc134 if (status != GATT_SUCCESS) { in HasClientImpl()
300 if (status == GATT_SUCCESS) return; in OnHasActivePresetCycleStatus()
335 if (status == GATT_SUCCESS) return; in OnHasPresetNameSetStatus()
369 if (status == GATT_SUCCESS) return; in OnHasPresetNameGetStatus()
407 if (status == GATT_SUCCESS) return; in OnHasPresetIndexOperation()
1023 if (status == GATT_SUCCESS) in OnGattWriteCcc()
1029 if (enabling_ntf && (status != GATT_SUCCESS)) { in OnGattWriteCcc()
1048 OnHasFeaturesValue(&(*device), GATT_SUCCESS, handle, len, value); in OnHasNotification()
1054 OnHasActivePresetValue(&(*device), GATT_SUCCESS, handle, len, value); in OnHasNotification()
1087 if (status != GATT_SUCCESS) { in OnHasFeaturesValue()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/
DMediaControlGattService.java203 status = BluetoothGatt.GATT_SUCCESS;
218 status = BluetoothGatt.GATT_SUCCESS;
240 status = BluetoothGatt.GATT_SUCCESS;
255 status = BluetoothGatt.GATT_SUCCESS;
269 status = BluetoothGatt.GATT_SUCCESS;
292 status = BluetoothGatt.GATT_SUCCESS;
363 int status = BluetoothGatt.GATT_SUCCESS; in onAuthorizedGattOperation()
385 BluetoothGatt.GATT_SUCCESS, op.mOffset, in onAuthorizedGattOperation()
392 BluetoothGatt.GATT_SUCCESS, op.mOffset, in onAuthorizedGattOperation()
440 device, op.mRequestId, BluetoothGatt.GATT_SUCCESS, op.mOffset, value); in onAuthorizedGattOperation()
[all …]
/packages/services/Car/service/src/com/android/car/bluetooth/
DFastPairGattServer.java230 mBluetoothGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset,
254 .sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset,
259 mBluetoothGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS,
272 .sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset, null);
280 .sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset, null);
293 mBluetoothGattServer.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset,

123