Lines Matching full:phone
17 package com.android.phone;
23 import com.android.internal.telephony.Phone;
27 * functions that depend upon the type of phone or the carrier. Ultimately
43 /* package */ static boolean useShortDtmfTones(Phone phone, Context context) {
44 int phoneType = phone.getPhoneType();
45 if (phoneType == Phone.PHONE_TYPE_GSM) {
47 } else if (phoneType == Phone.PHONE_TYPE_CDMA) {
57 } else if (phoneType == Phone.PHONE_TYPE_SIP) {
61 throw new IllegalStateException("Unexpected phone type: " + phoneType);
66 * Return true if the current phone supports ECM ("Emergency Callback
83 /* package */ static boolean supportsEcm(Phone phone) {
84 return (phone.getPhoneType() == Phone.PHONE_TYPE_CDMA);
88 * Return true if the current phone supports Over The Air Service
105 * "if (CDMA)" checks sprinkled throughout the rest of the phone app.
108 * phone app, since OTA can also mean over-the-air software updates.
110 /* package */ static boolean supportsOtasp(Phone phone) {
111 return (phone.getPhoneType() == Phone.PHONE_TYPE_CDMA);
115 * Return true if the current phone can retrieve the voice message count.
122 /* package */ static boolean supportsVoiceMessageCount(Phone phone) {
123 return (phone.getPhoneType() == Phone.PHONE_TYPE_CDMA);
127 * Return true if this phone allows the user to select which
134 /* package */ static boolean supportsNetworkSelection(Phone phone) {
135 return (phone.getPhoneType() == Phone.PHONE_TYPE_GSM);
148 /* package */ static int getDeviceIdLabel(Phone phone) {
149 if (phone.getPhoneType() == Phone.PHONE_TYPE_GSM) {
151 } else if (phone.getPhoneType() == Phone.PHONE_TYPE_CDMA) {
154 Log.w(LOG_TAG, "getDeviceIdLabel: no known label for phone "
155 + phone.getPhoneName());
161 * Return true if the current phone supports the ability to explicitly
172 /* package */ static boolean supportsConferenceCallManagement(Phone phone) {
173 return ((phone.getPhoneType() == Phone.PHONE_TYPE_GSM)
174 || (phone.getPhoneType() == Phone.PHONE_TYPE_SIP));
178 * Return true if the current phone supports explicit "Hold" and
188 /* package */ static boolean supportsHoldAndUnhold(Phone phone) {
189 return ((phone.getPhoneType() == Phone.PHONE_TYPE_GSM)
190 || (phone.getPhoneType() == Phone.PHONE_TYPE_SIP));
194 * Return true if the current phone supports distinct "Answer & Hold"
210 /* package */ static boolean supportsAnswerAndHold(Phone phone) {
211 return ((phone.getPhoneType() == Phone.PHONE_TYPE_GSM)
212 || (phone.getPhoneType() == Phone.PHONE_TYPE_SIP));