Home
last modified time | relevance | path

Searched refs:location (Results 1 – 25 of 45) sorted by relevance

12

/development/samples/training/location-aware/src/com/example/android/location/
DLocationActivity.java17 package com.example.android.location;
25 import android.location.Address;
26 import android.location.Geocoder;
27 import android.location.Location;
28 import android.location.LocationListener;
29 import android.location.LocationManager;
215 Location location = null; in requestUpdatesFromProvider() local
218 location = mLocationManager.getLastKnownLocation(provider); in requestUpdatesFromProvider()
222 return location; in requestUpdatesFromProvider()
239 private void doReverseGeocoding(Location location) { in doReverseGeocoding() argument
[all …]
/development/samples/browseable/XYZTouristAttractions/Shared/src/com.example.android.xyztouristattractions.common/
DAttraction.java34 public LatLng location; field in Attraction
44 Uri secondaryImageUrl, LatLng location, String city) { in Attraction() argument
50 this.location = location; in Attraction()
DUtils.java93 public static void storeLocation(Context context, LatLng location) { in storeLocation() argument
96 editor.putLong(PREFERENCES_LAT, Double.doubleToRawLongBits(location.latitude)); in storeLocation()
97 editor.putLong(PREFERENCES_LNG, Double.doubleToRawLongBits(location.longitude)); in storeLocation()
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DPduPart.java397 byte[] location = (byte[]) mPartHeader.get(P_NAME); in generateLocation()
398 if(null == location) { in generateLocation()
399 location = (byte[]) mPartHeader.get(P_FILENAME); in generateLocation()
401 if (null == location) { in generateLocation()
402 location = (byte[]) mPartHeader.get(P_CONTENT_LOCATION); in generateLocation()
406 if (null == location) { in generateLocation()
410 return new String(location); in generateLocation()
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/
DUtilityService.java26 import android.location.Location;
42 import com.google.android.gms.location.FusedLocationProviderApi;
43 import com.google.android.gms.location.Geofence;
44 import com.google.android.gms.location.GeofencingEvent;
45 import com.google.android.gms.location.LocationRequest;
46 import com.google.android.gms.location.LocationServices;
63 import static com.google.android.gms.location.LocationServices.FusedLocationApi;
64 import static com.google.android.gms.location.LocationServices.GeofencingApi;
230 Location location = FusedLocationApi.getLastLocation(googleApiClient); in requestLocationInternal() local
231 if (location != null) { in requestLocationInternal()
[all …]
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/ui/
DAttractionListFragment.java22 import android.location.Location;
42 import com.google.android.gms.location.FusedLocationProviderApi;
104 Location location =
106 if (location != null) {
107 mLatestLocation = new LatLng(location.getLatitude(), location.getLongitude());
124 lhs.location, curLatLng); in loadAttractionsFromLocation()
126 rhs.location, curLatLng); in loadAttractionsFromLocation()
170 Utils.formatDistanceBetween(mLatestLocation, attraction.location); in onBindViewHolder()
DDetailFragment.java87 LatLng location = Utils.getLocation(getActivity()); in onCreateView() local
88 String distance = Utils.formatDistanceBetween(location, mAttraction.location); in onCreateView()
/development/samples/training/basic/ActivityLifecycle/
Dant.properties9 # 'source.dir' for the location of your java source folder and
10 # 'out.dir' for the location of your output folder.
14 # 'key.store' for the location of your keystore and
Dbuild.properties9 # 'source.dir' for the location of your java source folder and
10 # 'out.dir' for the location of your output folder.
14 # 'key.store' for the location of your keystore and
Dlocal.properties7 # location of the SDK. This is only used by Ant
/development/samples/ApiDemos/src/com/example/android/apis/os/
DMmsWapPushReceiver.java57 final String location = new String(nInd.getContentLocation()); in onReceive() local
58 Log.v(TAG, "Received MMS notification: " + location); in onReceive()
62 di.putExtra(MmsMessagingDemo.EXTRA_NOTIFICATION_URL, location); in onReceive()
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/
DWearableMainActivity.java23 import com.google.android.gms.location.LocationListener;
24 import com.google.android.gms.location.LocationRequest;
25 import com.google.android.gms.location.LocationServices;
38 import android.location.Location;
390 public void onLocationChanged(Location location) { in onLocationChanged() argument
391 Log.d(TAG, "onLocationChanged() : " + location); in onLocationChanged()
399 mSpeed = location.getSpeed() * MPH_IN_METERS_PER_SECOND; in onLocationChanged()
401 addLocationEntry(location.getLatitude(), location.getLongitude()); in onLocationChanged()
/development/scripts/
Dboardconfig_usage_analysis.py191 for location in sorted(locations):
192 print(' ' + location)
195 for location in sorted(usage):
196 print(' ' + location)
Dnative_heapdump_viewer.py111 def __init__(self, function, location, library): argument
113 self.location = location
334 location = splitted[2*x+1];
335 resolved_addrs[addrs_by_lib[lib][x]] = FrameDescription(function, location, lib)
380 …tal_percent, parent_percent, node.number, indent, node.addr, fd.library, fd.function, fd.location))
394 …f%% %6d %s%s %s %s" % (node.size, total_percent, node.number, extra, lib, fd.function, fd.location)
/development/samples/ThemedNavBarKeyboard/src/com/example/android/themednavbarkeyboard/
DThemedNavBarKeyboard.java85 final int[] location = new int[2]; in onComputeInsets() local
86 mLayout.getLocationInWindow(location); in onComputeInsets()
87 final int x = location[0]; in onComputeInsets()
88 final int y = location[1]; in onComputeInsets()
/development/apps/SettingInjectorSample/src/com/example/android/injector/
DMyInjectorService.java19 import android.location.SettingInjectorService;
DSlowInjectorService.java19 import android.location.SettingInjectorService;
DDisabledInjectorService.java19 import android.location.SettingInjectorService;
DFailingInjectorService.java19 import android.location.SettingInjectorService;
DUpdatingInjectorService.java20 import android.location.SettingInjectorService;
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPictureLayout.java138 public ViewParent invalidateChildInParent(int[] location, Rect dirty) { in invalidateChildInParent() argument
139 location[0] = getLeft(); in invalidateChildInParent()
140 location[1] = getTop(); in invalidateChildInParent()
/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/
DConstants.java21 import com.google.android.gms.location.Geofence;
DSimpleGeofence.java19 import com.google.android.gms.location.Geofence;
DGeofenceTransitionsIntentService.java36 import com.google.android.gms.location.Geofence;
37 import com.google.android.gms.location.GeofencingEvent;
/development/samples/browseable/AutoBackupForApps/
D_index.jd9 adjusting the location where data files are stored using getNoBackupFilesDir(), or by using a custom

12