Searched refs:postalAddress (Results 1 – 7 of 7) sorted by relevance
63 PostalAddress postalAddress = new PostalAddress(); in fromCursor() local64 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;
577 for (PostalAddress postalAddress : mPostalAddresses) { in writeToParcel()578 dest.writeParcelable(postalAddress, flags); in writeToParcel()
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()
193 public void bind(Context context, @NonNull PostalAddress postalAddress) { in bind() argument194 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()
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()
265 PostalAddress postalAddress = mock(PostalAddress.class); in testClickShowContactDetailView_hasAddressButNoPhoneNumber_dependOnConfig() local266 when(mMockContact.getPostalAddresses()).thenReturn(Arrays.asList(postalAddress)); in testClickShowContactDetailView_hasAddressButNoPhoneNumber_dependOnConfig()