HomeSort by relevance Sort by last modified time
    Searched refs:PhoneConstants (Results 1 - 25 of 89) sorted by null

1 2 3 4

  /packages/apps/PhoneCommon/src/com/android/phone/common/
PhoneConstants.java 22 public class PhoneConstants {
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
TelephonyCapabilities.java 48 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA);
69 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA);
78 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA);
90 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM);
102 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) {
104 } else if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
124 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM)
125 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP));
138 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM)
139 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP))
    [all...]
DefaultPhoneNotifier.java 111 PhoneConstants.DataState state) {
116 PhoneConstants.DataState state) {
125 if (state == PhoneConstants.DataState.CONNECTED) {
187 * Convert the {@link PhoneConstants.State} enum into the TelephonyManager.CALL_STATE_*
190 public static int convertCallState(PhoneConstants.State state) {
203 * {@link PhoneConstants.State} enum for the public API.
205 public static PhoneConstants.State convertCallState(int state) {
208 return PhoneConstants.State.RINGING;
210 return PhoneConstants.State.OFFHOOK;
212 return PhoneConstants.State.IDLE
    [all...]
PhoneFactory.java 103 if (TelephonyManager.getLteOnCdmaModeStatic() == PhoneConstants.LTE_ON_CDMA_TRUE) {
120 if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
124 } else if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
126 case PhoneConstants.LTE_ON_CDMA_TRUE:
131 case PhoneConstants.LTE_ON_CDMA_FALSE:
174 case PhoneConstants.LTE_ON_CDMA_TRUE: {
178 case PhoneConstants.LTE_ON_CDMA_FALSE:
179 case PhoneConstants.LTE_ON_CDMA_UNKNOWN:
DriverCall.java 72 ret.numberPresentation = PhoneConstants.PRESENTATION_ALLOWED;
137 case 0: return PhoneConstants.PRESENTATION_ALLOWED;
138 case 1: return PhoneConstants.PRESENTATION_RESTRICTED;
139 case 2: return PhoneConstants.PRESENTATION_UNKNOWN;
140 case 3: return PhoneConstants.PRESENTATION_PAYPHONE;
PhoneStateIntentReceiver.java 47 PhoneConstants.State mPhoneState = PhoneConstants.State.IDLE;
78 public PhoneConstants.State getPhoneState() {
175 + intent.getStringExtra(PhoneConstants.STATE_KEY));
176 String phoneState = intent.getStringExtra(PhoneConstants.STATE_KEY);
178 PhoneConstants.State.class, phoneState);
PhoneNotifier.java 42 PhoneConstants.DataState state);
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
CdmaCallWaitingNotification.java 20 import com.android.internal.telephony.PhoneConstants;
60 case 0: return PhoneConstants.PRESENTATION_ALLOWED;
61 case 1: return PhoneConstants.PRESENTATION_RESTRICTED;
62 case 2: return PhoneConstants.PRESENTATION_UNKNOWN;
66 return PhoneConstants.PRESENTATION_UNKNOWN;
CDMALTEPhone.java 33 import com.android.internal.telephony.PhoneConstants;
107 public PhoneConstants.DataState getDataConnectionState(String apnType) {
108 PhoneConstants.DataState ret = PhoneConstants.DataState.DISCONNECTED;
114 ret = PhoneConstants.DataState.DISCONNECTED;
116 ret = PhoneConstants.DataState.DISCONNECTED;
122 ret = PhoneConstants.DataState.DISCONNECTED;
127 if (mCT.mState != PhoneConstants.State.IDLE &&
129 ret = PhoneConstants.DataState.SUSPENDED;
131 ret = PhoneConstants.DataState.CONNECTED
    [all...]
  /frameworks/base/telephony/java/android/telephony/
CellLocation.java 29 import com.android.internal.telephony.PhoneConstants;
67 case PhoneConstants.PHONE_TYPE_CDMA:
69 case PhoneConstants.PHONE_TYPE_GSM:
95 case PhoneConstants.PHONE_TYPE_CDMA:
97 case PhoneConstants.PHONE_TYPE_GSM:
TelephonyManager.java 36 import com.android.internal.telephony.PhoneConstants;
222 public static final String EXTRA_STATE = PhoneConstants.STATE_KEY;
228 public static final String EXTRA_STATE_IDLE = PhoneConstants.State.IDLE.toString();
234 public static final String EXTRA_STATE_RINGING = PhoneConstants.State.RINGING.toString();
240 public static final String EXTRA_STATE_OFFHOOK = PhoneConstants.State.OFFHOOK.toString();
381 public static final int PHONE_TYPE_NONE = PhoneConstants.PHONE_TYPE_NONE;
383 public static final int PHONE_TYPE_GSM = PhoneConstants.PHONE_TYPE_GSM;
385 public static final int PHONE_TYPE_CDMA = PhoneConstants.PHONE_TYPE_CDMA;
387 public static final int PHONE_TYPE_SIP = PhoneConstants.PHONE_TYPE_SIP;
467 return PhoneConstants.PHONE_TYPE_CDMA
    [all...]
  /packages/services/Telephony/src/com/android/phone/
GsmUmtsCallOptions.java 26 import com.android.internal.telephony.PhoneConstants;
38 if (PhoneGlobals.getPhone().getPhoneType() != PhoneConstants.PHONE_TYPE_GSM) {
MMIDialogActivity.java 31 import com.android.internal.telephony.PhoneConstants;
66 if (mCM.getState() == PhoneConstants.State.OFFHOOK) {
93 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
95 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
CdmaCallOptions.java 20 import com.android.internal.telephony.PhoneConstants;
47 if (PhoneGlobals.getPhone().getPhoneType() != PhoneConstants.PHONE_TYPE_CDMA
GsmUmtsOptions.java 25 import com.android.internal.telephony.PhoneConstants;
53 if (PhoneFactory.getDefaultPhone().getPhoneType() != PhoneConstants.PHONE_TYPE_GSM) {
PhoneGlobals.java 65 import com.android.internal.telephony.PhoneConstants;
202 private PhoneConstants.State mLastPhoneState = PhoneConstants.State.IDLE;
259 PhoneConstants.State phoneState;
338 if (phoneState == PhoneConstants.State.OFFHOOK &&
411 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
    [all...]
CallNotifier.java 25 import com.android.internal.telephony.PhoneConstants;
255 if ((pb.getState() == PhoneConstants.State.RINGING)
624 if (mCM.getState() != PhoneConstants.State.RINGING) {
641 PhoneConstants.State state = mCM.getState();
643 if (state == PhoneConstants.State.OFFHOOK) {
678 PhoneConstants.State state = mCM.getState();
685 .enableNotificationAlerts(state == PhoneConstants.State.IDLE);
688 if (fgPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
715 if (state == PhoneConstants.State.OFFHOOK) {
736 if (fgPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA)
    [all...]
  /packages/services/Telephony/tests/src/com/android/phone/unit/
CnapTest.java 25 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;
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
TestPhoneNotifier.java 20 import com.android.internal.telephony.PhoneConstants;
55 PhoneConstants.DataState state) {
  /frameworks/base/core/java/android/net/
MobileDataStateTracker.java 39 import com.android.internal.telephony.PhoneConstants;
60 private PhoneConstants.DataState mMobileDataState;
119 mMobileDataState = PhoneConstants.DataState.DISCONNECTED;
196 PhoneConstants.DATA_LINK_PROPERTIES_KEY);
204 PhoneConstants.DATA_LINK_CAPABILITIES_KEY);
216 String apnName = intent.getStringExtra(PhoneConstants.DATA_APN_KEY);
217 String apnType = intent.getStringExtra(PhoneConstants.DATA_APN_TYPE_KEY);
227 mMobileDataState = PhoneConstants.DataState.CONNECTING;
236 String apnType = intent.getStringExtra(PhoneConstants.DATA_APN_TYPE_KEY);
261 PhoneConstants.DataState state = Enum.valueOf(PhoneConstants.DataState.class
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/
CallUtil.java 24 import com.android.phone.common.PhoneConstants;
72 intent.putExtra(PhoneConstants.EXTRA_CALL_ORIGIN, callOrigin);
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
SipPhoneBase.java 43 import com.android.internal.telephony.PhoneConstants;
57 private PhoneConstants.State mState = PhoneConstants.State.IDLE;
134 public PhoneConstants.State getState() {
140 return PhoneConstants.PHONE_TYPE_SIP;
164 public PhoneConstants.DataState getDataConnectionState() {
165 return PhoneConstants.DataState.DISCONNECTED;
169 public PhoneConstants.DataState getDataConnectionState(String apnType) {
170 return PhoneConstants.DataState.DISCONNECTED;
180 * {@link com.android.internal.telephony.PhoneConstants.State
    [all...]
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
ApnSetting.java 19 import com.android.internal.telephony.PhoneConstants;
187 t.equalsIgnoreCase(PhoneConstants.APN_TYPE_ALL) ||
188 (t.equalsIgnoreCase(PhoneConstants.APN_TYPE_DEFAULT) &&
189 type.equalsIgnoreCase(PhoneConstants.APN_TYPE_HIPRI))) {
DcTrackerBase.java 57 import com.android.internal.telephony.PhoneConstants;
120 protected String mRequestedApnType = PhoneConstants.APN_TYPE_DEFAULT;
600 if (PhoneConstants.APN_TYPE_DUN.equals(type)) {
639 result[0] = PhoneConstants.APN_TYPE_DEFAULT;
    [all...]
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
GSMPhoneTest.java 31 import com.android.internal.telephony.PhoneConstants;
142 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState());
161 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
166 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
203 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
230 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState());
255 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState());
279 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState());
306 assertEquals(PhoneConstants.State.RINGING, mGSMPhone.getState());
341 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState())
    [all...]

Completed in 771 milliseconds

1 2 3 4