Home
last modified time | relevance | path

Searched refs:RecipientEntry (Results 1 – 15 of 15) sorted by relevance

/frameworks/opt/chips/tests/src/com/android/ex/chips/
DRecipientAlternatesAdapterTest.java26 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 …]
DChipsTest.java43 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/
DRecipientEntry.java29 public class RecipientEntry { class
101 protected RecipientEntry(int entryType, String displayName, String destination, in RecipientEntry() method in RecipientEntry
110 protected RecipientEntry(int entryType, String displayName, String destination, in RecipientEntry() method in RecipientEntry
133 protected RecipientEntry(int entryType, String displayName, String destination, in RecipientEntry() method in RecipientEntry
151 return id == RecipientEntry.INVALID_CONTACT || id == RecipientEntry.GENERATED_CONTACT; in isCreatedRecipient()
159 public static RecipientEntry constructFakeEntry(final String address, final boolean isValid) { in constructFakeEntry()
163 return new RecipientEntry(ENTRY_TYPE_PERSON, tokenizedAddress, tokenizedAddress, in constructFakeEntry()
171 public static RecipientEntry constructFakePhoneEntry(final String phoneNumber, in constructFakePhoneEntry()
173 return new RecipientEntry(ENTRY_TYPE_PERSON, phoneNumber, phoneNumber, in constructFakePhoneEntry()
183 public static RecipientEntry constructGeneratedEntry(String display, String address, in constructGeneratedEntry()
[all …]
DBaseRecipientAdapter.java193 public final List<RecipientEntry> entries;
194 public final LinkedHashMap<Long, List<RecipientEntry>> entryMap;
195 public final List<RecipientEntry> nonAggregatedEntries;
199 public DefaultFilterResult(List<RecipientEntry> entries, in DefaultFilterResult()
200 LinkedHashMap<Long, List<RecipientEntry>> entryMap, in DefaultFilterResult()
201 List<RecipientEntry> nonAggregatedEntries, in DefaultFilterResult()
212 RecipientEntry entry) { in createResultWithNonAggregatedEntry()
215 new LinkedHashMap<Long, List<RecipientEntry>>() /* entryMap */, in createResultWithNonAggregatedEntry()
256 RecipientEntry.constructPermissionEntry(ChipsUtil.REQUIRED_PERMISSIONS)); in performFiltering()
275 final LinkedHashMap<Long, List<RecipientEntry>> entryMap = in performFiltering()
[all …]
DSingleRecipientArrayAdapter.java27 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()
DRecipientAlternatesAdapter.java71 public void matchesFound(Map<String, RecipientEntry> results); in matchesFound()
123 HashMap<String, RecipientEntry> recipientEntries = null; in getMatchingRecipients()
151 Map<String, RecipientEntry> recipientEntries, Set<String> addresses, in getMatchingRecipientsFromDirectoryQueries()
161 Map<String, RecipientEntry> recipientEntries, Set<String> addresses, in getMatchingRecipientsFromDirectoryQueries()
208 final Map<String, RecipientEntry> entries = in getMatchingRecipientsFromDirectoryQueries()
236 final Map<String, RecipientEntry> entries = in getMatchingRecipientsFromExtensionMatcher()
248 private static HashMap<String, RecipientEntry> processContactEntries(Cursor c, in processContactEntries()
250 HashMap<String, RecipientEntry> recipientEntries = new HashMap<String, RecipientEntry>(); in processContactEntries()
255 final RecipientEntry newRecipientEntry = RecipientEntry.constructTopLevelEntry( in processContactEntries()
273 final RecipientEntry recipientEntry = in processContactEntries()
[all …]
DRecipientEditTextView.java323 void onRecipientChipDeleted(RecipientEntry entry); in onRecipientChipDeleted()
335 void onRecipientChipAdded(RecipientEntry entry); in onRecipientChipAdded()
507 public List<RecipientEntry> getSelectedRecipients() { in getSelectedRecipients()
510 List<RecipientEntry> results = new ArrayList<RecipientEntry>(); in getSelectedRecipients()
526 public List<RecipientEntry> getAllRecipients() { in getAllRecipients()
527 List<RecipientEntry> results = getSelectedRecipients(); in getAllRecipients()
629 public void onChanged(List<RecipientEntry> entries) { in setAdapter()
660 RecipientEntry.ENTRY_TYPE_PERMISSION_REQUEST)) { in setAdapter()
733 if (mSelectedChip != null && contactId != RecipientEntry.INVALID_CONTACT in shrink()
734 && (!isPhoneQuery() && contactId != RecipientEntry.GENERATED_CONTACT)) { in shrink()
[all …]
DDropdownChipLayouter.java106 public View bindView(View convertView, ViewGroup parent, RecipientEntry entry, int position, in bindView()
117 public View bindView(View convertView, ViewGroup parent, RecipientEntry entry, int position, in bindView()
186 if (entryType == RecipientEntry.ENTRY_TYPE_PERSON) { in bindView()
190 } else if (entryType == RecipientEntry.ENTRY_TYPE_PERMISSION_REQUEST) { in bindView()
242 protected void bindIconToView(boolean showImage, RecipientEntry entry, ImageView view, in bindIconToView()
346 protected CharSequence getDestinationType(RecipientEntry entry) { in getDestinationType()
469 protected CharSequence[] getStyledResults(@Nullable String constraint, RecipientEntry entry) { in getStyledResults()
DDefaultPhotoManager.java64 public void populatePhotoBytesAsync(RecipientEntry entry, PhotoManagerCallback callback) { in populatePhotoBytesAsync()
85 private void fetchPhotoAsync(final RecipientEntry entry, final Uri photoThumbnailUri, in fetchPhotoAsync()
DPhotoManager.java39 void populatePhotoBytesAsync(RecipientEntry entry, PhotoManagerCallback callback); in populatePhotoBytesAsync()
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
DSimpleRecipientChip.java19 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()
DVisibleRecipientChip.java23 import com.android.ex.chips.RecipientEntry;
33 public VisibleRecipientChip(final Drawable drawable, final RecipientEntry entry) { in VisibleRecipientChip()
79 public RecipientEntry getEntry() { in getEntry()
DInvisibleRecipientChip.java24 import com.android.ex.chips.RecipientEntry;
34 public InvisibleRecipientChip(final RecipientEntry entry) { in InvisibleRecipientChip()
81 public RecipientEntry getEntry() { in getEntry()
DBaseRecipientChip.java19 import com.android.ex.chips.RecipientEntry;
70 RecipientEntry getEntry(); in getEntry()
/frameworks/opt/chips/sample/src/com/android/ex/chips/sample/
DMainActivity.java29 import com.android.ex.chips.RecipientEntry;
75 public void onRecipientChipAdded(RecipientEntry entry) { in onRecipientChipAdded()
80 public void onRecipientChipDeleted(RecipientEntry entry) { in onRecipientChipDeleted()