Home
last modified time | relevance | path

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

12345678910>>...23

/frameworks/base/opengl/java/android/opengl/
DGLES31.java411 int location, in glProgramUniform1i() argument
419 int location, in glProgramUniform2i() argument
428 int location, in glProgramUniform3i() argument
438 int location, in glProgramUniform4i() argument
449 int location, in glProgramUniform1ui() argument
457 int location, in glProgramUniform2ui() argument
466 int location, in glProgramUniform3ui() argument
476 int location, in glProgramUniform4ui() argument
487 int location, in glProgramUniform1f() argument
495 int location, in glProgramUniform2f() argument
[all …]
DGLES20.java1168 int location, in glGetUniformfv() argument
1177 int location, in glGetUniformfv() argument
1185 int location, in glGetUniformiv() argument
1194 int location, in glGetUniformiv() argument
1511 int location, in glUniform1f() argument
1518 int location, in glUniform1fv() argument
1527 int location, in glUniform1fv() argument
1535 int location, in glUniform1i() argument
1542 int location, in glUniform1iv() argument
1551 int location, in glUniform1iv() argument
[all …]
/frameworks/base/docs/html/guide/topics/location/
Dstrategies.jd17 <li><a href="#Flow">Flow for obtaining user location</a></li>
19 <li><a href="#FastFix">Getting a fast fix with the last known location</a></li>
29 <li>{@link android.location.LocationManager}</li>
30 <li>{@link android.location.LocationListener}</li>
36 <strong>Note:</strong> The strategies described in this guide apply to the platform location
37 API in {@link android.location}. The Google Location Services API, part of Google Play
38 Services, provides a more powerful, high-level framework that automatically handles location
39 providers, user movement, and location accuracy. It also handles
40 location update scheduling based on power consumption parameters you provide. In most cases,
46 <a href="{@docRoot}google/play-services/location.html">Google Location Services for Android</a>.
[all …]
Dindex.jd10 <li><a href="#location">Location Services</a></li>
18 <strong>Note:</strong> This is a guide to the <i>Android framework</i> location APIs in the
19 package {@link android.location}. The Google Location Services API, part of Google Play
21 location provider choice and power management. Location Services also provides new
23 are using the framework API, as well as developers who are just now adding location-awareness
28 <a href="{@docRoot}google/play-services/location.html">Google Location Services for Android</a>.
34 android.location} package and the Google Maps Android API. The sections below provide
38 <h2 id="location">Location Services</h2>
40 <p>Android gives your applications access to the location services supported by
41 the device through classes in the {@code android.location} package. The
[all …]
/frameworks/native/opengl/tools/glgen/specs/gles11/
DGLES31.spec20 void glProgramUniform1i ( GLuint program, GLint location, GLint v0 )
21 void glProgramUniform2i ( GLuint program, GLint location, GLint v0, GLint v1 )
22 void glProgramUniform3i ( GLuint program, GLint location, GLint v0, GLint v1, GLint v2 )
23 void glProgramUniform4i ( GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3 )
24 void glProgramUniform1ui ( GLuint program, GLint location, GLuint v0 )
25 void glProgramUniform2ui ( GLuint program, GLint location, GLuint v0, GLuint v1 )
26 void glProgramUniform3ui ( GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2 )
27 void glProgramUniform4ui ( GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint …
28 void glProgramUniform1f ( GLuint program, GLint location, GLfloat v0 )
29 void glProgramUniform2f ( GLuint program, GLint location, GLfloat v0, GLfloat v1 )
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/text/
DPrimitive.java25 public final int location; field in Primitive
36 private Primitive(@NonNull PrimitiveType type, int location, float width, float penalty) { in Primitive() argument
38 this.location = location; in Primitive()
69 public Primitive getNewPrimitive(int location) { in getNewPrimitive() argument
71 return new Primitive(this, location, 0f, 0f); in getNewPrimitive()
74 public Primitive getNewPrimitive(int location, float value) { in getNewPrimitive() argument
77 return new Primitive(this, location, value, 0f); in getNewPrimitive()
79 return new Primitive(this, location, 0f, value); in getNewPrimitive()
83 public Primitive getNewPrimitive(int location, float width, float penalty) { in getNewPrimitive() argument
85 return new Primitive(this, location, width, penalty); in getNewPrimitive()
/frameworks/base/docs/html/training/location/
Dreceive-location-updates.jd10 <li><a href="#get-last-location">Get the Last Known Location</a></li>
32 …<a href="https://github.com/googlesamples/android-play-location/tree/master/LocationUpdates" class…
38 <p>If your app can continuously track location, it can deliver more relevant
40 way while walking or driving, or if your app tracks the location of assets, it
41 needs to get the location of the device at regular intervals. As well as the
42 geographical location (latitude and longitude), you may want to give the user
45 in the {@link android.location.Location} object that your app can retrieve
47 <a href="{@docRoot}reference/com/google/android/gms/location/FusedLocationProviderApi.html">fused
48 location provider</a>.</p>
50 <p>While you can get a device's location with
[all …]
Dchange-location-settings.jd11 <li><a href="#location-request">Set Up a Location Request</a></li>
29 <p>If your app needs to request location or receive permission updates, the
35 …<a href="https://developers.google.com/android/reference/com/google/android/gms/location/LocationR…
40 …<a href="https://developers.google.com/android/reference/com/google/android/gms/location/SettingsA…
46 <p>In order to use the location services provided by Google Play Services and
47 the fused location provider, connect your app using the
49 then check the current location settings and prompt the user to enable the
53 <p>Apps that use location services must request location permissions. For this
54 lesson, coarse location detection is sufficient. Request this permission
59 package="com.google.android.gms.location.sample.locationupdates" &gt;
[all …]
Dindex.jd2 page.tags=location,geofence,geofencing,activity recognition,activity detection,gps
41 One of the unique features of mobile applications is location awareness.
42 Mobile users take their devices with them everywhere, and adding location
43 awareness to your app offers users a more contextual experience. The location
44 APIs available in Google Play services facilitate adding location awareness to
45 your app with automated location tracking, geofencing, and activity
50 <a href="{@docRoot}reference/com/google/android/gms/location/package-summary.html">Google
51 Play services location APIs</a> are preferred over the Android framework
52 location APIs
53 (<a href="{@docRoot}reference/android/location/package-summary.html">android.location</a>)
[all …]
Dretrieve-current.jd27 …<a href="https://github.com/googlesamples/android-play-location/tree/master/BasicLocationSample" c…
33 <p>Using the Google Play services location APIs, your app can request the last
34 known location of the user's device. In most cases, you are interested in the
35 user's current location, which is usually equivalent to the last known
36 location of the device.</p>
39 <a href="{@docRoot}reference/com/google/android/gms/location/FusedLocationProviderApi.html">fused
40 location provider</a> to retrieve the device's last known location. The fused
41 location provider is one of the location APIs in Google Play services. It
42 manages the underlying location technology and provides a simple API so that
46 <p>This lesson shows you how to make a single request for the location of a
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStaggeredGridDefault.java286 int location = mReversedFlow ? getRowMin(rowIndex) : getRowMax(rowIndex); in appendVisibleItemsWithoutCache() local
287 if (location == Integer.MAX_VALUE || location == Integer.MIN_VALUE) { in appendVisibleItemsWithoutCache()
290location = mReversedFlow ? getRowMin(mNumRows - 1) : getRowMax(mNumRows - 1); in appendVisibleItemsWithoutCache()
291 if (location != Integer.MAX_VALUE && location != Integer.MIN_VALUE) { in appendVisibleItemsWithoutCache()
292 location = location + (mReversedFlow ? -mMargin : mMargin); in appendVisibleItemsWithoutCache()
295location = mReversedFlow ? getRowMax(rowIndex - 1) : getRowMin(rowIndex - 1); in appendVisibleItemsWithoutCache()
298 location = location + (mReversedFlow ? -mMargin : mMargin); in appendVisibleItemsWithoutCache()
300 int size = appendVisibleItemToRow(itemIndex++, rowIndex, location); in appendVisibleItemsWithoutCache()
305 while (mReversedFlow ? location - size > edgeLimit : in appendVisibleItemsWithoutCache()
306 location + size < edgeLimit) { in appendVisibleItemsWithoutCache()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DFlpHardwareProvider.java17 package com.android.server.location;
20 import android.hardware.location.GeofenceHardware;
21 import android.hardware.location.GeofenceHardwareImpl;
22 import android.hardware.location.GeofenceHardwareRequestParcelable;
23 import android.hardware.location.IFusedLocationHardware;
24 import android.hardware.location.IFusedLocationHardwareSink;
25 import android.location.FusedBatchOptions;
26 import android.location.IFusedGeofenceHardware;
27 import android.location.Location;
28 import android.location.LocationListener;
[all …]
DLocationBasedCountryDetector.java17 package com.android.server.location;
20 import android.location.Address;
21 import android.location.Country;
22 import android.location.Geocoder;
23 import android.location.Location;
24 import android.location.LocationListener;
25 import android.location.LocationManager;
75 protected String getCountryFromLocation(Location location) { in getCountryFromLocation() argument
80 location.getLatitude(), location.getLongitude(), 1); in getCountryFromLocation()
178 public void onLocationChanged(Location location) { in detectCountry()
[all …]
DPassiveProvider.java17 package com.android.server.location;
22 import com.android.internal.location.ProviderProperties;
23 import com.android.internal.location.ProviderRequest;
25 import android.location.Criteria;
26 import android.location.ILocationManager;
27 import android.location.Location;
28 import android.location.LocationManager;
29 import android.location.LocationProvider;
99 public void updateLocation(Location location) { in updateLocation() argument
103 mLocationManager.reportLocation(location, true); in updateLocation()
DGeofenceManager.java17 package com.android.server.location;
28 import android.location.Geofence;
29 import android.location.Location;
30 import android.location.LocationListener;
31 import android.location.LocationManager;
32 import android.location.LocationRequest;
213 Location location = mReceivingLocationUpdates ? mLastLocationUpdate : null; in getFreshLocationLocked() local
214 if (location == null && !mFences.isEmpty()) { in getFreshLocationLocked()
215 location = mLocationManager.getLastLocation(); in getFreshLocationLocked()
219 if (location == null) { in getFreshLocationLocked()
[all …]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DLocationStatsAggregator.java25 import android.location.Criteria;
26 import android.location.Location;
27 import android.location.LocationListener;
28 import android.location.LocationManager;
29 import android.location.LocationProvider;
128 String location = mClusterManager.getSemanticLocation(); in getFeatureValue() local
129 if (!location.equals(UNKNOWN_LOCATION)) { in getFeatureValue()
133 feature.put(CURRENT_LOCATION, location); in getFeatureValue()
161 Location location = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation() local
163 if (location != null) { in getLastKnownLocation()
[all …]
DLocationCluster.java18 import android.location.Location;
48 public LocationCluster(Location location, long duration) { in LocationCluster() argument
49 super(location); in LocationCluster()
50 addSample(location, duration); in LocationCluster()
53 public void addSample(Location location, long duration) { in addSample() argument
54 updateTemporalHistogram(location.getTime(), duration); in addSample()
58 location.setTime(duration); in addSample()
59 mLocations.add(location); in addSample()
71 for (Location location : mLocations) { in consolidate()
72 double[] vector = getLocationVector(location); in consolidate()
[all …]
/frameworks/base/location/java/android/location/
DILocationManager.aidl17 package android.location;
20 import android.location.Address;
21 import android.location.Criteria;
22 import android.location.GeocoderParams;
23 import android.location.Geofence;
24 import android.location.IGnssMeasurementsListener;
25 import android.location.IGnssStatusListener;
26 import android.location.IGnssNavigationMessageListener;
27 import android.location.ILocationListener;
28 import android.location.Location;
[all …]
/frameworks/base/docs/html/training/articles/
Dwear-location-detection.jd27 <li><a href="{@docRoot}training/location/index.html">Making Your App Location-Aware
35 respond to location data.</p>
37 <p>Some wearable devices include a GPS sensor that can retrieve location data without another
38 tethered device. However, when you request location data in a wearable app, you don't have to worry
39 about where the location data originates; the system retrieves the location updates using the most
40 power-efficient method. Your app should be able to handle loss of location data, in case the wear
43 <p>This document shows you how to check for on-device location sensors, receive location data, and
47 API to retrieve location data. For more information, see <a href="{@docRoot}training/
48 location/index.html">Making Your App Location-Aware</a>.</p>
52 <p>Location data on wearable devices is obtained though the Google Play services location APIs. You
[all …]
/frameworks/native/opengl/libs/GLES2/
Dgl2_api.in223 void API_ENTRY(glGetUniformfv)(GLuint program, GLint location, GLfloat *params) {
224 CALL_GL_API(glGetUniformfv, program, location, params);
226 void API_ENTRY(glGetUniformiv)(GLuint program, GLint location, GLint *params) {
227 CALL_GL_API(glGetUniformiv, program, location, params);
334 void API_ENTRY(glUniform1f)(GLint location, GLfloat v0) {
335 CALL_GL_API(glUniform1f, location, v0);
337 void API_ENTRY(glUniform1fv)(GLint location, GLsizei count, const GLfloat *value) {
338 CALL_GL_API(glUniform1fv, location, count, value);
340 void API_ENTRY(glUniform1i)(GLint location, GLint v0) {
341 CALL_GL_API(glUniform1i, location, v0);
[all …]
/frameworks/base/core/java/android/hardware/location/
DIContextHubService.aidl17 package android.hardware.location;
20 import android.hardware.location.ContextHubMessage;
21 import android.hardware.location.ContextHubInfo;
22 import android.hardware.location.NanoApp;
23 import android.hardware.location.NanoAppInstanceInfo;
24 import android.hardware.location.NanoAppFilter;
25 import android.hardware.location.IContextHubCallback;
DIGeofenceHardware.aidl17 package android.hardware.location;
19 import android.location.IFusedGeofenceHardware;
20 import android.location.IGpsGeofenceHardware;
21 import android.hardware.location.GeofenceHardwareRequestParcelable;
22 import android.hardware.location.IGeofenceHardwareCallback;
23 import android.hardware.location.IGeofenceHardwareMonitorCallback;
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java27 import android.location.Location;
28 import android.location.LocationListener;
29 import android.location.LocationManager;
209 final Location location = mLastLocation != null ? mLastLocation in updateTwilightState() local
211 final TwilightState state = calculateTwilightState(location, currentTimeMillis); in updateTwilightState()
249 public void onLocationChanged(Location location) { in onLocationChanged() argument
253 if (location != null in onLocationChanged()
254 && !(location.getLongitude() == 0.0 && location.getLatitude() == 0.0)) { in onLocationChanged()
256 + " provider=" + location.getProvider() in onLocationChanged()
257 + " accuracy=" + location.getAccuracy() in onLocationChanged()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DTwilightManager.java21 import android.location.Location;
22 import android.location.LocationManager;
82 final Location location = getLastKnownLocation(); in isNight() local
83 if (location != null) { in isNight()
84 updateState(location); in isNight()
141 private void updateState(@NonNull Location location) { in updateState() argument
148 location.getLatitude(), location.getLongitude()); in updateState()
152 calculator.calculateTwilight(now, location.getLatitude(), location.getLongitude()); in updateState()
159 location.getLatitude(), location.getLongitude()); in updateState()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
DLocation.java120 Location location = (Location) o;
122 if (endLine != location.endLine) {
125 if (endOffset != location.endOffset) {
128 if (startLine != location.startLine) {
131 if (startOffset != location.startOffset) {
134 return !(parentLocation != null ? !parentLocation.equals(location.parentLocation)
135 : location.parentLocation != null);
206 Location location = new Location(); in fromUserReadableString() local
208 location.startLine = point[0]; in fromUserReadableString()
209 location.startOffset = point[1]; in fromUserReadableString()
[all …]

12345678910>>...23