Lines Matching full:phone
17 package com.android.phone;
37 import com.android.internal.telephony.Phone;
59 Phone mPhone;
79 * A handler that processes messages on the main thread in the phone process. Since many
80 * of the Phone calls are not thread safe this is needed to shuttle the requests from the
81 * inbound binder threads to the main thread in the phone process. The Binder thread
142 if (phoneType == Phone.PHONE_TYPE_CDMA) {
146 } else if (phoneType == Phone.PHONE_TYPE_GSM) {
147 // GSM: End the call as per the Phone state
150 throw new IllegalStateException("Unexpected phone type: " + phoneType);
204 public PhoneInterfaceManager(PhoneApp app, Phone phone) {
206 mPhone = phone;
215 ServiceManager.addService("phone", this);
233 // PENDING: should we just silently fail if phone is offhook or ringing?
234 Phone.State state = mPhone.getState();
235 if (state != Phone.State.OFFHOOK && state != Phone.State.RINGING) {
247 // from the context of the phone app.
266 // If the phone isn't idle then go to the in-call screen
314 * This should only be called from the main thread of the Phone app.
361 * This should only be called from the main thread of the Phone app.
365 if ((mPhone.getState() == Phone.State.RINGING)
374 return (mPhone.getState() == Phone.State.OFFHOOK);
378 return (mPhone.getState() == Phone.State.RINGING);
382 return (mPhone.getState() == Phone.State.IDLE);
671 if (getActivePhoneType() == Phone.PHONE_TYPE_GSM) {