/system/bt/btif/src/ |
D | btif_hearing_aid.cc | 32 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_white_list, in Disconnect() 101 do_in_main_thread(FROM_HERE, Bind(&HearingAid::AddToWhiteList, in AddToWhiteList() [all …]
|
D | btif_ble_scanner.cc | 48 using base::Bind; 60 Bind(bt_gatt_callbacks->scanner->P_CBACK, __VA_ARGS__)); \ 185 do_in_jni_thread(Bind(bta_scan_results_cb_impl, r->bd_addr, r->device_type, in bta_scan_results_cb() 209 Bind( in RegisterScanner() 219 do_in_main_thread(FROM_HERE, Bind(&BTA_GATTC_AppDeregister, scanner_id)); in Unregister() 223 do_in_jni_thread(Bind( in Scan() 227 Bind(&BTA_DmBleObserve, false, 0, nullptr)); in Scan() 233 FROM_HERE, Bind(&BTA_DmBleObserve, true, 0, bta_scan_results_cb)); in Scan() 246 FROM_HERE, base::Bind(BTM_BleTrackAdvertiser, bta_track_adv_event_cb, in ScanFilterParamSetup() 251 FROM_HERE, base::Bind(&BTM_BleAdvFilterParamSetup, action, filt_index, in ScanFilterParamSetup() [all …]
|
D | btif_ble_advertiser.cc | 31 using base::Bind; 92 do_in_jni_thread(Bind(cb, advertiser_id, status)); in RegisterAdvertiserCb() 97 FROM_HERE, Bind(&BleAdvertisingManager::RegisterAdvertiser, in RegisterAdvertiser() 99 Bind(&BleAdvertiserInterfaceImpl::RegisterAdvertiserCb, in RegisterAdvertiser() 106 Bind( in Unregister() 120 Bind(&BleAdvertisingManager::GetOwnAddress, in GetOwnAddress() 133 do_in_main_thread(FROM_HERE, Bind(&BleAdvertisingManager::SetParameters, in SetParameters() 144 Bind(&BleAdvertisingManager::SetData, BleAdvertisingManager::Get(), in SetData() 158 Bind(&BleAdvertisingManager::Enable, BleAdvertisingManager::Get(), in Enable() 176 Bind(&BleAdvertisingManager::StartAdvertising, in StartAdvertising() [all …]
|
D | btif_gatt_client.cc | 54 using base::Bind; 71 do_in_jni_thread(Bind(bt_gatt_callbacks->client->P_CBACK, __VA_ARGS__)); \ 226 return do_in_jni_thread(Bind( in btif_gattc_register_app() 230 base::Bind( in btif_gattc_register_app() 232 do_in_jni_thread(Bind( in btif_gattc_register_app() 250 return do_in_jni_thread(Bind(&btif_gattc_unregister_app_impl, client_if)); in btif_gattc_unregister_app() 318 return do_in_jni_thread(Bind(&btif_gattc_open_impl, client_if, bd_addr, in btif_gattc_open() 338 Bind(&btif_gattc_close_impl, client_if, bd_addr, conn_id)); in btif_gattc_close() 343 return do_in_jni_thread(Bind(&BTA_GATTC_Refresh, bd_addr)); in btif_gattc_refresh() 352 Bind(&BTA_GATTC_ServiceSearchRequest, conn_id, base::Owned(uuid))); in btif_gattc_search_service() [all …]
|
D | btif_gatt_server.cc | 52 using base::Bind; 273 Bind(&BTA_GATTS_AppRegister, bt_uuid, &btapp_gatts_cback)); in btif_gatts_register_app() 278 return do_in_jni_thread(Bind(&BTA_GATTS_AppDeregister, server_if)); in btif_gatts_unregister_app() 324 Bind(&btif_gatts_open_impl, server_if, bd_addr, is_direct, transport)); in btif_gatts_open() 343 Bind(&btif_gatts_close_impl, server_if, bd_addr, conn_id)); in btif_gatts_close() 367 jni_thread_wrapper(FROM_HERE, base::Bind(&on_service_added_cb))); in add_service_impl() 374 FROM_HERE, Bind(&add_service_impl, server_if, std::move(service))); in btif_gatts_add_service() 379 return do_in_jni_thread(Bind(&BTA_GATTS_StopService, service_handle)); in btif_gatts_stop_service() 385 return do_in_jni_thread(Bind(&BTA_GATTS_DeleteService, service_handle)); in btif_gatts_delete_service() 396 return do_in_jni_thread(Bind(&BTA_GATTS_HandleValueIndication, conn_id, in btif_gatts_send_indication() [all …]
|
D | stack_manager.cc | 73 base::Bind(event_init_stack, semaphore)); in init_stack() 80 base::Bind(event_start_up_stack, nullptr)); in start_up_stack_async() 85 base::Bind(event_shut_down_stack, nullptr)); in shut_down_stack_async() 93 base::Bind(event_clean_up_stack, semaphore)); in clean_up_stack() 165 do_in_jni_thread(FROM_HERE, base::Bind(event_signal_stack_up, nullptr)); in event_start_up_stack() 189 do_in_jni_thread(FROM_HERE, base::Bind(event_signal_stack_down, nullptr)); in event_shut_down_stack()
|
D | btif_profile_queue.cc | 155 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() 218 if (do_in_jni_thread(FROM_HERE, base::Bind(&queue_int_release)) != in btif_queue_release()
|
/system/bt/bta/ag/ |
D | bta_ag_api.cc | 65 do_in_main_thread(FROM_HERE, base::Bind(&bta_ag_api_enable, p_cback)); in BTA_AgEnable() 80 do_in_main_thread(FROM_HERE, base::Bind(&bta_ag_api_disable)); in BTA_AgDisable() 98 FROM_HERE, base::Bind(&bta_ag_api_register, services, sec_mask, features, in BTA_AgRegister() 114 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgDeregister() 135 do_in_main_thread(FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgOpen() 152 base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgClose() 169 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgAudioOpen() 186 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgAudioClose() 205 base::Bind(&bta_ag_api_result, handle, result, data)); in BTA_AgResult() 223 do_in_main_thread(FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgSetCodec() [all …]
|
/system/bt/btif/avrcp/ |
D | avrcp_service.cc | 142 do_in_avrcp_jni(base::Bind(&MediaInterface::SendKeyEvent, in SendKeyEvent() 148 do_in_main_thread(FROM_HERE, base::Bind(cb, data)); in GetSongInfo() 151 auto bound_cb = base::Bind(cb_lambda, info_cb); in GetSongInfo() 153 do_in_avrcp_jni(base::Bind(&MediaInterface::GetSongInfo, in GetSongInfo() 159 do_in_main_thread(FROM_HERE, base::Bind(cb, status)); in GetPlayStatus() 162 auto bound_cb = base::Bind(cb_lambda, status_cb); in GetPlayStatus() 164 do_in_avrcp_jni(base::Bind(&MediaInterface::GetPlayStatus, in GetPlayStatus() 172 base::Bind(cb, curr_media_id, std::move(song_list))); in GetNowPlayingList() 175 auto bound_cb = base::Bind(cb_lambda, now_playing_cb); in GetNowPlayingList() 177 do_in_avrcp_jni(base::Bind(&MediaInterface::GetNowPlayingList, in GetNowPlayingList() [all …]
|
/system/bt/bta/dm/ |
D | bta_dm_api.cc | 67 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_enable, p_cback)); in BTA_EnableBluetooth() 82 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_disable)); in BTA_DisableBluetooth() 89 base::Bind(base::IgnoreResult(BTM_EnableTestMode))); in BTA_EnableTestMode() 94 do_in_main_thread(FROM_HERE, base::Bind(BTM_DeviceReset, nullptr)); in BTA_DisableTestMode() 102 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_set_dev_name, name)); in BTA_DmSetDeviceName() 111 base::Bind(bta_dm_set_visibility, disc_mode, conn_mode, in BTA_DmSetVisibility() 215 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_bond, bd_addr, addr_type, in BTA_DmBond() 222 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_bond_cancel, bd_addr)); in BTA_DmBondCancel() 249 base::Bind(bta_dm_pin_reply, base::Passed(&msg))); in BTA_DmPinReply() 266 do_in_main_thread(FROM_HERE, base::Bind(BTM_ReadLocalOobData)); in BTA_DmLocalOob() [all …]
|
D | bta_dm_ci.cc | 49 do_in_main_thread(FROM_HERE, base::Bind(bta_dm_ci_io_req_act, bd_addr, io_cap, in bta_dm_ci_io_req() 75 base::Bind(bta_dm_ci_rmt_oob_act, base::Passed(&msg))); in bta_dm_ci_rmt_oob()
|
/system/bt/bta/jv/ |
D | bta_jv_api.cc | 41 using base::Bind; 78 do_in_main_thread(FROM_HERE, Bind(&bta_jv_enable, p_cback)); in BTA_JvEnable() 88 do_in_main_thread(FROM_HERE, Bind(&bta_jv_disable)); in BTA_JvDisable() 144 Bind(&bta_jv_get_channel_id, conn_type, channel, id, id)); in BTA_JvGetChannelId() 164 do_in_main_thread(FROM_HERE, Bind(&bta_jv_free_scn, conn_type, channel)); in BTA_JvFreeChannel() 190 Bind(&bta_jv_start_discovery, bd_addr, num_uuid, in BTA_JvStartDiscovery() 210 do_in_main_thread(FROM_HERE, Bind(&bta_jv_create_record, rfcomm_slot_id)); in BTA_JvCreateRecordByUser() 227 do_in_main_thread(FROM_HERE, Bind(&bta_jv_delete_record, handle)); in BTA_JvDeleteRecord() 248 do_in_main_thread(FROM_HERE, Bind(&bta_jv_l2cap_connect_le, remote_chan, in BTA_JvL2capConnectLE() 275 Bind(&bta_jv_l2cap_connect, conn_type, sec_mask, role, in BTA_JvL2capConnect() [all …]
|
/system/bt/gd/common/ |
D | observer_registry_test.cc | 48 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()
|
D | bind.h | 24 using base::Bind; 36 …return common::Bind(std::forward<Functor>(functor), common::Unretained(obj), std::forward<Args>(ar… in BindOn()
|
/system/bt/gd/hci/fuzz/ |
D | hci_layer_fuzz_client.cc | 36 le_security_interface_ = hci_->GetLeSecurityInterface(GetHandler()->Bind([](LeMetaEventView) {})); in Start() 37 …acl_connection_interface_ = hci_->GetAclConnectionInterface(GetHandler()->Bind([](EventPacketView)… in Start() 38 … GetHandler()->Bind([](uint16_t, hci::ErrorCode) {})); in Start() 39 …le_acl_connection_interface_ = hci_->GetLeAclConnectionInterface(GetHandler()->Bind([](LeMetaEvent… in Start() 40 … GetHandler()->Bind([](uint16_t, hci::ErrorCode) {})); in Start() 41 …le_advertising_interface_ = hci_->GetLeAdvertisingInterface(GetHandler()->Bind([](LeMetaEventView)… in Start() 42 le_scanning_interface_ = hci_->GetLeScanningInterface(GetHandler()->Bind([](LeMetaEventView) {})); in Start()
|
/system/bt/gd/os/linux_generic/ |
D | reactor_unittest.cc | 36 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 …]
|
D | repeating_alarm_unittest.cc | 51 common::Bind( in VerifyMultipleDelayedTasks() 84 common::Closure should_not_happen_ = common::Bind([] { ASSERT_TRUE(false); }); in __anon69a28b9c0202() 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/ |
D | evaluation_context_unittest.cc | 34 using base::Bind; 77 Closure closure = Bind(EvaluateRepeatedly, evaluation, ec, count_p, done_p); in EvaluateRepeatedly() 223 EXPECT_TRUE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F() 242 EXPECT_TRUE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F() 243 EXPECT_FALSE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F() 257 EXPECT_TRUE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F() 263 Bind(&GetBoolean, &value)); in TEST_F() 274 EXPECT_TRUE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F() 280 Bind(&GetBoolean, &value)); in TEST_F() 297 EXPECT_TRUE(eval_ctx_->RunOnValueChangeOrTimeout(Bind(&SetTrue, &value))); in TEST_F() [all …]
|
/system/update_engine/common/ |
D | subprocess_unittest.cc | 139 base::Bind(&ExpectedResults, 1, ""))); in TEST_F() 146 base::Bind(&ExpectedResults, 0, "this is stdout\nthis is stderr\n"))); in TEST_F() 155 base::Bind(&ExpectedResults, 0, "on stdout\n"))); in TEST_F() 165 base::Bind(&ExpectedDataOnPipe, &subprocess_, &pid, 3, "on pipe\n", 0)); in TEST_F() 186 cmd, 0, {}, base::Bind(&ExpectedResults, EBADF, ""))); in TEST_F() 192 subprocess_.Exec({kUsrBinPath "/env"}, base::Bind(&ExpectedEnvVars))); in TEST_F() 256 uint32_t tag = Subprocess::Get().Exec(cmd, base::Bind(&CallbackBad)); in TEST_F() 264 base::Bind( in TEST_F() 283 &loop_, TimeDelta::FromSeconds(20), base::Bind([] { in TEST_F()
|
D | proxy_resolver_unittest.cc | 47 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/stack/test/ |
D | ble_advertiser_test.cc | 36 using base::Bind; 200 BleAdvertisingManager::Get()->RegisterAdvertiser(Bind( in TEST_F() 208 Bind(&BleAdvertisingManagerTest::RegistrationCb, base::Unretained(this))); in TEST_F() 221 Bind(&BleAdvertisingManagerTest::RegistrationCb, base::Unretained(this))); in TEST_F() 230 Bind(&BleAdvertisingManagerTest::RegistrationCb, base::Unretained(this))); in TEST_F() 243 Bind(&BleAdvertisingManagerTest::SetParametersCb, in TEST_F() 257 Bind(&BleAdvertisingManagerTest::SetDataCb, base::Unretained(this))); in TEST_F() 273 Bind(&BleAdvertisingManagerTest::EnableCb, base::Unretained(this)), 0, 0, in TEST_F() 304 Bind(&BleAdvertisingManagerTest::RegistrationCb, base::Unretained(this))); in TEST_F() 320 Bind(&BleAdvertisingManagerTest::SetParametersCb, in TEST_F() [all …]
|
D | stack_btu_test.cc | 99 helper.wait(5, base::Bind(&BtuMessageLoopTest::Fail, base::Unretained(this), in SetUp() 119 base::Bind(&BtuMessageLoopTest::TestCallback, base::Unretained(this))); in TEST_F() 122 FROM_HERE, base::Bind(&TimeoutHelper::notify, base::Unretained(&helper))); in TEST_F() 125 helper.wait(5, base::Bind(&BtuMessageLoopTest::Fail, base::Unretained(this), in TEST_F()
|
/system/bt/stack/btm/ |
D | btm_ble_multi_adv.cc | 41 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/profile/avrcp/tests/ |
D | avrcp_connection_handler_test.cc | 100 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F() 124 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F() 148 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F() 175 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F() 219 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F() 255 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F() 289 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F() 325 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F() 384 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F() 406 auto bound_callback = base::Bind(&MockFunction<void(device_ptr)>::Call, in TEST_F() [all …]
|
/system/bt/service/ipc/dbus/ |
D | bluetooth_adapter.cc | 56 base::Bind(&BluetoothAdapter::Enable, base::Unretained(this)))); in BluetoothAdapter() 60 base::Bind(&BluetoothAdapter::Disable, base::Unretained(this)))); in BluetoothAdapter() 64 base::Bind(&BluetoothAdapter::Introspect, base::Unretained(this)))); in BluetoothAdapter()
|