Home | History | Annotate | Download | only in telephony

Lines Matching refs:phone

21 import com.android.internal.telephony.Phone;
24 * Utilities that check if the phone supports specified capabilities.
34 * Return true if the current phone supports ECM ("Emergency Callback
47 public static boolean supportsEcm(Phone phone) {
48 Rlog.d(LOG_TAG, "supportsEcm: Phone type = " + phone.getPhoneType() +
49 " Ims Phone = " + phone.getImsPhone());
50 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA ||
51 phone.getImsPhone() != null);
55 * Return true if the current phone supports Over The Air Service
69 * "if (CDMA)" checks sprinkled throughout the phone app.
71 public static boolean supportsOtasp(Phone phone) {
72 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA);
76 * Return true if the current phone supports voice message count.
80 public static boolean supportsVoiceMessageCount(Phone phone) {
81 return (phone.getVoiceMessageCount() != -1);
85 * Return true if this phone allows the user to select which
92 public static boolean supportsNetworkSelection(Phone phone) {
93 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM);
104 public static int getDeviceIdLabel(Phone phone) {
105 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM) {
107 } else if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
110 Rlog.w(LOG_TAG, "getDeviceIdLabel: no known label for phone "
111 + phone.getPhoneName());
117 * Return true if the current phone supports the ability to explicitly
126 public static boolean supportsConferenceCallManagement(Phone phone) {
127 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM)
128 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP));
132 * Return true if the current phone supports explicit "Hold" and
140 public static boolean supportsHoldAndUnhold(Phone phone) {
141 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM)
142 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP)
143 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_IMS));
147 * Return true if the current phone supports distinct "Answer & Hold"
160 public static boolean supportsAnswerAndHold(Phone phone) {
161 return ((phone.getPhoneType() == PhoneConstants.PHONE_TYPE_GSM)
162 || (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_SIP));
166 * Return true if phones with the given phone type support ADN
169 * Currently this returns true when the phone type is GSM
173 * Phone process access to it, while other methods in this class is
174 * using Phone object.
186 * Returns true if the device can distinguish the phone's dialing state
190 * phone has transitioned from dialing/active to connected.