Lines Matching defs:call
35 import com.android.services.telephony.common.Call;
36 import com.android.services.telephony.common.Call.Capabilities;
41 * Presenter for the Call Card Fragment.
51 private Call mPrimary;
52 private Call mSecondary;
59 // create the call timer
69 public void init(Context context, Call call) {
72 // Call may be null if disconnect happened already.
73 if (call != null) {
74 mPrimary = call;
76 final CallIdentification identification = call.getIdentification();
79 if (!call.isConferenceCall()) {
81 call.getState() == Call.State.INCOMING);
99 // Register for call state changes last
108 // stop getting call state changes
120 public void onIncomingCall(InCallState state, Call call) {
133 Call primary = null;
134 Call secondary = null;
142 // highest priority call to display as the secondary call.
149 Log.d(this, "Primary call: " + primary);
150 Log.d(this, "Secondary call: " + secondary);
158 // primary call has changed
160 mPrimary.getIdentification(), mPrimary.getState() == Call.State.INCOMING);
166 // Secondary call may have ended. Update the ui.
170 // secondary call has changed
172 mSecondary.getIdentification(), mSecondary.getState() == Call.State.INCOMING);
177 // Start/Stop the call time update timer
178 if (mPrimary != null && mPrimary.getState() == Call.State.ACTIVE) {
187 // Set the call state
194 ui.setCallState(Call.State.IDLE, Call.DisconnectCause.UNKNOWN, false, null, null);
219 if (ui == null || mPrimary == null || mPrimary.getState() != Call.State.ACTIVE) {
231 private boolean areCallsSame(Call call1, Call call2) {
238 // otherwise compare call Ids
242 private void maybeStartSearch(Call call, boolean isPrimary) {
244 if (call != null && !call.isConferenceCall()) {
245 startContactInfoSearch(call.getIdentification(), isPrimary,
246 call.getState() == Call.State.INCOMING);
285 private static boolean isConference(Call call) {
286 return call != null && call.isConferenceCall();
289 private static boolean isGenericConference(Call call) {
290 return call != null && call.can(Capabilities.GENERIC_CONFERENCE);
305 * Get the highest priority call to display.
306 * Goes through the calls and chooses which to return based on priority of which type of call
307 * to display to the user. Callers can use the "ignore" feature to get the second best call
308 * by passing a previously found primary call as ignore.
310 * @param ignore A call to ignore if found.
312 private Call getCallToDisplay(CallList callList, Call ignore, boolean skipDisconnected) {
314 // Active calls come second. An active call always gets precedent.
315 Call retval = callList.getActiveCall();
321 // to let user know quickly what call has disconnected. Disconnected
334 // Then we go to background call (calls on hold)
340 // Lastly, we go to a second background call.
392 * Returns the gateway number for any existing outgoing call.
403 * Returns the label for the gateway app for any existing outgoing call.
420 // call state.
422 // is also called after a contact search completes (call is not present yet). Split the
427 return (Call.State.isDialing(mPrimary.getState()) &&
433 * Gets the name to display for the call.
443 * Gets the number to display for a call.
465 void setCallState(int state, Call.DisconnectCause cause, boolean bluetoothOn,