/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
D | RecipientAlternatesAdapterTest.java | 26 import com.android.ex.chips.RecipientEntry; 116 final RecipientEntry entry1 = in testGetBetterRecipient() 117 RecipientEntry.constructFakeEntry("1@android.com", true); in testGetBetterRecipient() 118 final RecipientEntry entry2 = null; in testGetBetterRecipient() 126 final RecipientEntry entry1 = in testGetBetterRecipient() 127 RecipientEntry.constructTopLevelEntry("Android", DisplayNameSources.NICKNAME, in testGetBetterRecipient() 130 final RecipientEntry entry2 = RecipientEntry.constructFakeEntry("1@android.com", true); in testGetBetterRecipient() 139 final RecipientEntry entry1 = in testGetBetterRecipient() 140 RecipientEntry.constructTopLevelEntry("Android", DisplayNameSources.NICKNAME, in testGetBetterRecipient() 143 final RecipientEntry entry2 = in testGetBetterRecipient() [all …]
|
D | ChipsTest.java | 43 private RecipientEntry[] mMockEntries; 68 Drawable getChipBackground(RecipientEntry contact) { in getChipBackground() 107 Drawable getChipBackground(RecipientEntry contact) { in getChipBackground() 147 RecipientEntry entry = RecipientEntry.constructGeneratedEntry("User Name, Jr", in testCreateDisplayText() 155 RecipientEntry alreadyFormatted = in testCreateDisplayText() 156 RecipientEntry.constructFakeEntry("user@username.com, ", true); in testCreateDisplayText() 163 RecipientEntry alreadyFormattedNoSpace = RecipientEntry in testCreateDisplayText() 169 RecipientEntry alreadyNamed = RecipientEntry.constructGeneratedEntry("User Name", in testCreateDisplayText() 632 view.replaceChip(mMockRecips[mMockRecips.length - 3], RecipientEntry in testReplaceChip() 670 view.replaceChip(mMockRecips[mMockRecips.length - 2], RecipientEntry in testReplaceChip() [all …]
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientEntry.java | 28 public class RecipientEntry { class 82 protected RecipientEntry(int entryType, String displayName, String destination, in RecipientEntry() method in RecipientEntry 111 return id == RecipientEntry.INVALID_CONTACT || id == RecipientEntry.GENERATED_CONTACT; in isCreatedRecipient() 119 public static RecipientEntry constructFakeEntry(final String address, final boolean isValid) { in constructFakeEntry() 123 return new RecipientEntry(ENTRY_TYPE_PERSON, tokenizedAddress, tokenizedAddress, in constructFakeEntry() 131 public static RecipientEntry constructFakePhoneEntry(final String phoneNumber, in constructFakePhoneEntry() 133 return new RecipientEntry(ENTRY_TYPE_PERSON, phoneNumber, phoneNumber, in constructFakePhoneEntry() 154 public static RecipientEntry constructGeneratedEntry(String display, String address, in constructGeneratedEntry() 156 return new RecipientEntry(ENTRY_TYPE_PERSON, display, address, INVALID_DESTINATION_TYPE, in constructGeneratedEntry() 161 public static RecipientEntry constructTopLevelEntry(String displayName, int displayNameSource, in constructTopLevelEntry() [all …]
|
D | BaseRecipientAdapter.java | 181 public final List<RecipientEntry> entries; 182 public final LinkedHashMap<Long, List<RecipientEntry>> entryMap; 183 public final List<RecipientEntry> nonAggregatedEntries; 187 public DefaultFilterResult(List<RecipientEntry> entries, in DefaultFilterResult() 188 LinkedHashMap<Long, List<RecipientEntry>> entryMap, in DefaultFilterResult() 189 List<RecipientEntry> nonAggregatedEntries, in DefaultFilterResult() 235 final LinkedHashMap<Long, List<RecipientEntry>> entryMap = in performFiltering() 236 new LinkedHashMap<Long, List<RecipientEntry>>(); in performFiltering() 237 final List<RecipientEntry> nonAggregatedEntries = in performFiltering() 238 new ArrayList<RecipientEntry>(); in performFiltering() [all …]
|
D | SingleRecipientArrayAdapter.java | 27 class SingleRecipientArrayAdapter extends ArrayAdapter<RecipientEntry> { 31 public SingleRecipientArrayAdapter(Context context, RecipientEntry entry, in SingleRecipientArrayAdapter() 36 public SingleRecipientArrayAdapter(Context context, RecipientEntry entry, in SingleRecipientArrayAdapter() 40 new RecipientEntry[] { entry }); in SingleRecipientArrayAdapter()
|
D | RecipientAlternatesAdapter.java | 72 public void matchesFound(Map<String, RecipientEntry> results); in matchesFound() 121 HashMap<String, RecipientEntry> recipientEntries = null; in getMatchingRecipients() 147 Map<String, RecipientEntry> recipientEntries, Set<String> addresses, in getMatchingRecipientsFromDirectoryQueries() 156 Map<String, RecipientEntry> recipientEntries, Set<String> addresses, in getMatchingRecipientsFromDirectoryQueries() 211 final Map<String, RecipientEntry> entries = in getMatchingRecipientsFromDirectoryQueries() 234 final Map<String, RecipientEntry> entries = in getMatchingRecipientsFromExtensionMatcher() 246 private static HashMap<String, RecipientEntry> processContactEntries(Cursor c, in processContactEntries() 248 HashMap<String, RecipientEntry> recipientEntries = new HashMap<String, RecipientEntry>(); in processContactEntries() 253 final RecipientEntry newRecipientEntry = RecipientEntry.constructTopLevelEntry( in processContactEntries() 271 final RecipientEntry recipientEntry = in processContactEntries() [all …]
|
D | RecipientEditTextView.java | 417 public List<RecipientEntry> getSelectedRecipients() { in getSelectedRecipients() 420 List<RecipientEntry> results = new ArrayList<RecipientEntry>(); in getSelectedRecipients() 513 public void onChanged(List<RecipientEntry> entries) { in setAdapter() 588 if (mSelectedChip != null && contactId != RecipientEntry.INVALID_CONTACT in shrink() 589 && (!isPhoneQuery() && contactId != RecipientEntry.GENERATED_CONTACT)) { in shrink() 672 private Bitmap createChipBitmap(RecipientEntry contact, TextPaint paint) { in createChipBitmap() 683 private ChipBitmapContainer createChipBitmap(RecipientEntry contact, TextPaint paint, in createChipBitmap() 777 private void loadAvatarIcon(final RecipientEntry contact, in loadAvatarIcon() 782 contactId != RecipientEntry.INVALID_CONTACT in loadAvatarIcon() 783 : (contactId != RecipientEntry.INVALID_CONTACT in loadAvatarIcon() [all …]
|
D | DefaultPhotoManager.java | 64 public void populatePhotoBytesAsync(RecipientEntry entry, PhotoManagerCallback callback) { in populatePhotoBytesAsync() 85 private void fetchPhotoAsync(final RecipientEntry entry, final Uri photoThumbnailUri, in fetchPhotoAsync()
|
D | DropdownChipLayouter.java | 84 public View bindView(View convertView, ViewGroup parent, RecipientEntry entry, int position, in bindView() 95 public View bindView(View convertView, ViewGroup parent, RecipientEntry entry, int position, in bindView() 204 protected void bindIconToView(boolean showImage, RecipientEntry entry, ImageView view, in bindIconToView() 267 protected CharSequence getDestinationType(RecipientEntry entry) { in getDestinationType()
|
D | PhotoManager.java | 39 void populatePhotoBytesAsync(RecipientEntry entry, PhotoManagerCallback callback); in populatePhotoBytesAsync()
|
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
D | SimpleRecipientChip.java | 19 import com.android.ex.chips.RecipientEntry; 36 private final RecipientEntry mEntry; 42 public SimpleRecipientChip(final RecipientEntry entry) { in SimpleRecipientChip() 93 public RecipientEntry getEntry() { in getEntry()
|
D | VisibleRecipientChip.java | 23 import com.android.ex.chips.RecipientEntry; 32 public VisibleRecipientChip(final Drawable drawable, final RecipientEntry entry) { in VisibleRecipientChip() 78 public RecipientEntry getEntry() { in getEntry()
|
D | InvisibleRecipientChip.java | 24 import com.android.ex.chips.RecipientEntry; 33 public InvisibleRecipientChip(final RecipientEntry entry) { in InvisibleRecipientChip() 80 public RecipientEntry getEntry() { in getEntry()
|
D | BaseRecipientChip.java | 19 import com.android.ex.chips.RecipientEntry; 70 RecipientEntry getEntry(); in getEntry()
|