Home
last modified time | relevance | path

Searched refs:primaryInfo (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Dialer/java/com/android/incallui/contactgrid/
DContactGridManager.java94 private PrimaryInfo primaryInfo = PrimaryInfo.empty(); field in ContactGridManager
161 public void setPrimary(PrimaryInfo primaryInfo) { in setPrimary() argument
162 this.primaryInfo = primaryInfo; in setPrimary()
179 BottomRow.Info info = BottomRow.getInfo(context, primaryCallState, primaryInfo); in dispatchPopulateAccessibilityEvent()
222 (primaryInfo.photo() != null || primaryInfo.photoUri() != null) in updateAvatarVisibility()
223 && primaryInfo.photoType() == ContactPhotoType.CONTACT; in updateAvatarVisibility()
245 TopRow.Info info = TopRow.getInfo(context, primaryCallState, primaryInfo); in updateTopRow()
285 if (TextUtils.isEmpty(primaryInfo.name())) { in updatePrimaryNameAndPhoto()
289 primaryInfo.nameIsNumber() in updatePrimaryNameAndPhoto()
290 ? PhoneNumberUtils.createTtsSpannable(primaryInfo.name()) in updatePrimaryNameAndPhoto()
[all …]
DBottomRow.java72 public static Info getInfo(Context context, PrimaryCallState state, PrimaryInfo primaryInfo) { in getInfo() argument
82 if (isIncoming(state) && primaryInfo.isSpam()) { in getInfo()
98 label = getLabelForPhoneNumber(primaryInfo); in getInfo()
99 shouldPopulateAccessibilityEvent = primaryInfo.nameIsNumber(); in getInfo()
113 private static CharSequence getLabelForPhoneNumber(PrimaryInfo primaryInfo) { in getLabelForPhoneNumber() argument
114 if (primaryInfo.location() != null) { in getLabelForPhoneNumber()
115 return primaryInfo.location(); in getLabelForPhoneNumber()
117 if (!primaryInfo.nameIsNumber() && !TextUtils.isEmpty(primaryInfo.number())) { in getLabelForPhoneNumber()
118 if (primaryInfo.label() == null) { in getLabelForPhoneNumber()
119 return primaryInfo.number(); in getLabelForPhoneNumber()
[all …]
DTopRow.java67 public static Info getInfo(Context context, PrimaryCallState state, PrimaryInfo primaryInfo) { in getInfo() argument
88 if (shouldShowNumber(primaryInfo, true /* isIncoming */)) { in getInfo()
89 label = TextUtils.concat(label, " ", spanDisplayNumber(primaryInfo.number())); in getInfo()
107 && shouldShowNumber(primaryInfo, false /* isIncoming */)) { in getInfo()
108 label = spanDisplayNumber(primaryInfo.number()); in getInfo()
126 private static boolean shouldShowNumber(PrimaryInfo primaryInfo, boolean isIncoming) { in shouldShowNumber() argument
127 if (primaryInfo.nameIsNumber()) { in shouldShowNumber()
132 if (primaryInfo.location() == null && isIncoming) { in shouldShowNumber()
135 if (primaryInfo.isLocalContact() && !isIncoming) { in shouldShowNumber()
138 if (TextUtils.isEmpty(primaryInfo.number())) { in shouldShowNumber()
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DRttChatFragment.java106 private PrimaryInfo primaryInfo = PrimaryInfo.empty(); field in RttChatFragment
391 public void setPrimary(@NonNull PrimaryInfo primaryInfo) { in setPrimary() argument
392 LogUtil.i("RttChatFragment.setPrimary", primaryInfo.toString()); in setPrimary()
393 nameTextView.setText(primaryInfo.name()); in setPrimary()
394 updateAvatar(primaryInfo); in setPrimary()
395 this.primaryInfo = primaryInfo; in setPrimary()
398 private void updateAvatar(PrimaryInfo primaryInfo) { in updateAvatar() argument
400 primaryInfo.photo() != null && primaryInfo.photoType() == ContactPhotoType.CONTACT; in updateAvatar()
406 getContext(), primaryInfo.photo(), avatarSize, avatarSize)); in updateAvatar()
410 primaryInfo.name(), in updateAvatar()
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DAnswerFragment.java163 private PrimaryInfo primaryInfo = PrimaryInfo.empty(); field in AnswerFragment
560 public void setPrimary(PrimaryInfo primaryInfo) { in setPrimary() argument
561 LogUtil.i("AnswerFragment.setPrimary", primaryInfo.toString()); in setPrimary()
562 this.primaryInfo = primaryInfo; in setPrimary()
571 contactGridManager.setPrimary(primaryInfo); in updatePrimaryUI()
572 getAnswerMethod().setShowIncomingWillDisconnect(primaryInfo.answeringDisconnectsOngoingCall()); in updatePrimaryUI()
575 primaryInfo.photoType() == ContactPhotoType.CONTACT ? primaryInfo.photo() : null); in updatePrimaryUI()
578 if (primaryInfo.shouldShowLocation()) { in updatePrimaryUI()
611 !primaryInfo.isSpam() /* showAvatar */, in updateDataFragment()
612 primaryInfo.isSpam()); in updateDataFragment()
[all …]
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DInCallFragment.java272 public void setPrimary(@NonNull PrimaryInfo primaryInfo) { in setPrimary() argument
273 LogUtil.i("InCallFragment.setPrimary", primaryInfo.toString()); in setPrimary()
274 setAdapterMedia(primaryInfo.multimediaData(), primaryInfo.showInCallButtonGrid()); in setPrimary()
275 contactGridManager.setPrimary(primaryInfo); in setPrimary()
277 if (primaryInfo.shouldShowLocation()) { in setPrimary()
/packages/apps/Dialer/java/com/android/incallui/incall/protocol/
DInCallScreen.java26 void setPrimary(@NonNull PrimaryInfo primaryInfo); in setPrimary() argument
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DSurfaceViewVideoCallFragment.java831 public void setPrimary(@NonNull PrimaryInfo primaryInfo) { in setPrimary() argument
832 LogUtil.i("SurfaceViewVideoCallFragment.setPrimary", primaryInfo.toString()); in setPrimary()
833 contactGridManager.setPrimary(primaryInfo); in setPrimary()
DVideoCallFragment.java943 public void setPrimary(@NonNull PrimaryInfo primaryInfo) { in setPrimary() argument
944 LogUtil.i("VideoCallFragment.setPrimary", primaryInfo.toString()); in setPrimary()
945 contactGridManager.setPrimary(primaryInfo); in setPrimary()