Home
last modified time | relevance | path

Searched refs:phoneUri (Results 1 – 7 of 7) sorted by relevance

/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
DEmergencyContactsPreference.java59 public boolean isValidEmergencyContact(Context context, Uri phoneUri) {
60 return EmergencyContactManager.isValidEmergencyContact(context, phoneUri);
81 boolean isValidEmergencyContact(Context context, Uri phoneUri); in isValidEmergencyContact() argument
139 public void addNewEmergencyContact(Uri phoneUri) { in addNewEmergencyContact() argument
140 if (mEmergencyContacts.contains(phoneUri)) { in addNewEmergencyContact()
143 if (!mContactValidator.isValidEmergencyContact(getContext(), phoneUri)) { in addNewEmergencyContact()
149 if (updatedContacts.add(phoneUri) && callChangeListener(updatedContacts)) { in addNewEmergencyContact()
178 Uri phoneUri = null; in setEmergencyContacts() local
182 phoneUri = it.next(); in setEmergencyContacts()
188 contactPreference.setPhoneUri(phoneUri); in setEmergencyContacts()
[all …]
DContactPreference.java63 public EmergencyContactManager.Contact getContact(Context context, Uri phoneUri) {
64 return EmergencyContactManager.getContact(context, phoneUri);
94 EmergencyContactManager.Contact getContact(Context context, Uri phoneUri); in getContact() argument
106 public ContactPreference(Context context, @NonNull Uri phoneUri) { in ContactPreference() argument
107 this(context, phoneUri, DEFAULT_CONTACT_FACTORY); in ContactPreference()
111 ContactPreference(Context context, @NonNull Uri phoneUri, in ContactPreference() argument
117 setPhoneUri(phoneUri); in ContactPreference()
123 public void setPhoneUri(@NonNull Uri phoneUri) { in setPhoneUri() argument
124 if (mContact != null && !phoneUri.equals(mContact.getPhoneUri()) && in setPhoneUri()
128 mContact = mContactFactory.getContact(getContext(), phoneUri); in setPhoneUri()
/packages/apps/EmergencyInfo/src/com/android/emergency/
DEmergencyContactManager.java41 public static Contact getContact(Context context, Uri phoneUri) { in getContact() argument
48 phoneUri); in getContact()
50 phoneUri, in getContact()
92 return new Contact(contactLookupUri, phoneUri, name, phoneNumber, phoneType, photo); in getContact()
96 public static boolean isValidEmergencyContact(Context context, Uri phoneUri) { in isValidEmergencyContact() argument
97 return phoneUri != null && phoneExists(context, phoneUri); in isValidEmergencyContact()
100 private static boolean phoneExists(Context context, Uri phoneUri) { in phoneExists() argument
103 cursor = context.getContentResolver().query(phoneUri, null, null, null, null); in phoneExists()
141 Uri phoneUri, in Contact() argument
147 mPhoneUri = phoneUri; in Contact()
/packages/apps/Contacts/src/com/android/contacts/
DShortcutIntentBuilder.java318 final Uri phoneUri; in createPhoneNumberShortcutIntent() local
326 phoneUri = Uri.fromParts(PhoneAccount.SCHEME_TEL, phoneNumber, null); in createPhoneNumberShortcutIntent()
332 phoneUri = Uri.fromParts(ContactsUtils.SCHEME_SMSTO, phoneNumber, null); in createPhoneNumberShortcutIntent()
338 final Intent shortcutIntent = new Intent(shortcutAction, phoneUri); in createPhoneNumberShortcutIntent()
347 final String id = shortcutAction + lookupKey + phoneUri.toString().hashCode(); in createPhoneNumberShortcutIntent()
/packages/apps/Contacts/src/com/android/contacts/list/
DPhoneNumberPickerFragment.java154 final Uri phoneUri = getPhoneUri(position); in callNumber() local
156 if (phoneUri != null) { in callNumber()
157 pickPhoneNumber(phoneUri, isVideoCall); in callNumber()
/packages/apps/EmergencyInfo/src/com/android/emergency/edit/
DEditInfoFragment.java153 Uri phoneUri = data.getData(); in onActivityResult() local
154 mEmergencyContactsPreferenceCategory.addNewEmergencyContact(phoneUri); in onActivityResult()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java2455 Uri phoneUri = insertPhoneNumber(rawContactId, "18004664411"); in testPhoneUpdate() local
2464 mResolver.update(phoneUri, values, null, null); in testPhoneUpdate()
2472 mResolver.update(phoneUri, values, null, null); in testPhoneUpdate()
2480 mResolver.update(phoneUri, values, null, null); in testPhoneUpdate()
7159 Uri phoneUri = insertPhoneNumber(rawContactId, "555-123-45678", true); in testDeleteContactWithoutName() local
8598 Uri phoneUri = insertPhoneNumber(rawContactId, "555-1111"); in testReadOnlyDataRow() local
8602 storeValue(phoneUri, Phone.NUMBER, "555-2222"); in testReadOnlyDataRow()
8604 assertStoredValue(phoneUri, Phone.NUMBER, "555-2222"); in testReadOnlyDataRow()