Home
last modified time | relevance | path

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

/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DPostalAddress.java63 PostalAddress postalAddress = new PostalAddress(); in fromCursor() local
64 postalAddress.mFormattedAddress = cursor.getString(formattedAddressColumn); in fromCursor()
65 postalAddress.mType = cursor.getInt(addressTypeColumn); in fromCursor()
66 postalAddress.mLabel = cursor.getString(labelColumn); in fromCursor()
68 return postalAddress; in fromCursor()
144 PostalAddress postalAddress = new PostalAddress();
145 postalAddress.mType = source.readInt();
146 postalAddress.mLabel = source.readString();
147 postalAddress.mFormattedAddress = source.readString();
148 return postalAddress;
DContact.java577 for (PostalAddress postalAddress : mPostalAddresses) { in writeToParcel()
578 dest.writeParcelable(postalAddress, flags); in writeToParcel()
/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/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsViewHolder.java193 public void bind(Context context, @NonNull PostalAddress postalAddress) { in bind() argument
194 String address = postalAddress.getFormattedAddress(); in bind()
198 ViewUtils.setText(mText, postalAddress.getReadableLabel(resources)); in bind()
201 v -> openMapWithAddressUri(context, postalAddress.getAddressUri(resources))); in bind()
203 v -> openMapWithAddressUri(context, postalAddress.getNavigationUri(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.java265 PostalAddress postalAddress = mock(PostalAddress.class); in testClickShowContactDetailView_hasAddressButNoPhoneNumber_dependOnConfig() local
266 when(mMockContact.getPostalAddresses()).thenReturn(Arrays.asList(postalAddress)); in testClickShowContactDetailView_hasAddressButNoPhoneNumber_dependOnConfig()