Home | History | Annotate | Download | only in media

Lines Matching refs:address

30 import android.location.Address;
48 private static Address sCurrentAddress; // last known address
130 Address addr1 = lookupAddress(setMinLatitude, setMinLongitude);
131 Address addr2 = lookupAddress(setMaxLatitude, setMaxLongitude);
155 Address currentAddress = lookupAddress(location.getLatitude(), location.getLongitude());
210 // Compare thoroughfare (street address) next.
257 // valid address.
314 Address addr = lookupAddress(latitude, longitude);
317 // Look at the first line of the address, thorough fare and
383 private String getLocalityAdminForAddress(final Address addr, final boolean approxLocation) {
404 private Address lookupAddress(final double latitude, final double longitude) {
408 Address address = null;
411 List<Address> addresses = mGeocoder.getFromLocation(latitude, longitude, 1);
413 address = addresses.get(0);
416 Locale locale = address.getLocale();
421 Utils.writeUTF(dos, address.getThoroughfare());
422 int numAddressLines = address.getMaxAddressLineIndex();
425 Utils.writeUTF(dos, address.getAddressLine(i));
427 Utils.writeUTF(dos, address.getFeatureName());
428 Utils.writeUTF(dos, address.getLocality());
429 Utils.writeUTF(dos, address.getAdminArea());
430 Utils.writeUTF(dos, address.getSubAdminArea());
432 Utils.writeUTF(dos, address.getCountryName());
433 Utils.writeUTF(dos, address.getCountryCode());
434 Utils.writeUTF(dos, address.getPostalCode());
435 Utils.writeUTF(dos, address.getPhone());
436 Utils.writeUTF(dos, address.getUrl());
446 // Parsing the address from the byte stream.
466 address = new Address(locale);
468 address.setThoroughfare(Utils.readUTF(dis));
471 address.setAddressLine(i, Utils.readUTF(dis));
473 address.setFeatureName(Utils.readUTF(dis));
474 address.setLocality(Utils.readUTF(dis));
475 address.setAdminArea(Utils.readUTF(dis));
476 address.setSubAdminArea(Utils.readUTF(dis));
478 address.setCountryName(Utils.readUTF(dis));
479 address.setCountryCode(Utils.readUTF(dis));
480 address.setPostalCode(Utils.readUTF(dis));
481 address.setPhone(Utils.readUTF(dis));
482 address.setUrl(Utils.readUTF(dis));
485 return address;