Home
last modified time | relevance | path

Searched refs:mAirplaneModeEnabler (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/network/
DAirplaneModePreferenceController.java60 private AirplaneModeEnabler mAirplaneModeEnabler; field in AirplaneModePreferenceController
67 mAirplaneModeEnabler = new AirplaneModeEnabler(mContext, this); in AirplaneModePreferenceController()
77 mAirplaneModeEnabler = airplaneModeEnabler; in setAirplaneModeEnabler()
83 && mAirplaneModeEnabler.isInEcmMode()) { in handlePreferenceTreeClick()
126 mAirplaneModeEnabler.start(); in onStart()
133 mAirplaneModeEnabler.stop(); in onStop()
139 mAirplaneModeEnabler.close(); in onDestroy()
147 mAirplaneModeEnabler.setAirplaneModeInECM(isChoiceYes, in onActivityResult()
154 return mAirplaneModeEnabler.isAirplaneModeOn(); in isChecked()
162 mAirplaneModeEnabler.setAirplaneMode(isChecked); in setChecked()
DInternetUpdater.java131 AirplaneModeEnabler mAirplaneModeEnabler; field in InternetUpdater
169 mAirplaneModeEnabler = new AirplaneModeEnabler(mContext, this); in InternetUpdater()
183 mAirplaneModeEnabler.start(); in onResume()
191 mAirplaneModeEnabler.stop(); in onPause()
199 mAirplaneModeEnabler.close(); in onDestroy()
256 } else if (mAirplaneModeEnabler.isAirplaneModeOn() in updateInternetType()
287 return mAirplaneModeEnabler.isAirplaneModeOn(); in isAirplaneModeOn()
DNetworkProviderSettings.java204 AirplaneModeEnabler mAirplaneModeEnabler; field in NetworkProviderSettings
274 mAirplaneModeEnabler = new AirplaneModeEnabler(getContext(), this); in onCreate()
289 updateAirplaneModeMsgPreference(mAirplaneModeEnabler.isAirplaneModeOn() /* visible */); in addPreferences()
417 mAirplaneModeEnabler.start(); in onStart()
454 mAirplaneModeEnabler.stop(); in onStop()
460 mAirplaneModeEnabler.close(); in onDestroy()
1223 if (!mAirplaneModeEnabler.isAirplaneModeOn()) { in onCreateOptionsMenu()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DInternetUpdaterTest.java69 private AirplaneModeEnabler mAirplaneModeEnabler; field in InternetUpdaterTest
83 mInternetUpdater.mAirplaneModeEnabler = mAirplaneModeEnabler; in setUp()
90 verify(mAirplaneModeEnabler).start(); in onResume_shouldRegisterCallback()
105 verify(mAirplaneModeEnabler).stop(); in onPause_shouldUnregisterCallback()
115 verify(mAirplaneModeEnabler).close(); in onDestroy_shouldCloseCallback()
145 doReturn(true).when(mAirplaneModeEnabler).isAirplaneModeOn(); in updateInternetType_apmOnWifiOff_getInternetApm()
156 doReturn(true).when(mAirplaneModeEnabler).isAirplaneModeOn(); in updateInternetType_apmOnWifiOnNotConnected_getInternetNetworksAvailable()
167 doReturn(true).when(mAirplaneModeEnabler).isAirplaneModeOn(); in updateInternetType_apmOnWifiConnected_getInternetWifi()
179 doReturn(true).when(mAirplaneModeEnabler).isAirplaneModeOn(); in updateInternetType_apmOnCellularConnected_getInternetCellular()
190 doReturn(true).when(mAirplaneModeEnabler).isAirplaneModeOn(); in updateInternetType_apmOnEthernetConnected_getInternetEthernet()
DAirplaneModePreferenceControllerTest.java56 private AirplaneModeEnabler mAirplaneModeEnabler; field in AirplaneModePreferenceControllerTest
111 mController.setAirplaneModeEnabler(mAirplaneModeEnabler); in setChecked_setAirplaneModeEnabler_setCheckedTrue()
119 mController.setAirplaneModeEnabler(mAirplaneModeEnabler); in setChecked_isAirplaneModeOnAndSetCheckedTrue_shouldReturnFalse()
121 when(mAirplaneModeEnabler.isAirplaneModeOn()).thenReturn(true); in setChecked_isAirplaneModeOnAndSetCheckedTrue_shouldReturnFalse()
129 mController.setAirplaneModeEnabler(mAirplaneModeEnabler); in setChecked_setChecked_isAirplaneModeOnAndSetCheckedTrue_shouldReturnTrue()
131 when(mAirplaneModeEnabler.isAirplaneModeOn()).thenReturn(true); in setChecked_setChecked_isAirplaneModeOnAndSetCheckedTrue_shouldReturnTrue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DAirplaneModeEnablerTest.java43 private AirplaneModeEnabler mAirplaneModeEnabler; field in AirplaneModeEnablerTest
50 mAirplaneModeEnabler = new AirplaneModeEnabler(mContext, in setUp()
56 mAirplaneModeEnabler.start(); in onRadioPowerStateChanged_beenInvoke_invokeOnAirplaneModeChanged()
60 mAirplaneModeEnabler.mPhoneStateListener.onRadioPowerStateChanged( in onRadioPowerStateChanged_beenInvoke_invokeOnAirplaneModeChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DNetworkProviderSettingsTest.java100 private AirplaneModeEnabler mAirplaneModeEnabler; field in NetworkProviderSettingsTest
145 mNetworkProviderSettings.mAirplaneModeEnabler = mAirplaneModeEnabler; in setUp()
424 doReturn(true).when(mAirplaneModeEnabler).isAirplaneModeOn(); in onCreateOptionsMenu_airplanModeOn_fixConnectivityMenuInvisible()
434 doReturn(false).when(mAirplaneModeEnabler).isAirplaneModeOn(); in onCreateOptionsMenu_airplanModeOff_fixConnectivityMenuVisible()
546 verify(mAirplaneModeEnabler).stop(); in onStop_shouldRemoveCallbacks()