/frameworks/base/docs/html/training/basics/location/ |
D | currentlocation.jd | 30 <li><a href="{@docRoot}guide/topics/location/index.html">Location and Maps</a></li> 44 …p your application to work with {@link android.location.LocationManager}, you can begin to obtain … 48 …location.LocationManager} class exposes a number of methods for applications to receive location u… 51 …location listener is set up to receive notifications at least every 10 seconds and if the device m… 58 public void onLocationChanged(Location location) { 59 // A new location update is received. Do something useful with it. In this case, 61 // location. 64 location.getLatitude() + ", " + 65 location.getLongitude()).sendToTarget(); 80 …location provider with greater accuracy (GPS) requires a longer fix time than one with lower accur… [all …]
|
D | locationmanager.jd | 27 <li><a href="{@docRoot}guide/topics/location/index.html">Location and Maps</a></li> 41 <p>Before your application can begin receiving location updates, it needs to perform some simple st… 45 <p>The first step of setting up location update access is to declare proper permissions in the mani… 47 …location.LocationManager} methods used, either {@link android.Manifest.permission#ACCESS_COARSE_LO… 50 <p>Also, if a network-based location provider is used in the application, you'll need to declare th… 59 …location.LocationManager} is the main class through which your application can access location ser… 68 …location updates through multiple underlying technologies, which are abstracted to an application … 70 …location provider, or multiple providers, based on similar tradeoffs. For example, a points of in… 77 …d so on, and let Android decide a closest match location provider. The snippet below asks for a l… 80 // Retrieve a list of location providers that have fine accuracy, no monetary cost, etc [all …]
|
D | index.jd | 22 <li><a href="{@docRoot}guide/topics/location/index.html">Location and Maps</a></li> 36 …the unique features available to mobile applications is location awareness. Knowing the location … 38 …you how to incorporate location based services in your Android application. You'll learn a number… 44 <dd>Learn how to set up your application before it can receive location updates in Android.</dd> 47 …<dd>Learn how to work with underlying location technologies available on the platform to obtain cu… 50 <dd>Learn how to translate location coordinates into addresses that are readable to users.</dd>
|
/frameworks/base/docs/html/guide/topics/location/ |
D | strategies.jd | 11 <li>The Network Location Provider provides good location data without using GPS</li> 12 <li>Obtaining user location can consume a lot of battery, so be careful how 25 <li><a href="#Flow">Flow for obtaining user location</a></li> 27 <li><a href="#FastFix">Getting a fast fix with the last known location</a></li> 37 <li>{@link android.location.LocationManager}</li> 38 <li>{@link android.location.LocationListener}</li> 44 better information to the user. When developing a location-aware application for Android, you can 45 utilize GPS and Android's Network Location Provider to acquire the user location. Although 47 the location as quickly as users want. Android's Network Location Provider determines user location 48 using cell tower and Wi-Fi signals, providing location information in a way that [all …]
|
D | index.jd | 9 <li>Android provides a location framework that your application can use to determine the 10 device's location and bearing and register for updates</li> 16 <li><a href="{@docRoot}guide/topics/location/strategies.html">Location Strategies</a></li> 30 android.location} package and the Google Maps external library. The sections below provide details. 33 <h2 id="location">Location Services</h2> 35 <p>Android gives your applications access to the location services supported by 36 the device through the classes in the {@code android.location} package. The 37 central component of the location framework is the 38 {@link android.location.LocationManager} system service, which provides APIs to 39 determine location and bearing of the underlying device (if available). </p> [all …]
|
/frameworks/base/services/java/com/android/server/location/ |
D | LocationBasedCountryDetector.java | 17 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; 74 protected String getCountryFromLocation(Location location) { in getCountryFromLocation() argument 79 location.getLatitude(), location.getLongitude(), 1); in getCountryFromLocation() 160 public void onLocationChanged(Location location) { in detectCountry() [all …]
|
D | PassiveProvider.java | 17 package com.android.server.location; 19 import android.location.Criteria; 20 import android.location.ILocationManager; 21 import android.location.Location; 22 import android.location.LocationManager; 23 import android.location.LocationProvider; 133 public void updateLocation(Location location) { in updateLocation() argument 137 mLocationManager.reportLocation(location, true); in updateLocation()
|
D | LocationProviderInterface.java | 17 package com.android.server.location; 19 import android.location.Criteria; 20 import android.location.Location; 53 void updateLocation(Location location); in updateLocation() argument
|
/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 82 public void draw(Canvas canvas, RectF location) { in draw() argument 84 nativeDraw(canvas.mNativeCanvas, location, in draw() 89 canvas.drawPatch(mBitmap, mChunk, location, mPaint); in draw() 99 public void draw(Canvas canvas, Rect location) { in draw() argument 101 nativeDraw(canvas.mNativeCanvas, location, in draw() 106 mRect.set(location); in draw() 118 public void draw(Canvas canvas, Rect location, Paint paint) { in draw() argument 120 nativeDraw(canvas.mNativeCanvas, location, in draw() 124 mRect.set(location); in draw() 149 public final Region getTransparentRegion(Rect location) { in getTransparentRegion() argument [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLES20.java | 1167 int location, in glGetUniformfv() argument 1176 int location, in glGetUniformfv() argument 1184 int location, in glGetUniformiv() argument 1193 int location, in glGetUniformiv() argument 1526 int location, in glUniform1f() argument 1533 int location, in glUniform1fv() argument 1542 int location, in glUniform1fv() argument 1550 int location, in glUniform1i() argument 1557 int location, in glUniform1iv() argument 1566 int location, in glUniform1iv() argument [all …]
|
/frameworks/base/location/lib/java/com/android/location/provider/ |
D | LocationProvider.java | 17 package com.android.location.provider; 21 import android.location.Criteria; 22 import android.location.ILocationManager; 23 import android.location.ILocationProvider; 24 import android.location.Location; 120 public void updateLocation(Location location) { 121 LocationProvider.this.onUpdateLocation(location); 167 public void reportLocation(Location location) { in reportLocation() argument 169 mLocationManager.reportLocation(location, false); in reportLocation() 330 public abstract void onUpdateLocation(Location location); in onUpdateLocation() argument
|
/frameworks/base/location/java/android/location/ |
D | ILocationManager.aidl | 17 package android.location; 20 import android.location.Address; 21 import android.location.Criteria; 22 import android.location.GeocoderParams; 23 import android.location.IGeocodeProvider; 24 import android.location.IGpsStatusListener; 25 import android.location.ILocationListener; 26 import android.location.Location; 68 void reportLocation(in Location location, boolean passive); in reportLocation() argument
|
D | ILocationProvider.aidl | 17 package android.location; 19 import android.location.Criteria; 20 import android.location.Location; 49 void updateLocation(in Location location); in updateLocation() argument
|
/frameworks/native/opengl/libs/GLES2/ |
D | gl2ext_api.in | 154 void API_ENTRY(glGetnUniformfvEXT)(GLuint program, GLint location, GLsizei bufSize, float *params) { 155 CALL_GL_API(glGetnUniformfvEXT, program, location, bufSize, params); 157 void API_ENTRY(glGetnUniformivEXT)(GLuint program, GLint location, GLsizei bufSize, GLint *params) { 158 CALL_GL_API(glGetnUniformivEXT, program, location, bufSize, params); 187 void API_ENTRY(glProgramUniform1iEXT)(GLuint program, GLint location, GLint x) { 188 CALL_GL_API(glProgramUniform1iEXT, program, location, x); 190 void API_ENTRY(glProgramUniform2iEXT)(GLuint program, GLint location, GLint x, GLint y) { 191 CALL_GL_API(glProgramUniform2iEXT, program, location, x, y); 193 void API_ENTRY(glProgramUniform3iEXT)(GLuint program, GLint location, GLint x, GLint y, GLint z) { 194 CALL_GL_API(glProgramUniform3iEXT, program, location, x, y, z); [all …]
|
D | gl2_api.in | 223 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 x) { 335 CALL_GL_API(glUniform1f, location, x); 337 void API_ENTRY(glUniform1fv)(GLint location, GLsizei count, const GLfloat* v) { 338 CALL_GL_API(glUniform1fv, location, count, v); 340 void API_ENTRY(glUniform1i)(GLint location, GLint x) { 341 CALL_GL_API(glUniform1i, location, x); [all …]
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
D | TrackerService.java | 28 import android.location.Location; 29 import android.location.LocationListener; 30 import android.location.LocationManager; 280 private synchronized float getDistanceFromNetwork(Location location) { in getDistanceFromNetwork() argument 283 value = location.distanceTo(mNetworkLocation); in getDistanceFromNetwork() 285 if (LocationManager.NETWORK_PROVIDER.equals(location.getProvider())) { in getDistanceFromNetwork() 286 mNetworkLocation = location; in getDistanceFromNetwork() 300 public void onLocationChanged(Location location) { in onLocationChanged() argument 301 if (location == null) { in onLocationChanged() 304 float distance = getDistanceFromNetwork(location); in onLocationChanged() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | GeolocationService.java | 21 import android.location.Location; 22 import android.location.LocationListener; 23 import android.location.LocationManager; 24 import android.location.LocationProvider; 100 public void onLocationChanged(Location location) { in onLocationChanged() argument 105 nativeNewLocationAvailable(mNativeObject, location); in onLocationChanged() 199 private static native void nativeNewLocationAvailable(long nativeObject, Location location); in nativeNewLocationAvailable() argument
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerEntry.java | 21 import android.location.Location; 131 private void setLocation(Location location) { in setLocation() argument 132 mLocation = location; in setLocation() 215 Location location = new Location(tag); in createEntry() local 216 location.setLatitude(cursor.getFloat(cursor in createEntry() 218 location.setLongitude(cursor.getFloat(cursor in createEntry() 223 location.setAccuracy(accuracy); in createEntry() 227 location.setAltitude(altitude); in createEntry() 231 location.setBearing(bearing); in createEntry() 235 location.setSpeed(speed); in createEntry() [all …]
|
/frameworks/native/opengl/tools/glgen/specs/gles11/ |
D | GLES20.spec | 76 void glGetUniformfv ( GLuint program, GLint location, GLfloat *params ) 77 void glGetUniformiv ( GLuint program, GLint location, GLint *params ) 113 void glUniform1f ( GLint location, GLfloat x ) 114 void glUniform1fv ( GLint location, GLsizei count, const GLfloat *v ) 115 void glUniform1i ( GLint location, GLint x ) 116 void glUniform1iv ( GLint location, GLsizei count, const GLint *v ) 117 void glUniform2f ( GLint location, GLfloat x, GLfloat y ) 118 void glUniform2fv ( GLint location, GLsizei count, const GLfloat *v ) 119 void glUniform2i ( GLint location, GLint x, GLint y ) 120 void glUniform2iv ( GLint location, GLsizei count, const GLint *v ) [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | NeighboringCellInfo.java | 113 public NeighboringCellInfo(int rssi, String location, int radioType) { in NeighboringCellInfo() argument 123 int l = location.length(); in NeighboringCellInfo() 127 location = "0" + location; in NeighboringCellInfo() 137 if (!location.equalsIgnoreCase("FFFFFFFF")) { in NeighboringCellInfo() 138 mCid = Integer.valueOf(location.substring(4), 16); in NeighboringCellInfo() 139 mLac = Integer.valueOf(location.substring(0, 4), 16); in NeighboringCellInfo() 147 mPsc = Integer.valueOf(location, 16); in NeighboringCellInfo()
|
/frameworks/native/opengl/libs/ |
D | trace.in | 222 …mfv, (GLuint program, GLint location, GLfloat* params), (program, location, params), 3, "GLuint", … 223 …rmiv, (GLuint program, GLint location, GLint* params), (program, location, params), 3, "GLuint", p… 227 … program, GLint location, GLsizei bufSize, float *params), (program, location, bufSize, params), 4… 228 … program, GLint location, GLsizei bufSize, GLint *params), (program, location, bufSize, params), 4… 310 …form1fEXT, (GLuint program, GLint location, GLfloat x), (program, location, x), 3, "GLuint", progr… 311 …program, GLint location, GLsizei count, const GLfloat *value), (program, location, count, value), … 312 …iform1iEXT, (GLuint program, GLint location, GLint x), (program, location, x), 3, "GLuint", progra… 313 … program, GLint location, GLsizei count, const GLint *value), (program, location, count, value), 4… 314 …XT, (GLuint program, GLint location, GLfloat x, GLfloat y), (program, location, x, y), 4, "GLuint"… 315 …program, GLint location, GLsizei count, const GLfloat *value), (program, location, count, value), … [all …]
|
/frameworks/base/services/java/com/android/server/ |
D | UiModeManagerService.java | 35 import android.location.Criteria; 36 import android.location.Location; 37 import android.location.LocationListener; 38 import android.location.LocationManager; 257 public void onLocationChanged(Location location) { 272 public void onLocationChanged(Location location) { 273 final boolean hasMoved = hasMoved(location); 275 || location.getAccuracy() < mLocation.getAccuracy(); 278 mLocation = location; 300 private boolean hasMoved(Location location) { [all …]
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/ |
D | ExternalSharedPermsFLTest.java | 20 import android.location.Location; 21 import android.location.LocationListener; 22 import android.location.LocationManager; 37 public void onLocationChanged(Location location) {} in testRunFineLocation()
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/ |
D | ExternalSharedPermsTest.java | 20 import android.location.Location; 21 import android.location.LocationListener; 22 import android.location.LocationManager; 42 public void onLocationChanged(Location location) {} in testRunLocationAndBluetooth()
|
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/ |
D | ExternalSharedPermsDiffKeyTest.java | 21 import android.location.Location; 22 import android.location.LocationListener; 23 import android.location.LocationManager; 40 public void onLocationChanged(Location location) {} in testRunBluetoothAndFineLocation()
|