Home
last modified time | relevance | path

Searched refs:is_connected (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Bluetooth/system/btif/src/
Dbtif_hf_client.cc96 bool is_connected(const btif_hf_client_cb_t* cb);
163 if (cb == NULL || !is_connected(cb)) { in btif_in_hf_client_generic_evt()
183 bool is_connected(const btif_hf_client_cb_t* cb) { in is_connected() function
303 if (is_connected(cb)) return BT_STATUS_BUSY; in connect_int()
353 if (cb == NULL || !is_connected(cb)) return BT_STATUS_DEVICE_NOT_FOUND; in connect_audio()
383 if (cb == NULL || !is_connected(cb)) return BT_STATUS_DEVICE_NOT_FOUND; in disconnect_audio()
402 if (cb == NULL || !is_connected(cb)) return BT_STATUS_DEVICE_NOT_FOUND; in start_voice_recognition()
424 if (cb == NULL || !is_connected(cb)) return BT_STATUS_DEVICE_NOT_FOUND; in stop_voice_recognition()
447 if (cb == NULL || !is_connected(cb)) return BT_STATUS_DEVICE_NOT_FOUND; in volume_control()
476 if (cb == NULL || !is_connected(cb)) return BT_STATUS_DEVICE_NOT_FOUND; in dial()
[all …]
Dbtif_hf.cc179 static bool is_connected(RawAddress* bd_addr) { in is_connected() function
765 if (is_connected(bd_addr)) { in connect_int()
925 if (!is_connected(bd_addr)) { in Disconnect()
965 if (!is_connected(bd_addr)) { in DisconnectAudio()
1006 if (!is_connected(bd_addr)) { in StartVoiceRecognition()
1029 if (!is_connected(bd_addr)) { in StopVoiceRecognition()
1052 if (!is_connected(bd_addr)) { in VolumeControl()
1079 if (is_connected(nullptr)) { in DeviceStatusNotification()
1100 if (!is_connected(bd_addr)) { in CopsResponse()
1123 if (!is_connected(bd_addr)) { in CindResponse()
[all …]
Dbtif_av.cc4094 bool is_connected = peer->IsConnected(); in btif_av_peer_supports_3mbps() local
4096 is_connected, is_3mbps); in btif_av_peer_supports_3mbps()
4097 return is_connected && is_3mbps; in btif_av_peer_supports_3mbps()
/packages/modules/Bluetooth/system/stack/btm/
Dbtm_sco_hfp_hal_linux.cc242 bool is_connected, int codec) { in mgmt_notify_sco_connection_change() argument
252 cp->connected = is_connected; in mgmt_notify_sco_connection_change()
451 void notify_sco_connection_change(RawAddress device, bool is_connected, in notify_sco_connection_change() argument
478 int ret = mgmt_notify_sco_connection_change(fd, hci, device, is_connected, in notify_sco_connection_change()
484 hci, device, is_connected, codec); in notify_sco_connection_change()
489 hci, device, is_connected, codec); in notify_sco_connection_change()
Dbtm_sco_hfp_hal.h100 void notify_sco_connection_change(RawAddress device, bool is_connected,
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_btm_sco_hfp_hal.h143 std::function<void(RawAddress device, bool is_connected, int codec)> body{
145 void operator()(RawAddress device, bool is_connected, int codec) { in operator()
146 body(device, is_connected, codec); in operator()
Dmock_stack_btm_sco_hfp_hal.cc114 void notify_sco_connection_change(RawAddress device, bool is_connected, in notify_sco_connection_change() argument
118 device, is_connected, codec); in notify_sco_connection_change()
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/
DLeAudioRecycleViewAdapter.java173 is_connected -> { in setLeAudioStateObservers()
175 if (is_connected != holder.leAudioConnectionSwitch.isChecked()) { in setLeAudioStateObservers()
177 holder.leAudioConnectionSwitch.setChecked(is_connected); in setLeAudioStateObservers()
182 != (is_connected ? View.VISIBLE : View.GONE)) in setLeAudioStateObservers()
185 .setVisibility(is_connected ? View.VISIBLE : View.GONE); in setLeAudioStateObservers()
283 boolean is_connected = (hap_state == BluetoothHapClient.STATE_CONNECTED); in setHasStateObservers()
284 if (is_connected != holder.hapConnectionSwitch.isChecked()) { in setHasStateObservers()
286 holder.hapConnectionSwitch.setChecked(is_connected); in setHasStateObservers()
291 != (is_connected ? View.VISIBLE : View.GONE)) in setHasStateObservers()
294 .setVisibility(is_connected ? View.VISIBLE : View.GONE); in setHasStateObservers()
[all …]
DBluetoothProxy.java1008 boolean is_connected = in queryLeAudioDevices()
1011 if (is_connected) { in queryLeAudioDevices()
1059 boolean is_connected = in queryLeAudioDevices()
1062 state_wrapper.bassData.isConnectedMutable.setValue(is_connected); in queryLeAudioDevices()
/packages/modules/Bluetooth/floss/pandora/server/
Dhost.py120 if not self.client.is_connected(self.task['address']):
151 if not self.bluetooth.is_connected(address):
194 … if self.bluetooth.is_bonded(address) and self.bluetooth.is_connected(address):
225 if not self.bluetooth.is_connected(address) or address not in self.waited_connections:
290 if self.bluetooth.is_connected(address):
317 if self.bluetooth.is_connected(address):
Da2dp.py68 if not self.bluetooth.is_connected(address) or address not in connected_devices:
117 if not self.bluetooth.is_connected(address) or address not in connected_devices:
Dbluetooth.py247 def is_connected(self, address): member in Bluetooth
248 return self.adapter_client.is_connected(address)
/packages/modules/Bluetooth/android/pandora/test/
Dgatt_test.py288 assert_true(await is_connected(self.ref, ref_dut), "Device is no longer connected")
291 async def is_connected(device: PandoraDevice, connection: Connection) -> bool: function
/packages/modules/Bluetooth/system/osi/src/
Dstack_power_telemetry.cc398 bool is_connected, in LogLinkDetails() argument
409 if (is_connected == false && link_map.count(handle) != 0) { in LogLinkDetails()
414 } else if (is_connected == true) { in LogLinkDetails()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth.rs451 fn is_connected(&self) -> bool { in is_connected() method
1106 .filter(|v| v.is_connected() && v.bond_state == BtBondState::Bonded) in get_bonded_and_connected_devices()
1118 self.remote_devices.get(addr).map_or(false, |d| d.is_connected()) in get_acl_state_by_addr()
1130 now < &fresh_at || d.is_connected() || d.bond_state != BtBondState::NotBonded in trigger_freshness_check()
1159 if device.bond_state != BtBondState::Bonded && !device.is_connected() { in send_metrics_remote_device_info()
2076 if !device.is_connected() { in acl_state()
2635 .filter_map(|d| if d.is_connected() { Some(d.info.clone()) } else { None }) in get_connected_devices()
Dbluetooth_gatt.rs3394 let is_connected = connected != 0; in connection_cb() localVariable
3395 if is_connected { in connection_cb()
3407 cb.on_server_connection_state(server_id, is_connected, addr); in connection_cb()
/packages/modules/Bluetooth/system/blueberry/utils/
Dandroid_bluetooth_decorator.py621 is_connected = self._is_profile_connected(snd_ad_mac_address, profile)
623 profile, is_connected)
624 return is_connected
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/occupantconnection/
DSenderFragment.java169 Button isConnectedButton = root.findViewById(R.id.is_connected); in onCreateView()
/packages/modules/Bluetooth/floss/pandora/floss/
Dadapter_client.py884 def is_connected(self, address): member in FlossAdapterClient
/packages/modules/Wifi/service/proto/src/
Dmetrics.proto3676 optional bool is_connected = 1; field