Home
last modified time | relevance | path

Searched refs:mCarWifiManager (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiTetherApBandPreferenceControllerTest.java72 private CarWifiManager mCarWifiManager; field in WifiTetherApBandPreferenceControllerTest
82 when(mCarWifiManager.getCountryCode()).thenReturn("1"); in setUp()
85 mCarWifiManager); in setUp()
92 when(mCarWifiManager.is5GhzBandSupported()).thenReturn(false); in onStart_5GhzBandNotSupported_defaultTo2Ghz()
93 when(mCarWifiManager.getSoftApConfig()).thenReturn( in onStart_5GhzBandNotSupported_defaultTo2Ghz()
107 when(mCarWifiManager.is5GhzBandSupported()).thenReturn(true); in onStart_dualBandNotSupported_defaultTo2Ghz()
108 when(mCarWifiManager.isDualBandSupported()).thenReturn(false); in onStart_dualBandNotSupported_defaultTo2Ghz()
109 when(mCarWifiManager.getSoftApConfig()).thenReturn( in onStart_dualBandNotSupported_defaultTo2Ghz()
124 when(mCarWifiManager.is5GhzBandSupported()).thenReturn(true); in onStart_wifiConfigApBandSetTo5Ghz_valueIsSetTo5Ghz()
125 when(mCarWifiManager.getSoftApConfig()).thenReturn( in onStart_wifiConfigApBandSetTo5Ghz_valueIsSetTo5Ghz()
[all …]
DWifiTetherPersistentOnPreferenceControllerTest.java63 private CarWifiManager mCarWifiManager; field in WifiTetherPersistentOnPreferenceControllerTest
71 when(mCarSettingsApplication.getCarWifiManager()).thenReturn(mCarWifiManager); in setUp()
83 when(mCarWifiManager.canControlPersistTetheringSettings()).thenReturn(false); in getDefaultAvailabilityStatus_noAvailableOnDevice()
93 when(mCarWifiManager.canControlPersistTetheringSettings()).thenReturn(true); in testDefaultAvailabilityStatus_availableOnDevice()
103 when(mCarWifiManager.canControlPersistTetheringSettings()).thenReturn(true); in testUpdateState_stateChecked()
114 when(mCarWifiManager.canControlPersistTetheringSettings()).thenReturn(true); in testUpdateState_stateNotChecked()
125 when(mCarWifiManager.canControlPersistTetheringSettings()).thenReturn(true); in testHandlePreferenceChanged_enableUWB()
DWifiTetherPreferenceControllerTest.java72 private CarWifiManager mCarWifiManager; field in WifiTetherPreferenceControllerTest
87 mCarWifiManager, mTetheringManager); in setUp()
244 when(mCarWifiManager.isWifiApEnabled()).thenReturn(false); in onTetheringOff_subtitleOff()
257 when(mCarWifiManager.isWifiApEnabled()).thenReturn(true); in onTetheringOn_showsSSIDAndPassword()
262 when(mCarWifiManager.getSoftApConfig()).thenReturn(config); in onTetheringOn_showsSSIDAndPassword()
274 when(mCarWifiManager.isWifiApEnabled()).thenReturn(true); in onDeviceConnected_showsDeviceConnectedSubtitle()
DWifiTetherSecurityPreferenceControllerTest.java73 private CarWifiManager mCarWifiManager; field in WifiTetherSecurityPreferenceControllerTest
85 when(mCarWifiManager.getSoftApConfig()).thenReturn(mConfig); in setup()
88 mCarWifiManager); in setup()
239 CarWifiManager mCarWifiManager; field in WifiTetherSecurityPreferenceControllerTest.TestWifiTetherSecurityPreferenceController
246 mCarWifiManager = carWifiManager; in TestWifiTetherSecurityPreferenceController()
261 return mCarWifiManager; in getCarWifiManager()
DWifiTetheringHandlerTest.java61 private CarWifiManager mCarWifiManager; field in WifiTetheringHandlerTest
78 mWifiTetheringHandler = new WifiTetheringHandler(mContext, mCarWifiManager, in setUp()
85 when(mCarWifiManager.isWifiApEnabled()).thenReturn(true); in onCreate_tetherStateOn_shouldReturnSwitchStateOn()
93 when(mCarWifiManager.isWifiApEnabled()).thenReturn(false); in onCreate_tetherStateOff_shouldReturnSwitchStateOff()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiTetherPasswordPreferenceControllerTest.java54 private CarWifiManager mCarWifiManager; field in WifiTetherPasswordPreferenceControllerTest
60 mCarWifiManager = new CarWifiManager(mContext, mock(Lifecycle.class)); in setup()
85 mCarWifiManager.setSoftApConfig(config); in onStart_securityTypeIsNotNone_visibilityIsSetToTrue()
96 mCarWifiManager.setSoftApConfig(config); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_setsPasswordAsSummary()
107 mCarWifiManager.setSoftApConfig(config); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_obscuresSummary()
119 mCarWifiManager.setSoftApConfig(config); in onStart_securityTypeIsNone_visibilityIsSetToFalse()
133 mCarWifiManager.setSoftApConfig(config); in onChangePassword_updatesPassword()
136 String passwordReturned = mCarWifiManager.getSoftApConfig().getPassphrase(); in onChangePassword_updatesPassword()
148 mCarWifiManager.setSoftApConfig(config); in onChangePassword_savesNewPassword()
168 mCarWifiManager.setSoftApConfig(config); in onSecurityChangedToNone_visibilityIsFalse()
[all …]
DWifiTetherApBandPreferenceControllerTest.java50 private CarWifiManager mCarWifiManager; field in WifiTetherApBandPreferenceControllerTest
56 mCarWifiManager = new CarWifiManager(mContext, mock(Lifecycle.class)); in setup()
102 mCarWifiManager.setSoftApConfig(config); in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz()
115 mCarWifiManager.setSoftApConfig(config); in onStart_wifiConfigApBandSetTo5Ghz_valueIsSetTo5Ghz()
128 mCarWifiManager.setSoftApConfig(config); in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz()
133 assertThat(mCarWifiManager.getSoftApConfig().getBand()) in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz()
143 mCarWifiManager.setSoftApConfig(config); in onPreferenceChangedTo2Ghz_updatesApBandConfigTo2Ghz()
148 assertThat(mCarWifiManager.getSoftApConfig().getBand()) in onPreferenceChangedTo2Ghz_updatesApBandConfigTo2Ghz()
158 mCarWifiManager.setSoftApConfig(config); in onStart_summarySetToPrefer5Ghz()
170 mCarWifiManager.setSoftApConfig(config); in onPreferenceChangedTo5Ghz_defaultToApBandAny()
[all …]
DWifiTetherNamePreferenceControllerTest.java48 private CarWifiManager mCarWifiManager; field in WifiTetherNamePreferenceControllerTest
58 mCarWifiManager = new CarWifiManager(mContext, mock(Lifecycle.class)); in onStart_wifiConfigHasSSID_setsSummary()
75 return Shadow.extract(mCarWifiManager); in getShadowCarWifiManager()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetheringHandler.java42 private final CarWifiManager mCarWifiManager; field in WifiTetheringHandler
64 if (mCarWifiManager != null && mCarWifiManager.isWifiApEnabled()) {
87 mCarWifiManager = carWifiManager; in WifiTetheringHandler()
97 mCarWifiManager.registerSoftApCallback(mContext.getMainExecutor(), mSoftApCallback); in onStartInternal()
109 mCarWifiManager.unregisterSoftApCallback(mSoftApCallback); in onStopInternal()
120 return mCarWifiManager.isWifiApEnabled(); in isWifiTetheringEnabled()
DWifiBasePreferenceController.java36 private CarWifiManager mCarWifiManager; field in WifiBasePreferenceController
46 mCarWifiManager = new CarWifiManager(getContext(), in onCreateInternal()
56 mCarWifiManager.addListener(this); in onStartInternal()
61 mCarWifiManager.removeListener(this); in onStopInternal()
75 return mCarWifiManager; in getCarWifiManager()
DWifiSettingsFragment.java46 private CarWifiManager mCarWifiManager; field in WifiSettingsFragment
60 mCarWifiManager = new CarWifiManager(getContext(), getLifecycle()); in onCreate()
84 mCarWifiManager.addListener(this); in onStart()
85 onWifiStateChanged(mCarWifiManager.getWifiState()); in onStart()
91 mCarWifiManager.removeListener(this); in onStop()
104 List<WifiEntry> connectedWifiEntries = mCarWifiManager.getConnectedWifiEntries(); in onWifiEntriesChanged()
DWifiTetherBasePreferenceController.java49 private final CarWifiManager mCarWifiManager; field in WifiTetherBasePreferenceController
63 mCarWifiManager = carWifiManager; in WifiTetherBasePreferenceController()
104 return mCarWifiManager.getSoftApConfig(); in getCarSoftApConfig()
108 mCarWifiManager.setSoftApConfig(configuration); in setCarSoftApConfig()
113 return mCarWifiManager; in getCarWifiManager()
DWifiRequestToggleActivity.java63 private CarWifiManager mCarWifiManager; field in WifiRequestToggleActivity
75 mCarWifiManager.setWifiEnabled(true);
81 mCarWifiManager.setWifiEnabled(false);
104 mCarWifiManager = new CarWifiManager(getApplicationContext(), getLifecycle()); in onCreate()
130 final int wifiState = mCarWifiManager.getWifiState(); in onStart()
250 int currentState = mCarWifiManager.getWifiState(); in onReceive()
DWifiTetherPreferenceController.java40 private final CarWifiManager mCarWifiManager; field in WifiTetherPreferenceController
71 mCarWifiManager = carWifiManager; in WifiTetherPreferenceController()
74 mWifiTetheringHandler = new WifiTetheringHandler(context, mCarWifiManager, in WifiTetherPreferenceController()
156 mCarWifiManager.getSoftApConfig(), hotspotEnabled, mConnectedDevicesCount); in updateSummary()
/packages/apps/Car/Settings/src/com/android/car/settings/
DCarSettingsApplication.java54 private CarWifiManager mCarWifiManager = null; field in CarSettingsApplication
75 mCarWifiManager = null;
89 mCarWifiManager = (CarWifiManager) car.getCarManager(Car.CAR_WIFI_SERVICE);
149 return mCarWifiManager; in getCarWifiManager()
/packages/services/Car/tests/CarLibUnitTest/src/android/car/wifi/
DCarWifiManagerUnitTest.java44 private CarWifiManager mCarWifiManager; field in CarWifiManagerUnitTest
49 mCarWifiManager = new CarWifiManager(mCar, mBinder); in setUp()
56 boolean result = mCarWifiManager.canControlPersistTetheringSettings(); in testCanControlPersistTetheringSettings()