Home
last modified time | relevance | path

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

/packages/apps/Dialer/java/com/android/incallui/contactgrid/
DContactGridManager.java82 private PrimaryInfo primaryInfo = PrimaryInfo.createEmptyPrimaryInfo(); field in ContactGridManager
144 public void setPrimary(PrimaryInfo primaryInfo) { in setPrimary() argument
145 this.primaryInfo = primaryInfo; in setPrimary()
160 BottomRow.Info info = BottomRow.getInfo(context, primaryCallState, primaryInfo); in dispatchPopulateAccessibilityEvent()
195 primaryInfo.photo != null && primaryInfo.photoType == ContactPhotoType.CONTACT; in updateAvatarVisibility()
217 TopRow.Info info = TopRow.getInfo(context, primaryCallState, primaryInfo); in updateTopRow()
246 if (TextUtils.isEmpty(primaryInfo.name)) { in updatePrimaryNameAndPhoto()
250 primaryInfo.nameIsNumber in updatePrimaryNameAndPhoto()
251 ? PhoneNumberUtilsCompat.createTtsSpannable(primaryInfo.name) in updatePrimaryNameAndPhoto()
252 : primaryInfo.name); in updatePrimaryNameAndPhoto()
[all …]
DBottomRow.java75 public static Info getInfo(Context context, PrimaryCallState state, PrimaryInfo primaryInfo) { in getInfo() argument
85 if (isIncoming(state) && primaryInfo.isSpam) { in getInfo()
108 label = getLabelForPhoneNumber(primaryInfo); in getInfo()
109 shouldPopulateAccessibilityEvent = primaryInfo.nameIsNumber; in getInfo()
123 private static CharSequence getLabelForPhoneNumber(PrimaryInfo primaryInfo) { in getLabelForPhoneNumber() argument
124 if (primaryInfo.location != null) { in getLabelForPhoneNumber()
125 return primaryInfo.location; in getLabelForPhoneNumber()
127 if (!primaryInfo.nameIsNumber && !TextUtils.isEmpty(primaryInfo.number)) { in getLabelForPhoneNumber()
128 CharSequence spannedNumber = spanDisplayNumber(primaryInfo.number); in getLabelForPhoneNumber()
129 if (primaryInfo.label == null) { in getLabelForPhoneNumber()
[all …]
DTopRow.java62 public static Info getInfo(Context context, PrimaryCallState state, PrimaryInfo primaryInfo) { in getInfo() argument
82 if (shouldShowNumber(primaryInfo)) { in getInfo()
83 label = TextUtils.concat(label, " ", spanDisplayNumber(primaryInfo.number)); in getInfo()
97 } else if (state.state == State.ACTIVE && shouldShowNumber(primaryInfo)) { in getInfo()
98 label = spanDisplayNumber(primaryInfo.number); in getInfo()
113 private static boolean shouldShowNumber(PrimaryInfo primaryInfo) { in shouldShowNumber() argument
114 if (primaryInfo.nameIsNumber) { in shouldShowNumber()
117 if (primaryInfo.location == null) { in shouldShowNumber()
120 if (TextUtils.isEmpty(primaryInfo.number)) { in shouldShowNumber()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DAnswerFragment.java147 private PrimaryInfo primaryInfo = PrimaryInfo.createEmptyPrimaryInfo(); field in AnswerFragment
507 public void setPrimary(PrimaryInfo primaryInfo) { in setPrimary() argument
508 LogUtil.i("AnswerFragment.setPrimary", primaryInfo.toString()); in setPrimary()
509 this.primaryInfo = primaryInfo; in setPrimary()
518 contactGridManager.setPrimary(primaryInfo); in updatePrimaryUI()
519 getAnswerMethod().setShowIncomingWillDisconnect(primaryInfo.answeringDisconnectsOngoingCall); in updatePrimaryUI()
522 primaryInfo.photoType == ContactPhotoType.CONTACT ? primaryInfo.photo : null); in updatePrimaryUI()
525 if (primaryInfo.shouldShowLocation) { in updatePrimaryUI()
558 !primaryInfo.isSpam /* showAvatar */, in updateDataFragment()
559 primaryInfo.isSpam); in updateDataFragment()
[all …]
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DInCallFragment.java237 public void setPrimary(@NonNull PrimaryInfo primaryInfo) { in setPrimary() argument
238 LogUtil.i("InCallFragment.setPrimary", primaryInfo.toString()); in setPrimary()
239 setAdapterMedia(primaryInfo.multimediaData); in setPrimary()
240 contactGridManager.setPrimary(primaryInfo); in setPrimary()
242 if (primaryInfo.shouldShowLocation) { in setPrimary()
/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.java872 public void setPrimary(@NonNull PrimaryInfo primaryInfo) { in setPrimary() argument
873 LogUtil.i("VideoCallFragment.setPrimary", primaryInfo.toString()); in setPrimary()
874 contactGridManager.setPrimary(primaryInfo); in setPrimary()
/packages/apps/Dialer/java/com/android/incallui/incall/protocol/
DInCallScreen.java26 void setPrimary(@NonNull PrimaryInfo primaryInfo); in setPrimary() argument