/packages/modules/Bluetooth/system/stack/gatt/ |
D | gatt_sr.cc | 254 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 …]
|
D | gatt_cl.cc | 97 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 …]
|
D | gatt_db.cc | 144 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()
|
D | gatt_attr.cc | 228 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, ¶m) != 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()
|
D | gatt_api.cc | 470 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/ |
D | mock_stack_gatt_api.cc | 77 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 …]
|
D | mock_stack_gatt_attr.cc | 61 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/ |
D | bta_gatts_act.cc | 166 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()
|
D | bta_gattc_act.cc | 210 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 …]
|
D | bta_gattc_cache.cc | 243 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/ |
D | IBluetoothGattImpl.java | 98 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/ |
D | BluetoothGattServerHelper.java | 234 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/ |
D | gatt_sr_test.cc | 52 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()
|
D | mock_gatt_utils_ref.cc | 41 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/ |
D | BluetoothGattHelperTest.java | 360 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/ |
D | BatteryStateMachineTest.java | 19 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/ |
D | GattServerManager.kt | 47 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/ |
D | bta_hh_le.cc | 187 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/ |
D | csis_client_test.cc | 195 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/ |
D | BassClientStateMachineTest.java | 20 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/ |
D | BluetoothGattMaster.java | 141 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/ |
D | vc_test.cc | 235 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/ |
D | has_client.cc | 134 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/ |
D | MediaControlGattService.java | 203 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/ |
D | FastPairGattServer.java | 230 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,
|