Home
last modified time | relevance | path

Searched refs:getConnectedState (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiSliceItem.java63 mConnectedState = wifiEntry.getConnectedState(); in WifiSliceItem()
85 if (getConnectedState() != otherItem.getConnectedState()) { in equals()
118 public int getConnectedState() { in getConnectedState() method in WifiSliceItem
DWifiSlice.java133 && apList.get(0).getConnectedState() != WifiEntry.CONNECTED_STATE_DISCONNECTED; in getSlice()
268 if (wifiSliceItem.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) { in getWifiSliceItemLevelIcon()
270 } else if (wifiSliceItem.getConnectedState() == WifiEntry.CONNECTED_STATE_DISCONNECTED) { in getWifiSliceItemLevelIcon()
291 if (wifiSliceItem.getConnectedState() != WifiEntry.CONNECTED_STATE_DISCONNECTED) { in getEndIcon()
305 if (wifiSliceItem.getConnectedState() != WifiEntry.CONNECTED_STATE_DISCONNECTED) { in getWifiEntryAction()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiDetailsActionButtonsPreferenceController.java67 .setVisible(canConnectOrDisconnect || getWifiEntry().getConnectedState() in updateState()
116 switch (getWifiEntry().getConnectedState()) { in getConnectDisconnectButtonTextResource()
129 switch (getWifiEntry().getConnectedState()) { in getConnectDisconnectButtonIconResource()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DProviderModelSliceHelperTest.java130 when(mWifiSliceItem1.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in getConnectedWifiItem_inputListInvolveOneConnectedWifiItem_verifyReturnItem()
131 when(mWifiSliceItem2.getConnectedState()).thenReturn( in getConnectedWifiItem_inputListInvolveOneConnectedWifiItem_verifyReturnItem()
145 when(mWifiSliceItem1.getConnectedState()).thenReturn( in getConnectedWifiItem_inputListInvolveNoConnectedWifiItem_verifyReturnItem()
147 when(mWifiSliceItem2.getConnectedState()).thenReturn( in getConnectedWifiItem_inputListInvolveNoConnectedWifiItem_verifyReturnItem()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/details/
DWifiDetailsBasePreferenceControllerTestCase.java90 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in setUpConnectedState()
94 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_DISCONNECTED); in setUpDisconnectedState()
DWifiIpv6AddressPreferenceControllerTest.java87 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in onCreate_hasIpv6Address_summaryTextSet()
101 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_DISCONNECTED); in onCreate_isNotActive_preferenceNotVisible()
DWifiDetailsActionButtonsPreferenceControllerTest.java97 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in updateState_connectNotNeeded_disconnectButtonShown()
109 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_DISCONNECTED); in updateState_needConnect_connectButtonShown()
/packages/apps/Settings/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2.java402 return mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED; in updateCaptivePortalButton()
471 if (mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) { in updateNetworkInfo()
754 return mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED in getMacAddressTitle()
782 || mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTING); in refreshButtons()
794 switch (mWifiEntry.getConnectedState()) { in getConnectDisconnectButtonTextResource()
807 switch (mWifiEntry.getConnectedState()) { in getConnectDisconnectButtonIconResource()
820 if (mWifiEntry.getConnectedState() != WifiEntry.CONNECTED_STATE_CONNECTED in refreshIpLayerInfo()
1033 if (mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_DISCONNECTED) { in connectDisconnectNetwork()
DWifiPrivacyPreferenceController2.java84 if (mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) { in onPreferenceChange()
DWifiPrivacyPageProvider.kt165 if (wifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) { in onSelectedChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiEntryPreferenceTest.java104 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_DISCONNECTED); in setUp()
148 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in setWifiEntry_connectedStateChanged_setIconAndSummary()
156 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_DISCONNECTED); in setWifiEntry_connectedStateChanged_setIconAndSummary()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiUtils.java34 } else if (wifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) { in getConnectionStatus()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiEntryPreference.java132 && mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_DISCONNECTED) { in onBindViewHolder()
211 && mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED); in getIconColorAttr()
DNetworkRequestDialogFragment.java292 if (entry.getConnectedState() == WifiEntry.CONNECTED_STATE_DISCONNECTED in isMatchedWifiEntry()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DNetworkProviderSettingsTest.java344 when(mWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in onCreateContextMenu_shouldHaveForgetAndDisconnectMenuForConnectedWifiEntry()
367 when(mWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in onCreateContextMenu_canShare_shouldHaveShareMenuForConnectedWifiEntry()
389 when(mWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in onCreateContextMenu_canNotShare_shouldDisappearShareMenuForConnectedWifiEntry()
802 when(mWifiEntry.getConnectedState()).thenReturn(CONNECTED_STATE_DISCONNECTED); in addModifyMenuIfSuitable_isAdmin_addMenu()
813 when(mWifiEntry.getConnectedState()).thenReturn(CONNECTED_STATE_DISCONNECTED); in addModifyMenuIfSuitable_isNotAdmin_notAddMenu()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java325 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in setUpForConnectedNetwork()
348 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_DISCONNECTED); in setUpForDisconnectedNetwork()
354 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_DISCONNECTED); in setUpForNotInRangeNetwork()
1485 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_DISCONNECTED); in testConnectButton_clickConnect_displayAsSuccess()
1499 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTING); in testConnectButton_clickConnect_displayAsSuccess()
1511 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in testConnectButton_clickConnect_displayAsSuccess()
1527 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_DISCONNECTED); in testConnectButton_clickConnectButFailed_displayFailMessage()
1539 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTING); in testConnectButton_clickConnectButFailed_displayFailMessage()
1551 when(mMockWifiEntry.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_DISCONNECTED); in testConnectButton_clickConnectButFailed_displayFailMessage()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiEntryPreference.java86 if (mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED in getWifiEntryIcon()
DWifiUtil.java322 return wifiEntry.getConnectedState() != WifiEntry.CONNECTED_STATE_DISCONNECTED; in isWifiEntryConnectedOrConnecting()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DAccessPointPreferenceController.java99 if (accessPoint.getWifiEntry().getConnectedState() != WifiEntry.CONNECTED_STATE_CONNECTED) { in isCaptivePortal()
DAccessPoint.java238 return mWifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED; in isActive()
/packages/apps/Settings/src/com/android/settings/network/
DProviderModelSlice.java166 .filter(item -> item.getConnectedState() != WifiEntry.CONNECTED_STATE_CONNECTED) in getSlice()
397 if (wifiSliceItem.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED in getWifiSliceItemLevelIcon()
DProviderModelSliceHelper.java172 .filter(x -> x.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) in getConnectedWifiItem()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiEntryListPreferenceControllerTest.java205 when(mMockWifiEntry1.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in performClick_activeWifiEntry_showDetailsFragment()
219 when(mMockWifiEntry1.getConnectedState()).thenReturn(WifiEntry.CONNECTED_STATE_CONNECTED); in performClick_secondaryActiveWifiEntry_doesNotShowDetailsFragment()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DConnectState.java250 if (wifiEntry.getConnectedState() == WifiEntry.CONNECTED_STATE_CONNECTED) { in startConnect()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java233 when(wifiEntry.getConnectedState()).thenReturn(connectedState); in createWifiSliceItem()

12