Home
last modified time | relevance | path

Searched refs:latitude (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssGeofenceProxy.java33 public double latitude; field in GnssGeofenceProxy.GeofenceEntry
64 public boolean addCircularHardwareGeofence(int geofenceId, double latitude, in addCircularHardwareGeofence() argument
68 boolean added = mGnssNative.addGeofence(geofenceId, latitude, longitude, radius, in addCircularHardwareGeofence()
74 entry.latitude = latitude; in addCircularHardwareGeofence()
132 boolean added = mGnssNative.addGeofence(entry.geofenceId, entry.latitude, in onHalRestarted()
/frameworks/base/services/core/java/com/android/server/location/fudger/
DLocationFudger.java158 double latitude = wrapLatitude(coarse.getLatitude()); in createCoarse() local
162 longitude += wrapLongitude(metersToDegreesLongitude(mLongitudeOffsetM, latitude)); in createCoarse()
163 latitude += wrapLatitude(metersToDegreesLatitude(mLatitudeOffsetM)); in createCoarse()
172 latitude = wrapLatitude(Math.round(latitude / latGranularity) * latGranularity); in createCoarse()
173 double lonGranularity = metersToDegreesLongitude(mAccuracyM, latitude); in createCoarse()
176 coarse.setLatitude(latitude); in createCoarse()
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareRequest.java42 private void setCircularGeofence(double latitude, double longitude, double radius) { in setCircularGeofence() argument
43 mLatitude = latitude; in setCircularGeofence()
56 public static GeofenceHardwareRequest createCircularGeofence(double latitude, in createCircularGeofence() argument
59 geofenceRequest.setCircularGeofence(latitude, longitude, radius); in createCircularGeofence()
/frameworks/base/location/java/android/location/
DGeofence.java53 public static Geofence createCircle(double latitude, double longitude, float radius, in createCircle() argument
55 return new Geofence(latitude, longitude, radius, expirationRealtimeMs); in createCircle()
58 Geofence(double latitude, double longitude, float radius, long expirationRealtimeMs) { in Geofence() argument
59 Preconditions.checkArgumentInRange(latitude, -90.0, 90.0, "latitude"); in Geofence()
63 mLatitude = latitude; in Geofence()
DGeocoder.java128 @FloatRange(from = -90D, to = 90D) double latitude, in getFromLocation()
133 getFromLocation(latitude, longitude, maxResults, listener); in getFromLocation()
155 @FloatRange(from = -90D, to = 90D) double latitude, in getFromLocation()
159 Preconditions.checkArgumentInRange(latitude, -90.0, 90.0, "latitude"); in getFromLocation()
163 mService.getFromLocation(latitude, longitude, maxResults, mParams, in getFromLocation()
DIGpsGeofenceHardware.aidl27 boolean addCircularHardwareGeofence(int geofenceId, double latitude, double in addCircularHardwareGeofence() argument
DIGeocodeProvider.aidl30 …oneway void getFromLocation(double latitude, double longitude, int maxResults, in GeocoderParams p… in getFromLocation() argument
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/
DLocationUtils.java56 public static Location createLocation(String provider, double latitude, double longitude, in createLocation() argument
59 location.setLatitude(latitude); in createLocation()
67 public static LocationResult createLocationResult(String provider, double latitude, in createLocationResult() argument
69 return LocationResult.wrap(createLocation(provider, latitude, longitude, accuracy)); in createLocationResult()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraSettings.java70 public final double latitude; field in CameraSettings.GpsData
84 public GpsData(double latitude, double longitude, double altitude, long timeStamp, in GpsData() argument
87 (latitude != 0.0 || longitude != 0.0 || altitude != 0.0)) { in GpsData()
90 this.latitude = latitude; in GpsData()
99 this.latitude = src.latitude; in GpsData()
/frameworks/base/location/lib/java/com/android/location/provider/
DGeocodeProvider.java44 public void getFromLocation(double latitude, double longitude, int maxResults,
47 String error = onGetFromLocation(latitude, longitude, maxResults, params, results);
77 public abstract String onGetFromLocation(double latitude, double longitude, int maxResults, in onGetFromLocation() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/twilight/
DTwilightServiceTest.java62 private Location createMockLocation(double latitude, double longitude) { in createMockLocation() argument
66 location.setLatitude(latitude); in createMockLocation()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/hal/
DFakeGnssHal.java193 public GnssHalGeofence(int geofenceId, double latitude, double longitude, double radius, in GnssHalGeofence() argument
198 Center.setLatitude(latitude); in GnssHalGeofence()
437 protected void injectLocation(@GnssLocationFlags int gnssLocationFlags, double latitude, in injectLocation() argument
443 mState.mInjectedLocation.setLatitude(latitude); in injectLocation()
449 protected void injectBestLocation(@GnssLocationFlags int gnssLocationFlags, double latitude, in injectBestLocation() argument
456 mState.mInjectedBestLocation.setLatitude(latitude); in injectBestLocation()
606 protected boolean addGeofence(int geofenceId, double latitude, double longitude, double radius, in addGeofence() argument
614 new GnssHalGeofence(geofenceId, latitude, longitude, radius, lastTransition, in addGeofence()
/frameworks/base/media/java/android/media/
DMediaMuxer.java298 private static native void nativeSetLocation(long nativeObject, int latitude, int longitude); in nativeSetLocation() argument
432 public void setLocation(float latitude, float longitude) { in setLocation() argument
433 int latitudex10000 = (int) (latitude * 10000 + 0.5); in setLocation()
437 String msg = "Latitude: " + latitude + " out of range."; in setLocation()
/frameworks/av/media/libstagefright/tests/fuzzers/
DMediaMuxerFuzzer.cpp79 int latitude = fdp.ConsumeIntegral<int>(); in LLVMFuzzerTestOneInput() local
81 mMuxer->setLocation(latitude, longitude); in LLVMFuzzerTestOneInput()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsCallProfileTest.java100 double latitude = 123; in testCallComposerExtras() local
102 testLocation.setLatitude(latitude); in testCallComposerExtras()
107 assertEquals(latitude, testGetLocation.getLatitude(), 0); in testCallComposerExtras()
/frameworks/base/services/core/java/com/android/server/location/
DGeocoderProxy.java76 public void getFromLocation(double latitude, double longitude, int maxResults, in getFromLocation() argument
82 provider.getFromLocation(latitude, longitude, maxResults, params, listener); in getFromLocation()
/frameworks/av/media/ndk/
DNdkMediaMuxer.cpp65 media_status_t AMediaMuxer_setLocation(AMediaMuxer *muxer, float latitude, float longtitude) { in AMediaMuxer_setLocation() argument
66 return translate_error(muxer->mImpl->setLocation(latitude * 10000, longtitude * 10000)); in AMediaMuxer_setLocation()
/frameworks/av/media/libstagefright/
DMediaMuxer.cpp134 status_t MediaMuxer::setLocation(int latitude, int longitude) { in setLocation() argument
145 ALOGV("Setting location: latitude = %d, longitude = %d", latitude, longitude); in setLocation()
146 return static_cast<MPEG4Writer*>(mWriter.get())->setGeoData(latitude, longitude); in setLocation()
/frameworks/native/opengl/tests/angeles/
Ddemo.c210 int a, longitude, latitude; in createSuperShape() local
228 for (latitude = latitudeBegin; latitude < latitudeEnd; ++latitude) in createSuperShape()
232 float p1 = -PI / 2 + latitude * 2 * PI / resol2; in createSuperShape()
233 float p2 = -PI / 2 + (latitude + 1) * 2 * PI / resol2; in createSuperShape()
255 if (latitude == latitudeBegin + 1) in createSuperShape()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaMuxerBase.h83 virtual status_t setLocation(int latitude, int longitude) = 0;
DMediaMuxer.h87 status_t setLocation(int latitude, int longitude);
/frameworks/av/media/ndk/include/media/
DNdkMediaMuxer.h96 float latitude, float longitude) __INTRODUCED_IN(21);
/frameworks/base/services/core/java/com/android/server/location/gnss/hal/
DGnssNative.java894 public boolean addGeofence(int geofenceId, double latitude, double longitude, double radius, in addGeofence() argument
898 return mGnssHal.addGeofence(geofenceId, latitude, longitude, radius, lastTransition, in addGeofence()
1334 protected void injectLocation(@GnssLocationFlags int gnssLocationFlags, double latitude, in injectLocation() argument
1339 native_inject_location(gnssLocationFlags, latitude, longitude, altitude, speed, in injectLocation()
1345 protected void injectBestLocation(@GnssLocationFlags int gnssLocationFlags, double latitude, in injectBestLocation() argument
1350 native_inject_best_location(gnssLocationFlags, latitude, longitude, altitude, speed, in injectBestLocation()
1451 protected boolean addGeofence(int geofenceId, double latitude, double longitude, in addGeofence() argument
1454 return native_add_geofence(geofenceId, latitude, longitude, radius, lastTransition, in addGeofence()
1616 private static native boolean native_add_geofence(int geofenceId, double latitude, in native_add_geofence() argument
/frameworks/base/media/jni/
Dandroid_media_MediaMuxer.cpp192 JNIEnv *env, jclass /* clazz */, jlong nativeObject, jint latitude, jint longitude) { in android_media_MediaMuxer_setLocation() argument
195 status_t res = muxer->setLocation(latitude, longitude); in android_media_MediaMuxer_setLocation()
/frameworks/base/packages/FusedLocation/test/src/com/android/location/fused/tests/
DFusedLocationServiceTest.java196 private static Location createLocation(String provider, double latitude, double longitude, in createLocation() argument
199 location.setLatitude(latitude); in createLocation()

12