Home
last modified time | relevance | path

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

1234

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DApnSettingTest.java23 import com.android.internal.telephony.PhoneConstants;
212 new String[]{PhoneConstants.APN_TYPE_DEFAULT, PhoneConstants.APN_TYPE_MMS}); in testIsMetered()
215 new String[]{PhoneConstants.APN_TYPE_DEFAULT}). in testIsMetered()
219 new String[]{PhoneConstants.APN_TYPE_DEFAULT, PhoneConstants.APN_TYPE_MMS}). in testIsMetered()
223 new String[]{PhoneConstants.APN_TYPE_MMS}). in testIsMetered()
227 new String[]{PhoneConstants.APN_TYPE_MMS, PhoneConstants.APN_TYPE_SUPL}). in testIsMetered()
231 new String[]{PhoneConstants.APN_TYPE_DEFAULT, PhoneConstants.APN_TYPE_DUN}). in testIsMetered()
235 new String[]{PhoneConstants.APN_TYPE_ALL}). in testIsMetered()
239 new String[]{PhoneConstants.APN_TYPE_FOTA, PhoneConstants.APN_TYPE_SUPL}). in testIsMetered()
243 new String[]{PhoneConstants.APN_TYPE_IA, PhoneConstants.APN_TYPE_CBS}). in testIsMetered()
[all …]
DDcTrackerTest.java48 import com.android.internal.telephony.PhoneConstants;
309 doReturn(PhoneConstants.State.IDLE).when(mCT).getState(); in setUp()
372 eq(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected()
377 assertEquals(apnSetting, mDct.getActiveApnString(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected()
378 assertArrayEquals(new String[]{PhoneConstants.APN_TYPE_DEFAULT}, mDct.getActiveApnTypes()); in verifyDataConnected()
382 assertEquals(DctConstants.State.CONNECTED, mDct.getState(PhoneConstants.APN_TYPE_DEFAULT)); in verifyDataConnected()
384 LinkProperties linkProperties = mDct.getLinkProperties(PhoneConstants.APN_TYPE_DEFAULT); in verifyDataConnected()
425 eq(PhoneConstants.DataState.DISCONNECTED)); in testDataSetup()
436 eq(PhoneConstants.DataState.DISCONNECTED)); in testDataSetup()
443 eq(PhoneConstants.DataState.DISCONNECTED)); in testDataSetup()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DTelephonyCapabilities.java50 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA || in supportsEcm()
72 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA); in supportsOtasp()
93 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM); in supportsNetworkSelection()
105 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) { in getDeviceIdLabel()
107 } else if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { in getDeviceIdLabel()
127 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) in supportsConferenceCallManagement()
128 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP)); in supportsConferenceCallManagement()
141 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) in supportsHoldAndUnhold()
142 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP) in supportsHoldAndUnhold()
143 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_IMS)); in supportsHoldAndUnhold()
[all …]
DDefaultPhoneNotifier.java37 import com.android.internal.telephony.PhoneConstants;
157 PhoneConstants.DataState state) { in notifyDataConnection()
162 PhoneConstants.DataState state) { in doNotifyDataConnection()
175 if (state == PhoneConstants.DataState.CONNECTED) { in doNotifyDataConnection()
309 public static int convertCallState(PhoneConstants.State state) { in convertCallState()
324 public static PhoneConstants.State convertCallState(int state) { in convertCallState()
327 return PhoneConstants.State.RINGING; in convertCallState()
329 return PhoneConstants.State.OFFHOOK; in convertCallState()
331 return PhoneConstants.State.IDLE; in convertCallState()
339 public static int convertDataState(PhoneConstants.DataState state) { in convertDataState()
[all …]
DDriverCall.java72 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in fromCLCCLine()
137 case 0: return PhoneConstants.PRESENTATION_ALLOWED; in presentationFromCLIP()
138 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; in presentationFromCLIP()
139 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP()
140 case 3: return PhoneConstants.PRESENTATION_PAYPHONE; in presentationFromCLIP()
DPhoneStateIntentReceiver.java47 PhoneConstants.State mPhoneState = PhoneConstants.State.IDLE;
78 public PhoneConstants.State getPhoneState() { in getPhoneState()
175 + intent.getStringExtra(PhoneConstants.STATE_KEY)); in onReceive()
176 String phoneState = intent.getStringExtra(PhoneConstants.STATE_KEY); in onReceive()
178 PhoneConstants.State.class, phoneState); in onReceive()
DGsmCdmaPhone.java201 super(precisePhoneType == PhoneConstants.PHONE_TYPE_GSM ? "GSM" : "CDMA", in GsmCdmaPhone()
278 mCi.setPhoneType(PhoneConstants.PHONE_TYPE_GSM); in initRatSpecific()
279 tm.setPhoneType(getPhoneId(), PhoneConstants.PHONE_TYPE_GSM); in initRatSpecific()
292 mCi.setPhoneType(PhoneConstants.PHONE_TYPE_CDMA); in initRatSpecific()
293 tm.setPhoneType(getPhoneId(), PhoneConstants.PHONE_TYPE_CDMA); in initRatSpecific()
353 return mPrecisePhoneType == PhoneConstants.PHONE_TYPE_GSM; in isPhoneTypeGsm()
357 return mPrecisePhoneType == PhoneConstants.PHONE_TYPE_CDMA; in isPhoneTypeCdma()
361 return mPrecisePhoneType == PhoneConstants.PHONE_TYPE_CDMA_LTE; in isPhoneTypeCdmaLte()
370 setPhoneName(precisePhoneType == PhoneConstants.PHONE_TYPE_GSM ? "GSM" : "CDMA"); in switchPhoneType()
436 public PhoneConstants.State getState() { in getState()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java33 import com.android.internal.telephony.PhoneConstants;
642 case PhoneConstants.APN_TYPE_DEFAULT: in apnIdForApnName()
644 case PhoneConstants.APN_TYPE_MMS: in apnIdForApnName()
646 case PhoneConstants.APN_TYPE_SUPL: in apnIdForApnName()
648 case PhoneConstants.APN_TYPE_DUN: in apnIdForApnName()
650 case PhoneConstants.APN_TYPE_HIPRI: in apnIdForApnName()
652 case PhoneConstants.APN_TYPE_IMS: in apnIdForApnName()
654 case PhoneConstants.APN_TYPE_FOTA: in apnIdForApnName()
656 case PhoneConstants.APN_TYPE_CBS: in apnIdForApnName()
658 case PhoneConstants.APN_TYPE_IA: in apnIdForApnName()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaCallWaitingNotification.java20 import com.android.internal.telephony.PhoneConstants;
60 case 0: return PhoneConstants.PRESENTATION_ALLOWED; in presentationFromCLIP()
61 case 1: return PhoneConstants.PRESENTATION_RESTRICTED; in presentationFromCLIP()
62 case 2: return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP()
66 return PhoneConstants.PRESENTATION_UNKNOWN; in presentationFromCLIP()
/frameworks/base/telephony/java/android/telephony/
DCellLocation.java26 import com.android.internal.telephony.PhoneConstants;
64 case PhoneConstants.PHONE_TYPE_CDMA: in newFromBundle()
66 case PhoneConstants.PHONE_TYPE_GSM: in newFromBundle()
98 case PhoneConstants.PHONE_TYPE_CDMA: in getEmpty()
100 case PhoneConstants.PHONE_TYPE_GSM: in getEmpty()
DTelephonyManager.java49 import com.android.internal.telephony.PhoneConstants;
237 phoneCount = PhoneConstants.MAX_PHONE_COUNT_DUAL_SIM; in getPhoneCount()
240 phoneCount = PhoneConstants.MAX_PHONE_COUNT_TRI_SIM; in getPhoneCount()
374 public static final String EXTRA_STATE = PhoneConstants.STATE_KEY;
380 public static final String EXTRA_STATE_IDLE = PhoneConstants.State.IDLE.toString();
386 public static final String EXTRA_STATE_RINGING = PhoneConstants.State.RINGING.toString();
392 public static final String EXTRA_STATE_OFFHOOK = PhoneConstants.State.OFFHOOK.toString();
576 public static final String EXTRA_DATA_STATE = PhoneConstants.STATE_KEY;
605 public static final String EXTRA_DATA_NETWORK_TYPE = PhoneConstants.DATA_NETWORK_TYPE_KEY;
617 public static final String EXTRA_DATA_APN_TYPE = PhoneConstants.DATA_APN_TYPE_KEY;
[all …]
/frameworks/base/telephony/java/com/android/ims/
DImsCallProfile.java24 import com.android.internal.telephony.PhoneConstants;
417 case PhoneConstants.PRESENTATION_RESTRICTED: in presentationToOIR()
419 case PhoneConstants.PRESENTATION_ALLOWED: in presentationToOIR()
421 case PhoneConstants.PRESENTATION_PAYPHONE: in presentationToOIR()
423 case PhoneConstants.PRESENTATION_UNKNOWN: in presentationToOIR()
438 return PhoneConstants.PRESENTATION_RESTRICTED; in OIRToPresentation()
440 return PhoneConstants.PRESENTATION_ALLOWED; in OIRToPresentation()
442 return PhoneConstants.PRESENTATION_PAYPHONE; in OIRToPresentation()
444 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation()
446 return PhoneConstants.PRESENTATION_UNKNOWN; in OIRToPresentation()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java88 PhoneConstants.PHONE_TYPE_GSM, mTelephonyComponentFactory); in onLooperPrepared()
99 assertEquals(PhoneConstants.PHONE_TYPE_GSM, mPhoneUT.getPhoneType()); in switchToGsm()
108 assertEquals(PhoneConstants.PHONE_TYPE_CDMA, mPhoneUT.getPhoneType()); in switchToCdma()
207 assertEquals(PhoneConstants.PHONE_TYPE_GSM, mPhoneUT.getPhoneType()); in testGetPhoneType()
212 assertEquals(PhoneConstants.PHONE_TYPE_CDMA, mPhoneUT.getPhoneType()); in testGetPhoneType()
221 assertEquals(PhoneConstants.DataState.DISCONNECTED, mPhoneUT.getDataConnectionState( in testGetDataConnectionState()
222 PhoneConstants.APN_TYPE_ALL)); in testGetDataConnectionState()
227 PhoneConstants.APN_TYPE_EMERGENCY); in testGetDataConnectionState()
228 assertEquals(PhoneConstants.DataState.DISCONNECTED, mPhoneUT.getDataConnectionState( in testGetDataConnectionState()
229 PhoneConstants.APN_TYPE_EMERGENCY)); in testGetDataConnectionState()
[all …]
DImsSMSDispatcherTest.java103 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSmsHandleStateUpdate()
108 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSmsHandleStateUpdate()
115 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendImsGmsTest()
125 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendImsGmsTestWithOutDesAddr()
134 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSendImsCdmaTest()
145 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_CDMA); in testSendRetrySmsCdmaTest()
148 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testSendRetrySmsCdmaTest()
159 switchImsSmsFormat(PhoneConstants.PHONE_TYPE_GSM); in testSendRetrySmsGsmTest()
DGsmCdmaCallTrackerTest.java92 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial()
103 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial()
133 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup()
145 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallHangup()
153 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDialPickUpHangup()
169 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDialPickUpHangup()
190 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallPendingHangUp()
223 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMTCallRinging()
230 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testMTCallRinging()
249 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMTCallAccept()
[all …]
DSubscriptionInfoUpdaterTest.java150 mIntent.putExtra(PhoneConstants.PHONE_KEY, 0); in testSimAbsent()
171 mIntent.putExtra(PhoneConstants.PHONE_KEY, FAKE_SUB_ID); in testSimUnknown()
190 mIntent.putExtra(PhoneConstants.PHONE_KEY, 2); in testSimError()
208 mIntent.putExtra(PhoneConstants.PHONE_KEY, 2); in testWrongSimState()
232 intentInternalSimStateChanged.putExtra(PhoneConstants.PHONE_KEY, 0); in testSimLoaded()
299 mIntent.putExtra(PhoneConstants.PHONE_KEY, 0); in testSimLoadedEmptyOperatorNumeric()
339 mIntent.putExtra(PhoneConstants.PHONE_KEY, 0); in testSimLockedWithOutIccId()
374 mIntent.putExtra(PhoneConstants.PHONE_KEY, 0); in testSimLockWIthIccId()
DGsmCdmaConnectionTest.java84 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, connection.getNumberPresentation()); in testSanityGSM()
92 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testSanityCDMA()
102 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, connection.getNumberPresentation()); in testSanityCDMA()
128 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testCDMAPostDialPause()
164 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mPhone).getPhoneType(); in testPostDialWait()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhoneBase.java41 import com.android.internal.telephony.PhoneConstants;
54 private PhoneConstants.State mState = PhoneConstants.State.IDLE;
118 public PhoneConstants.State getState() { in getState()
124 return PhoneConstants.PHONE_TYPE_SIP; in getPhoneType()
148 public PhoneConstants.DataState getDataConnectionState() { in getDataConnectionState()
149 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState()
153 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState()
154 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState()
510 PhoneConstants.State oldState = mState; in updatePhoneState()
513 mState = PhoneConstants.State.RINGING; in updatePhoneState()
[all …]
DSipConnectionBase.java22 import com.android.internal.telephony.PhoneConstants;
54 super(PhoneConstants.PHONE_TYPE_SIP); in SipConnectionBase()
163 return PhoneConstants.PRESENTATION_ALLOWED; in getNumberPresentation()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneBase.java41 import com.android.internal.telephony.PhoneConstants;
55 private PhoneConstants.State mState = PhoneConstants.State.IDLE;
158 public PhoneConstants.State getState() { in getState()
164 return PhoneConstants.PHONE_TYPE_IMS; in getPhoneType()
188 public PhoneConstants.DataState getDataConnectionState() { in getDataConnectionState()
189 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState()
193 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState()
194 return PhoneConstants.DataState.DISCONNECTED; in getDataConnectionState()
538 PhoneConstants.State oldState = mState; in updatePhoneState()
541 mState = PhoneConstants.State.RINGING; in updatePhoneState()
[all …]
DImsExternalConnection.java24 import com.android.internal.telephony.PhoneConstants;
92 mNumberPresentation = PhoneConstants.PRESENTATION_ALLOWED; in ImsExternalConnection()
228 mCnapNamePresentation = PhoneConstants.PRESENTATION_ALLOWED; in setExternalConnectionAddress()
230 mNumberPresentation = PhoneConstants.PRESENTATION_RESTRICTED; in setExternalConnectionAddress()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java36 import com.android.internal.telephony.PhoneConstants;
225 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCall()
232 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCall()
251 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAccept()
270 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallReject()
278 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHangUp()
285 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallAcceptHangUp()
295 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHold()
311 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCallAcceptHold()
332 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMOCallDial()
[all …]
DImsPhoneConnectionTest.java33 import com.android.internal.telephony.PhoneConstants;
94 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getNumberPresentation()); in testImsConnectionSanity()
95 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getCnapNamePresentation()); in testImsConnectionSanity()
108 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, mConnectionUT.getNumberPresentation()); in testImsConnectionSanity()
109 assertEquals(PhoneConstants.PRESENTATION_ALLOWED, mConnectionUT.getCnapNamePresentation()); in testImsConnectionSanity()
160 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getNumberPresentation()); in testUpdateAddressDisplay()
161 assertEquals(PhoneConstants.PRESENTATION_UNKNOWN, mConnectionUT.getCnapNamePresentation()); in testUpdateAddressDisplay()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java62 import com.android.internal.telephony.PhoneConstants;
262 PhoneConstants.SUBSCRIPTION_KEY,
264 int newDefaultPhoneId = intent.getIntExtra(PhoneConstants.SLOT_KEY,
1365 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); in broadcastServiceStateChanged()
1366 intent.putExtra(PhoneConstants.SLOT_KEY, phoneId); in broadcastServiceStateChanged()
1386 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); in broadcastSignalStrengthChanged()
1387 intent.putExtra(PhoneConstants.SLOT_KEY, phoneId); in broadcastSignalStrengthChanged()
1413 intent.putExtra(PhoneConstants.STATE_KEY, in broadcastCallStateChanged()
1422 intent.setAction(PhoneConstants.ACTION_SUBSCRIPTION_PHONE_STATE_CHANGED); in broadcastCallStateChanged()
1423 intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId); in broadcastCallStateChanged()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMPhoneTest.java.broken33 import com.android.internal.telephony.PhoneConstants;
144 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState());
163 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
168 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
205 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
232 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
257 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState());
281 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState());
308 assertEquals(PhoneConstants.State.RINGING, mGSMPhone.getState());
343 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
[all …]

1234