Searched refs:postalAddress (Results 1 – 7 of 7) sorted by relevance
26 public static Intent getViewPostalAddressIntent(String postalAddress) { in getViewPostalAddressIntent() argument27 return new Intent(Intent.ACTION_VIEW, getPostalAddressUri(postalAddress)); in getViewPostalAddressIntent()30 public static Uri getPostalAddressUri(String postalAddress) { in getPostalAddressUri() argument31 return Uri.parse("geo:0,0?q=" + Uri.encode(postalAddress)); in getPostalAddressUri()34 public static Intent getViewPostalAddressDirectionsIntent(String postalAddress) { in getViewPostalAddressDirectionsIntent() argument35 return new Intent(Intent.ACTION_VIEW, getPostalAddressDirectionsUri(postalAddress)); in getViewPostalAddressDirectionsIntent()38 public static Uri getPostalAddressDirectionsUri(String postalAddress) { in getPostalAddressDirectionsUri() argument39 return Uri.parse("https://maps.google.com/maps?daddr=" + Uri.encode(postalAddress)); in getPostalAddressDirectionsUri()
65 PostalAddress postalAddress = new PostalAddress(); in fromCursor() local66 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;
599 for (PostalAddress postalAddress : mPostalAddresses) { in writeToParcel()600 dest.writeParcelable(postalAddress, flags); in writeToParcel()
208 public void bind(Context context, @NonNull PostalAddress postalAddress) { in bind() argument209 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()
224 final String postalAddress = postal.getFormattedAddress(); in DataAction() local225 if (!TextUtils.isEmpty(postalAddress)) { in DataAction()226 mIntent = StructuredPostalUtils.getViewPostalAddressIntent(postalAddress); in DataAction()
1631 final String postalAddress = postal.getFormattedAddress(); in dataItemToEntry() local1632 if (!TextUtils.isEmpty(postalAddress)) { in dataItemToEntry()1634 intent = StructuredPostalUtils.getViewPostalAddressIntent(postalAddress); in dataItemToEntry()1647 StructuredPostalUtils.getViewPostalAddressDirectionsIntent(postalAddress); in dataItemToEntry()
267 PostalAddress postalAddress = mock(PostalAddress.class); in testClickShowContactDetailView_hasAddressButNoPhoneNumber_dependOnConfig() local268 when(mMockContact.getPostalAddresses()).thenReturn(Arrays.asList(postalAddress)); in testClickShowContactDetailView_hasAddressButNoPhoneNumber_dependOnConfig()