Searched refs:senderName (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/core/java/com/android/internal/widget/ |
D | PeopleHelper.java | 132 private int findColor(@NonNull CharSequence senderName, int layoutColor) { in findColor() argument 134 float shift = Math.abs(senderName.hashCode()) % 5 / 4.0f - 0.5f; in findColor() 197 CharSequence senderName = group.getSenderName(); in mapUniqueNamesToPrefix() local 198 if (!group.needsGeneratedAvatar() || TextUtils.isEmpty(senderName)) { in mapUniqueNamesToPrefix() 201 if (!uniqueNames.containsKey(senderName)) { in mapUniqueNamesToPrefix() 202 String charPrefix = findNamePrefix(senderName, null); in mapUniqueNamesToPrefix() 214 uniqueNames.put(senderName, findNameSplit(senderName)); in mapUniqueNamesToPrefix() 216 uniqueNames.put(senderName, charPrefix); in mapUniqueNamesToPrefix() 217 uniqueCharacters.put(charPrefix, senderName); in mapUniqueNamesToPrefix()
|
D | MessagingLayout.java | 294 CharSequence senderName = group.getSenderName(); in updateTitleAndNamesDisplay() local 295 if (!group.needsGeneratedAvatar() || TextUtils.isEmpty(senderName) in updateTitleAndNamesDisplay() 299 String symbol = uniqueNames.get(senderName); in updateTitleAndNamesDisplay() 300 Icon cachedIcon = group.getAvatarSymbolIfMatching(senderName, in updateTitleAndNamesDisplay() 303 cachedAvatars.put(senderName, cachedIcon); in updateTitleAndNamesDisplay() 310 CharSequence senderName = group.getSenderName(); in updateTitleAndNamesDisplay() local 311 if (!group.needsGeneratedAvatar() || TextUtils.isEmpty(senderName)) { in updateTitleAndNamesDisplay() 317 Icon cachedIcon = cachedAvatars.get(senderName); in updateTitleAndNamesDisplay() 319 cachedIcon = createAvatarSymbol(senderName, uniqueNames.get(senderName), in updateTitleAndNamesDisplay() 321 cachedAvatars.put(senderName, cachedIcon); in updateTitleAndNamesDisplay() [all …]
|
D | ConversationLayout.java | 777 CharSequence senderName = group.getSenderName(); in updateTitleAndNamesDisplay() local 778 if (!group.needsGeneratedAvatar() || TextUtils.isEmpty(senderName) in updateTitleAndNamesDisplay() 782 String symbol = uniqueNames.get(senderName); in updateTitleAndNamesDisplay() 783 Icon cachedIcon = group.getAvatarSymbolIfMatching(senderName, in updateTitleAndNamesDisplay() 786 cachedAvatars.put(senderName, cachedIcon); in updateTitleAndNamesDisplay() 793 CharSequence senderName = group.getSenderName(); in updateTitleAndNamesDisplay() local 794 if (!group.needsGeneratedAvatar() || TextUtils.isEmpty(senderName)) { in updateTitleAndNamesDisplay() 800 Icon cachedIcon = cachedAvatars.get(senderName); in updateTitleAndNamesDisplay() 802 cachedIcon = mPeopleHelper.createAvatarSymbol(senderName, in updateTitleAndNamesDisplay() 803 uniqueNames.get(senderName), mLayoutColor); in updateTitleAndNamesDisplay() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/ |
D | BubbleFlyoutViewTest.java | 63 mFlyoutMessage.senderName = "Josh"; in setUp()
|
D | BubbleTest.java | 143 assertEquals("Mady", Bubble.extractFlyoutMessage(mBubbleEntry).senderName); in testGetUpdateMessage_messagingStyle()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BubbleFlyoutView.java | 285 if (!TextUtils.isEmpty(flyoutMessage.senderName)) { in updateFlyoutMessage() 287 mSenderText.setText(flyoutMessage.senderName); in updateFlyoutMessage()
|
D | Bubble.java | 101 @Nullable public CharSequence senderName; field in Bubble.FlyoutMessage 877 bubbleMessage.senderName = sender != null ? sender.getName() : null; in extractFlyoutMessage()
|
/frameworks/base/core/java/android/app/ |
D | Notification.java | 8563 CharSequence senderName = bundle.getCharSequence(KEY_SENDER); in getMessageFromBundle() local 8564 if (senderName != null) { in getMessageFromBundle() 8565 senderPerson = new Person.Builder().setName(senderName).build(); in getMessageFromBundle()
|