Home | History | Annotate | Download | only in incallui

Lines Matching defs:primary

118   private DialerCall primary;
165 primary = call;
166 if (shouldShowNoteSentToast(primary)) {
202 if (isOutgoingEmergencyCall(primary)) {
204 } else if (isIncomingEmergencyCall(primary) || isIncomingEmergencyCall(secondary)) {
234 if (primary != null) {
235 primary.removeListener(this);
240 primary = null;
261 DialerCall primary = null;
265 primary = callList.getIncomingCall();
267 primary = callList.getOutgoingCall();
268 if (primary == null) {
269 primary = callList.getPendingOutgoingCall();
276 primary = getCallToDisplay(callList, null, false);
277 secondary = getCallToDisplay(callList, primary, true);
280 LogUtil.v("CallCardPresenter.onStateChange", "primary call: " + primary);
284 if (primary != null) {
285 primaryNumber = primary.getNumber();
292 !(DialerCall.areSame(this.primary, primary)
300 DialerCall previousPrimary = this.primary;
301 this.primary = primary;
304 if (this.primary != null) {
305 InCallPresenter.getInstance().onForegroundCallChanged(this.primary);
309 if (primaryChanged && shouldShowNoteSentToast(primary)) {
313 // Refresh primary call information if either:
314 // 1. Primary call changed.
317 // primary call has changed
321 this.primary.addListener(this);
325 context, this.primary, this.primary.getState() == DialerCall.State.INCOMING);
327 maybeStartSearch(this.primary, true);
330 if (previousPrimary != null && this.primary == null) {
351 if (this.primary != null) {
352 callState = this.primary.getState();
363 shouldShowEndCallButton(this.primary, callState),
403 /** Handles a change to the child number by refreshing the primary call info. */
408 if (primary == null) {
414 /** Handles a change to the last forwarding number by refreshing the primary call info. */
419 if (primary == null) {
434 if (primary == null) {
439 primary.getVideoTech().getSessionModificationState()
446 if (primary == null) {
454 if (getUi() != null && primary != null) {
456 primary.hasProperty(PROPERTY_ENTERPRISE_CALL)
460 isPrimaryCallActive() && primary.hasProperty(Details.PROPERTY_HIGH_DEF_AUDIO);
463 && !primary.hasProperty(DialerCall.PROPERTY_CODEC_KNOWN)
472 !VideoCallPresenter.showIncomingVideo(primary.getVideoState(), primary.getState());
476 .setState(primary.getState())
477 .setIsVideoCall(primary.isVideoCall())
478 .setSessionModificationState(primary.getVideoTech().getSessionModificationState())
479 .setDisconnectCause(primary.getDisconnectCause())
483 .setCallSubject(shouldShowCallSubject(primary) ? primary.getCallSubject() : null)
486 context, primary.getCallbackNumber(), primary.getSimCountryIso()))
487 .setIsWifi(primary.hasProperty(Details.PROPERTY_WIFI))
489 primary.isConferenceCall()
490 && !primary.hasProperty(Details.PROPERTY_GENERIC_CONFERENCE))
495 !TextUtils.isEmpty(primary.getLastForwardedNumber())
496 || primary.isCallForwarded())
498 .setConnectTimeMillis(primary.getConnectTimeMillis())
499 .setIsVoiceMailNumber(primary.isVoiceMailNumber())
500 .setIsRemotelyHeld(primary.isRemotelyHeld())
504 .setIsAssistedDialed(primary.isAssistedDialed())
506 .setAssistedDialingExtras(primary.getAssistedDialingExtras())
521 if (primary.getState() == State.ACTIVE) {
533 * Determines if the manage conference button should be visible, based on the current primary
539 if (primary == null) {
543 return primary.can(android.telecom.Call.Details.CAPABILITY_MANAGE_CONFERENCE) && !isFullscreen;
585 /** Starts a query for more contact data for the save primary and secondary calls. */
595 (isPrimary && primary != null && TextUtils.equals(callId, primary.getId()))
620 if (primary != null && callId.equals(primary.getId())) {
641 * feature to get the second best call by passing a previously found primary call as ignore.
660 // Disconnected calls get primary position if there are no active calls
696 if (primary == null) {
697 // Clear the primary display info.
705 !VideoCallPresenter.showIncomingVideo(primary.getVideoState(), primary.getState());
708 boolean hasWorkCallProperty = primary.hasProperty(PROPERTY_ENTERPRISE_CALL);
711 if (primary.getEnrichedCallSession() != null) {
712 multimediaData = primary.getEnrichedCallSession().getMultimediaData();
715 if (primary.isConferenceCall()) {
718 "update primary display info for conference call.");
724 context, primary.hasProperty(Details.PROPERTY_GENERIC_CONFERENCE)))
735 .setNumberPresentation(primary.getNumberPresentation())
740 "update primary display info for " + primaryContactInfo);
745 boolean isChildNumberShown = !TextUtils.isEmpty(primary.getChildNumber());
746 boolean isForwardedNumberShown = !TextUtils.isEmpty(primary.getLastForwardedNumber());
747 boolean isCallSubjectShown = shouldShowCallSubject(primary);
752 number = context.getString(R.string.child_number, primary.getChildNumber());
755 number = primary.getLastForwardedNumber();
767 .setName(primary.updateNameIfRestricted(name))
780 .setIsSpam(primary.isSpam())
782 .setAnsweringDisconnectsOngoingCall(primary.answeringDisconnectsForegroundVideoCall())
787 .setNumberPresentation(primary.getNumberPresentation())
790 // Clear the primary display info.
842 if (primary.isVideoCall()) {
854 if (isOutgoingEmergencyCall(primary)) {
857 primary)) {
957 return DialerCall.getNumberFromHandle(primary.getGatewayInfo().getGatewayAddress());
971 StatusHints statusHints = primary.getStatusHints();
981 pm.getApplicationInfo(primary.getGatewayInfo().getGatewayProviderPackageName(), 0);
988 return primary.getCallProviderLabel();
993 StatusHints statusHints = primary.getStatusHints();
1010 if (primary == null) {
1013 return DialerCall.State.isDialing(primary.getState())
1014 && primary.getGatewayInfo() != null
1015 && !primary.getGatewayInfo().isEmpty();
1041 primary.getUniqueCallId(),
1042 primary.getTimeAddedMs());
1050 LogUtil.i("CallCardPresenter.onEndCallClicked", "disconnecting call: " + primary);
1051 if (primary != null) {
1052 primary.disconnect();
1072 return primary != null && primary.getState() == DialerCall.State.ACTIVE;
1075 private boolean shouldShowEndCallButton(DialerCall primary, int callState) {
1076 if (primary == null) {
1085 if (this.primary.getVideoTech().getSessionModificationState()
1148 // Announce the current call if it's new incoming/outgoing call or primary call is changed
1173 primary.getState() == DialerCall.State.INCOMING
1174 || primary.getState() == DialerCall.State.CALL_WAITING;