/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/ |
D | WifiTetherApBandPreferenceControllerTest.java | 72 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 …]
|
D | WifiTetherPersistentOnPreferenceControllerTest.java | 63 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()
|
D | WifiTetherPreferenceControllerTest.java | 72 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()
|
D | WifiTetherSecurityPreferenceControllerTest.java | 73 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()
|
D | WifiTetheringHandlerTest.java | 61 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/ |
D | WifiTetherPasswordPreferenceControllerTest.java | 54 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 …]
|
D | WifiTetherApBandPreferenceControllerTest.java | 50 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 …]
|
D | WifiTetherNamePreferenceControllerTest.java | 48 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/ |
D | WifiTetheringHandler.java | 42 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()
|
D | WifiBasePreferenceController.java | 36 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()
|
D | WifiSettingsFragment.java | 46 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()
|
D | WifiTetherBasePreferenceController.java | 49 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()
|
D | WifiRequestToggleActivity.java | 63 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()
|
D | WifiTetherPreferenceController.java | 40 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/ |
D | CarSettingsApplication.java | 54 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/ |
D | CarWifiManagerUnitTest.java | 44 private CarWifiManager mCarWifiManager; field in CarWifiManagerUnitTest 49 mCarWifiManager = new CarWifiManager(mCar, mBinder); in setUp() 56 boolean result = mCarWifiManager.canControlPersistTetheringSettings(); in testCanControlPersistTetheringSettings()
|