HomeSort by relevance Sort by last modified time
    Searched refs:RecipientEntry (Results 1 - 25 of 25) sorted by null

  /frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
BaseRecipientChip.java 19 import com.android.ex.chips.RecipientEntry;
68 * Get associated RecipientEntry.
70 RecipientEntry getEntry();
SimpleRecipientChip.java 19 import com.android.ex.chips.RecipientEntry;
36 private final RecipientEntry mEntry;
42 public SimpleRecipientChip(final RecipientEntry entry) {
93 public RecipientEntry getEntry() {
InvisibleRecipientChip.java 24 import com.android.ex.chips.RecipientEntry;
33 public InvisibleRecipientChip(final RecipientEntry entry) {
80 public RecipientEntry getEntry() {
VisibleRecipientChip.java 23 import com.android.ex.chips.RecipientEntry;
32 public VisibleRecipientChip(final Drawable drawable, final RecipientEntry entry) {
78 public RecipientEntry getEntry() {
  /packages/apps/Messaging/src/com/android/messaging/util/
ContactRecipientEntryUtils.java 22 import com.android.ex.chips.RecipientEntry;
29 * Provides utility methods around creating RecipientEntry instance specific to Bugle's needs.
50 public static RecipientEntry constructSendToDestinationEntry(final String destination) {
57 public static RecipientEntry constructNumberWithAvatarEntry(final String destination) {
61 private static RecipientEntry constructSpecialRecipientEntry(final String destination,
69 destination, RecipientEntry.INVALID_DESTINATION_TYPE, null, contactId,
80 public static String getDisplayNameForContactList(final RecipientEntry entry) {
91 public static String formatDestination(final RecipientEntry entry) {
98 public static boolean isAvatarAndNumberOnlyContact(final RecipientEntry entry) {
105 public static boolean isSendToDestinationContact(final RecipientEntry entry)
    [all...]
ContactUtil.java 36 import com.android.ex.chips.RecipientEntry;
464 * Creates a RecipientEntry from the provided data fields (from the contacts cursor).
467 public static RecipientEntry createRecipientEntry(final String displayName,
472 return RecipientEntry.constructTopLevelEntry(displayName, displayNameSource,
476 return RecipientEntry.constructSecondLevelEntry(displayName, displayNameSource,
483 * Creates a RecipientEntry for PhoneQuery result. The result is then displayed in the
486 public static RecipientEntry createRecipientEntryForPhoneQuery(final Cursor cursor,
  /frameworks/opt/chips/src/com/android/ex/chips/
PhotoManager.java 29 * Sets the {@link com.android.ex.chips.RecipientEntry}'s photo bytes. If the photo bytes
39 void populatePhotoBytesAsync(RecipientEntry entry, PhotoManagerCallback callback);
RecipientEntry.java 29 public class RecipientEntry {
33 * information passed in to the RecipientEntry from an external source
98 protected RecipientEntry(int entryType, String displayName, String destination,
107 protected RecipientEntry(int entryType, String displayName, String destination,
130 protected RecipientEntry(int entryType, String displayName, String destination,
144 * Determine if this was a RecipientEntry created from recipient info or
148 return id == RecipientEntry.INVALID_CONTACT || id == RecipientEntry.GENERATED_CONTACT;
152 * Construct a RecipientEntry from just an address that has been entered.
156 public static RecipientEntry constructFakeEntry(final String address, final boolean isValid)
    [all...]
SingleRecipientArrayAdapter.java 27 class SingleRecipientArrayAdapter extends ArrayAdapter<RecipientEntry> {
31 public SingleRecipientArrayAdapter(Context context, RecipientEntry entry,
36 public SingleRecipientArrayAdapter(Context context, RecipientEntry entry,
40 new RecipientEntry[] { entry });
BaseRecipientAdapter.java 193 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,
200 LinkedHashMap<Long, List<RecipientEntry>> entryMap,
201 List<RecipientEntry> nonAggregatedEntries,
212 RecipientEntry entry) {
215 new LinkedHashMap<Long, List<RecipientEntry>>() /* entryMap */,
256 RecipientEntry.constructPermissionEntry(ChipsUtil.REQUIRED_PERMISSIONS));
275 final LinkedHashMap<Long, List<RecipientEntry>> entryMap
    [all...]
DefaultPhotoManager.java 33 * queries for photo bytes by using the {@link com.android.ex.chips.RecipientEntry}'s
64 public void populatePhotoBytesAsync(RecipientEntry entry, PhotoManagerCallback callback) {
85 private void fetchPhotoAsync(final RecipientEntry entry, final Uri photoThumbnailUri,
RecipientAlternatesAdapter.java 71 public void matchesFound(Map<String, RecipientEntry> results);
86 * Get a HashMap of address to RecipientEntry that contains all contact
123 HashMap<String, RecipientEntry> recipientEntries = null;
151 Map<String, RecipientEntry> recipientEntries, Set<String> addresses,
161 Map<String, RecipientEntry> recipientEntries, Set<String> addresses,
208 final Map<String, RecipientEntry> entries =
236 final Map<String, RecipientEntry> entries =
248 private static HashMap<String, RecipientEntry> processContactEntries(Cursor c,
250 HashMap<String, RecipientEntry> recipientEntries = new HashMap<String, RecipientEntry>();
    [all...]
RecipientEditTextView.java 256 * Listener for handling clicks on the {@link RecipientEntry} that have
257 * {@link RecipientEntry#ENTRY_TYPE_PERMISSION_REQUEST} type.
282 * @param entry RecipientEntry that contains information about the chip.
284 void onRecipientChipDeleted(RecipientEntry entry);
294 * @param entry RecipientEntry that contains information about the chip.
296 void onRecipientChipAdded(RecipientEntry entry);
463 * @return The list of {@link RecipientEntry}s that have been selected by the user.
465 public List<RecipientEntry> getSelectedRecipients() {
468 List<RecipientEntry> results = new ArrayList<RecipientEntry>();
    [all...]
DropdownChipLayouter.java 52 * {@link RecipientEntry#ENTRY_TYPE_PERMISSION_REQUEST} type.
106 public View bindView(View convertView, ViewGroup parent, RecipientEntry entry, int position,
112 * See {@link #bindView(View, ViewGroup, RecipientEntry, int, AdapterType, String)}
117 public View bindView(View convertView, ViewGroup parent, RecipientEntry entry, int position,
186 if (entryType == RecipientEntry.ENTRY_TYPE_PERSON) {
190 } else if (entryType == RecipientEntry.ENTRY_TYPE_PERMISSION_REQUEST) {
242 protected void bindIconToView(boolean showImage, RecipientEntry entry, ImageView view,
346 protected CharSequence getDestinationType(RecipientEntry entry) {
469 protected CharSequence[] getStyledResults(@Nullable String constraint, RecipientEntry entry) {
  /frameworks/opt/chips/tests/src/com/android/ex/chips/
RecipientAlternatesAdapterTest.java 26 import com.android.ex.chips.RecipientEntry;
116 final RecipientEntry entry1 =
117 RecipientEntry.constructFakeEntry("1@android.com", true);
118 final RecipientEntry entry2 = null;
126 final RecipientEntry entry1 =
127 RecipientEntry.constructTopLevelEntry("Android", DisplayNameSources.NICKNAME,
130 final RecipientEntry entry2 = RecipientEntry.constructFakeEntry("1@android.com", true);
139 final RecipientEntry entry1 =
140 RecipientEntry.constructTopLevelEntry("Android", DisplayNameSources.NICKNAME
    [all...]
ChipsTest.java 43 private RecipientEntry[] mMockEntries;
68 Drawable getChipBackground(RecipientEntry contact) {
107 Drawable getChipBackground(RecipientEntry contact) {
147 RecipientEntry entry = RecipientEntry.constructGeneratedEntry("User Name, Jr",
155 RecipientEntry alreadyFormatted =
156 RecipientEntry.constructFakeEntry("user@username.com, ", true);
163 RecipientEntry alreadyFormattedNoSpace = RecipientEntry
169 RecipientEntry alreadyNamed = RecipientEntry.constructGeneratedEntry("User Name"
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/ui/contact/
ContactRecipientAdapter.java 34 import com.android.ex.chips.RecipientEntry;
72 private static final int ENTRY_TYPE_DIRECTORY = RecipientEntry.ENTRY_TYPE_SIZE;
177 final List<RecipientEntry> entries = new ArrayList<>();
201 final List<RecipientEntry> tempEntries = new ArrayList<>();
241 updateEntries(Collections.<RecipientEntry>emptyList());
246 private class RecipientEntryComparator implements Comparator<RecipientEntry> {
256 * Compare two RecipientEntry's, first by locale-aware display name comparison, then by
260 public int compare(RecipientEntry lhs, RecipientEntry rhs) {
320 public final List<RecipientEntry> recipientEntries
    [all...]
ContactRecipientAutoCompleteView.java 34 import com.android.ex.chips.RecipientEntry;
130 public final RecipientEntry replacedChipEntry;
133 final RecipientEntry replacedChipEntry) {
152 final RecipientEntry entry = recipient.getEntry();
155 if (RecipientEntry.isCreatedRecipient(entry.getContactId()) ||
253 final RecipientEntry entry = recipient.getEntry();
273 final RecipientEntry entry = recipient.getEntry();
ContactDropdownLayouter.java 29 import com.android.ex.chips.RecipientEntry;
66 * Bind a drop down view to a RecipientEntry. We'd like regular dropdown items (BASE_RECIPIENT)
71 public View bindView(final View convertView, final ViewGroup parent, final RecipientEntry entry,
110 protected void bindIconToView(boolean showImage, RecipientEntry entry, ImageView view,
ContactRecipientPhotoManager.java 22 import com.android.ex.chips.RecipientEntry;
59 public void populatePhotoBytesAsync(final RecipientEntry entry,
ContactListItemView.java 29 import com.android.ex.chips.RecipientEntry;
95 * Binds a RecipientEntry. This is used by the chips text view's dropdown layout.
96 * @param recipientEntry the source RecipientEntry provided by ContactDropdownLayouter, which
107 public void bind(final RecipientEntry recipientEntry, final CharSequence styledName,
110 mData.bind(recipientEntry, styledName, styledDestination, isSingleRecipient, isWorkContact);
121 final RecipientEntry recipientEntry = mData.getRecipientEntry();
128 ParticipantData.getFromRecipientEntry(recipientEntry));
    [all...]
  /frameworks/opt/chips/sample/src/com/android/ex/chips/sample/
MainActivity.java 29 import com.android.ex.chips.RecipientEntry;
75 public void onRecipientChipAdded(RecipientEntry entry) {
80 public void onRecipientChipDeleted(RecipientEntry entry) {
  /packages/apps/Messaging/src/com/android/messaging/datamodel/
BugleRecipientEntry.java 21 import com.android.ex.chips.RecipientEntry;
24 * An extension of RecipientEntry for Bugle's use since Bugle uses phone numbers to identify
28 public class BugleRecipientEntry extends RecipientEntry {
60 public boolean isSamePerson(final RecipientEntry entry) {
  /packages/apps/Messaging/src/com/android/messaging/datamodel/data/
ContactListItemData.java 23 import com.android.ex.chips.RecipientEntry;
34 // Keeps the contact data in the form of RecipientEntry that RecipientEditTextView can
36 private RecipientEntry mRecipientEntry;
88 * Bind to a RecipientEntry produced by the chips text view in the search drop down, plus
91 public void bind(final RecipientEntry entry, final CharSequence styledName,
162 * Returns a RecipientEntry instance readily usable by the RecipientEditTextView.
164 public RecipientEntry getRecipientEntry() {
ParticipantData.java 29 import com.android.ex.chips.RecipientEntry;
167 public static ParticipantData getFromRecipientEntry(final RecipientEntry recipientEntry) {
172 pd.mSendDestination = TextUtil.replaceUnicodeDigits(recipientEntry.getDestination());
180 pd.mFullName = recipientEntry.getDisplayName();
182 pd.mProfilePhotoUri = (recipientEntry.getPhotoThumbnailUri() == null) ? null :
183 recipientEntry.getPhotoThumbnailUri().toString();
184 pd.mContactId = recipientEntry.getContactId();
191 pd.mLookupKey = recipientEntry.getLookupKey();

Completed in 945 milliseconds