/system/bt/btif/src/ |
D | btif_hf_client.cc | 95 btif_hf_client_cb_t cb[HF_CLIENT_MAX_DEVICES]; member 103 bool is_connected(const btif_hf_client_cb_t* cb); 134 #define CHECK_BTHF_CLIENT_SLC_CONNECTED(cb) \ argument 139 } else if ((cb)->state != BTHF_CLIENT_CONNECTION_STATE_SLC_CONNECTED) { \ 141 __func__, dump_hf_client_conn_state((cb)->state)); \ 168 btif_hf_client_cb_t* cb = btif_hf_client_get_cb_by_bda(*bd_addr); in btif_in_hf_client_generic_evt() local 169 if (cb == NULL || !is_connected(cb)) { in btif_in_hf_client_generic_evt() 176 HAL_CBACK(bt_hf_client_callbacks, audio_state_cb, &cb->peer_bda, in btif_in_hf_client_generic_evt() 188 bool is_connected(const btif_hf_client_cb_t* cb) { in is_connected() argument 189 if ((cb->state == BTHF_CLIENT_CONNECTION_STATE_CONNECTED) || in is_connected() [all …]
|
D | btif_ble_advertiser.cc | 88 void RegisterAdvertiserCb(IdStatusCallback cb, uint8_t advertiser_id, in RegisterAdvertiserCb() argument 92 do_in_jni_thread(Bind(cb, advertiser_id, status)); in RegisterAdvertiserCb() 95 void RegisterAdvertiser(IdStatusCallback cb) override { in RegisterAdvertiser() argument 100 base::Unretained(this), cb))); in RegisterAdvertiser() 117 void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) override { in GetOwnAddress() argument 122 jni_thread_wrapper(FROM_HERE, cb))); in GetOwnAddress() 126 ParametersCallback cb) override { in SetParameters() argument 136 jni_thread_wrapper(FROM_HERE, cb))); in SetParameters() 140 StatusCallback cb) override { in SetData() argument 146 jni_thread_wrapper(FROM_HERE, cb))); in SetData() [all …]
|
D | btif_ble_scanner.cc | 207 void RegisterScanner(RegisterCallback cb) override { in RegisterScanner() argument 210 [](RegisterCallback cb) { in RegisterScanner() argument 213 jni_thread_wrapper(FROM_HERE, std::move(cb))); in RegisterScanner() 215 std::move(cb))); in RegisterScanner() 241 FilterParamSetupCallback cb) override { in ScanFilterParamSetup() argument 253 jni_thread_wrapper(FROM_HERE, std::move(cb)))); in ScanFilterParamSetup() 257 FilterConfigCallback cb) override { in ScanFilterAdd() argument 266 Bind(std::move(cb), in ScanFilterAdd() 270 void ScanFilterClear(int filter_index, FilterConfigCallback cb) override { in ScanFilterClear() argument 275 FROM_HERE, Bind(cb, BTM_BLE_PF_TYPE_ALL)))); in ScanFilterClear() [all …]
|
/system/hwservicemanager/ |
D | test_lazy.cpp | 83 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local 86 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F() 94 ASSERT_THAT(cb->stream, ElementsAre()); in TEST_F() 98 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local 101 service->addClientCallback(cb, 2 /*knownClients*/); in TEST_F() 109 ASSERT_THAT(cb->stream, ElementsAre()); in TEST_F() 113 sp<RecordingClientCallback> cb = new RecordingClientCallback; in TEST_F() local 116 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F() 122 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F() 128 ASSERT_THAT(cb->stream, ElementsAre(true)); in TEST_F() [all …]
|
/system/bt/service/ipc/binder/ |
D | bluetooth_avrcp_target_binder_server.cc | 43 auto cb = GetAvrcpTargetCallback(); \ 44 if (!cb.get()) { \ 48 cb; \ 218 auto cb = TRY_GET_CB(); in OnGetRemoteFeatures() local 219 cb->OnGetRemoteFeatures(String16(addr.data(), addr.size()), features); in OnGetRemoteFeatures() 225 auto cb = TRY_GET_CB(); in OnGetPlayStatus() local 226 cb->OnGetPlayStatus(String16(addr.data(), addr.size())); in OnGetPlayStatus() 232 auto cb = TRY_GET_CB(); in OnListPlayerAppAttr() local 233 cb->OnListPlayerAppAttr(String16(addr.data(), addr.size())); in OnListPlayerAppAttr() 239 auto cb = TRY_GET_CB(); in OnListPlayerAppValues() local [all …]
|
D | bluetooth_a2dp_sink_binder_server.cc | 156 auto cb = GetA2dpSinkCallback(); in OnConnectionState() local 157 if (!cb.get()) { in OnConnectionState() 162 cb->OnConnectionState(String16(device_address.c_str()), state); in OnConnectionState() 168 auto cb = GetA2dpSinkCallback(); in OnAudioState() local 169 if (!cb.get()) { in OnAudioState() 174 cb->OnAudioState(String16(device_address.c_str()), state); in OnAudioState() 181 auto cb = GetA2dpSinkCallback(); in OnAudioConfig() local 182 if (!cb.get()) { in OnAudioConfig() 187 cb->OnAudioConfig(String16(device_address.c_str()), sample_rate, in OnAudioConfig() 197 auto cb = GetCallback(bluetooth::A2dpSink::kSingletonInstanceId); in GetA2dpSinkCallback() local [all …]
|
D | bluetooth_a2dp_source_binder_server.cc | 41 auto cb = GetA2dpSourceCallback(); \ 42 if (!cb.get()) { \ 46 cb; \ 170 auto cb = TRY_GET_CB(); in OnConnectionState() local 171 cb->OnConnectionState(String16(device_address.c_str()), state); in OnConnectionState() 177 auto cb = TRY_GET_CB(); in OnAudioState() local 178 cb->OnAudioState(String16(device_address.c_str()), state); in OnAudioState() 192 auto cb = TRY_GET_CB(); in OnAudioConfig() local 193 cb->OnAudioConfig(String16(device_address.c_str()), codec_config, in OnAudioConfig() 200 auto cb = GetCallback(bluetooth::A2dpSource::kSingletonInstanceId); in GetA2dpSourceCallback() local [all …]
|
D | bluetooth_le_advertiser_binder_server.cc | 93 auto cb = GetLECallback(advertiser_id); in StartMultiAdvertising() local 94 if (!cb.get()) { in StartMultiAdvertising() 99 cb->OnMultiAdvertiseCallback(status, true /* is_start */, settings_copy); in StartMultiAdvertising() 136 auto cb = GetLECallback(advertiser_id); in StopMultiAdvertising() local 137 if (!cb.get()) { in StopMultiAdvertising() 145 cb->OnMultiAdvertiseCallback(status, false /* is_start */, settings_copy); in StopMultiAdvertising() 160 auto cb = GetCallback(advertiser_id); in GetLECallback() local 162 static_cast<IBluetoothLeAdvertiserCallback*>(cb.get())); in GetLECallback() 176 android::sp<IBluetoothLeAdvertiserCallback> cb( in OnRegisterInstanceImpl() local 178 cb->OnAdvertiserRegistered(status, (status == bluetooth::BLE_STATUS_SUCCESS) in OnRegisterInstanceImpl()
|
D | bluetooth_low_energy_binder_server.cc | 126 auto cb = GetLECallback(client->GetInstanceId()); in OnConnectionState() local 127 if (!cb.get()) { in OnConnectionState() 132 cb->OnConnectionState(status, client_id, in OnConnectionState() 143 auto cb = GetLECallback(client_id); in OnMtuChanged() local 144 if (!cb.get()) { in OnMtuChanged() 149 cb->OnMtuChanged(status, String16(address, std::strlen(address)), mtu); in OnMtuChanged() 154 auto cb = GetCallback(client_id); in GetLECallback() local 156 static_cast<IBluetoothLowEnergyCallback*>(cb.get())); in GetLECallback() 173 android::sp<IBluetoothLowEnergyCallback> cb( in OnRegisterInstanceImpl() local 175 cb->OnClientRegistered(status, (status == bluetooth::BLE_STATUS_SUCCESS) in OnRegisterInstanceImpl()
|
D | bluetooth_le_scanner_binder_server.cc | 110 auto cb = GetLECallback(scanner->GetInstanceId()); in OnScanResult() local 111 if (!cb.get()) { in OnScanResult() 116 cb->OnScanResult(result); in OnScanResult() 121 auto cb = GetCallback(scanner_id); in GetLECallback() local 123 static_cast<IBluetoothLeScannerCallback*>(cb.get())); in GetLECallback() 140 android::sp<IBluetoothLeScannerCallback> cb( in OnRegisterInstanceImpl() local 142 cb->OnScannerRegistered(status, (status == bluetooth::BLE_STATUS_SUCCESS) in OnRegisterInstanceImpl()
|
D | bluetooth_avrcp_control_binder_server.cc | 169 auto func = [rc_connect, bt_connect, &device_address](IInterface* cb) { in OnConnectionState() argument 170 auto avrcp_control_cb = static_cast<IBluetoothAvrcpControlCallback*>(cb); in OnConnectionState() 182 auto func = [&device_address, &binder_attr](IInterface* cb) { in OnTrackChanged() argument 183 auto avrcp_control_cb = static_cast<IBluetoothAvrcpControlCallback*>(cb); in OnTrackChanged() 194 auto func = [&addr_s16, abs_vol, label](IInterface* cb) { in OnSetAbsVolumeRequest() argument 195 auto avrcp_control_cb = static_cast<IBluetoothAvrcpControlCallback*>(cb); in OnSetAbsVolumeRequest() 205 auto func = [&addr_s16, label](IInterface* cb) { in OnRegisterForAbsVolumeCallbackRequest() argument 206 auto avrcp_control_cb = static_cast<IBluetoothAvrcpControlCallback*>(cb); in OnRegisterForAbsVolumeCallbackRequest() 228 android::sp<IBluetoothAvrcpControlCallback> cb( in OnRegisterInstanceImpl() local 230 cb->OnRegistered(status, (status == bluetooth::BLE_STATUS_SUCCESS) in OnRegisterInstanceImpl()
|
/system/bt/stack/btm/ |
D | btm_ble_batchscan.cc | 157 void storage_config_cb(Callback<void(uint8_t /* status */)> cb, uint8_t* p, in storage_config_cb() argument 175 cb.Run(status); in storage_config_cb() 178 void param_enable_cb(Callback<void(uint8_t /* status */)> cb, uint8_t* p, in param_enable_cb() argument 196 cb.Run(status); in param_enable_cb() 199 void disable_cb(base::Callback<void(uint8_t /* status */)> cb, uint8_t* p, in disable_cb() argument 228 cb.Run(status); in disable_cb() 236 hci_cmd_cb cb) { in btm_ble_read_batchscan_reports() argument 245 btu_hcif_send_cmd_with_cb(FROM_HERE, HCI_BLE_BATCH_SCAN, param, len, cb); in btm_ble_read_batchscan_reports() 251 tBTM_BLE_SCAN_REP_CBACK cb, uint8_t* p, uint16_t len) { in read_reports_cb() argument 276 cb.Run(status, report_format, num_records_all, data_all); in read_reports_cb() [all …]
|
D | btm_ble_multi_adv.cc | 50 base::Callback<void(const RawAddress& rpa)> cb); 147 IdTxPowerStatusCb cb; member 176 void GetOwnAddress(uint8_t inst_id, GetAddressCallback cb) override { in GetOwnAddress() argument 177 cb.Run(adv_inst[inst_id].own_address_type, adv_inst[inst_id].own_address); in GetOwnAddress() 189 void GenerateRpa(base::Callback<void(const RawAddress&)> cb) { in GenerateRpa() argument 190 btm_gen_resolvable_private_addr(std::move(cb)); in GenerateRpa() 242 base::Callback<void(uint8_t /* inst_id */, uint8_t /* status */)> cb) in RegisterAdvertiser() 256 cb, in RegisterAdvertiser() 263 cb.Run(p_inst->inst_id, BTM_BLE_MULTI_ADV_SUCCESS); in RegisterAdvertiser() 265 p_inst, cb)); in RegisterAdvertiser() [all …]
|
D | btm_ble_adv_filter.cc | 170 void btm_flt_update_cb(uint8_t expected_ocf, tBTM_BLE_PF_CFG_CBACK cb, in btm_flt_update_cb() argument 190 cb.Run(num_avail, action, status); in btm_flt_update_cb() 208 cb.Run(num_avail, action, status); in btm_flt_update_cb() 299 std::vector<uint8_t> name, tBTM_BLE_PF_CFG_CBACK cb) { in BTM_LE_PF_local_name() argument 320 base::Bind(&btm_flt_update_cb, BTM_BLE_META_PF_LOCAL_NAME, cb)); in BTM_LE_PF_local_name() 344 tBTM_BLE_PF_CFG_CBACK cb) { in BTM_LE_PF_manu_data() argument 383 base::Bind(&btm_flt_update_cb, BTM_BLE_META_PF_MANU_DATA, cb)); in BTM_LE_PF_manu_data() 396 tBTM_BLE_PF_CFG_CBACK cb) { in BTM_LE_PF_srvc_data_pattern() argument 421 base::Bind(&btm_flt_update_cb, BTM_BLE_META_PF_SRVC_DATA, cb)); in BTM_LE_PF_srvc_data_pattern() 492 tBTM_BLE_PF_CFG_CBACK cb) { in BTM_LE_PF_addr_filter() argument [all …]
|
/system/security/keystore/binder/android/security/keystore/ |
D | IKeystoreService.aidl | 58 int addRngEntropy(IKeystoreResponseCallback cb, in byte[] data, int flags); in addRngEntropy() argument 59 …int generateKey(IKeystoreKeyCharacteristicsCallback cb, String alias, in KeymasterArguments argume… in generateKey() argument 61 …int getKeyCharacteristics (IKeystoreKeyCharacteristicsCallback cb, String alias, in KeymasterBlob … in getKeyCharacteristics() argument 63 …int importKey(IKeystoreKeyCharacteristicsCallback cb, String alias, in KeymasterArguments argument… in importKey() argument 65 … int exportKey(IKeystoreExportKeyCallback cb, String alias, int format, in KeymasterBlob clientId, in exportKey() argument 67 …int begin(in IKeystoreOperationResultCallback cb, IBinder appToken, String alias, int purpose, boo… in begin() argument 69 …int update(in IKeystoreOperationResultCallback cb, IBinder token, in KeymasterArguments params, in… in update() argument 70 …int finish(in IKeystoreOperationResultCallback cb, IBinder token, in KeymasterArguments params, in… in finish() argument 72 int abort(in IKeystoreResponseCallback cb, IBinder token); in abort() argument 76 …int attestKey(in IKeystoreCertificateChainCallback cb, String alias, in KeymasterArguments params); in attestKey() argument [all …]
|
/system/bt/bta/gatt/ |
D | bta_gattc_queue.cc | 31 GATT_READ_OP_CB cb; member 47 GATT_READ_OP_CB tmp_cb = tmp->cb; in gatt_read_op_finished() 62 GATT_WRITE_OP_CB cb; member 69 GATT_WRITE_OP_CB tmp_cb = tmp->cb; in gatt_write_op_finished() 111 data->cb = op.read_cb; in gatt_execute_next_op() 119 data->cb = op.read_cb; in gatt_execute_next_op() 127 data->cb = op.write_cb; in gatt_execute_next_op() 136 data->cb = op.write_cb; in gatt_execute_next_op() 151 GATT_READ_OP_CB cb, void* cb_data) { in ReadCharacteristic() argument 154 .read_cb = cb, in ReadCharacteristic() [all …]
|
/system/bt/include/hardware/ |
D | ble_advertiser.h | 63 virtual void GetOwnAddress(uint8_t advertiser_id, GetAddressCallback cb) = 0; 67 ParametersCallback cb) = 0; 71 std::vector<uint8_t> data, StatusCallback cb) = 0; 74 virtual void Enable(uint8_t advertiser_id, bool enable, StatusCallback cb, 81 virtual void StartAdvertising(uint8_t advertiser_id, StatusCallback cb, 100 StatusCallback cb) = 0; 104 StatusCallback cb) = 0; 107 StatusCallback cb) = 0;
|
D | ble_scanner.h | 86 FilterParamSetupCallback cb) = 0; 90 FilterConfigCallback cb) = 0; 93 virtual void ScanFilterClear(int filt_index, FilterConfigCallback cb) = 0; 96 virtual void ScanFilterEnable(bool enable, EnableCallback cb) = 0; 100 Callback cb) = 0; 106 Callback cb) = 0; 111 Callback cb) = 0; 114 virtual void BatchscanDisable(Callback cb) = 0;
|
/system/bt/vendor_libs/linux/interface/ |
D | bluetooth_hci.cc | 267 const ::android::sp<V1_0::IBluetoothHciCallbacks>& cb) { in initialize() 268 return initialize_impl(cb, nullptr); in initialize() 272 const ::android::sp<V1_1::IBluetoothHciCallbacks>& cb) { in initialize_1_1() 273 return initialize_impl(cb, cb); in initialize_1_1() 277 const ::android::sp<V1_0::IBluetoothHciCallbacks>& cb, in initialize_impl() 280 if (cb == nullptr) { in initialize_impl() 286 cb->linkToDeath(death_recipient_, 0); in initialize_impl() 288 auto hidl_status = cb->initializationComplete( in initialize_impl() 295 [cb](const hidl_vec<uint8_t>& packet) { cb->hciEventReceived(packet); }, in initialize_impl() 296 [cb](const hidl_vec<uint8_t>& packet) { cb->aclDataReceived(packet); }, in initialize_impl() [all …]
|
/system/bt/stack/include/ |
D | ble_advertiser.h | 85 virtual void StartAdvertising(uint8_t advertiser_id, MultiAdvCb cb, 102 cb, 120 virtual void Enable(uint8_t inst_id, bool enable, MultiAdvCb cb, 127 ParametersCb cb) = 0; 132 std::vector<uint8_t> data, MultiAdvCb cb) = 0; 136 uint8_t inst_id, tBLE_PERIODIC_ADV_PARAMS* params, MultiAdvCb cb) = 0; 141 MultiAdvCb cb) = 0; 145 MultiAdvCb cb) = 0; 165 virtual void GetOwnAddress(uint8_t inst_id, GetAddressCallback cb) = 0;
|
D | btm_ble_api.h | 84 base::Callback<void(uint8_t)> cb); 119 base::Callback<void(uint8_t /* status */)> cb, 126 tBLE_ADDR_TYPE addr_type, base::Callback<void(uint8_t /* status */)> cb); 130 base::Callback<void(uint8_t /* status */)> cb); 134 tBTM_BLE_SCAN_REP_CBACK cb); 534 tBTM_BLE_PF_PARAM_CB cb); 541 tBTM_BLE_PF_CFG_CBACK cb); 543 tBTM_BLE_PF_CFG_CBACK cb); 595 base::Callback<void(uint8_t tx_phy, uint8_t rx_phy, uint8_t status)> cb);
|
/system/bt/osi/test/ |
D | alarm_test.cc | 63 static void cb(UNUSED_ATTR void* data) { in cb() function 91 alarm_set(alarm, 10, cb, NULL); in TEST_F() 103 alarm_set(alarm, 10, cb, NULL); in TEST_F() 113 alarm_set(alarm, 10, cb, NULL); in TEST_F() 129 alarm_set(alarm, 10, cb, NULL); in TEST_F() 149 alarm_set(alarm, 0, cb, NULL); in TEST_F() 167 alarm_set(alarm, TIMER_INTERVAL_FOR_WAKELOCK_IN_MS + EPSILON_MS, cb, NULL); in TEST_F() 184 alarm_set(alarm[0], 10, cb, NULL); in TEST_F() 185 alarm_set(alarm[1], 20, cb, NULL); in TEST_F() 208 alarm_set(alarm[0], 10, cb, NULL); in TEST_F() [all …]
|
/system/bt/osi/test/fuzzers/alarm/ |
D | fuzz_alarm.cc | 38 static void cb(void* data) { in cb() function 64 bool fuzz_set_alarm(alarm_t* alarm, uint64_t interval, alarm_callback_t cb, in fuzz_set_alarm() argument 83 alarm_set_on_mloop(alarm, interval, cb, data_buffer); in fuzz_set_alarm() 85 alarm_set(alarm, interval, cb, data_buffer); in fuzz_set_alarm() 109 if (!fuzz_set_alarm(alarm, MAX_ALARM_DURATION, cb, &dataProvider)) { in LLVMFuzzerTestOneInput() 125 if (fuzz_set_alarm(alarm, interval, cb, &dataProvider)) { in LLVMFuzzerTestOneInput()
|
/system/bt/gd/common/ |
D | callback_list.h | 74 CallbackType* cb; in Notify() local 75 while ((cb = it.GetNext()) != nullptr) { in Notify() 76 cb->handler->Post(base::Bind(cb->callback, args...)); in Notify()
|
/system/bt/test/rootcanal/ |
D | bluetooth_hci.cc | 75 const sp<V1_0::IBluetoothHciCallbacks>& cb) { in initialize() argument 76 return initialize_impl(cb, nullptr); in initialize() 80 const sp<V1_1::IBluetoothHciCallbacks>& cb) { in initialize_1_1() argument 81 return initialize_impl(cb, cb); in initialize_1_1() 85 const sp<V1_0::IBluetoothHciCallbacks>& cb, in initialize_impl() argument 88 if (cb == nullptr) { in initialize_impl() 94 auto link_ret = cb->linkToDeath(death_recipient_, 0); in initialize_impl() 111 [this, cb](std::shared_ptr<std::vector<uint8_t>> packet) { in initialize_impl() 113 auto ret = cb->hciEventReceived(hci_event); in initialize_impl() 121 [this, cb](std::shared_ptr<std::vector<uint8_t>> packet) { in initialize_impl() [all …]
|