Home
last modified time | relevance | path

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

/packages/apps/Contacts/src/com/android/contacts/util/
DStructuredPostalUtils.java26 public static Intent getViewPostalAddressIntent(String postalAddress) { in getViewPostalAddressIntent() argument
27 return new Intent(Intent.ACTION_VIEW, getPostalAddressUri(postalAddress)); in getViewPostalAddressIntent()
30 public static Uri getPostalAddressUri(String postalAddress) { in getPostalAddressUri() argument
31 return Uri.parse("geo:0,0?q=" + Uri.encode(postalAddress)); in getPostalAddressUri()
34 public static Intent getViewPostalAddressDirectionsIntent(String postalAddress) { in getViewPostalAddressDirectionsIntent() argument
35 return new Intent(Intent.ACTION_VIEW, getPostalAddressDirectionsUri(postalAddress)); in getViewPostalAddressDirectionsIntent()
38 public static Uri getPostalAddressDirectionsUri(String postalAddress) { in getPostalAddressDirectionsUri() argument
39 return Uri.parse("https://maps.google.com/maps?daddr=" + Uri.encode(postalAddress)); in getPostalAddressDirectionsUri()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DPostalAddress.java65 PostalAddress postalAddress = new PostalAddress(); in fromCursor() local
66 postalAddress.mFormattedAddress = cursor.getString(formattedAddressColumn); in fromCursor()
67 postalAddress.mType = cursor.getInt(addressTypeColumn); in fromCursor()
68 postalAddress.mLabel = cursor.getString(labelColumn); in fromCursor()
70 return postalAddress; in fromCursor()
142 PostalAddress postalAddress = new PostalAddress();
143 postalAddress.mType = source.readInt();
144 postalAddress.mLabel = source.readString();
145 postalAddress.mFormattedAddress = source.readString();
146 return postalAddress;
DContact.java599 for (PostalAddress postalAddress : mPostalAddresses) { in writeToParcel()
600 dest.writeParcelable(postalAddress, flags); in writeToParcel()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsViewHolder.java208 public void bind(Context context, @NonNull PostalAddress postalAddress) { in bind() argument
209 String address = postalAddress.getFormattedAddress(); in bind()
213 ViewUtils.setText(mText, postalAddress.getReadableLabel(resources)); in bind()
216 v -> openMapWithMapIntent(context, postalAddress.getAddressIntent(resources))); in bind()
218 Intent intent = postalAddress.getNavigationIntent(resources); in bind()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DDataAction.java224 final String postalAddress = postal.getFormattedAddress(); in DataAction() local
225 if (!TextUtils.isEmpty(postalAddress)) { in DataAction()
226 mIntent = StructuredPostalUtils.getViewPostalAddressIntent(postalAddress); in DataAction()
DQuickContactActivity.java1631 final String postalAddress = postal.getFormattedAddress(); in dataItemToEntry() local
1632 if (!TextUtils.isEmpty(postalAddress)) { in dataItemToEntry()
1634 intent = StructuredPostalUtils.getViewPostalAddressIntent(postalAddress); in dataItemToEntry()
1647 StructuredPostalUtils.getViewPostalAddressDirectionsIntent(postalAddress); in dataItemToEntry()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/
DContactListViewHolderTest.java267 PostalAddress postalAddress = mock(PostalAddress.class); in testClickShowContactDetailView_hasAddressButNoPhoneNumber_dependOnConfig() local
268 when(mMockContact.getPostalAddresses()).thenReturn(Arrays.asList(postalAddress)); in testClickShowContactDetailView_hasAddressButNoPhoneNumber_dependOnConfig()