/packages/apps/Dialer/java/com/android/dialer/calldetails/ |
H A D | CallDetailsHeaderViewHolder.java | 49 private DialerContact contact; field in class:CallDetailsHeaderViewHolder 66 /** Populates the contact info fields based on the current contact information. */ 67 void updateContactInfo(DialerContact contact) { argument 68 this.contact = contact; 72 contact.hasContactUri() ? Uri.parse(contact.getContactUri()) : null, 73 contact.getPhotoId(), 74 contact [all...] |
H A D | CallDetailsAdapter.java | 38 private final DialerContact contact; field in class:CallDetailsAdapter 45 @NonNull DialerContact contact, 48 this.contact = Assert.isNotNull(contact); 76 ((CallDetailsHeaderViewHolder) holder).updateContactInfo(contact); 78 ((CallDetailsFooterViewHolder) holder).setPhoneNumber(contact.getNumber()); 83 contact.getNumber(), 43 CallDetailsAdapter( Context context, @NonNull DialerContact contact, @NonNull List<CallDetailsEntry> callDetailsEntries, CallDetailsFooterViewHolder.ReportCallIdListener listener) argument
|
H A D | CallDetailsActivity.java | 51 private static final String EXTRA_CONTACT = "contact"; 56 private DialerContact contact; field in class:CallDetailsActivity 66 @NonNull DialerContact contact, 69 Assert.isNotNull(contact); 72 ProtoParsers.put(intent, EXTRA_CONTACT, contact); 98 // Some calls may not be recorded (eg. from quick contact), 115 contact = ProtoParsers.getTrusted(intent, EXTRA_CONTACT, DialerContact.getDefaultInstance()); 123 recyclerView.setAdapter(new CallDetailsAdapter(this, contact, entries, this)); 180 data.putExtra(EXTRA_PHONE_NUMBER, contact.getNumber()); 63 newInstance( Context context, @NonNull CallDetailsEntries details, @NonNull DialerContact contact, boolean canReportCallerId) argument
|
/packages/apps/Dialer/java/com/android/dialer/contactactions/ |
H A D | ContactActionBottomSheet.java | 37 * {@link BottomSheetDialog} used for building a list of contact actions in a bottom sheet menu. 46 private final DialerContact contact; field in class:ContactActionBottomSheet 49 Context context, DialerContact contact, List<ContactActionModule> modules) { 52 this.contact = contact; 57 Context context, DialerContact contact, List<ContactActionModule> modules) { 58 ContactActionBottomSheet sheet = new ContactActionBottomSheet(context, contact, modules); 78 // TODO: add on click action to contact. 86 contact.hasContactUri() ? Uri.parse(contact 48 ContactActionBottomSheet( Context context, DialerContact contact, List<ContactActionModule> modules) argument 56 show( Context context, DialerContact contact, List<ContactActionModule> modules) argument [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | GlobalSearchSupportTest.java | 56 // Remove the new contact from all groups 63 // If the contact is not in the "my contacts" group, nothing should be found 70 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( 72 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedText1( 77 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( 79 new SuggestionTesterBuilder(contact).query("foo@ac").expectIcon1Uri(true).expectedIcon2( 85 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") 87 new SuggestionTesterBuilder(contact).query("D").expectedText1("Deer Dough").expectedText2( 92 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").nickname( 94 new SuggestionTesterBuilder(contact) 127 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTester 294 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTesterBuilder 306 SuggestionTesterBuilder(GoldenContact contact) argument [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
H A D | ContactLoaderTest.java | 50 * Runs ContactLoader tests for the the contact-detail and editor view. 124 Contact contact = assertLoadContact(baseUri); 126 assertEquals(CONTACT_ID, contact.getId()); 127 assertEquals(RAW_CONTACT_ID, contact.getNameRawContactId()); 128 assertEquals(DisplayNameSources.STRUCTURED_NAME, contact.getDisplayNameSource()); 129 assertEquals(LOOKUP_KEY, contact.getLookupKey()); 130 assertEquals(lookupUri, contact.getLookupUri()); 131 assertEquals(1, contact.getRawContacts().size()); 132 assertEquals(1, contact.getStatuses().size()); 152 Contact contact [all...] |
H A D | RawContactTest.java | 42 final RawContact contact = new RawContact(values); 43 contact.addDataItemValues(dataItem); 45 return contact; 57 final RawContact contact = new RawContact(values); 58 contact.addDataItemValues(dataItem); 60 return contact;
|
H A D | SimContactTests.java | 45 private void assertParcelsCorrectly(SimContact contact) { argument 47 parcel.writeParcelable(contact, 0); 51 assertThat(unparceled, equalTo(contact));
|
/packages/apps/Dialer/java/com/android/dialer/app/dialpad/ |
H A D | SmartDialCursorLoader.java | 97 for (ContactNumber contact : allMatches) { 98 row[PhoneQuery.PHONE_ID] = contact.dataId; 99 row[PhoneQuery.PHONE_NUMBER] = contact.phoneNumber; 100 row[PhoneQuery.CONTACT_ID] = contact.id; 101 row[PhoneQuery.LOOKUP_KEY] = contact.lookupKey; 102 row[PhoneQuery.PHOTO_ID] = contact.photoId; 103 row[PhoneQuery.DISPLAY_NAME] = contact.displayName; 104 row[PhoneQuery.CARRIER_PRESENCE] = contact.carrierPresence;
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
H A D | AllContactsListViewHolder.java | 16 package com.android.messaging.ui.contact; 22 import com.android.messaging.ui.contact.ContactListItemView.HostInterface; 25 * Holds the all contacts view for the contact picker's view pager.
|
H A D | FrequentContactsListViewHolder.java | 16 package com.android.messaging.ui.contact; 22 import com.android.messaging.ui.contact.ContactListItemView.HostInterface; 25 * Holds the frequent contacts view for the contact picker's view pager.
|
H A D | ContactListAdapter.java | 17 package com.android.messaging.ui.contact;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
H A D | SmsMmsContacts.java | 63 * Get a contacts phone number based on the canonical addresses id of the contact. 66 * @param id the id of the contact, as listed in the Threads table 67 * @return the phone number of the contact - or null if id does not exist. 142 * @param phone the phone number of the contact 144 * @return the name of the contact or null, if no contact was found. 148 MapContact contact = mNames.get(phone); 150 if(contact != null){ 151 if(contact.getId() < 0) { 155 return contact; [all...] |
H A D | BluetoothMapConvoListingElement.java | 120 public void addContact(BluetoothMapConvoContactElement contact){ argument 123 mContacts.add(contact); 126 public void removeContact(BluetoothMapConvoContactElement contact){ argument 127 mContacts.remove(contact); 272 for(BluetoothMapConvoContactElement contact:mContacts){ 273 contact.encode(xmlConvoElement);
|
H A D | BluetoothMapConvoContactElement.java | 62 public static BluetoothMapConvoContactElement createFromMapContact(MapContact contact, argument 67 newElement.mBtUid = new SignedLongLong(contact.getId(),0); 68 newElement.mDisplayName = contact.getName(); 198 // construct the XML tag for a single contact in the convolisting element.
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
H A D | PhoneFavoritesTileAdapter.java | 64 * The soft limit on how many contact tiles to show. NOTE This soft limit would not restrict the 101 /** Position of the temporarily removed contact in the cache. */ 103 /** New position of the temporarily removed contact in the cache. */ 105 /** New position of the temporarily entered contact in the cache. */ 249 final ContactEntry contact = new ContactEntry(); 251 contact.id = id; 252 contact.namePrimary = 254 contact.nameAlternative = 258 contact.nameDisplayOrder = mContactsPreferences.getDisplayOrder(); 259 contact [all...] |
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
H A D | SimulatorContacts.java | 43 // US, contact with e164 number. 51 // US, contact with a non-e164 number. 67 // US and Australia, contact with a long name and multiple phone numbers. 76 // US, phone number shared with another contact and 2nd phone number with wait and pause. 97 // Brazil, contact with no name. 101 // Short number, contact with no name. 108 // None, contact with no phone number. 120 for (Contact contact : SIMPLE_CONTACTS) { 121 addContact(contact, operations); 130 private static void addContact(Contact contact, Lis argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/database/ |
H A D | SimContactDaoImpl.java | 185 * Finds SIM contacts that exist in CP2 and associates the account of the CP2 contact with 186 * the SIM contact 215 final SimContact contact = contacts.get(index); 220 rawContactToSimContact.get(id).add(contact); 234 for (SimContact contact : rawContactToSimContact.get(id)) { 235 result.get(account).add(contact); 304 final SimContact contact = new SimContact(id, name, number, parseEmails(emails)); 305 // Only include contact if it has some useful data 306 if (contact.hasName() || contact [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
H A D | AttachPhotoActivity.java | 65 * to contacts. It will first present a contact picker and then run the 172 // If there isn't an account specified, then the user opted to keep the contact local. 179 // A contact was picked. Launch the cropper to get face detection, the right size, etc. 207 public void onContactLoaded(Contact contact) { 208 saveContact(contact); 233 public void onContactLoaded(Contact contact) { 234 saveContact(contact); 255 Loader<Contact> loader, Contact contact) { 262 listener.onContactLoaded(contact); 269 public void onContactLoaded(Contact contact); argument 278 saveContact(Contact contact) argument 298 saveToContact(Contact contact, RawContactDeltaList deltaList, RawContactDelta raw) argument [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
H A D | SimContactsTestHelper.java | 92 for (SimContact contact : contacts) { 95 .withSelection(getWriteSelection(contact), null) 119 for (SimContact contact : contacts) { 120 final String[] emails = contact.getEmails(); 127 .withValue("tag", contact.getName()) 128 .withValue("number", contact.getPhone())
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
H A D | CallComposerActivity.java | 121 private DialerContact contact; field in class:CallComposerActivity 149 public static Intent newIntent(Context context, DialerContact contact) { argument 151 ProtoParsers.put(intent, ARG_CALL_COMPOSER_CONTACT, contact); 218 sessionId = getEnrichedCallManager().startCallComposerSession(contact.getNumber()); 222 sessionId = getEnrichedCallManager().startCallComposerSession(contact.getNumber()); 398 new CallIntentBuilder(contact.getNumber(), CallInitiationType.Type.CALL_COMPOSER).build()); 489 contact = DialerContact.parseFrom(bytes); 494 contact = 506 /** Populates the contact info fields based on the current contact informatio [all...] |
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/preferences/ |
H A D | EmergencyContactsPreferenceTest.java | 99 EmergencyContactManager.Contact contact = mock(EmergencyContactManager.Contact.class); 100 when(mContactFactory.getContact(any(), any())).thenReturn(contact); 101 when(contact.getName()).thenReturn(name); 102 when(contact.getPhoneNumber()).thenReturn(phoneNumber); 105 when(contact.getPhoneUri()).thenReturn(uri); 164 // Assert the only remaining contact is John
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | ContactsManagerTest.java | 114 ContactsManager.RankedContact contact = new ContactsManager.RankedContact(cursor); 115 contact.computeAffinity(1, month_ago); 116 assertEquals(contact.getAffinity(), 1.0f); 117 contact.computeAffinity(2, now); 118 assertEquals(contact.getAffinity(), (2.0f/3.0f + (float)Math.pow(0.5, 3) + 1.0f) / 3);
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | SimImportFragment.java | 426 public boolean existsInCurrentAccount(SimContact contact) { argument 430 return mExistingMap.get(mSelectedAccount).contains(contact); 433 private String getItemLabel(SimContact contact) { argument 434 if (contact.hasName()) { 435 return contact.getName(); 436 } else if (contact.hasPhone()) { 437 return contact.getPhone(); 438 } else if (contact.hasEmails()) { 439 return contact.getEmails()[0];
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
H A D | IntentProvider.java | 111 * @param contact The contact with which this call details intent pertains to. 115 CallDetailsEntries callDetailsEntries, DialerContact contact, boolean canReportCallerId) { 120 context, callDetailsEntries, contact, canReportCallerId); 125 /** Retrieves an add contact intent for the given contact and phone call details. */ 142 // Populate the intent with contact information stored in the lookup URI. 161 // way we will still consider the contact an organization. 114 getCallDetailIntentProvider( CallDetailsEntries callDetailsEntries, DialerContact contact, boolean canReportCallerId) argument
|