Home
last modified time | relevance | path

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

123

/packages/apps/Settings/src/com/android/settings/vpn2/
DAppDialogFragment.java70 boolean managing, boolean connected) { in show() argument
71 if (!managing && !connected) { in show()
75 show(parent, null, packageInfo, label, managing, connected); in show()
79 String label, boolean managing, boolean connected) { in show() argument
88 args.putBoolean(ARG_CONNECTED, connected); in show()
108 boolean connected = args.getBoolean(ARG_CONNECTED); in onCreateDialog()
120 if (connected && !isUiRestricted()) { in onCreateDialog()
DConfigDialogFragment.java240 LegacyVpnInfo connected = mService.getLegacyVpnInfo(UserHandle.myUserId()); in isConnected() local
241 return connected != null && profile.key.equals(connected.key); in isConnected()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DAppDialogFragment.java70 boolean managing, boolean connected) { in show() argument
71 if (!managing && !connected) { in show()
75 show(parent, null, packageInfo, label, managing, connected); in show()
79 String label, boolean managing, boolean connected) { in show() argument
88 args.putBoolean(ARG_CONNECTED, connected); in show()
108 boolean connected = args.getBoolean(ARG_CONNECTED); in onCreateDialog()
120 if (connected && !isUiRestricted()) { in onCreateDialog()
DConfigDialogFragment.java236 LegacyVpnInfo connected = mService.getLegacyVpnInfo(UserHandle.myUserId()); in isConnected() local
237 return connected != null && profile.key.equals(connected.key); in isConnected()
/packages/apps/Nfc/src/com/android/nfc/handover/
DPeripheralHandoverService.java218 public void onBluetoothPeripheralHandoverComplete(boolean connected) { in onBluetoothPeripheralHandoverComplete() argument
222 mBluetoothHeadsetConnected = connected; in onBluetoothPeripheralHandoverComplete()
229 if (transport == BluetoothDevice.TRANSPORT_LE && !connected) { in onBluetoothPeripheralHandoverComplete()
239 replyToClient(connected); in onBluetoothPeripheralHandoverComplete()
285 void replyToClient(boolean connected) { in replyToClient() argument
290 final int msgId = connected ? MSG_HEADSET_CONNECTED : MSG_HEADSET_NOT_CONNECTED; in replyToClient()
/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()
DUsbDetailsFragment.java51 (connected, functions, powerRole, dataRole) -> {
53 controller.refresh(connected, functions, powerRole, dataRole);
DConnectedUsbDeviceUpdater.java47 (connected, functions, powerRole, dataRole) -> {
48 if (connected) {
DUsbDetailsDataRoleController.java68 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
77 } else if (!connected || dataRole == DATA_ROLE_NONE) { in refresh()
DUsbDetailsFunctionsController.java90 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
91 if (!connected || dataRole != DATA_ROLE_DEVICE) { in refresh()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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()
DUsbDetailsFragment.java51 (connected, functions, powerRole, dataRole) -> {
53 controller.refresh(connected, functions, powerRole, dataRole);
DUsbDetailsDataRoleController.java68 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
77 } else if (!connected || dataRole == DATA_ROLE_NONE) { in refresh()
DConnectedUsbDeviceUpdater.java47 (connected, functions, powerRole, dataRole) -> {
48 if (connected) {
DUsbDetailsFunctionsController.java90 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
91 if (!connected || dataRole != DATA_ROLE_DEVICE) { in refresh()
/packages/apps/Car/libs/connected-device-lib/tests/unit/
DREADME.md5 `m connected-device-lib-unit-tests`
9 `adb install -r -t $OUT/testcases/connected-device-lib-unit-tests/arm64/connected-device-lib-unit-t…
DAndroid.bp18 name: "connected-device-lib-unit-tests",
33 "connected-device-lib",
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiSummaryUpdaterTest.java103 mWifiTracker.connected = false; in getSummary_wifiDisconnected_shouldReturnDisconnected()
112 mWifiTracker.connected = true; in getSummary_wifiConnected_shouldReturnSsid()
121 mWifiTracker.connected = true; in getSummary_wifiConnected_withSpeedLabel_shouldReturnSsid_withSpeedLabel()
/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/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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DNetworkListAdapter.java61 vh.connected = convertView.findViewById(R.id.network_connected); in getView()
87 vh.connected.setText(mNetworkList[position].mConnected); in getView()
192 public TextView connected; field in NetworkListAdapter.ViewHolder
/packages/apps/Car/libs/connected-device-lib/
DAndroid.bp18 name: "connected-device-lib",
35 "connected-device-protos",
/packages/providers/MediaProvider/src/com/android/providers/media/
DMtpReceiver.java50 boolean connected = extras.getBoolean(UsbManager.USB_CONNECTED); in handleUsbState()
66 } else if (!connected || !(mtpEnabled || ptpEnabled)) { in handleUsbState()
/packages/modules/DnsResolver/tests/
Dresolv_stats_test_utils.h58 ::testing::Property("connected", &DnsQueryEvent::connected,
59 ::testing::Eq(other.connected()))),
/packages/apps/Car/CompanionDeviceSupport/
DAndroid.bp30 "connected-device-lib",
77 "connected-device-lib",

123