Home
last modified time | relevance | path

Searched refs:PhoneConstants (Results 1 – 25 of 65) sorted by relevance

123

/packages/services/Telephony/src/com/android/phone/
DPhoneUtils.java54 import com.android.internal.telephony.PhoneConstants;
228 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { in placeCall()
812 case PhoneConstants.PHONE_TYPE_NONE: log(" ==> PHONE_TYPE_NONE"); break; in startGetCallerInfo()
813 case PhoneConstants.PHONE_TYPE_GSM: log(" ==> PHONE_TYPE_GSM"); break; in startGetCallerInfo()
814 case PhoneConstants.PHONE_TYPE_IMS: log(" ==> PHONE_TYPE_IMS"); break; in startGetCallerInfo()
815 case PhoneConstants.PHONE_TYPE_CDMA: log(" ==> PHONE_TYPE_CDMA"); break; in startGetCallerInfo()
816 case PhoneConstants.PHONE_TYPE_SIP: log(" ==> PHONE_TYPE_SIP"); break; in startGetCallerInfo()
817 case PhoneConstants.PHONE_TYPE_THIRD_PARTY: in startGetCallerInfo()
853 if (cit.currentInfo.numberPresentation != PhoneConstants.PRESENTATION_ALLOWED) { in startGetCallerInfo()
930 if (cit.currentInfo.numberPresentation != PhoneConstants.PRESENTATION_ALLOWED) { in startGetCallerInfo()
[all …]
DPhoneGlobals.java60 import com.android.internal.telephony.PhoneConstants;
188 PhoneConstants.State phoneState;
516 Settings.Global.CELL_ON, PhoneConstants.CELL_ON_FLAG); in handleAirplaneModeChange()
519 case PhoneConstants.CELL_OFF_FLAG: in handleAirplaneModeChange()
523 case PhoneConstants.CELL_ON_FLAG: in handleAirplaneModeChange()
526 case PhoneConstants.CELL_OFF_DUE_TO_AIRPLANE_MODE_FLAG: in handleAirplaneModeChange()
545 PhoneConstants.CELL_OFF_DUE_TO_AIRPLANE_MODE_FLAG); in setRadioPowerOff()
554 PhoneConstants.CELL_ON_FLAG); in setRadioPowerOn()
604 int phoneId = intent.getIntExtra(PhoneConstants.PHONE_KEY, in onReceive()
619 String newPhone = intent.getStringExtra(PhoneConstants.PHONE_NAME_KEY); in onReceive()
[all …]
DMMIDialogActivity.java32 import com.android.internal.telephony.PhoneConstants;
55 int subId = intent.getIntExtra(PhoneConstants.SUBSCRIPTION_KEY, in onCreate()
123 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { in onMMIComplete()
125 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) { in onMMIComplete()
DCallNotifier.java40 import com.android.internal.telephony.PhoneConstants;
328 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { in run()
332 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM in run()
333 || phoneType == PhoneConstants.PHONE_TYPE_SIP in run()
334 || phoneType == PhoneConstants.PHONE_TYPE_IMS in run()
335 || phoneType == PhoneConstants.PHONE_TYPE_THIRD_PARTY) { in run()
427 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { in run()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DApnPreferenceControllerTest.java38 import com.android.internal.telephony.PhoneConstants;
90 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mTelephonyManager).getPhoneType(); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable()
100 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mTelephonyManager).getPhoneType(); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable()
110 doReturn(PhoneConstants.PHONE_TYPE_GSM).when(mTelephonyManager).getPhoneType(); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable()
120 doReturn(PhoneConstants.PHONE_TYPE_GSM).when(mTelephonyManager).getPhoneType(); in getAvailabilityStatus_carrierConfigNull_returnUnavailable()
129 doReturn(PhoneConstants.PHONE_TYPE_GSM).when(mTelephonyManager).getPhoneType(); in getAvailabilityStatus_hideCarrierNetworkSettings_returnUnavailable()
DDataServiceSetupPreferenceControllerTest.java41 import com.android.internal.telephony.PhoneConstants;
95 doReturn(PhoneConstants.LTE_ON_CDMA_TRUE).when(mTelephonyManager).getLteOnCdmaMode(); in getAvailabilityStatus_allConfigOn_returnAvailable()
106 doReturn(PhoneConstants.LTE_ON_CDMA_TRUE).when(mTelephonyManager).getLteOnCdmaMode(); in getAvailabilityStatus_missUrl_returnUnavailable()
118 doReturn(PhoneConstants.LTE_ON_CDMA_FALSE).when(mTelephonyManager).getLteOnCdmaMode(); in getAvailabilityStatus_notCdma_returnUnavailable()
DMobileNetworkUtilsTest.java43 import com.android.internal.telephony.PhoneConstants;
160 when(mTelephonyManager.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_CDMA); in isCdmaOptions_phoneTypeCdma_returnTrue()
167 when(mTelephonyManager.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in isCdmaOptions_worldModeWithGsmWcdma_returnTrue()
179 when(mTelephonyManager.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in isCdmaOptions_carrierWorldModeWithoutHideCarrier_returnTrue()
217 when(mTelephonyManager.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in shouldDisplayNetworkSelectOptions_allCheckPass_returnTrue()
DCarrierPreferenceControllerTest.java41 import com.android.internal.telephony.PhoneConstants;
93 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mTelephonyManager).getPhoneType(); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable()
103 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mTelephonyManager).getPhoneType(); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable()
113 doReturn(PhoneConstants.PHONE_TYPE_GSM).when(mTelephonyManager).getPhoneType(); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable()
/packages/services/Telephony/tests/src/com/android/phone/
DCdmaOptionsTest.java25 import com.android.internal.telephony.PhoneConstants;
36 assertThat(CdmaOptions.shouldAddApnExpandPreference(PhoneConstants.PHONE_TYPE_GSM, bundle)) in shouldAddApnExpandPreference_doesNotExpandOnGsm()
44 assertThat(CdmaOptions.shouldAddApnExpandPreference(PhoneConstants.PHONE_TYPE_CDMA, bundle)) in shouldAddApnExpandPreference_showExpandOnCdma()
52 assertThat(CdmaOptions.shouldAddApnExpandPreference(PhoneConstants.PHONE_TYPE_CDMA, bundle)) in shouldAddApnExpandPreference_doesNotExpandOnCdmaIfCarrierConfigDisabled()
DCnapTest.java25 import static com.android.internal.telephony.PhoneConstants.PRESENTATION_ALLOWED;
26 import static com.android.internal.telephony.PhoneConstants.PRESENTATION_PAYPHONE;
27 import static com.android.internal.telephony.PhoneConstants.PRESENTATION_RESTRICTED;
28 import static com.android.internal.telephony.PhoneConstants.PRESENTATION_UNKNOWN;
DCallFeaturesSettingTest.java31 import com.android.internal.telephony.PhoneConstants;
61 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in onResume_fdnIsAvailable_shouldShowFdnMenu()
76 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in onResume_iccCardIsNull_shouldNotShowFdnMenu()
90 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_GSM); in onResume_fdnIsNotAvailable_shouldNotShowFdnMenu()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DEnabledNetworkModePreferenceController.java32 import com.android.internal.telephony.PhoneConstants;
111 mTelephonyManager.getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE; in init()
129 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { in updatePreferenceEntries()
135 == PhoneConstants.LTE_ON_CDMA_TRUE; in updatePreferenceEntries()
174 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) { in updatePreferenceEntries()
320 if (mTelephonyManager.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA in updatePreferenceValueAndSummary()
DPreferredNetworkModePreferenceController.java31 import com.android.internal.telephony.PhoneConstants;
107 mTelephonyManager.getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE; in init()
136 case PhoneConstants.LTE_ON_CDMA_TRUE: in getPreferredNetworkModeSummaryResId()
162 if (mTelephonyManager.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA in getPreferredNetworkModeSummaryResId()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DEnabledNetworkModePreferenceController.java32 import com.android.internal.telephony.PhoneConstants;
111 mTelephonyManager.getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE; in init()
129 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { in updatePreferenceEntries()
135 == PhoneConstants.LTE_ON_CDMA_TRUE; in updatePreferenceEntries()
174 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) { in updatePreferenceEntries()
320 if (mTelephonyManager.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA in updatePreferenceValueAndSummary()
DPreferredNetworkModePreferenceController.java31 import com.android.internal.telephony.PhoneConstants;
107 mTelephonyManager.getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE; in init()
136 case PhoneConstants.LTE_ON_CDMA_TRUE: in getPreferredNetworkModeSummaryResId()
162 if (mTelephonyManager.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA in getPreferredNetworkModeSummaryResId()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DRadioOnStateListenerTest.java38 import com.android.internal.telephony.PhoneConstants;
102 when(mMockPhone.getState()).thenReturn(PhoneConstants.State.IDLE); in testPhoneChangeState_OkToCallTrue()
124 when(mMockPhone.getState()).thenReturn(PhoneConstants.State.IDLE); in testPhoneChangeState_NoOkToCall_Timeout()
148 when(mMockPhone.getState()).thenReturn(PhoneConstants.State.IDLE); in testTimeout_RetryFailure()
DImsConferenceControllerTest.java31 import com.android.internal.telephony.PhoneConstants;
118 .thenReturn(PhoneConstants.PHONE_TYPE_IMS); in testMergeMultiPartyCalls()
120 .thenReturn(PhoneConstants.PHONE_TYPE_IMS); in testMergeMultiPartyCalls()
DTestTelephonyConnection.java33 import com.android.internal.telephony.PhoneConstants;
79 when(mMockRadioConnection.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_IMS); in TestTelephonyConnection()
89 when(mMockPhone.getPhoneType()).thenReturn(PhoneConstants.PHONE_TYPE_IMS); in TestTelephonyConnection()
/packages/apps/Settings/src/com/android/settings/network/
DApnSettings.java55 import com.android.internal.telephony.PhoneConstants;
139 PhoneConstants.DataState state = getMobileDataState(intent);
165 private static PhoneConstants.DataState getMobileDataState(Intent intent) { in getMobileDataState()
166 String str = intent.getStringExtra(PhoneConstants.STATE_KEY); in getMobileDataState()
168 return Enum.valueOf(PhoneConstants.DataState.class, str); in getMobileDataState()
170 return PhoneConstants.DataState.DISCONNECTED; in getMobileDataState()
DApnEditor.java53 import com.android.internal.telephony.PhoneConstants;
348 if (apnList.contains(PhoneConstants.APN_TYPE_ALL)) { in hasAllApns()
352 for (String apn : PhoneConstants.APN_TYPES) { in hasAllApns()
1158 || PhoneConstants.APN_TYPE_ALL.equals(userEnteredApnType)) in getUserEnteredApnType()
1163 for (String apnType : PhoneConstants.APN_TYPES) { in getUserEnteredApnType()
1166 && !apnType.equals(PhoneConstants.APN_TYPE_IA) in getUserEnteredApnType()
1167 && !apnType.equals(PhoneConstants.APN_TYPE_EMERGENCY) in getUserEnteredApnType()
1168 && !apnType.equals(PhoneConstants.APN_TYPE_MCX)) { in getUserEnteredApnType()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DApnSettings.java55 import com.android.internal.telephony.PhoneConstants;
139 PhoneConstants.DataState state = getMobileDataState(intent);
165 private static PhoneConstants.DataState getMobileDataState(Intent intent) { in getMobileDataState()
166 String str = intent.getStringExtra(PhoneConstants.STATE_KEY); in getMobileDataState()
168 return Enum.valueOf(PhoneConstants.DataState.class, str); in getMobileDataState()
170 return PhoneConstants.DataState.DISCONNECTED; in getMobileDataState()
DApnEditor.java53 import com.android.internal.telephony.PhoneConstants;
348 if (apnList.contains(PhoneConstants.APN_TYPE_ALL)) { in hasAllApns()
352 for (String apn : PhoneConstants.APN_TYPES) { in hasAllApns()
1158 || PhoneConstants.APN_TYPE_ALL.equals(userEnteredApnType)) in getUserEnteredApnType()
1163 for (String apnType : PhoneConstants.APN_TYPES) { in getUserEnteredApnType()
1166 && !apnType.equals(PhoneConstants.APN_TYPE_IA) in getUserEnteredApnType()
1167 && !apnType.equals(PhoneConstants.APN_TYPE_EMERGENCY) in getUserEnteredApnType()
1168 && !apnType.equals(PhoneConstants.APN_TYPE_MCX)) { in getUserEnteredApnType()
/packages/services/Mms/src/com/android/mms/service/
DApnSettings.java27 import com.android.internal.telephony.PhoneConstants;
121 cursor.getString(COLUMN_TYPE), PhoneConstants.APN_TYPE_MMS)) { in load()
211 if (type.equals(requestType) || type.equals(PhoneConstants.APN_TYPE_ALL)) { in isValidApnType()
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java55 import com.android.internal.telephony.PhoneConstants;
485 return (phone.getState() == PhoneConstants.State.OFFHOOK) in onCreateOutgoingConnection()
492 return (phone.getState() == PhoneConstants.State.OFFHOOK) in onCreateOutgoingConnection()
579 PhoneConstants.CELL_ON_FLAG); in isRadioPowerDownOnBluetooth()
580 return (allowed && cellOn == PhoneConstants.CELL_ON_FLAG && !isRadioOn()); in isRadioPowerDownOnBluetooth()
817 connection.setAddress(handle, PhoneConstants.PRESENTATION_ALLOWED); in getTelephonyConnection()
888 || originalConnection.getPhoneType() != PhoneConstants.PHONE_TYPE_IMS) { in handleIncomingRtt()
1276 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) { in placeOutgoingConnection()
1285 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); in placeOutgoingConnection()
1401 if (phoneCount <= PhoneConstants.MAX_PHONE_COUNT_SINGLE_SIM) { in possiblyOverrideDefaultDataForEmergencyCall()
/packages/apps/Stk/src/com/android/stk/
DStkLauncherActivity.java35 import com.android.internal.telephony.PhoneConstants;
97 if (item.id >= PhoneConstants.SIM_ID_1 && item.id < simCount) { in onListItemClick()
224 , PhoneConstants.SIM_ID_1 + slodId); in launchSTKMainMenu()

123