Lines Matching refs:call
25 import com.android.incallui.call.CallList;
26 import com.android.incallui.call.DialerCall;
27 import com.android.incallui.call.state.DialerCallState;
75 private static boolean isIncomingCall(DialerCall call) { in isIncomingCall() argument
76 return call != null in isIncomingCall()
77 && (call.getState() == DialerCallState.CALL_WAITING in isIncomingCall()
78 || call.getState() == DialerCallState.INCOMING); in isIncomingCall()
133 DialerCall call; in onStateChange() local
135 call = callList.getIncomingCall(); in onStateChange()
137 call = callList.getWaitingForAccountCall(); in onStateChange()
139 call = callList.getPendingOutgoingCall(); in onStateChange()
141 call = callList.getOutgoingCall(); in onStateChange()
143 call = callList.getActiveCall(); in onStateChange()
146 boolean hasPrimaryCallChanged = !Objects.equals(call, primaryCall); in onStateChange()
147 boolean canVideoPause = videoCanPause(call); in onStateChange()
157 onPrimaryCallChanged(call); in onStateChange()
171 updatePrimaryCallContext(call); in onStateChange()
183 private void onPrimaryCallChanged(DialerCall call) { in onPrimaryCallChanged() argument
187 call, in onPrimaryCallChanged()
191 if (Objects.equals(call, primaryCall)) { in onPrimaryCallChanged()
194 final boolean canVideoPause = videoCanPause(call); in onPrimaryCallChanged()
199 sendRequest(call, true); in onPrimaryCallChanged()
200 } else if (isIncomingCall(call) && videoCanPause(primaryCall)) { in onPrimaryCallChanged()
206 updatePrimaryCallContext(call); in onPrimaryCallChanged()
217 public void onIncomingCall(InCallState oldState, InCallState newState, DialerCall call) { in onIncomingCall() argument
223 call); in onIncomingCall()
225 if (Objects.equals(call, primaryCall)) { in onIncomingCall()
229 onPrimaryCallChanged(call); in onIncomingCall()
237 private void updatePrimaryCallContext(DialerCall call) { in updatePrimaryCallContext() argument
238 if (call == null) { in updatePrimaryCallContext()
243 primaryCall = call; in updatePrimaryCallContext()
244 prevCallState = call.getState(); in updatePrimaryCallContext()
245 wasVideoCall = call.isVideoCall(); in updatePrimaryCallContext()
312 private void sendRequest(DialerCall call, boolean resume) { in sendRequest() argument
313 if (call == null) { in sendRequest()
318 call.getVideoTech().unpause(); in sendRequest()
320 call.getVideoTech().pause(); in sendRequest()
324 private static boolean videoCanPause(DialerCall call) { in videoCanPause() argument
325 return call != null && call.isVideoCall() && call.getState() == DialerCallState.ACTIVE; in videoCanPause()