Home
last modified time | relevance | path

Searched refs:connected (Results 1 – 25 of 154) sorted by relevance

1234567

/packages/modules/Bluetooth/system/blueberry/tests/connectivity/
Dbluetooth_connection_test.py37 self.assert_a2dp_and_hsp_connection_state(connected=True)
41 def assert_a2dp_and_hsp_connection_state(self, connected): argument
49 connected)
51 connected)
58 self.assert_a2dp_and_hsp_connection_state(connected=False)
64 self.assert_a2dp_and_hsp_connection_state(connected=True)
77 self.assert_a2dp_and_hsp_connection_state(connected=True)
89 self.assert_a2dp_and_hsp_connection_state(connected=False)
95 self.assert_a2dp_and_hsp_connection_state(connected=True)
/packages/modules/Bluetooth/tools/rootcanal/test/
Dposix_socket_unittest.cc244 bool connected = false; in TEST_F() local
250 connected = true; in TEST_F()
257 connected = false; in TEST_F()
261 ASSERT_TRUE(cv.wait_for(lk, 250ms, [&] { return connected; })); in TEST_F()
262 connected = false; in TEST_F()
273 bool connected = false; in TEST_F() local
279 connected = true; in TEST_F()
285 connected = false; in TEST_F()
289 ASSERT_TRUE(cv.wait_for(lk, 250ms, [&] { return connected; })); in TEST_F()
295 connected = false; in TEST_F()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/triangle/
Dconnection_switching_test.py31 self.assert_headset_a2dp_connection(connected=False, device=self.phone)
32 self.assert_headset_hsp_connection(connected=False, device=self.phone)
50 self.assert_headset_a2dp_connection(connected=True, device=self.phone)
51 self.assert_headset_hsp_connection(connected=True, device=self.phone)
69 self.assert_headset_a2dp_connection(connected=True, device=self.phone)
70 self.assert_headset_hsp_connection(connected=True, device=self.phone)
/packages/modules/Bluetooth/system/stack/smp/
Dsmp_l2c.cc44 bool connected, uint16_t reason,
50 bool connected, uint16_t reason,
93 const RawAddress& bd_addr, bool connected, in smp_connect_callback() argument
110 if (connected) { in smp_connect_callback()
121 (connected) ? "connected" : "disconnected"); in smp_connect_callback()
123 if (connected) { in smp_connect_callback()
233 bool connected, uint16_t reason, in smp_br_connect_callback() argument
248 << " Event: " << ((connected) ? "connected" : "disconnected"); in smp_br_connect_callback()
270 if (connected) { in smp_br_connect_callback()
/packages/modules/Bluetooth/system/stack/srvc/
Dsrvc_eng.cc37 bool connected, tGATT_DISCONN_REASON reason,
81 if (p_clcb->in_use && p_clcb->connected && p_clcb->bda == bda) { in srvc_eng_find_clcb_by_bd_addr()
103 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) { in srvc_eng_find_clcb_by_conn_id()
125 if (p_clcb->in_use && p_clcb->connected && p_clcb->conn_id == conn_id) { in srvc_eng_find_clcb_idx_by_conn_id()
152 p_clcb->connected = true; in srvc_eng_clcb_alloc()
174 if (p_clcb->in_use && p_clcb->connected && (p_clcb->conn_id == conn_id)) { in srvc_eng_clcb_dealloc()
317 bool connected, tGATT_DISCONN_REASON reason, in srvc_eng_connect_cback() argument
320 << StringPrintf(" connected:%d conn_id=%d", connected, conn_id); in srvc_eng_connect_cback()
322 if (connected) { in srvc_eng_connect_cback()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppDialogFragment.java66 boolean managing, boolean connected) { in show() argument
67 if (!managing && !connected) { in show()
71 show(parent, null, packageInfo, label, managing, connected); in show()
75 String label, boolean managing, boolean connected) { in show() argument
84 args.putBoolean(ARG_CONNECTED, connected); in show()
109 boolean connected = args.getBoolean(ARG_CONNECTED); in onCreateDialog()
120 if (connected && !isUiRestricted()) { in onCreateDialog()
/packages/modules/Bluetooth/system/stack/gap/
Dgap_ble.cc51 bool connected; member
99 if (cb.connected && cb.conn_id == conn_id) return &cb; in ble_find_clcb_by_conn_id()
288 if (clcb.connected) { in cl_op_cmpl()
298 bool connected, tGATT_DISCONN_REASON reason, in client_connect_cback() argument
303 PRIVATE_ADDRESS(bda), (connected) ? "Connected" : "Disconnected"); in client_connect_cback()
307 if (connected) { in client_connect_cback()
310 p_clcb->connected = true; in client_connect_cback()
315 p_clcb->connected = false; in client_connect_cback()
386 p_clcb->connected = true; in accept_client_operation()
395 if (p_clcb->connected && p_clcb->cl_op_uuid == 0) in accept_client_operation()
[all …]
/packages/apps/Nfc/src/com/android/nfc/handover/
DPeripheralHandoverService.java219 public void onBluetoothPeripheralHandoverComplete(boolean connected) { in onBluetoothPeripheralHandoverComplete() argument
223 mBluetoothHeadsetConnected = connected; in onBluetoothPeripheralHandoverComplete()
230 if (transport == BluetoothDevice.TRANSPORT_LE && !connected) { in onBluetoothPeripheralHandoverComplete()
240 replyToClient(connected); in onBluetoothPeripheralHandoverComplete()
286 void replyToClient(boolean connected) { in replyToClient() argument
291 final int msgId = connected ? MSG_HEADSET_CONNECTED : MSG_HEADSET_NOT_CONNECTED; in replyToClient()
/packages/modules/Bluetooth/system/blueberry/controllers/
Dandroid_bt_target_device.py114 connected = self.pri_ad.a2dp_sink_connect(self.sec_ad)
116 connected, 'The a2dp sink connection between {} and {} failed'.format(
247 connected = self.pri_ad.hfp_connect(self.sec_ad)
249 connected, 'The hfp connection between {} and {} failed'.format(
253 return connected
339 connected = self.pri_ad.map_connect(self.sec_ad)
341 connected, 'The map connection between {} and {} failed'.format(
360 connected = self.pri_ad.pbap_connect(self.sec_ad)
362 connected, 'The pbap connection between {} and {} failed'.format(
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDetailsPowerRoleController.java69 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
71 if (connected && !mUsbBackend.areAllRolesSupported()) { in refresh()
73 } else if (connected && mUsbBackend.areAllRolesSupported()) { in refresh()
82 } else if (!connected || powerRole == POWER_ROLE_NONE) { in refresh()
DUsbDefaultFragment.java72 (connected, functions, powerRole, dataRole, isUsbConfigured) -> {
74 Log.d(TAG, "UsbConnectionListener() connected : " + connected + ", functions : "
78 if (connected && !mIsConnected && ((defaultFunctions == UsbManager.FUNCTION_RNDIS
86 if ((mIsStartTethering || isUsbConfigured) && connected) {
91 mIsConnected = connected;
DUsbDetailsFunctionsController.java100 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
102 Log.d(TAG, "refresh() connected : " + connected + ", functions : " + functions in refresh()
105 if (!connected || dataRole != DATA_ROLE_DEVICE) { in refresh()
/packages/modules/Bluetooth/system/stack/gatt/
Dgatt_attr.cc70 bool connected, tGATT_DISCONN_REASON reason,
162 if (p_clcb->in_use && p_clcb->transport == transport && p_clcb->connected && in gatt_profile_find_clcb_by_bd_addr()
192 p_clcb->connected = true; in gatt_profile_clcb_alloc()
341 bool connected, tGATT_DISCONN_REASON reason, in gatt_connect_cback() argument
343 VLOG(1) << __func__ << ": from " << bda << " connected: " << connected in gatt_connect_cback()
347 if (!connected && !btm_sec_is_a_bonded_dev(bda)) { in gatt_connect_cback()
357 if (connected) { in gatt_connect_cback()
359 p_clcb->connected = true; in gatt_connect_cback()
726 p_clcb->connected = true; in GATT_ConfigServiceChangeCCC()
733 if (!p_clcb->connected) { in GATT_ConfigServiceChangeCCC()
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/internal/bluetooth/
DGattDelegate.java238 int state, int clientIf, boolean connected, String address) { in clientConnectionStateChange() argument
239 if (connected != mCurrentConnectionState.get()) { in clientConnectionStateChange()
240 mCurrentConnectionState.set(connected); in clientConnectionStateChange()
243 callback.onClientConnectionState(state, clientIf, connected, address); in clientConnectionStateChange()
249 int state, int serverIf, boolean connected, String address) { in serverConnectionStateChange() argument
250 if (connected != mCurrentConnectionState.get()) { in serverConnectionStateChange()
251 mCurrentConnectionState.set(connected); in serverConnectionStateChange()
254 callback.onServerConnectionState(state, serverIf, connected, address); in serverConnectionStateChange()
/packages/modules/Bluetooth/system/blueberry/utils/
Dandroid_bluetooth_decorator.py276 connected = number_socket_connections > 0
277 if connected:
424 connected = self._is_device_connected(mac_address)
427 if connected:
482 connected = self._is_device_connected(mac_address)
483 if not connected:
1226 connected: bool,
1241 if connected:
1243 …msg = ('Failed to %s the device "%s" within %d seconds via HSP.' % ('connect' if connected else 'd…
1270 connected: bool,
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNetworkSelector.java330 if (cmmState.connected) { in isNetworkSelectionNeededForCmm()
553 if (cmmState.connected && cmmState.wifiInfo.getScore() >= WIFI_POOR_SCORE in filterScanResults()
837 public final boolean connected; field in WifiNetworkSelector.ClientModeManagerState
845 connected = clientModeManager.isConnected(); in ClientModeManagerState()
852 connected = false; in ClientModeManagerState()
858 ClientModeManagerState(@NonNull String ifaceName, boolean connected, boolean disconnected, in ClientModeManagerState() argument
861 this.connected = connected; in ClientModeManagerState()
872 && connected == thatCmmState.connected in equals()
881 return Objects.hash(ifaceName, connected, disconnected, in hashCode()
889 + (connected ? " connected" : (disconnected ? " disconnected" : "unknown")) in toString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiSummaryUpdaterTest.java119 mWifiTracker.connected = false; in getSummary_wifiDisconnected_shouldReturnDisconnected()
128 mWifiTracker.connected = true; in getSummary_wifiConnected_shouldReturnSsid()
137 mWifiTracker.connected = true; in getSummary_wifiConnected_withSpeedLabel_shouldReturnSsid_withSpeedLabel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsControllerTestBase.java88 private boolean connected; field in BluetoothDetailsControllerTestBase.DeviceConfig
107 this.connected = newValue; in setConnected()
129 return connected; in isConnected()
/packages/modules/Bluetooth/system/service/ipc/binder/
Dbluetooth_low_energy_binder_server.cc122 bool connected) { in OnConnectionState() argument
123 VLOG(2) << __func__ << " address: " << address << " connected: " << connected; in OnConnectionState()
133 String16(address, std::strlen(address)), connected); in OnConnectionState()
/packages/modules/adb/
DOVERVIEW.TXT8 connected to or running on a given host developer machine
22 It thus maintains a list of "connected devices" and assigns a 'state'
39 connected to the adbd program within it. Otherwise, the device is OFFLINE,
125 - Local transports, for emulators running on the host, connected to
129 a connection between an ADB server and a device/emulator connected to/
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gatts_act.cc46 uint16_t conn_id, bool connected,
575 uint16_t conn_id, bool connected, in bta_gatts_conn_cback() argument
579 uint8_t evt = connected ? BTA_GATTS_CONNECT_EVT : BTA_GATTS_DISCONNECT_EVT; in bta_gatts_conn_cback()
583 << ", conn_id=" << loghex(conn_id) << " connected=" << connected; in bta_gatts_conn_cback()
585 if (connected) in bta_gatts_conn_cback()
595 if (connected) in bta_gatts_conn_cback()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_gatt_test.cc71 uint16_t conn_id, bool connected, in btif_test_connect_cback() argument
73 LOG_INFO("%s: conn_id=%d, connected=%d", __func__, conn_id, connected); in btif_test_connect_cback()
74 test_cb.conn_id = connected ? conn_id : 0; in btif_test_connect_cback()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanNetworkService.java373 public static void setNetworkConnected(boolean connected, Transport transport) { in setNetworkConnected() argument
374 if (connected == sNetworkConnected && transport == sDefaultDataTransport) { in setNetworkConnected()
377 if (connected && (transport == IwlanNetworkService.Transport.UNSPECIFIED_NETWORK)) { in setNetworkConnected()
380 sNetworkConnected = connected; in setNetworkConnected()
/packages/apps/Nfc/nci/jni/
DPeerToPeer.cpp1297 eventData->connected.client_handle, eventData->connected.remote_sap); in nfaServerCallback()
1438 if ((pClient = sP2p.findClient(eventData->connected.client_handle)) == in nfaClientCallback()
1442 eventData->connected.client_handle); in nfaClientCallback()
1447 fn, eventData->connected.client_handle, in nfaClientCallback()
1448 eventData->connected.conn_handle, eventData->connected.remote_sap, in nfaClientCallback()
1452 pClient->mClientConn->mNfaConnHandle = eventData->connected.conn_handle; in nfaClientCallback()
1454 eventData->connected.remote_miu; in nfaClientCallback()
1456 eventData->connected.remote_rw; in nfaClientCallback()
/packages/modules/Bluetooth/system/btif/avrcp/
Davrcp_service.h66 void SetBipClientStatus(const RawAddress& bdaddr, bool connected);
83 void SetBipClientStatus(const RawAddress& bdaddr, bool connected) override;

1234567