Home
last modified time | relevance | path

Searched refs:WifiEntry (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DInternetAdapter.java42 import com.android.wifitrackerlib.WifiEntry;
60 private List<WifiEntry> mWifiEntries;
97 public void setWifiEntries(@Nullable List<WifiEntry> wifiEntries, int wifiEntriesCount) { in setWifiEntries()
160 void onBind(@NonNull WifiEntry wifiEntry) { in onBind()
170 if (connectedState != WifiEntry.CONNECTED_STATE_DISCONNECTED) { in onBind()
179 boolean shouldEnabled(@NonNull WifiEntry wifiEntry) { in shouldEnabled()
190 void onWifiClick(@NonNull WifiEntry wifiEntry, @NonNull View view) { in onWifiClick()
192 WifiEntry.SECURITY_WEP)) { in onWifiClick()
208 void wifiConnect(@NonNull WifiEntry wifiEntry, @NonNull View view) { in wifiConnect()
241 Drawable getWifiDrawable(@NonNull WifiEntry wifiEntry) { in getWifiDrawable()
[all …]
DInternetDialogController.java24 import static com.android.wifitrackerlib.WifiEntry.CONNECTED_STATE_CONNECTED;
98 import com.android.wifitrackerlib.WifiEntry;
462 Drawable getInternetWifiDrawable(@NonNull WifiEntry wifiEntry) { in getInternetWifiDrawable()
477 Drawable getWifiDrawable(@NonNull WifiEntry wifiEntry) { in getWifiDrawable()
484 if (wifiEntry.getLevel() == WifiEntry.WIFI_LEVEL_UNREACHABLE) { in getWifiDrawable()
533 numLevels = WifiEntry.WIFI_LEVEL_MAX + 1; in getSignalStrengthDrawableWithLevel()
865 if (mergedCarrierEntry == null) return WifiEntry.WIFI_LEVEL_MIN;
869 if (level < WifiEntry.WIFI_LEVEL_MIN) level = WifiEntry.WIFI_LEVEL_MIN;
1055 boolean connect(WifiEntry ap) {
1084 static class WifiEntryConnectCallback implements WifiEntry.ConnectCallback {
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DAccessPointController.kt24 import com.android.wifitrackerlib.WifiEntry
50 fun getIcon(ap: WifiEntry): Int in addAccessPointCallback()
61 fun connect(ap: WifiEntry?): Boolean in addAccessPointCallback()
82 fun onAccessPointsChanged(accessPoints: List<@JvmSuppressWildcards WifiEntry>) in addAccessPointCallback()
DAccessPointControllerImpl.java34 import com.android.wifitrackerlib.WifiEntry;
147 List<WifiEntry> entries = mWifiPickerTracker.getWifiEntries(); in scanForAccessPoints()
148 WifiEntry connectedEntry = mWifiPickerTracker.getConnectedWifiEntry(); in scanForAccessPoints()
165 public int getIcon(WifiEntry ap) { in getIcon()
178 public boolean connect(@Nullable WifiEntry ap) { in connect()
191 if (ap.getSecurity() != WifiEntry.SECURITY_NONE) { in connect()
210 private void fireAccessPointsCallback(List<WifiEntry> aps) { in fireAccessPointsCallback()
271 private final WifiEntry.ConnectCallback mConnectCallback = new WifiEntry.ConnectCallback() {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DWifiRepositoryImplTest.kt47 import com.android.wifitrackerlib.WifiEntry
48 import com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_MAX
49 import com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_MIN
50 import com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_UNREACHABLE
192 mock<WifiEntry>().apply { whenever(this.isDefaultNetwork).thenReturn(true) } in isWifiDefault_wifiNetwork_isTrue()
220 mock<WifiEntry>().apply { whenever(this.isDefaultNetwork).thenReturn(false) } in isWifiDefault_wifiNetworkNotDefault_isFalse()
249 mock<WifiEntry>().apply { whenever(this.isDefaultNetwork).thenReturn(true) } in isWifiDefault_noWifiNetwork_isFalse()
277 mock<WifiEntry>().apply { in wifiNetwork_primaryWifiNetworkAdded_flowHasNetwork()
297 mock<WifiEntry>().apply { in accessPointInfo_alwaysFalse()
318 mock<WifiEntry>().apply { in wifiNetwork_unreachableLevel_inactiveNetwork()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DInternetAdapterTest.java25 import com.android.wifitrackerlib.WifiEntry;
59 private WifiEntry mInternetWifiEntry;
61 private List<WifiEntry> mWifiEntries;
63 private WifiEntry mWifiEntry;
104 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_NONE); in onBindViewHolder_bindWithOpenWifiNetwork_verifyView()
115 when(mWifiEntry.getSecurity()).thenReturn(WifiEntry.SECURITY_PSK); in onBindViewHolder_bindWithSecurityWifiNetwork_verifyView()
260 mViewHolder.updateEndIcon(WifiEntry.CONNECTED_STATE_CONNECTED, WifiEntry.SECURITY_PSK); in viewHolderUpdateEndIcon_wifiConnected_updateGearIcon()
269 mViewHolder.updateEndIcon(WifiEntry.CONNECTED_STATE_DISCONNECTED, WifiEntry.SECURITY_PSK); in viewHolderUpdateEndIcon_wifiDisconnectedAndSecurityPsk_updateLockIcon()
276 mViewHolder.updateEndIcon(WifiEntry.CONNECTED_STATE_DISCONNECTED, WifiEntry.SECURITY_NONE); in viewHolderUpdateEndIcon_wifiDisconnectedAndSecurityNone_hideIcon()
DInternetDialogDelegateControllerTest.java14 import static com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_MAX;
15 import static com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_MIN;
16 import static com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_UNREACHABLE;
86 import com.android.wifitrackerlib.WifiEntry;
143 private WifiEntry mConnectedEntry;
145 private WifiEntry mWifiEntry1;
147 private WifiEntry mWifiEntry2;
149 private WifiEntry mWifiEntry3;
151 private WifiEntry mWifiEntry4;
192 private List<WifiEntry> mAccessPoints = new ArrayList<>();
[all …]
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DSavedNetworkTracker.java83 @GuardedBy("mLock") private final List<WifiEntry> mSavedWifiEntries = new ArrayList<>();
84 @GuardedBy("mLock") private final List<WifiEntry> mSubscriptionWifiEntries = new ArrayList<>();
130 public List<WifiEntry> getSavedWifiEntries() { in getSavedWifiEntries()
143 public List<WifiEntry> getSubscriptionWifiEntries() { in getSubscriptionWifiEntries()
225 private List<WifiEntry> getAllWifiEntries() { in getAllWifiEntries()
226 List<WifiEntry> allEntries = new ArrayList<>(); in getAllWifiEntries()
237 for (WifiEntry wifiEntry : getAllWifiEntries()) { in handleOnStart()
301 for (WifiEntry entry : getAllWifiEntries()) { in handleNetworkStateChangedAction()
310 for (WifiEntry entry : getAllWifiEntries()) { in handleLinkPropertiesChanged()
326 for (WifiEntry entry : getAllWifiEntries()) { in handleNetworkLost()
[all …]
DWifiEntry.java72 public class WifiEntry { class
211 public static Comparator<WifiEntry> WIFI_PICKER_COMPARATOR =
212 Comparator.comparing((WifiEntry entry) -> !entry.isPrimaryNetwork())
213 .thenComparing((WifiEntry entry) ->
215 .thenComparing((WifiEntry entry) -> !(entry instanceof KnownNetworkEntry))
216 .thenComparing((WifiEntry entry) -> !(entry instanceof HotspotNetworkEntry))
217 .thenComparing((WifiEntry entry) -> (entry instanceof HotspotNetworkEntry)
219 .thenComparing((WifiEntry entry) -> !entry.canConnect())
220 .thenComparing((WifiEntry entry) -> !entry.isSubscription())
221 .thenComparing((WifiEntry entry) -> !entry.isSaved())
[all …]
DWifiPickerTracker.java27 import static com.android.wifitrackerlib.WifiEntry.CONNECTED_STATE_DISCONNECTED;
28 import static com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_UNREACHABLE;
104 private WifiEntry mConnectedWifiEntry;
107 private List<WifiEntry> mActiveWifiEntries = new ArrayList<>();
110 private List<WifiEntry> mWifiEntries = new ArrayList<>();
196 public @Nullable WifiEntry getConnectedWifiEntry() { in getConnectedWifiEntry()
205 public @NonNull List<WifiEntry> getActiveWifiEntries() { in getActiveWifiEntries()
216 public @NonNull List<WifiEntry> getWifiEntries() { in getWifiEntries()
254 private List<WifiEntry> getAllWifiEntries() { in getAllWifiEntries()
255 List<WifiEntry> allEntries = new ArrayList<>(); in getAllWifiEntries()
[all …]
DUtils.java30 import static com.android.wifitrackerlib.WifiEntry.CertificateInfo.CERTIFICATE_VALIDATION_METHOD_US…
31 import static com.android.wifitrackerlib.WifiEntry.CertificateInfo.CERTIFICATE_VALIDATION_METHOD_US…
32 import static com.android.wifitrackerlib.WifiEntry.CertificateInfo.CERTIFICATE_VALIDATION_METHOD_US…
498 @NonNull WifiEntry wifiEntry) { in getAutoConnectDescription()
507 static String getMeteredDescription(@NonNull Context context, @Nullable WifiEntry wifiEntry) { in getMeteredDescription()
513 && wifiEntry.getMeteredChoice() != WifiEntry.METERED_CHOICE_METERED) { in getMeteredDescription()
517 if (wifiEntry.getMeteredChoice() == WifiEntry.METERED_CHOICE_METERED) { in getMeteredDescription()
519 } else if (wifiEntry.getMeteredChoice() == WifiEntry.METERED_CHOICE_UNMETERED) { in getMeteredDescription()
527 static String getVerboseSummary(@NonNull WifiEntry wifiEntry) { in getVerboseSummary()
1100 if (freqMhz >= WifiEntry.MIN_FREQ_24GHZ && freqMhz < WifiEntry.MAX_FREQ_24GHZ) { in getBand()
[all …]
DNetworkDetailsTracker.java19 import static com.android.wifitrackerlib.WifiEntry.CONNECTED_STATE_CONNECTED;
154 final WifiEntry chosenEntry = getWifiEntry(); in handleLinkPropertiesChanged()
198 public abstract WifiEntry getWifiEntry(); in getWifiEntry()
DPasspointNetworkDetailsTracker.java22 import static com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_UNREACHABLE;
126 public WifiEntry getWifiEntry() { in getWifiEntry()
DOsuWifiEntry.java22 import static com.android.wifitrackerlib.WifiEntry.ConnectCallback.CONNECT_STATUS_FAILURE_UNKNOWN;
52 class OsuWifiEntry extends WifiEntry {
DMergedCarrierEntry.java40 public class MergedCarrierEntry extends WifiEntry {
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DSavedNetworkTrackerTest.java24 import static com.android.wifitrackerlib.WifiEntry.CONNECTED_STATE_CONNECTED;
240 .map(WifiEntry::getTitle) in testGetSavedWifiEntries_onStart_entryForEachConfiguredNetwork()
327 final WifiEntry entry = savedNetworkTracker.getSavedWifiEntries().get(0); in testGetSavedWifiEntries_scanResultsAvailableAction_changesLevel()
329 assertThat(entry.getLevel()).isEqualTo(WifiEntry.WIFI_LEVEL_UNREACHABLE); in testGetSavedWifiEntries_scanResultsAvailableAction_changesLevel()
336 assertThat(entry.getLevel()).isNotEqualTo(WifiEntry.WIFI_LEVEL_UNREACHABLE); in testGetSavedWifiEntries_scanResultsAvailableAction_changesLevel()
342 assertThat(entry.getLevel()).isEqualTo(WifiEntry.WIFI_LEVEL_UNREACHABLE); in testGetSavedWifiEntries_scanResultsAvailableAction_changesLevel()
404 final List<WifiEntry> savedWifiEntries = savedNetworkTracker.getSavedWifiEntries(); in testGetSavedNetworks_splitConfigs_entriesMergedBySecurityFamily()
458 final List<WifiEntry> savedWifiEntries = savedNetworkTracker.getSavedWifiEntries(); in testGetSavedNetworks_mismatchedScans_returnsCorrectEntries()
487 WifiEntry entry = savedNetworkTracker.getSavedWifiEntries().get(0); in testConnectedEntry_alreadyConnectedOnStart_isConnected()
510 final WifiEntry entry = savedNetworkTracker.getSavedWifiEntries().get(0); in testDisconnectedEntry_connectToNetwork_becomesConnected()
[all …]
DKnownNetworkEntryTest.java47 @Mock private WifiEntry.WifiEntryCallback mMockListener;
48 @Mock private WifiEntry.ConnectCallback mMockConnectCallback;
116 .onConnectResult(WifiEntry.ConnectCallback.CONNECT_STATUS_FAILURE_UNKNOWN); in testConnect_nullManager_failureCallback()
134 .onConnectResult(WifiEntry.ConnectCallback.CONNECT_STATUS_FAILURE_UNKNOWN); in testConnect_onConnectionStatusChanged_failureCallback()
DHotspotNetworkEntryTest.java25 import static com.android.wifitrackerlib.WifiEntry.CONNECTED_STATE_CONNECTED;
26 import static com.android.wifitrackerlib.WifiEntry.CONNECTED_STATE_DISCONNECTED;
27 import static com.android.wifitrackerlib.WifiEntry.MIN_FREQ_24GHZ;
28 import static com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_MAX;
69 @Mock private WifiEntry.WifiEntryCallback mMockListener;
70 @Mock private WifiEntry.ConnectCallback mMockConnectCallback;
71 @Mock private WifiEntry.DisconnectCallback mMockDisconnectCallback;
729 .onConnectResult(WifiEntry.ConnectCallback.CONNECT_STATUS_FAILURE_UNKNOWN); in testConnect_nullManager_failureCallback()
747 .onConnectResult(WifiEntry.ConnectCallback.CONNECT_STATUS_FAILURE_UNKNOWN); in testConnect_onConnectionStatusChanged_failureCallback()
753 .onConnectResult(WifiEntry.ConnectCallback.CONNECT_STATUS_FAILURE_UNKNOWN); in testConnect_onConnectionStatusChanged_failureCallback()
[all …]
DMergedCarrierEntryTest.java42 @Mock private WifiEntry.ConnectCallback mMockConnectCallback;
80 assertThat(entry.getConnectedState()).isEqualTo(WifiEntry.CONNECTED_STATE_CONNECTED); in testGetConnectedState_wifiInfoMatches_returnsConnected()
94 .onConnectResult(WifiEntry.ConnectCallback.CONNECT_STATUS_SUCCESS); in testConnect_disablesNonCarrierMergedWifi()
DStandardNetworkDetailsTrackerTest.java28 import static com.android.wifitrackerlib.WifiEntry.SECURITY_NONE;
29 import static com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_UNREACHABLE;
191 final WifiEntry wifiEntry = tracker.getWifiEntry(); in testScanResultsAvailableAction_updates_getLevel()
230 final WifiEntry wifiEntry = tracker.getWifiEntry(); in testConfiguredNetworksChangedAction_updates_isSaved()
271 final WifiEntry wifiEntry = tracker.getWifiEntry(); in testWifiStateChanged_disabled_clearsLevel()
302 WifiEntry wifiEntry = tracker.getWifiEntry(); in testSecurityTargeting_pskScansWithSaeConfig_correspondsToNewNetworkTargeting()
DWifiPickerTrackerTest.java31 import static com.android.wifitrackerlib.WifiEntry.CONNECTED_STATE_CONNECTED;
32 import static com.android.wifitrackerlib.WifiEntry.CONNECTED_STATE_DISCONNECTED;
361 for (WifiEntry wifiEntry : wifiPickerTracker.getWifiEntries()) { in testGetWifiEntries_wifiNetworkEntries_createdForEachSsidAndSecurityPair()
426 final List<WifiEntry> previousEntries = wifiPickerTracker.getWifiEntries(); in testGetWifiEntries_wifiNetworkEntries_useOldEntriesOnFailedScan()
492 final WifiEntry entry = wifiPickerTracker.getWifiEntries().get(0); in testGetWifiEntries_configuredNetworksChanged_unsavedToSaved()
527 final WifiEntry entry = wifiPickerTracker.getWifiEntries().get(0); in testGetWifiEntries_configuredNetworksChanged_savedToUnsaved()
609 final WifiEntry entry = wifiPickerTracker.getWifiEntries().get(0); in testGetConnectedEntry_connectToNetwork_returnsConnectedEntry()
643 final WifiEntry entry = wifiPickerTracker.getWifiEntries().get(0); in testGetConnectedEntry_networkL2Connected_returnsConnectedEntry()
814 final WifiEntry entry = wifiPickerTracker.getWifiEntries().get(0); in testCaptivePortal_activityStopsAndStartsBeforeConnection_captivePortalAutoOpens()
1203 WifiEntry originalConnectedEntry = wifiPickerTracker.getConnectedWifiEntry(); in testGetConnectedEntry_mbbFlow_matchesNewPrimary()
[all …]
DStandardWifiEntryTest.java38 import static com.android.wifitrackerlib.WifiEntry.CONNECTED_STATE_CONNECTED;
39 import static com.android.wifitrackerlib.WifiEntry.CONNECTED_STATE_DISCONNECTED;
96 @Mock private WifiEntry.WifiEntryCallback mMockListener;
97 @Mock private WifiEntry.ConnectCallback mMockConnectCallback;
208 assertThat(unsecureEntry.getSecurity()).isEqualTo(WifiEntry.SECURITY_NONE); in testConstructor_targetingNewSecurity_scanResultsSetSecurity()
209 assertThat(secureEntry.getSecurity()).isEqualTo(WifiEntry.SECURITY_EAP); in testConstructor_targetingNewSecurity_scanResultsSetSecurity()
294 assertThat(entry.getSecurity()).isEqualTo(WifiEntry.SECURITY_EAP); in testConstructor_wifiConfig_setsSecurity()
528 .onConnectResult(WifiEntry.ConnectCallback.CONNECT_STATUS_FAILURE_SIM_ABSENT); in testConnect_savedNetwork_usesSavedConfig_withOutSim()
561 .onConnectResult(WifiEntry.ConnectCallback.CONNECT_STATUS_FAILURE_NO_CONFIG); in testConnect_unsavedSecureNetwork_returnsNoConfigFailure()
978 entry.setMeteredChoice(WifiEntry.METERED_CHOICE_METERED); in testGetMeteredChoice_afterSetMeteredChoice_getCorrectValue()
[all …]
DNetworkDetailsTrackerTest.java117 Collections.singletonList(WifiEntry.SECURITY_NONE))).toString()); in testCreateNetworkDetailsTracker_returnsStandardNetworkDetailsTracker()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
DAccessPointControllerImplTest.kt28 import com.android.wifitrackerlib.WifiEntry
63 private lateinit var wifiEntryConnected: WifiEntry
65 private lateinit var wifiEntryOther: WifiEntry
67 private lateinit var wifiEntryListCaptor: ArgumentCaptor<List<WifiEntry>>
78 `when`(wifiPickerTracker.wifiEntries).thenReturn(ArrayList<WifiEntry>().apply { in setUp()
227 `when`(wifiEntryOther.security).thenReturn(WifiEntry.SECURITY_EAP) in connectToSecuredNotSavedWifiEntry()
240 `when`(wifiEntryOther.security).thenReturn(WifiEntry.SECURITY_NONE) in connectToNotSecuredNotSavedWifiEntry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DWifiRepositoryImpl.kt52 import com.android.wifitrackerlib.WifiEntry in <lambda>()
53 import com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_MAX in <lambda>()
54 import com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_MIN in <lambda>()
55 import com.android.wifitrackerlib.WifiEntry.WIFI_LEVEL_UNREACHABLE in <lambda>()
226 private val WifiPickerTracker?.mergedOrPrimaryConnection: WifiEntry? in <lambda>()
240 private fun WifiEntry.toPrimaryWifiNetworkModel(): WifiNetworkModel { in <lambda>() method
249 private fun WifiEntry.toWifiNetworkModel(): WifiNetworkModel { in <lambda>() method
272 private fun WifiEntry.convertNormalToModel(): WifiNetworkModel { in <lambda>() method
350 private fun logOnWifiEntriesChanged(connectedEntry: WifiEntry?) { in <lambda>()

12