Home
last modified time | relevance | path

Searched refs:isDefaultNetwork (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiStatusTrackerTest.java239 assertThat(mWifiStatusTracker.isDefaultNetwork).isTrue(); in isDefaultNetwork_typicalWifi_true()
253 assertThat(mWifiStatusTracker.isDefaultNetwork).isFalse(); in isDefaultNetwork_typicalCellular_false()
272 assertThat(mWifiStatusTracker.isDefaultNetwork).isTrue(); in isDefaultNetwork_cellularCarrierMergedWifi_true()
306 assertThat(mWifiStatusTracker.isDefaultNetwork).isTrue(); in isDefaultNetwork_cellularWithUnderlyingCarrierMergedWifi_true()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java163 public boolean isDefaultNetwork; field in WifiStatusTracker
305 isDefaultNetwork = mDefaultNetworkCapabilities != null in updateStatusLabel()
307 if (isDefaultNetwork) { in updateStatusLabel()
332 } else if (!isDefaultNetwork && mDefaultNetworkCapabilities != null in updateStatusLabel()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DWifiRepositoryImplTest.kt192 mock<WifiEntry>().apply { whenever(this.isDefaultNetwork).thenReturn(true) } in isWifiDefault_wifiNetwork_isTrue()
206 whenever(this.isDefaultNetwork).thenReturn(true) in isWifiDefault_carrierMerged_isTrue()
220 mock<WifiEntry>().apply { whenever(this.isDefaultNetwork).thenReturn(false) } in isWifiDefault_wifiNetworkNotDefault_isFalse()
234 whenever(this.isDefaultNetwork).thenReturn(false) in isWifiDefault_carrierMergedNotDefault_isFalse()
249 mock<WifiEntry>().apply { whenever(this.isDefaultNetwork).thenReturn(true) } in isWifiDefault_noWifiNetwork_isFalse()
534 whenever(this.isDefaultNetwork).thenReturn(true) in wifiNetwork_isCarrierMerged_flowHasCarrierMerged()
553 whenever(this.isDefaultNetwork).thenReturn(true) in wifiNetwork_isCarrierMerged_getsMaxSignalLevel()
575 whenever(this.isDefaultNetwork).thenReturn(true) in wifiNetwork_carrierMergedButInvalidSubId_flowHasInvalid()
728 whenever(this.isDefaultNetwork).thenReturn(true) in wifiNetwork_currentCarrierMergedNetworkLost_flowHasNoNetwork()
785 whenever(this.isDefaultNetwork).thenReturn(true) in wifiNetwork_carrierMerged_default_usesCarrierMergedInfo()
[all …]
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DWifiEntry.java370 public boolean isDefaultNetwork() { in isDefaultNetwork() method in WifiEntry
407 return isPrimaryNetwork() && hasInternetAccess() && !isDefaultNetwork() in isLowQuality()
809 .append(isDefaultNetwork()) in getNetworkCapabilityDescription()
1272 if (isDefaultNetwork()) { in toString()
DUtils.java255 boolean isDefaultNetwork, in getConnectedDescription() argument
281 shouldShowConnected = isDefaultNetwork; in getConnectedDescription()
291 if (shouldShowConnected || (isDefaultNetwork && isPartialConnectivity)) { in getConnectedDescription()
DPasspointWifiEntry.java198 isDefaultNetwork(), in getSummary()
DStandardWifiEntry.java210 isDefaultNetwork(), in getSummary()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DSavedNetworkTrackerTest.java721 assertThat(connectedWifiEntry.isDefaultNetwork()).isFalse(); in testGetConnectedEntry_defaultNetworkChanges_isDefaultNetworkChanges()
727 assertThat(connectedWifiEntry.isDefaultNetwork()).isFalse(); in testGetConnectedEntry_defaultNetworkChanges_isDefaultNetworkChanges()
739 assertThat(connectedWifiEntry.isDefaultNetwork()).isFalse(); in testGetConnectedEntry_defaultNetworkChanges_isDefaultNetworkChanges()
744 assertThat(connectedWifiEntry.isDefaultNetwork()).isTrue(); in testGetConnectedEntry_defaultNetworkChanges_isDefaultNetworkChanges()
748 assertThat(connectedWifiEntry.isDefaultNetwork()).isFalse(); in testGetConnectedEntry_defaultNetworkChanges_isDefaultNetworkChanges()
DWifiPickerTrackerTest.java895 assertThat(wifiPickerTracker.getConnectedWifiEntry().isDefaultNetwork()).isFalse(); in testGetConnectedEntry_defaultNetworkChanges_isDefaultNetworkChanges()
902 assertThat(wifiPickerTracker.getConnectedWifiEntry().isDefaultNetwork()).isFalse(); in testGetConnectedEntry_defaultNetworkChanges_isDefaultNetworkChanges()
914 assertThat(wifiPickerTracker.getConnectedWifiEntry().isDefaultNetwork()).isFalse(); in testGetConnectedEntry_defaultNetworkChanges_isDefaultNetworkChanges()
919 assertThat(wifiPickerTracker.getConnectedWifiEntry().isDefaultNetwork()).isTrue(); in testGetConnectedEntry_defaultNetworkChanges_isDefaultNetworkChanges()
923 assertThat(wifiPickerTracker.getConnectedWifiEntry().isDefaultNetwork()).isFalse(); in testGetConnectedEntry_defaultNetworkChanges_isDefaultNetworkChanges()
927 assertThat(wifiPickerTracker.getWifiEntries().get(0).isDefaultNetwork()).isFalse(); in testGetConnectedEntry_defaultNetworkChanges_isDefaultNetworkChanges()
966 assertThat(wifiPickerTracker.getConnectedWifiEntry().isDefaultNetwork()).isTrue(); in testGetConnectedEntry_defaultNetworkHasUnderlyingWifi_becomesDefaultNetwork()
973 assertThat(wifiPickerTracker.getConnectedWifiEntry().isDefaultNetwork()).isTrue(); in testGetConnectedEntry_defaultNetworkHasUnderlyingWifi_becomesDefaultNetwork()
1064 assertThat(wifiPickerTracker.getConnectedWifiEntry().isDefaultNetwork()).isFalse(); in testGetConnectedEntry_wifiValidatedCellDefault_isLowQuality()
2223 assertThat(mergedCarrierEntry.isDefaultNetwork()).isFalse(); in testGetMergedCarrierEntry_wifiIsDefault_entryIsDefaultNetwork()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DWifiRepositoryImpl.kt136 newIsDefault = connectedEntry?.isDefaultNetwork ?: false, in <lambda>()
229 return if (mergedEntry != null && mergedEntry.isDefaultNetwork) { in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegateControllerTest.java210 when(mConnectedEntry.isDefaultNetwork()).thenReturn(true); in setUp()
508 when(mMergedCarrierEntry.isDefaultNetwork()).thenReturn(true); in getSubtitleText_withCarrierNetworkActiveOnly_returnNoOtherAvailable()
703 when(mWifiEntry1.isDefaultNetwork()).thenReturn(true); in onAccessPointsChanged_wifiIsDefaultButNoInternetAccess_putIntoWifiEntries()
720 when(mWifiEntry1.isDefaultNetwork()).thenReturn(true); in onAccessPointsChanged_connectedWifiNoInternetAccess_shouldSetListener()
733 when(mWifiEntry1.isDefaultNetwork()).thenReturn(true); in onUpdated_connectedWifiHasInternetAccess_shouldScanWifiAccessPoints()
DInternetAdapterTest.java82 when(mInternetWifiEntry.isDefaultNetwork()).thenReturn(true); in setUp()
DInternetDialogDelegateTest.java115 when(mInternetWifiEntry.isDefaultNetwork()).thenReturn(true); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DWifiSignalController.java230 mCurrentState.isDefault = mWifiTracker.isDefaultNetwork; in copyWifiStates()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogController.java859 return mergedCarrierEntry != null && mergedCarrierEntry.isDefaultNetwork();
1141 if (connectedEntry == null && entry.isDefaultNetwork()
1283 || (entry.isDefaultNetwork() && entry.hasInternetAccess())) {
1309 if (entry.isDefaultNetwork() && entry.hasInternetAccess()) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DMobileConnectionsRepositoryTest.kt1401 whenever(this.isDefaultNetwork).thenReturn(true) in <lambda>()
1410 whenever(this.isDefaultNetwork).thenReturn(true) in <lambda>()