Home
last modified time | relevance | path

Searched refs:canConnect (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DLongPressWifiEntryPreferenceTest.java63 when(mWifiEntry.canConnect()).thenReturn(true); in setUp()
73 when(mWifiEntry.canConnect()).thenReturn(true); in shouldEnabled_canConnect_returnTrue()
81 when(mWifiEntry.canConnect()).thenReturn(false); in shouldEnabled_canNotConnect_returnFalse()
89 when(mWifiEntry.canConnect()).thenReturn(false); in shouldEnabled_canNotConnectButCanDisconnect_returnTrue()
98 when(mWifiEntry.canConnect()).thenReturn(false); in shouldEnabled_canNotConnectButIsSaved_returnTrue()
107 when(mWifiEntry.canConnect()).thenReturn(false); in shouldEnabled_canNotConnectButCanDisconnectAndIsSaved_returnTrue()
DWifiDialogActivityTest.java102 when(mWifiEntry.canConnect()).thenReturn(true); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeScannerFragmentTest.java83 when(mWifiEntry.canConnect()).thenReturn(false); in canConnectWifi_noAvailableWifiMatch_returnTrue()
90 when(mWifiEntry.canConnect()).thenReturn(true); in canConnectWifi_wifiCanConnect_returnTrue()
97 when(mWifiEntry.canConnect()).thenReturn(false); in canConnectWifi_wifiCanNotConnect_returnFalseAndShowError()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DWifiPickerTrackerHelperTest.java172 when(mMergedCarrierEntry.canConnect()).thenReturn(true); in connectCarrierNetwork_returnTrueAndConnect()
187 when(mMergedCarrierEntry.canConnect()).thenReturn(false); in connectCarrierNetwork_canConnectIsFalse_returnFalseAndNeverConnect()
/packages/apps/Settings/src/com/android/settings/wifi/
DLongPressWifiEntryPreference.java62 boolean enabled = wifiEntry.canConnect(); in shouldEnabled()
DWifiPickerTrackerHelper.java145 if (mergedCarrierEntry == null || !mergedCarrierEntry.canConnect()) { in connectCarrierNetwork()
DWifiDialogActivity.java293 if (config == null && wifiEntry != null && wifiEntry.canConnect()) { in onSubmit()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDetailsActionButtonsPreferenceController.java63 boolean canConnectOrDisconnect = getWifiEntry().canConnect() in updateState()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/
DWifiDetailsActionButtonsPreferenceControllerTest.java108 when(mMockWifiEntry.canConnect()).thenReturn(true); in updateState_needConnect_connectButtonShown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java1456 when(mMockWifiEntry.canConnect()).thenReturn(true); in testConnectButton_disconnectedNetwork_shouldVisibleIfReachable()
1486 when(mMockWifiEntry.canConnect()).thenReturn(true); in testConnectButton_clickConnect_displayAsSuccess()
1500 when(mMockWifiEntry.canConnect()).thenReturn(false); in testConnectButton_clickConnect_displayAsSuccess()
1540 when(mMockWifiEntry.canConnect()).thenReturn(false); in testConnectButton_clickConnectButFailed_displayFailMessage()
1552 when(mMockWifiEntry.canConnect()).thenReturn(true); in testConnectButton_clickConnectButFailed_displayFailMessage()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryServiceTest.java282 Assert.assertEquals(expected, mService.canConnect(device)); in testCanConnectCase()
DBatteryStateMachineTest.java118 when(mBatteryService.canConnect(any(BluetoothDevice.class))).thenReturn(allow); in allowConnection()
/packages/apps/Settings/src/com/android/settings/network/
DNetworkProviderSettings.java624 if (mSelectedWifiEntry.canConnect()) { in onCreateContextMenu()
738 if (selectedEntry.canConnect()) { in onSelectedWifiPreferenceClick()
1228 || (dialogMode == WifiConfigUiBase2.MODE_VIEW && wifiEntry.canConnect())) { in onSubmit()
/packages/apps/Settings/src/com/android/settings/wfd/
DWifiDisplaySettings.java577 if (display.canConnect()) { in pairWifiDisplay()
760 setEnabled(display.canConnect()); in UnpairedWifiDisplayPreference()
/packages/modules/Bluetooth/tools/rootcanal/test/
Dposix_socket_unittest.cc110 TEST_F(PosixSocketTest, canConnect) { in TEST_F() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DNetworkProviderSettingsTest.java485 when(mWifiEntry.canConnect()).thenReturn(true); in createWifiDialog2()
721 when(mWifiEntry.canConnect()).thenReturn(true); in onSelectedWifiPreferenceClick_canConnect_connectWifi()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/
DBatteryService.java258 public boolean canConnect(BluetoothDevice device) { in canConnect() method in BatteryService
DBatteryStateMachine.java307 if (service != null && service.canConnect(mDevice)) { in processMessage()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeScannerFragment.java279 if (!wifiEntry.canConnect()) { in canConnectWifi()
/packages/apps/Settings/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2.java773 final boolean canConnectDisconnectNetwork = mWifiEntry.canConnect() in refreshButtons()
/packages/apps/TvSettings/
Dtwo-panel-baseline-profile.txt4589 SPLcom/android/wifitrackerlib/StandardWifiEntry;->canConnect()Z