Home
last modified time | relevance | path

Searched refs:mWifiTracker (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiSummaryUpdaterTest.java46 @Mock private WifiStatusTracker mWifiTracker; field in WifiSummaryUpdaterTest
56 mSummaryUpdater = new WifiSummaryUpdater(mContext, mListener, mWifiTracker); in setUp()
64 verify(mWifiTracker).setListening(true); in register_true_shouldRegisterListenerAndTracker()
73 verify(mWifiTracker).setListening(false); in register_false_shouldUnregisterListenerAndTracker()
94 mWifiTracker.enabled = false; in getSummary_wifiDisabled_shouldReturnDisabled()
102 mWifiTracker.enabled = true; in getSummary_wifiDisconnected_shouldReturnDisconnected()
103 mWifiTracker.connected = false; in getSummary_wifiDisconnected_shouldReturnDisconnected()
111 mWifiTracker.enabled = true; in getSummary_wifiConnected_shouldReturnSsid()
112 mWifiTracker.connected = true; in getSummary_wifiConnected_shouldReturnSsid()
113 mWifiTracker.ssid = "Test Ssid"; in getSummary_wifiConnected_shouldReturnSsid()
[all …]
DNetworkRequestDialogFragmentTest.java75 private WifiTracker mWifiTracker; field in NetworkRequestDialogFragmentTest
85 mWifiTracker = mock(WifiTracker.class); in setUp()
86 WifiTrackerFactory.setTestingWifiTracker(mWifiTracker); in setUp()
220 when(mWifiTracker.getAccessPoints()).thenReturn(accessPointList); in onMatch_shouldUpdatedList()
293 when(mWifiTracker.getAccessPoints()).thenReturn(accessPointList); in onMatchManyResult_showNeutralButton()
DWifiSettingsTest.java74 private WifiTracker mWifiTracker; field in WifiSettingsTest
95 mWifiSettings.mWifiTracker = mWifiTracker; in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DWifiConnectionPreferenceControllerTest.java60 WifiTracker mWifiTracker; field in WifiConnectionPreferenceControllerTest
77 WifiTrackerFactory.setTestingWifiTracker(mWifiTracker); in setUp()
90 when(mWifiTracker.isConnected()).thenReturn(false); in isAvailable_noWiFiConnection_availableIsFalse()
96 when(mWifiTracker.isConnected()).thenReturn(false); in displayPreference_noWiFiConnection_noPreferenceAdded()
97 when(mWifiTracker.getAccessPoints()).thenReturn(new ArrayList<>()); in displayPreference_noWiFiConnection_noPreferenceAdded()
104 when(mWifiTracker.isConnected()).thenReturn(true); in displayPreference_hasWiFiConnection_preferenceAdded()
107 when(mWifiTracker.getAccessPoints()).thenReturn(Arrays.asList(accessPoint)); in displayPreference_hasWiFiConnection_preferenceAdded()
114 when(mWifiTracker.isConnected()).thenReturn(true); in onConnectedChanged_wifiBecameDisconnected_preferenceRemoved()
118 when(mWifiTracker.getAccessPoints()).thenReturn(Arrays.asList(accessPoint)); in onConnectedChanged_wifiBecameDisconnected_preferenceRemoved()
125 when(mWifiTracker.isConnected()).thenReturn(false); in onConnectedChanged_wifiBecameDisconnected_preferenceRemoved()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiSummaryUpdater.java41 private final WifiStatusTracker mWifiTracker; field in WifiSummaryUpdater
60 mWifiTracker = wifiTracker != null ? wifiTracker : in WifiSummaryUpdater()
68 mWifiTracker.handleBroadcast(intent); in WifiSummaryUpdater()
82 mWifiTracker.setListening(register); in register()
87 if (!mWifiTracker.enabled) { in getSummary()
90 if (!mWifiTracker.connected) { in getSummary()
93 String ssid = WifiInfo.removeDoubleQuotes(mWifiTracker.ssid); in getSummary()
94 if (TextUtils.isEmpty(mWifiTracker.statusLabel)) { in getSummary()
99 ssid, mWifiTracker.statusLabel); in getSummary()
DNetworkRequestDialogFragment.java477 private final WifiTracker mWifiTracker; field in NetworkRequestDialogFragment.FilterWifiTracker
480 mWifiTracker = WifiTrackerFactory.create(context, mWifiListener, in FilterWifiTracker()
504 final List<AccessPoint> allAccessPoints = mWifiTracker.getAccessPoints(); in getAccessPoints()
559 if (mWifiTracker != null) { in onDestroy()
560 mWifiTracker.onDestroy(); in onDestroy()
565 if (mWifiTracker != null) { in onResume()
566 mWifiTracker.onStart(); in onResume()
571 if (mWifiTracker != null) { in onPause()
572 mWifiTracker.onStop(); in onPause()
DWifiConnectionPreferenceController.java50 private WifiTracker mWifiTracker; field in WifiConnectionPreferenceController
82 mWifiTracker = WifiTrackerFactory.create(context, this, lifecycle, true /* includeSaved */, in WifiConnectionPreferenceController()
91 return mWifiTracker.isConnected() && getCurrentAccessPoint() != null; in isAvailable()
108 for (AccessPoint accessPoint : mWifiTracker.getAccessPoints()) { in getCurrentAccessPoint()
148 if (mWifiTracker.isConnected()) { in update()
DWifiSettings.java177 WifiTracker mWifiTracker; field in WifiSettings
259 mWifiTracker = WifiTrackerFactory.create( in onActivityCreated()
261 mWifiManager = mWifiTracker.getManager(); in onActivityCreated()
421 mWifiTracker.resumeScanning(); in onActivityResult()
696 changeNextButtonState(mWifiTracker.isConnected()); in onConnectedChanged()
720 final List<AccessPoint> accessPoints = mWifiTracker.getAccessPoints(); in updateAccessPointPreferences()
1093 mWifiTracker.resumeScanning(); in submit()
1120 mWifiTracker.resumeScanning(); in forget()
1146 mWifiTracker.resumeScanning(); in handleAddNetworkRequest()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiSummaryUpdater.java41 private final WifiStatusTracker mWifiTracker; field in WifiSummaryUpdater
60 mWifiTracker = wifiTracker != null ? wifiTracker : in WifiSummaryUpdater()
68 mWifiTracker.handleBroadcast(intent); in WifiSummaryUpdater()
82 mWifiTracker.setListening(register); in register()
87 if (!mWifiTracker.enabled) { in getSummary()
90 if (!mWifiTracker.connected) { in getSummary()
93 String ssid = WifiInfo.removeDoubleQuotes(mWifiTracker.ssid); in getSummary()
94 if (TextUtils.isEmpty(mWifiTracker.statusLabel)) { in getSummary()
99 ssid, mWifiTracker.statusLabel); in getSummary()
DNetworkRequestDialogFragment.java475 private final WifiTracker mWifiTracker; field in NetworkRequestDialogFragment.FilterWifiTracker
478 mWifiTracker = WifiTrackerFactory.create(context, mWifiListener, in FilterWifiTracker()
502 final List<AccessPoint> allAccessPoints = mWifiTracker.getAccessPoints(); in getAccessPoints()
557 if (mWifiTracker != null) { in onDestroy()
558 mWifiTracker.onDestroy(); in onDestroy()
563 if (mWifiTracker != null) { in onResume()
564 mWifiTracker.onStart(); in onResume()
569 if (mWifiTracker != null) { in onPause()
570 mWifiTracker.onStop(); in onPause()
DWifiConnectionPreferenceController.java50 private WifiTracker mWifiTracker; field in WifiConnectionPreferenceController
82 mWifiTracker = WifiTrackerFactory.create(context, this, lifecycle, true /* includeSaved */, in WifiConnectionPreferenceController()
91 return mWifiTracker.isConnected() && getCurrentAccessPoint() != null; in isAvailable()
108 for (AccessPoint accessPoint : mWifiTracker.getAccessPoints()) { in getCurrentAccessPoint()
148 if (mWifiTracker.isConnected()) { in update()
DWifiSettings.java176 WifiTracker mWifiTracker; field in WifiSettings
258 mWifiTracker = WifiTrackerFactory.create( in onActivityCreated()
260 mWifiManager = mWifiTracker.getManager(); in onActivityCreated()
420 mWifiTracker.resumeScanning(); in onActivityResult()
691 changeNextButtonState(mWifiTracker.isConnected()); in onConnectedChanged()
715 final List<AccessPoint> accessPoints = mWifiTracker.getAccessPoints(); in updateAccessPointPreferences()
957 final int numSavedNetworks = mWifiTracker.getNumSavedNetworks(); in setAdditionalSettingsSummaries()
1059 mWifiTracker.resumeScanning(); in submit()
1086 mWifiTracker.resumeScanning(); in forget()
1112 mWifiTracker.resumeScanning(); in handleAddNetworkRequest()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/slice/
DWifiScanWorker.java59 private WifiTracker mWifiTracker; field in WifiScanWorker
70 if (mWifiTracker == null) { in onSlicePinned()
71 mWifiTracker = new WifiTracker(mContext, this /* wifiListener */, in onSlicePinned()
74 mWifiTracker.onStart(); in onSlicePinned()
80 mWifiTracker.onStop(); in onSliceUnpinned()
86 mWifiTracker.onDestroy(); in close()
101 if (!mWifiTracker.getManager().isWifiEnabled()) { in onAccessPointsChanged()
106 final List<AccessPoint> accessPoints = mWifiTracker.getAccessPoints(); in onAccessPointsChanged()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiScanWorker.java65 private final WifiTracker mWifiTracker; field in WifiScanWorker
73 mWifiTracker = new WifiTracker(mContext, this /* wifiListener */, in WifiScanWorker()
79 mWifiTracker.onStart(); in onSlicePinned()
85 mWifiTracker.onStop(); in onSliceUnpinned()
92 mWifiTracker.onDestroy(); in close()
107 if (!mWifiTracker.getManager().isWifiEnabled()) { in onAccessPointsChanged()
112 final List<AccessPoint> accessPoints = mWifiTracker.getAccessPoints(); in onAccessPointsChanged()
235 && isWifiClicked(mWifiTracker.getManager().getConnectionInfo()) in onCapabilitiesChanged()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DWifiSettingsUiTest.java94 private WifiTracker mWifiTracker; field in WifiSettingsUiTest
108 WifiTrackerFactory.setTestingWifiTracker(mWifiTracker); in setUp()
109 when(mWifiTracker.getManager()).thenReturn(mWifiManager); in setUp()
149 when(mWifiTracker.getAccessPoints()).thenReturn( in setupConnectedAccessPoint()
161 verify(mWifiTracker).getManager(); in launchActivity()
201 when(mWifiTracker.getNumSavedNetworks()).thenReturn(0); in noSavedNetworks_wifiDisabled_shouldNotShowSavedNetworksButton()
212 when(mWifiTracker.getNumSavedNetworks()).thenReturn(1); in savedNetworksExist_shouldShowSavedNetworksButton()
246 when(mWifiTracker.isConnected()).thenReturn(true); in onConnected_shouldSeeConnectedMessage()
270 when(mWifiTracker.getAccessPoints()) in changingSecurityStateOnApShouldNotCauseMultipleListItems()
325 when(mWifiTracker.getAccessPoints()).thenReturn(Lists.newArrayList(accessPoint)); in wrongPasswordSavedNetwork()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DCarWifiManager.java40 private WifiTracker mWifiTracker; field in CarWifiManager
68 mWifiTracker = new WifiTracker(context, this, true, true); in CarWifiManager()
93 mWifiTracker.onStart(); in start()
105 mWifiTracker.onStop(); in stop()
115 mWifiTracker.onDestroy(); in destroy()
135 for (AccessPoint accessPoint : mWifiTracker.getAccessPoints()) { in getAccessPoints()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java61 private WifiTracker mWifiTracker; field in ConnectivityListener
110 mWifiTracker = new WifiTracker(context, this, lifecycle, true, true); in ConnectivityListener()
112 mWifiTracker = new WifiTracker(context, this, true, true); in ConnectivityListener()
125 mWifiTracker.onStart(); in start()
160 mWifiTracker.onStop(); in stop()
186 mWifiTracker.onDestroy(); in destroy()
288 return mWifiTracker.getAccessPoints(); in getAvailableNetworks()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DWifiNetworkListFragmentTest.java80 private WifiTracker mWifiTracker; field in WifiNetworkListFragmentTest
95 WifiTrackerFactory.setTestingWifiTracker(mWifiTracker); in setUp()
96 when(mWifiTracker.getManager()).thenReturn(mWifiManager); in setUp()
110 verify(mWifiTracker).getManager(); in launchActivity()
158 when(mWifiTracker.getAccessPoints()).thenReturn( in setupConnectedAccessPoint()
166 when(mWifiTracker.isConnected()).thenReturn(true); in onConnected_shouldSeeConnectedMessage()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DWifiSetupActivity.java64 private WifiTracker mWifiTracker; field in WifiSetupActivity
124 mWifiTracker = new WifiTracker(this, wifiListener, true, true); in onCreate()
125 mNetworkListInfo.setWifiTracker(mWifiTracker); in onCreate()
318 mWifiTracker.onStart(); in onResume()
324 mWifiTracker.onStop(); in onPause()
330 mWifiTracker.onDestroy(); in onDestroy()
385 WifiInfo currentWifiConnection = mWifiTracker.getManager().getConnectionInfo(); in addSummaryState()
DNetworkListInfo.java28 private WifiTracker mWifiTracker; field in NetworkListInfo
59 return mWifiTracker; in getWifiTracker()
63 this.mWifiTracker = wifiTracker; in setWifiTracker()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/
DWifiNetworkListFragment.java63 private WifiTracker mWifiTracker; field in WifiNetworkListFragment
99 mWifiTracker = WifiTrackerFactory.create(getActivity(), this, in onActivityCreated()
101 mWifiManager = mWifiTracker.getManager(); in onActivityCreated()
134 mWifiTracker.resumeScanning(); in onActivityResult()
332 final List<AccessPoint> scannedAccessPoints = mWifiTracker.getAccessPoints(); in getScannedAccessPointIfAvailable()
DWifiDppQrCodeScannerFragment.java114 private WifiTracker mWifiTracker; field in WifiDppQrCodeScannerFragment
218 final List<AccessPoint> scannedAccessPoints = mWifiTracker.getAccessPoints(); in isReachableWifiNetwork()
322 mWifiTracker = WifiTrackerFactory.create(getActivity(), /* wifiListener */ this, in onActivityCreated()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiNetworkListFragment.java63 private WifiTracker mWifiTracker; field in WifiNetworkListFragment
99 mWifiTracker = WifiTrackerFactory.create(getActivity(), this, in onActivityCreated()
101 mWifiManager = mWifiTracker.getManager(); in onActivityCreated()
134 mWifiTracker.resumeScanning(); in onActivityResult()
332 final List<AccessPoint> scannedAccessPoints = mWifiTracker.getAccessPoints(); in getScannedAccessPointIfAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSettingsSliceProviderTest.java491 private static WifiTracker mWifiTracker; field in SettingsSliceProviderTest.ShadowWifiScanWorker
495 mWifiTracker = mock(WifiTracker.class); in onSlicePinned()
496 mWifiTracker.onStart(); in onSlicePinned()
501 mWifiTracker.onStop(); in onSliceUnpinned()
506 mWifiTracker.onDestroy(); in close()
510 return mWifiTracker; in getWifiTracker()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java165 private final WifiTracker mWifiTracker; field in WifiDetailPreferenceController
355 mWifiTracker = WifiTrackerFactory.create( in WifiDetailPreferenceController()
362 mWifiTracker = null; in WifiDetailPreferenceController()
528 if (mWifiTracker != null) { in updateAccessPoint()
558 return mWifiTracker == null || changed; in updateAccessPoint()
565 if (mWifiTracker == null) return; in updateAccessPointFromScannedList()
573 for (AccessPoint ap : mWifiTracker.getAccessPoints()) { in updateAccessPointFromScannedList()

12