Home
last modified time | relevance | path

Searched refs:headset (Results 1 – 25 of 31) sorted by relevance

12

/packages/modules/Bluetooth/system/gd/rust/topshim/hfp/
Dhfp_shim.cc36 static void connection_state_cb(bluetooth::headset::bthf_connection_state_t state, in connection_state_cb()
41 static void audio_state_cb(bluetooth::headset::bthf_audio_state_t state, RawAddress* addr) { in audio_state_cb()
75 static void call_hold_cb(bluetooth::headset::bthf_chld_type_t chld, RawAddress* addr) { in call_hold_cb()
78 case bluetooth::headset::BTHF_CHLD_TYPE_RELEASEHELD: in call_hold_cb()
81 case bluetooth::headset::BTHF_CHLD_TYPE_RELEASEACTIVE_ACCEPTHELD: in call_hold_cb()
84 case bluetooth::headset::BTHF_CHLD_TYPE_HOLDACTIVE_ACCEPTHELD: in call_hold_cb()
87 case bluetooth::headset::BTHF_CHLD_TYPE_ADDHELDTOCONF: in call_hold_cb()
96 static headset::bthf_call_state_t from_rust_call_state(rusty::CallState state) { in from_rust_call_state()
99 return headset::BTHF_CALL_STATE_IDLE; in from_rust_call_state()
101 return headset::BTHF_CALL_STATE_INCOMING; in from_rust_call_state()
[all …]
Dhfp_shim.h36 HfpIntf(headset::Interface* intf) : intf_(intf) {} in HfpIntf()
57 headset::Interface* intf_;
/packages/modules/Bluetooth/system/include/hardware/
Dbt_hf.h22 namespace headset {
123 struct formatter<bluetooth::headset::bthf_connection_state_t>
124 : enum_formatter<bluetooth::headset::bthf_connection_state_t> {};
126 struct formatter<bluetooth::headset::bthf_audio_state_t>
127 : enum_formatter<bluetooth::headset::bthf_audio_state_t> {};
129 struct formatter<bluetooth::headset::bthf_call_addrtype_t>
130 : enum_formatter<bluetooth::headset::bthf_call_addrtype_t> {};
132 struct formatter<bluetooth::headset::bthf_call_mode_t>
133 : enum_formatter<bluetooth::headset::bthf_call_mode_t> {};
135 struct formatter<bluetooth::headset::bthf_call_state_t>
[all …]
Dbluetooth_headset_callbacks.h23 namespace headset {
Dbluetooth_headset_interface.h25 namespace headset {
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_hfp.cpp61 static bluetooth::headset::Interface* sBluetoothHfpInterface = nullptr;
82 class JniHeadsetCallbacks : bluetooth::headset::Callbacks {
84 static bluetooth::headset::Callbacks* GetInstance() { in GetInstance()
85 static bluetooth::headset::Callbacks* instance = new JniHeadsetCallbacks(); in GetInstance()
89 void ConnectionStateCallback(bluetooth::headset::bthf_connection_state_t state, in ConnectionStateCallback()
108 void AudioStateCallback(bluetooth::headset::bthf_audio_state_t state, in AudioStateCallback()
127 void VoiceRecognitionCallback(bluetooth::headset::bthf_vr_state_t state, in VoiceRecognitionCallback()
176 void VolumeControlCallback(bluetooth::headset::bthf_volume_type_t type, int volume, in VolumeControlCallback()
234 void NoiseReductionCallback(bluetooth::headset::bthf_nrec_t nrec, RawAddress* bd_addr) override { in NoiseReductionCallback()
247 nrec == bluetooth::headset::BTHF_NREC_START, addr.get()); in NoiseReductionCallback()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/triangle/
Dconnection_switching_test.py21 self.headset.power_on()
29 self.phone.disconnect_bluetooth(self.headset.mac_address)
30 self.watch.connect_bluetooth(self.headset.mac_address)
46 self.headset.power_off()
49 self.headset.power_on()
/packages/modules/Bluetooth/system/bta/ag/
Dbta_ag_swb_aptx.cc63 bool get_swb_codec_status(bluetooth::headset::bthf_swb_codec_t swb_codec, RawAddress* bd_addr) { in get_swb_codec_status()
66 case bluetooth::headset::BTHF_SWB_CODEC_LC3: in get_swb_codec_status()
70 case bluetooth::headset::BTHF_SWB_CODEC_VENDOR_APTX: in get_swb_codec_status()
94 if (!get_swb_codec_status(bluetooth::headset::BTHF_SWB_CODEC_VENDOR_APTX, in bta_ag_swb_handle_vs_at_events()
Dbta_ag_sco.cc679 (get_swb_codec_status(bluetooth::headset::BTHF_SWB_CODEC_VENDOR_APTX, in bta_ag_codec_negotiate()
693 if (get_swb_codec_status(bluetooth::headset::BTHF_SWB_CODEC_VENDOR_APTX, &p_scb->peer_addr) && in bta_ag_codec_negotiate()
Dbta_ag_cmd.cc1996 if (!get_swb_codec_status(bluetooth::headset::BTHF_SWB_CODEC_VENDOR_APTX, &p_scb->peer_addr)) { in bta_ag_send_qac()
/packages/modules/Bluetooth/system/audio_hal_interface/aidl/
Dhfp_client_interface_aidl.cc131 bool is_call_idle = bluetooth::headset::IsCallIdle(); in StartRequest()
132 bool is_during_vr = bluetooth::headset::IsDuringVoiceRecognition(&(cb->peer_addr)); in StartRequest()
141 auto status = bluetooth::headset::GetInterface()->ConnectAudio(&cb->peer_addr, 0); in StartRequest()
168 auto status = bluetooth::headset::GetInterface()->DisconnectAudio(&addr); in StopRequest()
195 auto instance = bluetooth::headset::GetInterface(); in SuspendRequest()
/packages/modules/Bluetooth/system/test/mock/
Dmock_btif_hf.h51 std::function<bluetooth::headset::Interface*()> body{[]() { return nullptr; }};
52 bluetooth::headset::Interface* operator()() { return body(); } in operator()
Dmock_btif_hf.cc47 namespace headset { namespace
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteStateMachineTest.java1187 AudioDeviceInfo headset = mock(AudioDeviceInfo.class); in testIgnoreImplicitBTSwitchWhenDeviceIsWatch() local
1188 when(headset.getType()).thenReturn(AudioDeviceInfo.TYPE_WIRED_HEADSET); in testIgnoreImplicitBTSwitchWhenDeviceIsWatch()
1189 when(headset.getAddress()).thenReturn(""); in testIgnoreImplicitBTSwitchWhenDeviceIsWatch()
1191 devices.add(headset); in testIgnoreImplicitBTSwitchWhenDeviceIsWatch()
1195 when(mockAudioManager.setCommunicationDevice(eq(headset))) in testIgnoreImplicitBTSwitchWhenDeviceIsWatch()
1197 when(mockAudioManager.getCommunicationDevice()).thenReturn(headset); in testIgnoreImplicitBTSwitchWhenDeviceIsWatch()
1393 AudioDeviceInfo headset = mock(AudioDeviceInfo.class); in verifySetAndClearHeadsetCommunicationDevice() local
1394 when(headset.getType()).thenReturn(audioType); in verifySetAndClearHeadsetCommunicationDevice()
1395 when(headset.getAddress()).thenReturn(""); in verifySetAndClearHeadsetCommunicationDevice()
1397 devices.add(headset); in verifySetAndClearHeadsetCommunicationDevice()
[all …]
/packages/modules/Bluetooth/system/btif/include/
Dbtif_hf.h25 namespace headset {
/packages/modules/Bluetooth/system/bta/include/
Dbta_ag_swb_aptx.h40 bool get_swb_codec_status(bluetooth::headset::bthf_swb_codec_t swb_codec, RawAddress* bd_addr);
/packages/modules/Bluetooth/system/btif/src/
Dbtif_a2dp.cc59 if (!bluetooth::headset::IsCallIdle()) { in btif_a2dp_on_started()
Dbluetooth.cc255 bluetooth::headset::ExecuteService(enable); in toggleProfile()
924 return bluetooth::headset::GetInterface(); in get_profile_interface()
Dbtif_a2dp_source.cc341 if (!bluetooth::headset::IsCallIdle()) { in StartStream()
Dbtif_hf.cc83 namespace bluetooth::headset { namespace
/packages/modules/Bluetooth/flags/
Dhfp.aconfig89 description: "Cleanup SCO SM if headset disconnected during opening."
/packages/modules/Bluetooth/system/audio_hal_interface/
Da2dp_encoding_host.cc145 if (!bluetooth::headset::IsCallIdle()) { in StartRequest()
/packages/modules/Bluetooth/system/bta/test/
Dbta_ag_test.cc134 ASSERT_TRUE(get_swb_codec_status(bluetooth::headset::BTHF_SWB_CODEC_VENDOR_APTX, &addr)); in TEST_F()
/packages/modules/Bluetooth/system/gd/metrics/chromeos/
Dmetrics_event.cc63 typedef headset::bthf_connection_state_t BthfConnectionState;
/packages/modules/Bluetooth/framework/api/
Dcurrent.txt824 …blic static final String ACTION_AUDIO_STATE_CHANGED = "android.bluetooth.headset.profile.action.AU…
825 …static final String ACTION_CONNECTION_STATE_CHANGED = "android.bluetooth.headset.profile.action.CO…
826 …c final String ACTION_VENDOR_SPECIFIC_HEADSET_EVENT = "android.bluetooth.headset.action.VENDOR_SPE…
832 …nal String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS = "android.bluetooth.headset.extra.VENDOR_SPEC…
833 …inal String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD = "android.bluetooth.headset.extra.VENDOR_SPEC…
834 …String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE = "android.bluetooth.headset.extra.VENDOR_SPEC…
839 …g VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY = "android.bluetooth.headset.intent.category.c…

12