Home
last modified time | relevance | path

Searched refs:wifiPickerTracker (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DWifiPickerTrackerTest.java236 final WifiPickerTracker wifiPickerTracker = createTestWifiPickerTracker(); in testWifiStateChangeBroadcast_updatesWifiState() local
237 wifiPickerTracker.onStart(); in testWifiStateChangeBroadcast_updatesWifiState()
247 assertThat(wifiPickerTracker.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_DISABLED); in testWifiStateChangeBroadcast_updatesWifiState()
254 assertThat(wifiPickerTracker.getWifiState()).isEqualTo(WifiManager.WIFI_STATE_ENABLED); in testWifiStateChangeBroadcast_updatesWifiState()
262 final WifiPickerTracker wifiPickerTracker = createTestWifiPickerTracker(); in testWifiStateChangeBroadcast_notifiesListener() local
263 wifiPickerTracker.onStart(); in testWifiStateChangeBroadcast_notifiesListener()
281 final WifiPickerTracker wifiPickerTracker = createTestWifiPickerTracker(); in testConfiguredNetworksChanged_notifiesListener() local
282 wifiPickerTracker.onStart(); in testConfiguredNetworksChanged_notifiesListener()
299 final WifiPickerTracker wifiPickerTracker = createTestWifiPickerTracker(); in testScanResultsAvailableAction_notifiesListener() local
300 wifiPickerTracker.onStart(); in testScanResultsAvailableAction_notifiesListener()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DWifiRepositoryImplTest.kt97 private val wifiPickerTracker = mock<WifiPickerTracker>() constant
109 .thenReturn(wifiPickerTracker) in setUp()
118 verify(wifiPickerTracker).disableScanning() in wifiPickerTrackerCreation_scansDisabled()
126 whenever(wifiPickerTracker.wifiState).thenReturn(WifiManager.WIFI_STATE_ENABLED) in isWifiEnabled_enabled_true()
137 whenever(wifiPickerTracker.wifiState).thenReturn(WifiManager.WIFI_STATE_ENABLING) in isWifiEnabled_enabling_false()
148 whenever(wifiPickerTracker.wifiState).thenReturn(WifiManager.WIFI_STATE_DISABLING) in isWifiEnabled_disabling_true()
159 whenever(wifiPickerTracker.wifiState).thenReturn(WifiManager.WIFI_STATE_DISABLED) in isWifiEnabled_disabled_false()
171 whenever(wifiPickerTracker.wifiState).thenReturn(WifiManager.WIFI_STATE_ENABLED) in isWifiEnabled_respondsToUpdates()
176 whenever(wifiPickerTracker.wifiState).thenReturn(WifiManager.WIFI_STATE_DISABLED) in isWifiEnabled_respondsToUpdates()
193 whenever(wifiPickerTracker.connectedWifiEntry).thenReturn(wifiEntry) in isWifiDefault_wifiNetwork_isTrue()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
DAccessPointControllerImplTest.kt57 private lateinit var wifiPickerTracker: WifiPickerTracker variable in com.android.systemui.statusbar.connectivity.AccessPointControllerImplTest
75 `when`(wifiPickerTrackerFactory.create(any(), any(), any())).thenReturn(wifiPickerTracker) in setUp()
77 `when`(wifiPickerTracker.connectedWifiEntry).thenReturn(wifiEntryConnected) in setUp()
78 `when`(wifiPickerTracker.wifiEntries).thenReturn(ArrayList<WifiEntry>().apply { in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/
DWifiRepositoryImpl.kt95 private var wifiPickerTracker: WifiPickerTracker? = null in <lambda>() variable
109 val connectedEntry = wifiPickerTracker.mergedOrPrimaryConnection in <lambda>()
115 wifiPickerTracker?.activeWifiEntries ?: emptyList() in <lambda>()
141 val state = wifiPickerTracker?.wifiState in <lambda>()
169 wifiPickerTracker = in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/
DWifiRepositorySwitcherTest.kt70 @Mock private lateinit var wifiPickerTracker: WifiPickerTracker variable in com.android.systemui.statusbar.pipeline.wifi.data.repository.WifiRepositorySwitcherTest
92 whenever(wifiPickerTrackerFactory.create(any(), any(), any())).thenReturn(wifiPickerTracker) in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DMobileConnectionsRepositoryTest.kt134 @Mock private lateinit var wifiPickerTracker: WifiPickerTracker in <lambda>() variable in com.android.systemui.statusbar.pipeline.mobile.data.repository.prod.MobileConnectionsRepositoryTest
166 .thenReturn(wifiPickerTracker) in <lambda>()
1404 whenever(wifiPickerTracker.mergedCarrierEntry).thenReturn(mergedEntry) in <lambda>()
1405 whenever(wifiPickerTracker.connectedWifiEntry).thenReturn(null) in <lambda>()
1412 whenever(wifiPickerTracker.connectedWifiEntry).thenReturn(wifiEntry) in <lambda>()
1413 whenever(wifiPickerTracker.mergedCarrierEntry).thenReturn(null) in <lambda>()