Home
last modified time | relevance | path

Searched refs:mWifiTracker (Results 1 – 25 of 26) 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.java69 private WifiTracker mWifiTracker; field in NetworkRequestDialogFragmentTest
79 mWifiTracker = mock(WifiTracker.class); in setUp()
80 WifiTrackerFactory.setTestingWifiTracker(mWifiTracker); in setUp()
145 when(mWifiTracker.getAccessPoints()).thenReturn(accessPointList); in onMatch_shouldUpdatedList()
180 when(mWifiTracker.getAccessPoints()).thenReturn(accessPointList); in onAccessPointsChanged_shouldUpdatedList()
193 when(mWifiTracker.getAccessPoints()).thenReturn(accessPointList); in onAccessPointsChanged_shouldUpdatedList()
251 when(mWifiTracker.getAccessPoints()).thenReturn(accessPointList); in onMatchManyResult_showNeutralButton()
DWifiSettingsTest.java94 private WifiTracker mWifiTracker; field in WifiSettingsTest
134 doReturn(mWifiManager).when(mWifiTracker).getManager(); in setUp()
138 mWifiSettings.mWifiTracker = mWifiTracker; in setUp()
145 WifiTrackerFactory.setTestingWifiTracker(mWifiTracker); in setUp()
369 when(mWifiTracker.isConnected()).thenReturn(true); in clickOnWifiNetworkWith_shouldStartCaptivePortalApp()
381 when(mWifiTracker.getAccessPoints()).thenReturn(Arrays.asList(accessPointActive, in clickOnWifiNetworkWith_shouldStartCaptivePortalApp()
/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.sanitizeSsid(mWifiTracker.ssid); in getSummary()
94 if (TextUtils.isEmpty(mWifiTracker.statusLabel)) { in getSummary()
99 ssid, mWifiTracker.statusLabel); in getSummary()
DNetworkRequestDialogFragment.java476 private final WifiTracker mWifiTracker; field in NetworkRequestDialogFragment.FilterWifiTracker
480 mWifiTracker = WifiTrackerFactory.create(context, mWifiListener, in FilterWifiTracker()
505 final List<AccessPoint> allAccessPoints = mWifiTracker.getAccessPoints(); in getAccessPoints()
560 if (mWifiTracker != null) { in onDestroy()
561 mWifiTracker.onDestroy(); in onDestroy()
566 if (mWifiTracker != null) { in onResume()
567 mWifiTracker.onStart(); in onResume()
572 if (mWifiTracker != null) { in onPause()
573 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()
716 final List<AccessPoint> accessPoints = mWifiTracker.getAccessPoints(); in updateAccessPointPreferences()
958 final int numSavedNetworks = mWifiTracker.getNumSavedNetworks(); in setAdditionalSettingsSummaries()
1058 mWifiTracker.resumeScanning(); in submit()
1085 mWifiTracker.resumeScanning(); in forget()
1111 mWifiTracker.resumeScanning(); in handleAddNetworkRequest()
/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.sanitizeSsid(mWifiTracker.ssid); in getSummary()
94 if (TextUtils.isEmpty(mWifiTracker.statusLabel)) { in getSummary()
99 ssid, mWifiTracker.statusLabel); in getSummary()
DNetworkRequestDialogFragment.java330 private final WifiTracker mWifiTracker; field in NetworkRequestDialogFragment.FilterWifiTracker
334 mWifiTracker = WifiTrackerFactory.create(context, mWifiListener, in FilterWifiTracker()
359 final List<AccessPoint> allAccessPoints = mWifiTracker.getAccessPoints(); in getAccessPoints()
409 if (mWifiTracker != null) { in onDestroy()
410 mWifiTracker.onDestroy(); in onDestroy()
415 if (mWifiTracker != null) { in onResume()
416 mWifiTracker.onStart(); in onResume()
421 if (mWifiTracker != null) { in onPause()
422 mWifiTracker.onStop(); in onPause()
DWifiSettings.java185 WifiTracker mWifiTracker; field in WifiSettings
284 mWifiTracker = WifiTrackerFactory.create( in onActivityCreated()
286 mWifiManager = mWifiTracker.getManager(); in onActivityCreated()
446 mWifiTracker.resumeScanning(); in onActivityResult()
742 changeNextButtonState(mWifiTracker.isConnected()); in onConnectedChanged()
767 final List<AccessPoint> accessPoints = mWifiTracker.getAccessPoints(); in updateAccessPointPreferences()
1145 mWifiTracker.resumeScanning(); in submit()
1172 mWifiTracker.resumeScanning(); in forget()
1193 mWifiTracker.resumeScanning(); in handleAddNetworkRequest()
1250 mWifiTracker.resumeScanning(); in handleConfigNetworkSubmitEvent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java63 private WifiTracker mWifiTracker; field in ConnectivityListener
109 mWifiTracker = new WifiTracker(context, this, lifecycle, true, true); in ConnectivityListener()
111 mWifiTracker = new WifiTracker(context, this, true, true); in ConnectivityListener()
125 if (!mStarted && mWifiTracker != null) { in start()
126 mWifiTracker.onStart(); in start()
160 if (mStarted && mWifiTracker != null) { in stop()
161 mWifiTracker.onStop(); in stop()
186 if (mWifiTracker != null) { in destroy()
187 mWifiTracker.onDestroy(); in destroy()
353 return mWifiTracker == null ? new ArrayList<>() : mWifiTracker.getAccessPoints(); in getAvailableNetworks()
DNetworkRequestDialogFragment.java468 private final WifiTracker mWifiTracker; field in NetworkRequestDialogFragment.FilterWifiTracker
472 mWifiTracker = WifiTrackerFactory.create(context, mWifiListener, in FilterWifiTracker()
497 final List<AccessPoint> allAccessPoints = mWifiTracker.getAccessPoints(); in getAccessPoints()
552 if (mWifiTracker != null) { in onDestroy()
553 mWifiTracker.onDestroy(); in onDestroy()
558 if (mWifiTracker != null) { in onResume()
559 mWifiTracker.onStart(); in onResume()
564 if (mWifiTracker != null) { in onPause()
565 mWifiTracker.onStop(); in onPause()
/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()
240 && isWifiClicked(mWifiTracker.getManager().getConnectionInfo()) in onCapabilitiesChanged()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DWifiSettingsUiTest.java91 private WifiTracker mWifiTracker; field in WifiSettingsUiTest
105 WifiTrackerFactory.setTestingWifiTracker(mWifiTracker); in setUp()
106 when(mWifiTracker.getManager()).thenReturn(mWifiManager); in setUp()
147 when(mWifiTracker.getAccessPoints()).thenReturn( in setupConnectedAccessPoint()
159 verify(mWifiTracker).getManager(); in launchActivity()
199 when(mWifiTracker.getNumSavedNetworks()).thenReturn(0); in noSavedNetworks_wifiDisabled_shouldNotShowSavedNetworksButton()
210 when(mWifiTracker.getNumSavedNetworks()).thenReturn(1); in savedNetworksExist_shouldShowSavedNetworksButton()
244 when(mWifiTracker.isConnected()).thenReturn(true); in onConnected_shouldSeeConnectedMessage()
268 when(mWifiTracker.getAccessPoints()) in changingSecurityStateOnApShouldNotCauseMultipleListItems()
324 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/setup/
DWifiSetupActivity.java64 private WifiTracker mWifiTracker; field in WifiSetupActivity
121 mWifiTracker = new WifiTracker(this, wifiListener, true, true); in onCreate()
122 mNetworkListInfo.setWifiTracker(mWifiTracker); in onCreate()
272 mWifiTracker.onStart(); in onResume()
278 mWifiTracker.onStop(); in onPause()
284 mWifiTracker.onDestroy(); in onDestroy()
339 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/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DWifiNetworkListFragmentTest.java76 private WifiTracker mWifiTracker; field in WifiNetworkListFragmentTest
91 WifiTrackerFactory.setTestingWifiTracker(mWifiTracker); in setUp()
92 when(mWifiTracker.getManager()).thenReturn(mWifiManager); in setUp()
153 when(mWifiTracker.getAccessPoints()).thenReturn( in setupConnectedAccessPoint()
161 when(mWifiTracker.isConnected()).thenReturn(true); in onConnected_shouldSeeConnectedMessage()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiNetworkListFragment.java62 private WifiTracker mWifiTracker; field in WifiNetworkListFragment
97 mWifiTracker = WifiTrackerFactory.create(getActivity(), this, in onActivityCreated()
99 mWifiManager = mWifiTracker.getManager(); in onActivityCreated()
132 mWifiTracker.resumeScanning(); in onActivityResult()
325 final List<AccessPoint> scannedAccessPoints = mWifiTracker.getAccessPoints(); in getScannedAccessPointIfAvailable()
DWifiDppQrCodeScannerFragment.java109 private WifiTracker mWifiTracker; field in WifiDppQrCodeScannerFragment
222 final List<AccessPoint> scannedAccessPoints = mWifiTracker.getAccessPoints(); in isReachableWifiNetwork()
326 mWifiTracker = WifiTrackerFactory.create(getActivity(), /* wifiListener */ this, in onActivityCreated()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java165 private final WifiTracker mWifiTracker; field in WifiDetailPreferenceController
358 mWifiTracker = WifiTrackerFactory.create( in WifiDetailPreferenceController()
365 mWifiTracker = null; in WifiDetailPreferenceController()
531 if (mWifiTracker != null) { in updateAccessPoint()
561 return mWifiTracker == null || changed; in updateAccessPoint()
568 if (mWifiTracker == null) return; in updateAccessPointFromScannedList()
576 for (AccessPoint ap : mWifiTracker.getAccessPoints()) { in updateAccessPointFromScannedList()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSettingsSliceProviderTest.java714 private static WifiTracker mWifiTracker; field in SettingsSliceProviderTest.ShadowWifiScanWorker
718 mWifiTracker = mock(WifiTracker.class); in onSlicePinned()
719 mWifiTracker.onStart(); in onSlicePinned()
724 mWifiTracker.onStop(); in onSliceUnpinned()
729 mWifiTracker.onDestroy(); in close()
733 return mWifiTracker; in getWifiTracker()

12