Lines Matching refs:mPrimary
62 private Call mPrimary; field in CallCardPresenter
111 mPrimary = call; in init()
148 mPrimary = null; in onUiUnready()
189 final boolean primaryChanged = !Call.areSame(mPrimary, primary); in onStateChange()
193 mPrimary = primary; in onStateChange()
198 if (mPrimary != null && (primaryChanged || in onStateChange()
201 mPrimaryContactInfo = ContactInfoCache.buildCacheEntryFromCall(mContext, mPrimary, in onStateChange()
202 mPrimary.getState() == Call.State.INCOMING); in onStateChange()
204 maybeStartSearch(mPrimary, true); in onStateChange()
205 mPrimary.setSessionModificationState(Call.SessionModificationState.NO_REQUEST); in onStateChange()
222 if (mPrimary != null && mPrimary.getState() == Call.State.ACTIVE) { in onStateChange()
233 if (mPrimary != null) { in onStateChange()
234 callState = mPrimary.getState(); in onStateChange()
250 if (mPrimary != null) { in onStateChange()
251 getUi().setPhotoVisible(!(mPrimary.isVideoCall(mContext) && in onStateChange()
258 callState != Call.State.INCOMING && mPrimary != null; in onStateChange()
280 PhoneAccountHandle accountHandle = mPrimary.getAccountHandle(); in getSubscriptionNumber()
292 if (getUi() != null && mPrimary != null) { in updatePrimaryCallState()
294 mPrimary.getState(), in updatePrimaryCallState()
295 mPrimary.getVideoState(), in updatePrimaryCallState()
296 mPrimary.getSessionModificationState(), in updatePrimaryCallState()
297 mPrimary.getDisconnectCause(), in updatePrimaryCallState()
319 if (mPrimary == null) { in shouldShowManageConference()
323 return mPrimary.can(android.telecom.Call.Details.CAPABILITY_MANAGE_CONFERENCE); in shouldShowManageConference()
330 getNumberFromHandle(mPrimary.getHandle())); in setCallbackNumber()
334 StatusHints statusHints = mPrimary.getTelecommCall().getDetails().getStatusHints(); in setCallbackNumber()
344 String simNumber = mgr.getLine1Number(mPrimary.getAccountHandle()); in setCallbackNumber()
356 if (ui == null || mPrimary == null || mPrimary.getState() != Call.State.ACTIVE) { in updateCallTime()
362 final long callStart = mPrimary.getConnectTimeMillis(); in updateCallTime()
409 if (mPrimary != null && callId.equals(mPrimary.getId())) { in onImageLoadComplete()
476 if (mPrimary == null) { in updatePrimaryDisplayInfo()
482 if (mPrimary.isConferenceCall()) { in updatePrimaryDisplayInfo()
487 getConferenceString(mPrimary), in updatePrimaryDisplayInfo()
490 getConferencePhoto(mPrimary), in updatePrimaryDisplayInfo()
566 return getNumberFromHandle(mPrimary.getGatewayInfo().getGatewayAddress()); in getGatewayNumber()
589 StatusHints statusHints = mPrimary.getTelecommCall().getDetails().getStatusHints(); in getConnectionLabel()
599 mPrimary.getGatewayInfo().getGatewayProviderPackageName(), 0); in getConnectionLabel()
606 return getCallProviderLabel(mPrimary); in getConnectionLabel()
611 StatusHints statusHints = mPrimary.getTelecommCall().getDetails().getStatusHints(); in getCallStateIcon()
620 if (mPrimary.getTelecommCall().getDetails().can( in getCallStateIcon()
622 && mPrimary.getState() == Call.State.ACTIVE) { in getCallStateIcon()
635 if (mPrimary == null) { in hasOutgoingGatewayCall()
638 return Call.State.isDialing(mPrimary.getState()) && mPrimary.getGatewayInfo() != null && in hasOutgoingGatewayCall()
639 !mPrimary.getGatewayInfo().isEmpty(); in hasOutgoingGatewayCall()
675 if (mPrimary == null) { in endCallClicked()
679 Log.i(this, "Disconnecting call: " + mPrimary); in endCallClicked()
680 mPrimary.setState(Call.State.DISCONNECTING); in endCallClicked()
681 CallList.getInstance().onUpdate(mPrimary); in endCallClicked()
682 TelecomAdapter.getInstance().disconnectCall(mPrimary.getId()); in endCallClicked()