Home
last modified time | relevance | path

Searched refs:mWifiTetheringHandler (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DWifiTetheringHandlerTest.java57 private WifiTetheringHandler mWifiTetheringHandler; field in WifiTetheringHandlerTest
81 mWifiTetheringHandler = new WifiTetheringHandler(mContext, mMockLifecycle, in setUp()
83 mWifiTetheringHandler.setCarWifiManager(mCarWifiManager); in setUp()
84 mWifiTetheringHandler.setTetheringManager(mTetheringManager); in setUp()
93 assertThat(mWifiTetheringHandler.isWifiTetheringEnabled()).isTrue(); in onCreate_tetherStateOn_shouldReturnSwitchStateOn()
101 assertThat(mWifiTetheringHandler.isWifiTetheringEnabled()).isFalse(); in onCreate_tetherStateOff_shouldReturnSwitchStateOff()
108 mWifiTetheringHandler.updateWifiTetheringState(true); in onSwitchOn_shouldAttemptTetherOn()
120 mWifiTetheringHandler.updateWifiTetheringState(false); in onSwitchOff_shouldAttemptTetherOff()
130 mWifiTetheringHandler.handleWifiApStateChanged(WifiManager.WIFI_AP_STATE_ENABLING); in onTetherEnabling_shouldReturnSwitchStateDisabled()
141 mWifiTetheringHandler.handleWifiApStateChanged(WifiManager.WIFI_AP_STATE_ENABLED); in onTetherEnabled_shouldReturnSwitchStateEnabledAndOn()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherStateSwitchPreferenceController.java34 private WifiTetheringHandler mWifiTetheringHandler; field in WifiTetherStateSwitchPreferenceController
41 mWifiTetheringHandler = new WifiTetheringHandler(context, in WifiTetherStateSwitchPreferenceController()
52 updateSwitchPreference(mWifiTetheringHandler.isWifiTetheringEnabled()); in updateState()
59 mWifiTetheringHandler.updateWifiTetheringState(switchOn); in handlePreferenceChanged()
71 mWifiTetheringHandler.onStartInternal(); in onStartInternal()
76 mWifiTetheringHandler.onStopInternal(); in onStopInternal()
DWifiTetherPreferenceController.java41 private WifiTetheringHandler mWifiTetheringHandler; field in WifiTetherPreferenceController
61 mWifiTetheringHandler = new WifiTetheringHandler(context, in WifiTetherPreferenceController()
73 mWifiTetheringHandler.updateWifiTetheringState(isChecked); in onCreateInternal()
81 boolean tetheringEnabled = mWifiTetheringHandler.isWifiTetheringEnabled(); in onStartInternal()
83 mWifiTetheringHandler.onStartInternal(); in onStartInternal()
89 mWifiTetheringHandler.onStopInternal(); in onStopInternal()