Lines Matching refs:CallList
47 * Takes updates from the CallList and notifies the InCallActivity (UI)
55 public class InCallPresenter implements CallList.Listener, InCallPhoneListener {
81 private CallList mCallList;
110 CallList.getInstance().getCallByTelecommCall(call).getId(),
118 listener.onDetailsChanged(CallList.getInstance().getCallByTelecommCall(call),
128 listener.onDetailsChanged(CallList.getInstance().getCallByTelecommCall(call),
167 public CallList getCallList() {
171 public void setUp(Context context, CallList callList, AudioModeProvider audioModeProvider) {
176 Preconditions.checkState(callList == mCallList);
194 mCallList = callList;
199 // The final thing we do in this set up is add ourselves as a listener to CallList. This
313 * CallList. Dispatches the in-call state to all listeners. Can trigger the creation or
317 public void onCallListChange(CallList callList) {
318 if (callList == null) {
321 InCallState newState = getPotentialStateFromCallList(callList);
332 listener.onStateChange(oldState, mInCallState, callList);
336 final boolean hasCall = callList.getActiveOrBackgroundCall() != null ||
337 callList.getOutgoingCall() != null;
370 onCallListChange(CallList.getInstance());
380 public static InCallState getPotentialStateFromCallList(CallList callList) {
384 if (callList == null) {
387 if (callList.getIncomingCall() != null) {
389 } else if (callList.getWaitingForAccountCall() != null) {
391 } else if (callList.getPendingOutgoingCall() != null) {
393 } else if (callList.getOutgoingCall() != null) {
395 } else if (callList.getActiveCall() != null ||
396 callList.getBackgroundCall() != null ||
397 callList.getDisconnectedCall() != null ||
398 callList.getDisconnectingCall() != null) {
665 final CallList calls = CallList.getInstance();
792 // 1) CallList - Announces existence of new INCOMING call
1133 // TODO: Enhance state to contain the call objects instead of passing CallList
1134 public void onStateChange(InCallState oldState, InCallState newState, CallList callList);