Home
last modified time | relevance | path

Searched refs:isAirplaneModeOn (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/
DAirplaneModeEnabler.java59 void onAirplaneModeChanged(boolean isAirplaneModeOn); in onAirplaneModeChanged() argument
139 mOnAirplaneModeChangedListener.onAirplaneModeChanged(isAirplaneModeOn()); in onAirplaneModeChanged()
169 public void setAirplaneMode(boolean isAirplaneModeOn) { in setAirplaneMode() argument
172 Log.d(LOG_TAG, "ECM airplane mode=" + isAirplaneModeOn); in setAirplaneMode()
175 isAirplaneModeOn); in setAirplaneMode()
176 setAirplaneModeOn(isAirplaneModeOn); in setAirplaneMode()
180 public void setAirplaneModeInECM(boolean isECMExit, boolean isAirplaneModeOn) { in setAirplaneModeInECM() argument
181 Log.d(LOG_TAG, "Exist ECM=" + isECMExit + ", with airplane mode=" + isAirplaneModeOn); in setAirplaneModeInECM()
184 setAirplaneModeOn(isAirplaneModeOn); in setAirplaneModeInECM()
191 public boolean isAirplaneModeOn() { in isAirplaneModeOn() method in AirplaneModeEnabler
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DInternetUpdater.java74 default void onAirplaneModeChanged(boolean isAirplaneModeOn) {}; in onAirplaneModeChanged() argument
203 public void onAirplaneModeChanged(boolean isAirplaneModeOn) { in onAirplaneModeChanged() argument
206 mListener.onAirplaneModeChanged(isAirplaneModeOn); in onAirplaneModeChanged()
256 } else if (mAirplaneModeEnabler.isAirplaneModeOn() in updateInternetType()
286 public boolean isAirplaneModeOn() { in isAirplaneModeOn() method in InternetUpdater
287 return mAirplaneModeEnabler.isAirplaneModeOn(); in isAirplaneModeOn()
DAirplaneModePreferenceController.java154 return mAirplaneModeEnabler.isAirplaneModeOn(); in isChecked()
167 public void onAirplaneModeChanged(boolean isAirplaneModeOn) { in onAirplaneModeChanged() argument
169 mAirplaneModePreference.setChecked(isAirplaneModeOn); in onAirplaneModeChanged()
DSubscriptionsChangeListener.java97 public boolean isAirplaneModeOn() { in isAirplaneModeOn() method in SubscriptionsChangeListener
109 mClient.onAirplaneModeChanged(isAirplaneModeOn()); in onChange()
DMobileNetworkSummaryController.java162 mPreference.setEnabled(!mChangeListener.isAirplaneModeOn()); in initPreference()
189 mPreference.setAddWidgetEnabled(!mChangeListener.isAirplaneModeOn()); in update()
DNetworkProviderSettings.java289 updateAirplaneModeMsgPreference(mAirplaneModeEnabler.isAirplaneModeOn() /* visible */); in addPreferences()
1223 if (!mAirplaneModeEnabler.isAirplaneModeOn()) { in onCreateOptionsMenu()
1289 public void onAirplaneModeChanged(boolean isAirplaneModeOn) { in onAirplaneModeChanged() argument
1290 updateAirplaneModeMsgPreference(isAirplaneModeOn /* visible */); in onAirplaneModeChanged()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DInternetUpdaterTest.java145 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.java121 when(mAirplaneModeEnabler.isAirplaneModeOn()).thenReturn(true); in setChecked_isAirplaneModeOnAndSetCheckedTrue_shouldReturnFalse()
131 when(mAirplaneModeEnabler.isAirplaneModeOn()).thenReturn(true); in setChecked_setChecked_isAirplaneModeOnAndSetCheckedTrue_shouldReturnTrue()
/packages/apps/Settings/tests/unit/src/com/android/settings/panel/
DInternetConnectivityPanelTest.java131 doReturn(false).when(mInternetUpdater).isAirplaneModeOn(); in getTitle_apmOff_shouldBeInternet()
138 doReturn(true).when(mInternetUpdater).isAirplaneModeOn(); in getTitle_apmOn_shouldBeApm()
145 doReturn(true).when(mInternetUpdater).isAirplaneModeOn(); in getSubTitle_apmOnWifiOff_shouldBeNull()
153 doReturn(true).when(mInternetUpdater).isAirplaneModeOn(); in getSubTitle_apmOnWifiOn_shouldBeNull()
161 doReturn(false).when(mInternetUpdater).isAirplaneModeOn(); in getSubTitle_apmOffWifiOff_wifiIsOn()
332 doReturn(airplaneMode).when(mInternetUpdater).isAirplaneModeOn(); in mockCondition()
/packages/apps/Settings/src/com/android/settings/panel/
DInternetConnectivityPanel.java206 return mContext.getText(mInternetUpdater.isAirplaneModeOn() in getTitle()
268 public void onAirplaneModeChanged(boolean isAirplaneModeOn) { in onAirplaneModeChanged() argument
269 log("onAirplaneModeChanged: isAirplaneModeOn:" + isAirplaneModeOn); in onAirplaneModeChanged()
320 if (!mInternetUpdater.isAirplaneModeOn()) { in updateSubtitleText()
329 if (mInternetUpdater.isAirplaneModeOn()) { in updateSubtitleText()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DAirplaneModeTest.java61 boolean airplaneModeOn = isAirplaneModeOn(); in doOneTest()
70 if (airplaneModeOn == isAirplaneModeOn()) { in doOneTest()
81 private boolean isAirplaneModeOn() { in isAirplaneModeOn() method in AirplaneModeTest
/packages/services/Telephony/src/com/android/phone/
DCallFeaturesSetting.java128 boolean isAirplaneModeOn = intent.getBooleanExtra("state", false);
129 handleAirplaneModeChange(isAirplaneModeOn);
134 private void handleAirplaneModeChange(boolean isAirplaneModeOn) { in handleAirplaneModeChange() argument
153 callForwarding.setEnabled(!isAirplaneModeOn); in handleAirplaneModeChange()
156 callBarring.setEnabled(!isAirplaneModeOn); in handleAirplaneModeChange()
159 additional.setEnabled(!isAirplaneModeOn); in handleAirplaneModeChange()
DShortcutViewUtils.java72 if (mCanEnableShortcutView && !isAirplaneModeOn(context)) { in refresh()
114 private boolean isAirplaneModeOn(@NonNull Context context) { in isAirplaneModeOn() method in ShortcutViewUtils.Config
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DAirplaneModeRule.java55 if (enable == isAirplaneModeOn()) { in setAirplaneMode()
67 public boolean isAirplaneModeOn() { in isAirplaneModeOn() method in AirplaneModeRule
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanEventListener.java224 Boolean isAirplaneModeOn = new Boolean(intent.getBooleanExtra("state", false)); in onBroadcastReceived() local
225 if (sIsAirplaneModeOn != null && sIsAirplaneModeOn.equals(isAirplaneModeOn)) { in onBroadcastReceived()
229 sIsAirplaneModeOn = isAirplaneModeOn; in onBroadcastReceived()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DSubscriptionsChangeListenerTest.java129 assertThat(mListener.isAirplaneModeOn()).isTrue(); in onAirplaneModeChangedEvent_becameTrue_eventFires()
138 assertThat(mListener.isAirplaneModeOn()).isFalse(); in onAirplaneModeChangedEvent_becameFalse_eventFires()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DActiveModeWardenTest.java203 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in setUp()
350 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in enterScanOnlyModeActiveState()
1313 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in testExitScanModeWhenLocationModeDisabled()
1994 when(mSettingsStore.isAirplaneModeOn()).thenReturn(true); in testSoftApModeToggleWhenInAirplaneMode()
2433 when(mSettingsStore.isAirplaneModeOn()).thenReturn(true); in staDisabled_toggleWifiOff_scanNotAvailable_dontGoToScanMode()
2456 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in staDisabled_toggleWifiOff_scanAvailable_goToScanMode()
3369 when(mSettingsStore.isAirplaneModeOn()).thenReturn(true); in airplaneModeToggleOnDisablesWifi()
3385 when(mSettingsStore.isAirplaneModeOn()).thenReturn(true); in airplaneModeToggleOnDisablesSoftAp()
3403 when(mSettingsStore.isAirplaneModeOn()).thenReturn(true); in airplaneModeToggleOffIsDeferredWhileProcessingToggleOnWithOneModeManager()
3411 when(mSettingsStore.isAirplaneModeOn()).thenReturn(false); in airplaneModeToggleOffIsDeferredWhileProcessingToggleOnWithOneModeManager()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppLauncherActivity.java247 final boolean isAirplaneModeOn = in isBluetoothAllowed()
249 if (!isAirplaneModeOn) { in isBluetoothAllowed()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DActiveModeWarden.java1503 boolean isAirplaneModeOn = mSettingsStore.isAirplaneModeOn(); in start()
1508 log("isAirplaneModeOn = " + isAirplaneModeOn in start()
1717 if (mSettingsStore.isAirplaneModeOn()) { in processMessage()
2013 if (mSettingsStore.isAirplaneModeOn()) { in processMessageFiltered()
DWifiSettingsStore.java64 public synchronized boolean isAirplaneModeOn() { in isAirplaneModeOn() method in WifiSettingsStore
/packages/services/Telephony/src/com/android/services/telephony/
DDeviceState.java45 public boolean isAirplaneModeOn(Context context) { in isAirplaneModeOn() method in DeviceState
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DAirplaneModeEnablerTest.java68 public void onAirplaneModeChanged(boolean isAirplaneModeOn) {} in onAirplaneModeChanged() argument
/packages/apps/Messaging/src/com/android/messaging/util/
DConnectivityUtil.java90 mCurrentServiceState = (PhoneUtils.getDefault().isAirplaneModeOn() ? in register()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DAirplaneModeConditionController.java59 return WirelessUtils.isAirplaneModeOn(mAppContext); in isDisplayable()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DBugleActionToasts.java59 if (phoneUtils.isAirplaneModeOn()) { in onSendMessageOrManualDownloadActionCompleted()

12