Home | History | Annotate | Download | only in incallui

Lines Matching refs:Call

19 import com.android.services.telephony.common.Call;
24 * Presenter for the Incoming call widget.
31 private int mCallId = Call.INVALID_CALL_ID;
32 private Call mCall = null;
39 final Call call = calls.getIncomingCall();
41 if (call != null) {
42 processIncomingCall(call);
55 // This is necessary because the activity can be destroyed while an incoming call exists.
56 // This happens when back button is pressed while incoming call is still being shown.
57 if (mCallId != Call.INVALID_CALL_ID) {
68 public void onDisconnect(Call call) {
73 public void onIncomingCall(Call call) {
78 if (call.getCallId() != mCallId) {
79 // A new call is coming in.
80 processIncomingCall(call);
85 private void processIncomingCall(Call call) {
86 mCallId = call.getCallId();
87 mCall = call;
89 // Listen for call updates for the current call.
92 Log.d(TAG, "Showing incoming for call id: " + mCallId + " " + this);
94 call.getCallId());
97 if (call.can(Call.Capabilities.RESPOND_VIA_TEXT) && textMsgs != null) {
107 public void onCallStateChanged(Call call) {
108 Log.d(this, "onCallStateChange() " + call + " " + this);
109 if (call.getState() != Call.State.INCOMING && call.getState() != Call.State.CALL_WAITING) {
115 // mCallId will hold the state of the call. We don't clear the mCall variable here as
117 mCallId = Call.INVALID_CALL_ID;
122 if (mCallId == Call.INVALID_CALL_ID) {