Lines Matching defs:call
46 * Called to bring the in-call screen to the foreground. The in-call experience should
56 * Called when a {@code Call} has been added to this in-call session. The in-call user
63 * @param call A newly added {@code Call}.
65 public void onCallAdded(Phone phone, Call call) { }
68 * Called when a {@code Call} has been removed from this in-call session. The in-call user
74 * @param call A newly removed {@code Call}.
76 public void onCallRemoved(Phone phone, Call call) { }
84 * @param canAddCall Indicates whether an additional call can be added.
89 // A Map allows us to track each Call by its Telecom-specified call ID
114 Call call = new Call(this, parcelableCall.getId(), mInCallAdapter);
115 mCallByTelecomCallId.put(parcelableCall.getId(), call);
116 mCalls.add(call);
118 call.internalUpdate(parcelableCall, mCallByTelecomCallId);
119 fireCallAdded(call);
123 final void internalRemoveCall(Call call) {
124 mCallByTelecomCallId.remove(call.internalGetCallId());
125 mCalls.remove(call);
126 fireCallRemoved(call);
131 Call call = mCallByTelecomCallId.get(parcelableCall.getId());
132 if (call != null) {
134 call.internalUpdate(parcelableCall, mCallByTelecomCallId);
140 Call call = mCallByTelecomCallId.get(telecomId);
141 if (call != null) {
142 call.internalSetPostDialWait(remaining);
177 for (Call call : mCalls) {
178 if (call.getState() != Call.STATE_DISCONNECTED) {
179 call.internalSetDisconnected();
205 * Obtains the current list of {@code Call}s to be displayed by this in-call experience.
266 * Obtains the current phone call audio state of the {@code Phone}.
274 private void fireCallAdded(Call call) {
276 listener.onCallAdded(this, call);
280 private void fireCallRemoved(Call call) {
282 listener.onCallRemoved(this, call);