Searched refs:wifiPickerTracker (Results 1 – 6 of 6) sorted by relevance
236 final WifiPickerTracker wifiPickerTracker = createTestWifiPickerTracker(); in testWifiStateChangeBroadcast_updatesWifiState() local237 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() local263 wifiPickerTracker.onStart(); in testWifiStateChangeBroadcast_notifiesListener()281 final WifiPickerTracker wifiPickerTracker = createTestWifiPickerTracker(); in testConfiguredNetworksChanged_notifiesListener() local282 wifiPickerTracker.onStart(); in testConfiguredNetworksChanged_notifiesListener()299 final WifiPickerTracker wifiPickerTracker = createTestWifiPickerTracker(); in testScanResultsAvailableAction_notifiesListener() local300 wifiPickerTracker.onStart(); in testScanResultsAvailableAction_notifiesListener()[all …]
97 private val wifiPickerTracker = mock<WifiPickerTracker>() constant109 .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 …]
57 private lateinit var wifiPickerTracker: WifiPickerTracker variable in com.android.systemui.statusbar.connectivity.AccessPointControllerImplTest75 `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()
95 private var wifiPickerTracker: WifiPickerTracker? = null in <lambda>() variable109 val connectedEntry = wifiPickerTracker.mergedOrPrimaryConnection in <lambda>()115 wifiPickerTracker?.activeWifiEntries ?: emptyList() in <lambda>()141 val state = wifiPickerTracker?.wifiState in <lambda>()169 wifiPickerTracker = in <lambda>()
70 @Mock private lateinit var wifiPickerTracker: WifiPickerTracker variable in com.android.systemui.statusbar.pipeline.wifi.data.repository.WifiRepositorySwitcherTest92 whenever(wifiPickerTrackerFactory.create(any(), any(), any())).thenReturn(wifiPickerTracker) in setUp()
134 @Mock private lateinit var wifiPickerTracker: WifiPickerTracker in <lambda>() variable in com.android.systemui.statusbar.pipeline.mobile.data.repository.prod.MobileConnectionsRepositoryTest166 .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>()