Home
last modified time | relevance | path

Searched refs:Bind (Results 1 – 25 of 210) sorted by relevance

123456789

/system/bt/btif/src/
Dbtif_hearing_aid.cc32 using base::Bind;
42 return base::Bind( in jni_thread_wrapper()
63 Bind(&HearingAid::Initialize, this, in Init()
65 Bind(&btif_storage_load_bonded_hearing_aids)))); in Init()
71 do_in_jni_thread(FROM_HERE, Bind(&HearingAidCallbacks::OnConnectionState, in OnConnectionState()
80 do_in_jni_thread(FROM_HERE, Bind(&HearingAidCallbacks::OnDeviceAvailable, in OnDeviceAvailable()
87 do_in_main_thread(FROM_HERE, Bind(&HearingAid::Connect, in Connect()
93 do_in_main_thread(FROM_HERE, Bind(&HearingAid::Disconnect, in Disconnect()
95 do_in_jni_thread(FROM_HERE, Bind(&btif_storage_set_hearing_aid_acceptlist, in Disconnect()
101 do_in_main_thread(FROM_HERE, Bind(&HearingAid::AddToAcceptlist, in AddToAcceptlist()
[all …]
Dbtif_vc.cc31 using base::Bind;
47 do_in_main_thread(FROM_HERE, Bind(&VolumeControl::Initialize, this)); in Init()
53 do_in_jni_thread(FROM_HERE, Bind(&VolumeControlCallbacks::OnConnectionState, in OnConnectionState()
62 Bind(&VolumeControlCallbacks::OnVolumeStateChanged, in OnVolumeStateChanged()
71 Bind(&VolumeControlCallbacks::OnGroupVolumeStateChanged, in OnGroupVolumeStateChanged()
78 Bind(&VolumeControl::Connect, in Connect()
85 Bind(&VolumeControl::Disconnect, in Disconnect()
92 do_in_main_thread(FROM_HERE, Bind(&VolumeControl::SetVolume, in SetVolume()
103 Bind(&VolumeControl::Disconnect, in RemoveDevice()
112 do_in_main_thread(FROM_HERE, Bind(&VolumeControl::CleanUp)); in Cleanup()
Dbtif_ble_scanner.cc50 using base::Bind;
62 Bind(bt_gatt_callbacks->scanner->P_CBACK, __VA_ARGS__)); \
187 do_in_jni_thread(Bind(bta_scan_results_cb_impl, r->bd_addr, r->device_type, in bta_scan_results_cb()
212 Bind( in RegisterScanner()
223 do_in_main_thread(FROM_HERE, Bind(&BTA_GATTC_AppDeregister, scanner_id)); in Unregister()
227 do_in_jni_thread(Bind( in Scan()
231 Bind(&BTA_DmBleObserve, false, 0, nullptr)); in Scan()
237 FROM_HERE, Bind(&BTA_DmBleObserve, true, 0, bta_scan_results_cb)); in Scan()
250 FROM_HERE, base::Bind(BTM_BleTrackAdvertiser, bta_track_adv_event_cb, in ScanFilterParamSetup()
255 FROM_HERE, base::Bind(&BTM_BleAdvFilterParamSetup, action, filt_index, in ScanFilterParamSetup()
[all …]
Dbtif_ble_advertiser.cc33 using base::Bind;
94 do_in_jni_thread(Bind(cb, advertiser_id, status)); in RegisterAdvertiserCb()
99 FROM_HERE, Bind(&BleAdvertisingManager::RegisterAdvertiser, in RegisterAdvertiser()
101 Bind(&BleAdvertiserInterfaceImpl::RegisterAdvertiserCb, in RegisterAdvertiser()
108 Bind( in Unregister()
122 Bind(&BleAdvertisingManager::GetOwnAddress, in GetOwnAddress()
135 do_in_main_thread(FROM_HERE, Bind(&BleAdvertisingManager::SetParameters, in SetParameters()
146 Bind(&BleAdvertisingManager::SetData, BleAdvertisingManager::Get(), in SetData()
160 Bind(&BleAdvertisingManager::Enable, BleAdvertisingManager::Get(), in Enable()
178 Bind(&BleAdvertisingManager::StartAdvertising, in StartAdvertising()
[all …]
Dbtif_gatt_client.cc55 using base::Bind;
72 do_in_jni_thread(Bind(bt_gatt_callbacks->client->P_CBACK, __VA_ARGS__)); \
261 return do_in_jni_thread(Bind( in btif_gattc_register_app()
265 base::Bind( in btif_gattc_register_app()
267 do_in_jni_thread(Bind( in btif_gattc_register_app()
286 return do_in_jni_thread(Bind(&btif_gattc_unregister_app_impl, client_if)); in btif_gattc_unregister_app()
354 return do_in_jni_thread(Bind(&btif_gattc_open_impl, client_if, bd_addr, in btif_gattc_open()
374 Bind(&btif_gattc_close_impl, client_if, bd_addr, conn_id)); in btif_gattc_close()
380 return do_in_jni_thread(Bind(&BTA_GATTC_Refresh, bd_addr)); in btif_gattc_refresh()
390 Bind(&BTA_GATTC_ServiceSearchRequest, conn_id, base::Owned(uuid))); in btif_gattc_search_service()
[all …]
Dbtif_le_audio.cc28 using base::Bind;
46 do_in_jni_thread(FROM_HERE, Bind(&LeAudioClientCallbacks::OnConnectionState, in OnConnectionState()
52 do_in_jni_thread(FROM_HERE, Bind(&LeAudioClientCallbacks::OnGroupStatus, in OnGroupStatus()
60 Bind(&LeAudioClientCallbacks::OnSetMemberAvailable, in OnSetMemberAvailable()
69 Bind(&LeAudioClientCallbacks::OnAudioConf, Unretained(callbacks), addr, in OnAudioConf()
Dbtif_gatt_server.cc53 using base::Bind;
275 Bind(&BTA_GATTS_AppRegister, bt_uuid, &btapp_gatts_cback, eatt_support)); in btif_gatts_register_app()
280 return do_in_jni_thread(Bind(&BTA_GATTS_AppDeregister, server_if)); in btif_gatts_unregister_app()
326 Bind(&btif_gatts_open_impl, server_if, bd_addr, is_direct, transport)); in btif_gatts_open()
345 Bind(&btif_gatts_close_impl, server_if, bd_addr, conn_id)); in btif_gatts_close()
369 jni_thread_wrapper(FROM_HERE, base::Bind(&on_service_added_cb))); in add_service_impl()
376 FROM_HERE, Bind(&add_service_impl, server_if, std::move(service))); in btif_gatts_add_service()
381 return do_in_jni_thread(Bind(&BTA_GATTS_StopService, service_handle)); in btif_gatts_stop_service()
387 return do_in_jni_thread(Bind(&BTA_GATTS_DeleteService, service_handle)); in btif_gatts_delete_service()
398 return do_in_jni_thread(Bind(&BTA_GATTS_HandleValueIndication, conn_id, in btif_gatts_send_indication()
[all …]
Dstack_manager.cc114 base::Bind(event_init_stack, semaphore)); in init_stack()
121 base::Bind(event_start_up_stack, nullptr)); in start_up_stack_async()
126 base::Bind(event_shut_down_stack, nullptr)); in shut_down_stack_async()
134 base::Bind(event_clean_up_stack, semaphore)); in clean_up_stack()
312 do_in_jni_thread(FROM_HERE, base::Bind(event_signal_stack_up, nullptr)); in event_start_up_stack()
327 do_in_main_thread(FROM_HERE, base::Bind(&btm_ble_multi_adv_cleanup)); in event_shut_down_stack()
333 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_disable)); in event_shut_down_stack()
372 do_in_jni_thread(FROM_HERE, base::Bind(event_signal_stack_down, nullptr)); in event_shut_down_stack()
Dbtif_profile_queue.cc155 base::Bind(&queue_int_add, uuid, *bda, connect_cb)); in btif_queue_connect()
168 do_in_jni_thread(FROM_HERE, base::Bind(&queue_int_cleanup, uuid)); in btif_queue_cleanup()
182 do_in_jni_thread(FROM_HERE, base::Bind(&queue_int_advance)); in btif_queue_advance()
217 if (do_in_jni_thread(FROM_HERE, base::Bind(&queue_int_release)) != in btif_queue_release()
/system/bt/bta/ag/
Dbta_ag_api.cc66 do_in_main_thread(FROM_HERE, base::Bind(&bta_ag_api_enable, p_cback)); in BTA_AgEnable()
81 do_in_main_thread(FROM_HERE, base::Bind(&bta_ag_api_disable)); in BTA_AgDisable()
97 do_in_main_thread(FROM_HERE, base::Bind(&bta_ag_api_register, services, in BTA_AgRegister()
113 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgDeregister()
133 do_in_main_thread(FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgOpen()
150 base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgClose()
167 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgAudioOpen()
184 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgAudioClose()
203 base::Bind(&bta_ag_api_result, handle, result, data)); in BTA_AgResult()
221 do_in_main_thread(FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgSetCodec()
[all …]
/system/bt/bta/dm/
Dbta_dm_api.cc57 base::Bind(base::IgnoreResult(BTM_EnableTestMode))); in BTA_EnableTestMode()
65 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_set_dev_name, name)); in BTA_DmSetDeviceName()
156 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_bond, bd_addr, addr_type, in BTA_DmBond()
163 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_bond_cancel, bd_addr)); in BTA_DmBondCancel()
190 base::Bind(bta_dm_pin_reply, base::Passed(&msg))); in BTA_DmPinReply()
207 do_in_main_thread(FROM_HERE, base::Bind(BTM_ReadLocalOobData)); in BTA_DmLocalOob()
221 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_confirm, bd_addr, accept)); in BTA_DmConfirm()
256 base::Bind(bta_dm_add_device, base::Passed(&msg))); in BTA_DmAddDevice()
262 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_remove_device, bd_addr)); in BTA_DmRemoveDevice()
410 FROM_HERE, base::Bind(bta_dm_add_blekey, bd_addr, *p_le_key, key_type)); in BTA_DmAddBleKey()
[all …]
/system/bt/btif/avrcp/
Davrcp_service.cc141 do_in_avrcp_jni(base::Bind(&MediaInterface::SendKeyEvent, in SendKeyEvent()
147 do_in_main_thread(FROM_HERE, base::Bind(cb, data)); in GetSongInfo()
150 auto bound_cb = base::Bind(cb_lambda, info_cb); in GetSongInfo()
152 do_in_avrcp_jni(base::Bind(&MediaInterface::GetSongInfo, in GetSongInfo()
158 do_in_main_thread(FROM_HERE, base::Bind(cb, status)); in GetPlayStatus()
161 auto bound_cb = base::Bind(cb_lambda, status_cb); in GetPlayStatus()
163 do_in_avrcp_jni(base::Bind(&MediaInterface::GetPlayStatus, in GetPlayStatus()
171 base::Bind(cb, curr_media_id, std::move(song_list))); in GetNowPlayingList()
174 auto bound_cb = base::Bind(cb_lambda, now_playing_cb); in GetNowPlayingList()
176 do_in_avrcp_jni(base::Bind(&MediaInterface::GetNowPlayingList, in GetNowPlayingList()
[all …]
/system/bt/gd/hci/fuzz/
Dhci_layer_fuzz_client.cc36 le_security_interface_ = hci_->GetLeSecurityInterface(GetHandler()->Bind([](LeMetaEventView) {})); in Start()
38 GetHandler()->Bind([](EventView) {}), in Start()
39 GetHandler()->Bind([](uint16_t, hci::ErrorCode) {}), in Start()
40 GetHandler()->Bind([](hci::ErrorCode, uint16_t, uint8_t, uint16_t, uint16_t) {})); in Start()
42 GetHandler()->Bind([](LeMetaEventView) {}), in Start()
43 GetHandler()->Bind([](uint16_t, hci::ErrorCode) {}), in Start()
44 GetHandler()->Bind([](hci::ErrorCode, uint16_t, uint8_t, uint16_t, uint16_t) {})); in Start()
45 …le_advertising_interface_ = hci_->GetLeAdvertisingInterface(GetHandler()->Bind([](LeMetaEventView)… in Start()
46 le_scanning_interface_ = hci_->GetLeScanningInterface(GetHandler()->Bind([](LeMetaEventView) {})); in Start()
/system/bt/bta/jv/
Dbta_jv_api.cc40 using base::Bind;
79 do_in_main_thread(FROM_HERE, Bind(&bta_jv_enable, p_cback)); in BTA_JvEnable()
89 do_in_main_thread(FROM_HERE, Bind(&bta_jv_disable)); in BTA_JvDisable()
124 Bind(&bta_jv_get_channel_id, conn_type, channel, id, id)); in BTA_JvGetChannelId()
144 do_in_main_thread(FROM_HERE, Bind(&bta_jv_free_scn, conn_type, channel)); in BTA_JvFreeChannel()
170 Bind(&bta_jv_start_discovery, bd_addr, num_uuid, in BTA_JvStartDiscovery()
190 do_in_main_thread(FROM_HERE, Bind(&bta_jv_create_record, rfcomm_slot_id)); in BTA_JvCreateRecordByUser()
207 do_in_main_thread(FROM_HERE, Bind(&bta_jv_delete_record, handle)); in BTA_JvDeleteRecord()
234 Bind(&bta_jv_l2cap_connect, conn_type, sec_mask, role, in BTA_JvL2capConnect()
256 FROM_HERE, Bind(&bta_jv_l2cap_close, handle, &bta_jv_cb.l2c_cb[handle])); in BTA_JvL2capClose()
[all …]
/system/bt/gd/common/
Dobserver_registry_test.cc48 auto wrapped_callback = registry_->Register(Bind(&Increment, Unretained(&count))); in TEST_F()
60 auto wrapped_callback = registry_->Register(Bind(&Increment, Unretained(&count))); in TEST_F()
68 auto wrapped_callback = registry_->Register(Bind(&Increment, Unretained(&count))); in TEST_F()
70 auto wrapped_callback2 = registry_->Register(Bind(&Increment, Unretained(&count))); in TEST_F()
92 auto wrapped_callback = registry_->Register(0, Bind(&Increment, Unretained(&count))); in TEST_F()
104 auto wrapped_callback0 = registry_->Register(0, Bind(&Increment, Unretained(&count))); in TEST_F()
105 auto wrapped_callback1 = registry_->Register(1, Bind(&IncrementBy, Unretained(&count), 10)); in TEST_F()
/system/bt/bta/sdp/
Dbta_sdp_api.cc57 do_in_main_thread(FROM_HERE, base::Bind(bta_sdp_enable, p_cback)); in BTA_SdpEnable()
76 do_in_main_thread(FROM_HERE, base::Bind(bta_sdp_search, bd_addr, uuid)); in BTA_SdpSearch()
93 do_in_main_thread(FROM_HERE, base::Bind(bta_sdp_create_record, user_data)); in BTA_SdpCreateRecordByUser()
110 do_in_main_thread(FROM_HERE, base::Bind(bta_sdp_remove_record, user_data)); in BTA_SdpRemoveRecordByUser()
/system/bt/stack/btm/
Dble_scanner_hci_interface.cc95 base::Bind(&status_callback, std::move(command_complete))); in PeriodicScanCancelStart()
102 sync_handle, base::Bind(&status_callback, std::move(command_complete))); in PeriodicScanTerminate()
110 base::Bind(&status_callback, std::move(command_complete))); in PeriodicScanResultEvtEnable()
126 base::Bind(&status_callback, std::move(command_complete))); in PeriodicAdvertiserListAddDevice()
135 base::Bind(&status_callback, std::move(command_complete))); in PeriodicAdvertiserListRemoveDevice()
141 base::Bind(&status_callback, std::move(command_complete))); in PeriodicAdvertiserListClear()
158 base::Bind(&status_handle_callback, std::move(command_complete))); in PeriodicAdvSyncTransfer()
175 base::Bind(&status_handle_callback, std::move(command_complete))); in PeriodicAdvSetInfoTransfer()
194 base::Bind(&status_callback, std::move(command_complete))); in SetPeriodicAdvSyncTransferParams()
198 base::Bind(&status_callback, std::move(command_complete))); in SetPeriodicAdvSyncTransferParams()
[all …]
Dbtm_ble_multi_adv.cc41 using base::Bind;
170 base::Bind(&BleAdvertisingManagerImpl::ReadInstanceCountCb, in BleAdvertisingManagerImpl()
206 GenerateRpa(Bind( in ConfigureRpa()
224 Bind( in ConfigureRpa()
253 GenerateRpa(Bind( in RegisterAdvertiser()
313 c->self->SetParameters(c->inst_id, &c->params, Bind( in StartAdvertising()
329 c->self->GetHciInterface()->SetRandomAddress(c->inst_id, rpa, Bind( in StartAdvertising()
342 c->self->SetData(c->inst_id, false, std::move(c->advertise_data), Bind( in StartAdvertising()
355 c->self->SetData(c->inst_id, true, std::move(c->scan_response_data), Bind( in StartAdvertising()
401 c->self->RegisterAdvertiser(Bind( in StartAdvertisingSet()
[all …]
/system/bt/gd/os/linux_generic/
Dreactor_unittest.cc36 using common::Bind;
106 Bind(&FakeReactable::OnReadReady, common::Unretained(this)), in OnReadReady()
107 Bind(&FakeReactable::OnWriteReadyNoOp, common::Unretained(this))); in OnReadReady()
192 …fake_reactable.fd_, Bind(&FakeReactable::OnReadReady, common::Unretained(&fake_reactable)), common… in TEST_F()
200 …fake_reactable.fd_, Bind(&FakeReactable::OnReadReady, common::Unretained(&fake_reactable)), common… in TEST_F()
218 …fake_reactable.fd_, Bind(&FakeReactable::OnReadReady, common::Unretained(&fake_reactable)), common… in TEST_F()
232 Bind(&FakeRunningReactable::OnReadReady, common::Unretained(&fake_reactable)), in TEST_F()
250 common::Bind(&FakeRunningReactable::OnReadReady, common::Unretained(&fake_reactable)), in TEST_F()
269 common::Bind(&FakeRunningReactable::OnReadReady, common::Unretained(&fake_reactable)), in TEST_F()
287 …fake_reactable.fd_, Bind(&FakeReactable::OnReadReady, common::Unretained(&fake_reactable)), common… in TEST_F()
[all …]
Drepeating_alarm_unittest.cc51 common::Bind( in VerifyMultipleDelayedTasks()
84 common::Closure should_not_happen_ = common::Bind([] { ASSERT_TRUE(false); }); in __anon91ca3e630202()
101 …common::Bind(&std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseco… in TEST_F()
117 …common::Bind(&RepeatingAlarm::Cancel, common::Unretained(this->alarm_)), std::chrono::milliseconds… in TEST_F()
126 …common::Bind(&std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseco… in TEST_F()
/system/update_engine/update_manager/
Devaluation_context_unittest.cc35 using base::Bind;
79 Closure closure = Bind(EvaluateRepeatedly, evaluation, ec, count_p, done_p); in EvaluateRepeatedly()
226 EXPECT_TRUE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F()
245 EXPECT_TRUE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F()
246 EXPECT_FALSE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F()
260 EXPECT_TRUE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F()
266 Bind(&GetBoolean, &value)); in TEST_F()
277 EXPECT_TRUE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F()
283 Bind(&GetBoolean, &value)); in TEST_F()
300 EXPECT_TRUE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F()
[all …]
/system/bt/stack/test/
Dble_advertiser_test.cc37 using base::Bind;
198 BleAdvertisingManager::Get()->RegisterAdvertiser(Bind( in TEST_F()
206 Bind(&BleAdvertisingManagerTest::RegistrationCb, base::Unretained(this))); in TEST_F()
219 Bind(&BleAdvertisingManagerTest::RegistrationCb, base::Unretained(this))); in TEST_F()
228 Bind(&BleAdvertisingManagerTest::RegistrationCb, base::Unretained(this))); in TEST_F()
241 Bind(&BleAdvertisingManagerTest::SetParametersCb, in TEST_F()
255 Bind(&BleAdvertisingManagerTest::SetDataCb, base::Unretained(this))); in TEST_F()
271 Bind(&BleAdvertisingManagerTest::EnableCb, base::Unretained(this)), 0, 0, in TEST_F()
302 Bind(&BleAdvertisingManagerTest::RegistrationCb, base::Unretained(this))); in TEST_F()
318 Bind(&BleAdvertisingManagerTest::SetParametersCb, in TEST_F()
[all …]
/system/update_engine/common/
Dsubprocess_unittest.cc148 base::Bind(&ExpectedResults, 1, ""))); in TEST_F()
155 base::Bind(&ExpectedResults, 0, "this is stdout\nthis is stderr\n"))); in TEST_F()
164 base::Bind(&ExpectedResults, 0, "on stdout\n"))); in TEST_F()
174 base::Bind(&ExpectedDataOnPipe, &subprocess_, &pid, 3, "on pipe\n", 0)); in TEST_F()
195 cmd, 0, {}, base::Bind(&ExpectedResults, EBADF, ""))); in TEST_F()
201 subprocess_.Exec({kUsrBinPath "/env"}, base::Bind(&ExpectedEnvVars))); in TEST_F()
265 uint32_t tag = Subprocess::Get().Exec(cmd, base::Bind(&CallbackBad)); in TEST_F()
273 base::Bind( in TEST_F()
292 &loop_, TimeDelta::FromSeconds(20), base::Bind([] { in TEST_F()
Dproxy_resolver_unittest.cc47 auto callback = base::Bind( in TEST_F()
68 auto callback = base::Bind( in TEST_F()
81 auto callback = base::Bind( in TEST_F()
/system/bt/profile/avrcp/tests/
Davrcp_connection_handler_test.cc99 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F()
123 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F()
147 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F()
174 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F()
218 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F()
254 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F()
288 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F()
324 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F()
383 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F()
405 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F()
[all …]

123456789