/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/ |
D | WifiTetherFragmentTest.java | 67 private CarWifiManager mCarWifiManager; field in WifiTetherFragmentTest 97 when(mCarWifiManager.isWifiApEnabled()).thenReturn(true); in onStart_tetherStateOn_shouldReturnSwitchStateOn() 98 ShadowCarWifiManager.setInstance(mCarWifiManager); in onStart_tetherStateOn_shouldReturnSwitchStateOn() 107 when(mCarWifiManager.isWifiApEnabled()).thenReturn(false); in onStart_tetherStateOff_shouldReturnSwitchStateOff() 108 ShadowCarWifiManager.setInstance(mCarWifiManager); in onStart_tetherStateOff_shouldReturnSwitchStateOff() 117 when(mCarWifiManager.isWifiApEnabled()).thenReturn(false); in onSwitchOn_shouldAttemptTetherOn() 118 ShadowCarWifiManager.setInstance(mCarWifiManager); in onSwitchOn_shouldAttemptTetherOn() 131 when(mCarWifiManager.isWifiApEnabled()).thenReturn(true); in onSwitchOff_shouldAttemptTetherOff() 132 ShadowCarWifiManager.setInstance(mCarWifiManager); in onSwitchOff_shouldAttemptTetherOff() 142 when(mCarWifiManager.isWifiApEnabled()).thenReturn(false); in onTetherEnabling_shouldReturnSwitchStateDisabled() [all …]
|
D | WifiTetherPasswordPreferenceControllerTest.java | 51 private CarWifiManager mCarWifiManager; field in WifiTetherPasswordPreferenceControllerTest 57 mCarWifiManager = new CarWifiManager(mContext); in setup() 80 mCarWifiManager.setSoftApConfig(config); in onStart_securityTypeIsNotNone_visibilityIsSetToTrue() 91 mCarWifiManager.setSoftApConfig(config); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_setsPasswordAsSummary() 102 mCarWifiManager.setSoftApConfig(config); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_obscuresSummary() 114 mCarWifiManager.setSoftApConfig(config); in onStart_securityTypeIsNone_visibilityIsSetToFalse() 128 mCarWifiManager.setSoftApConfig(config); in onChangePassword_updatesPassword() 131 String passwordReturned = mCarWifiManager.getSoftApConfig().getPassphrase(); in onChangePassword_updatesPassword() 143 mCarWifiManager.setSoftApConfig(config); in onChangePassword_savesNewPassword() 163 mCarWifiManager.setSoftApConfig(config); in onSecurityChangedToNone_visibilityIsFalse() [all …]
|
D | WifiTetherApBandPreferenceControllerTest.java | 47 private CarWifiManager mCarWifiManager; field in WifiTetherApBandPreferenceControllerTest 53 mCarWifiManager = new CarWifiManager(mContext); in setup() 97 mCarWifiManager.setSoftApConfig(config); in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz() 110 mCarWifiManager.setSoftApConfig(config); in onStart_wifiConfigApBandSetTo5Ghz_valueIsSetTo5Ghz() 123 mCarWifiManager.setSoftApConfig(config); in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz() 128 assertThat(mCarWifiManager.getSoftApConfig().getBand()) in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz() 138 mCarWifiManager.setSoftApConfig(config); in onPreferenceChangedTo2Ghz_updatesApBandConfigTo2Ghz() 143 assertThat(mCarWifiManager.getSoftApConfig().getBand()) in onPreferenceChangedTo2Ghz_updatesApBandConfigTo2Ghz() 153 mCarWifiManager.setSoftApConfig(config); in onStart_summarySetToPrefer5Ghz() 165 mCarWifiManager.setSoftApConfig(config); in onPreferenceChangedTo5Ghz_defaultToApBandAny() [all …]
|
D | WifiEntryPreferenceControllerTest.java | 57 private CarWifiManager mCarWifiManager; field in WifiEntryPreferenceControllerTest 62 ShadowCarWifiManager.setInstance(mCarWifiManager); in setUp() 89 when(mCarWifiManager.isWifiEnabled()).thenReturn(false); in onStart_wifiDisabled_setsSwitchUnchecked() 101 when(mCarWifiManager.isWifiEnabled()).thenReturn(true); in onStart_wifiEnabled_setsSwitchChecked() 113 when(mCarWifiManager.isWifiEnabled()).thenReturn(true); in onWifiStateChanged_disabled_setsSwitchUnchecked() 116 when(mCarWifiManager.isWifiEnabled()).thenReturn(false); in onWifiStateChanged_disabled_setsSwitchUnchecked() 126 when(mCarWifiManager.isWifiEnabled()).thenReturn(false); in onWifiStateChanged_enabled_setsSwitchChecked() 129 when(mCarWifiManager.isWifiEnabled()).thenReturn(true); in onWifiStateChanged_enabled_setsSwitchChecked()
|
D | WifiTetherSecurityPreferenceControllerTest.java | 48 private CarWifiManager mCarWifiManager; field in WifiTetherSecurityPreferenceControllerTest 54 mCarWifiManager = new CarWifiManager(mContext); in setup() 77 mCarWifiManager.setSoftApConfig(config); in onStart_securityTypeSetToNone_setsValueToNone() 91 mCarWifiManager.setSoftApConfig(config); in onStart_securityTypeSetToWPA2PSK_setsValueToWPA2PSK() 104 mCarWifiManager.setSoftApConfig(config); in onPreferenceChangedToNone_updatesSharedSecurityTypeToNone() 123 mCarWifiManager.setSoftApConfig(config); in onPreferenceChangedToWPA2PSK_updatesSharedSecurityTypeToWPA2PSK()
|
D | WifiTetherNamePreferenceControllerTest.java | 45 private CarWifiManager mCarWifiManager; field in WifiTetherNamePreferenceControllerTest 55 mCarWifiManager = new CarWifiManager(mContext); in onStart_wifiConfigHasSSID_setsSummary() 70 return Shadow.extract(mCarWifiManager); in getShadowCarWifiManager()
|
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/ |
D | WifiTile.java | 38 private final CarWifiManager mCarWifiManager; field in WifiTile 60 mCarWifiManager = new CarWifiManager(context); in WifiTile() 64 onWifiStateChanged(mCarWifiManager.getWifiState()); in WifiTile() 95 mCarWifiManager.addListener(this); in start() 96 mCarWifiManager.start(); in start() 101 mCarWifiManager.removeListener(this); in stop() 102 mCarWifiManager.stop(); in stop() 103 mCarWifiManager.destroy(); in stop() 130 mCarWifiManager.setWifiEnabled(!mCarWifiManager.isWifiEnabled()); in onClick() 134 return mCarWifiManager.isWifiEnabled() && mCarWifiManager.getConnectedAccessPoint() == null; in wifiEnabledNotConnected() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiSettingsFragment.java | 47 private CarWifiManager mCarWifiManager; field in WifiSettingsFragment 67 mCarWifiManager = new CarWifiManager(getContext()); in onCreate() 71 .setChecked(mCarWifiManager.isWifiEnabled()) in onCreate() 73 if (mWifiSwitch.isChecked() != mCarWifiManager.isWifiEnabled()) { in onCreate() 74 mCarWifiManager.setWifiEnabled(mWifiSwitch.isChecked()); in onCreate() 101 mCarWifiManager.addListener(this); in onStart() 102 mCarWifiManager.start(); in onStart() 103 onWifiStateChanged(mCarWifiManager.getWifiState()); in onStart() 109 mCarWifiManager.removeListener(this); in onStop() 110 mCarWifiManager.stop(); in onStop() [all …]
|
D | WifiEntryPreferenceController.java | 33 private CarWifiManager mCarWifiManager; field in WifiEntryPreferenceController 47 mCarWifiManager = new CarWifiManager(getContext()); in onCreateInternal() 49 if (isChecked != mCarWifiManager.isWifiEnabled()) { in onCreateInternal() 50 mCarWifiManager.setWifiEnabled(isChecked); in onCreateInternal() 57 mCarWifiManager.addListener(this); in onStartInternal() 58 mCarWifiManager.start(); in onStartInternal() 59 getPreference().setSwitchChecked(mCarWifiManager.isWifiEnabled()); in onStartInternal() 64 mCarWifiManager.removeListener(this); in onStopInternal() 65 mCarWifiManager.stop(); in onStopInternal() 70 mCarWifiManager.destroy(); in onDestroyInternal() [all …]
|
D | WifiBasePreferenceController.java | 36 private CarWifiManager mCarWifiManager; field in WifiBasePreferenceController 45 mCarWifiManager = new CarWifiManager(getContext()); in onCreateInternal() 50 mCarWifiManager.addListener(this); in onStartInternal() 51 mCarWifiManager.start(); in onStartInternal() 56 mCarWifiManager.removeListener(this); in onStopInternal() 57 mCarWifiManager.stop(); in onStopInternal() 62 mCarWifiManager.destroy(); in onDestroyInternal() 76 return mCarWifiManager; in getCarWifiManager()
|
D | WifiTetherBasePreferenceController.java | 48 private CarWifiManager mCarWifiManager; field in WifiTetherBasePreferenceController 58 mCarWifiManager = new CarWifiManager(getContext()); in onCreateInternal() 64 mCarWifiManager.start(); in onStartInternal() 71 mCarWifiManager.stop(); in onStopInternal() 77 mCarWifiManager.destroy(); in onDestroyInternal() 94 return mCarWifiManager.getSoftApConfig(); in getCarSoftApConfig() 98 mCarWifiManager.setSoftApConfig(configuration); in setCarSoftApConfig() 103 return mCarWifiManager; in getCarWifiManager()
|
D | WifiTetherFragment.java | 48 private CarWifiManager mCarWifiManager; field in WifiTetherFragment 64 if (mCarWifiManager != null && mCarWifiManager.isWifiApEnabled()) { 81 .setChecked(mCarWifiManager.isWifiApEnabled()) in onCreate() 102 mCarWifiManager = new CarWifiManager(context); in onAttach() 114 mCarWifiManager.start(); in onStart() 120 mCarWifiManager.stop(); in onStop() 128 mCarWifiManager.destroy(); in onDestroy()
|
D | WifiRequestToggleActivity.java | 63 private CarWifiManager mCarWifiManager; field in WifiRequestToggleActivity 75 mCarWifiManager.setWifiEnabled(true); 81 mCarWifiManager.setWifiEnabled(false); 104 mCarWifiManager = new CarWifiManager(getApplicationContext()); in onCreate() 136 final int wifiState = mCarWifiManager.getWifiState(); in onStart() 256 int currentState = mCarWifiManager.getWifiState(); in onReceive()
|