Searched refs:mAirplaneModeEnabler (Results 1 – 7 of 7) sorted by relevance
60 private AirplaneModeEnabler mAirplaneModeEnabler; field in AirplaneModePreferenceController67 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()
131 AirplaneModeEnabler mAirplaneModeEnabler; field in InternetUpdater169 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()
204 AirplaneModeEnabler mAirplaneModeEnabler; field in NetworkProviderSettings274 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()
69 private AirplaneModeEnabler mAirplaneModeEnabler; field in InternetUpdaterTest83 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()
56 private AirplaneModeEnabler mAirplaneModeEnabler; field in AirplaneModePreferenceControllerTest111 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()
43 private AirplaneModeEnabler mAirplaneModeEnabler; field in AirplaneModeEnablerTest50 mAirplaneModeEnabler = new AirplaneModeEnabler(mContext, in setUp()56 mAirplaneModeEnabler.start(); in onRadioPowerStateChanged_beenInvoke_invokeOnAirplaneModeChanged()60 mAirplaneModeEnabler.mPhoneStateListener.onRadioPowerStateChanged( in onRadioPowerStateChanged_beenInvoke_invokeOnAirplaneModeChanged()
100 private AirplaneModeEnabler mAirplaneModeEnabler; field in NetworkProviderSettingsTest145 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()