Home
last modified time | relevance | path

Searched refs:bearing (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/location/tests/locationtests/src/android/location/
DLocationTest.java127 float bearing; in testBearingTo() local
136 bearing = zeroLocation.bearingTo(zeroLocation); in testBearingTo()
137 message = "bearingToTest: Bearing should be 0, actual value is " + String.valueOf(bearing); in testBearingTo()
138 assertEquals(message, 0, bearing, 0); in testBearingTo()
140 bearing = zeroLocation.bearingTo(testLocation); in testBearingTo()
142 String.valueOf(bearing); in testBearingTo()
143 assertEquals(message, 180, bearing, 0); in testBearingTo()
147 bearing = zeroLocation.bearingTo(testLocation); in testBearingTo()
149 String.valueOf(bearing); in testBearingTo()
150 assertEquals(message, -90, bearing, 0); in testBearingTo()
/frameworks/base/location/java/android/location/
DLocation.java698 public void setBearing(float bearing) { in setBearing() argument
699 while (bearing < 0.0f) { in setBearing()
700 bearing += 360.0f; in setBearing()
702 while (bearing >= 360.0f) { in setBearing()
703 bearing -= 360.0f; in setBearing()
705 mBearing = bearing; in setBearing()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerEntry.java229 Float bearing = getNullableFloat(cursor, BEARING); in createEntry() local
230 if (bearing != null) { in createEntry()
231 location.setBearing(bearing); in createEntry()
/frameworks/base/services/core/java/com/android/server/location/
DGnssLocationProvider.java1450 float speed, float bearing, float accuracy, long timestamp) { in reportLocation() argument
1475 mLocation.setBearing(bearing); in reportLocation()
1734 float bearing,
1751 location.setBearing(bearing);
1786 double longitude, double altitude, float speed, float bearing, float accuracy,
1797 bearing,
1813 double longitude, double altitude, float speed, float bearing, float accuracy,
1824 bearing,
/frameworks/base/services/core/jni/
Dcom_android_server_location_GnssLocationProvider.cpp117 (jfloat)location->speed, (jfloat)location->bearing, in location_callback()
476 (jfloat)location->speed, (jfloat)location->bearing, in gps_geofence_transition_callback()
490 jfloat bearing = 0; in gps_geofence_status_callback() local
499 bearing = location->bearing; in gps_geofence_status_callback()
505 flags, latitude, longitude, altitude, speed, bearing, accuracy, timestamp); in gps_geofence_status_callback()
Dcom_android_server_location_FlpHardwareProvider.cpp312 location.bearing = env->CallFloatMethod(locationObject, getBearing); in TranslateFromObject()
522 sCallbackEnv->CallVoidMethod(locationObject, setBearing, location->bearing); in TranslateToObject()
/frameworks/base/docs/html/training/maps/
Dindex.jd56 360-degree views. Programmatically control the zoom and orientation (tilt and bearing) of the
/frameworks/base/docs/html/guide/topics/location/
Dindex.jd44 determine location and bearing of the underlying device (if available). </p>
/frameworks/base/docs/html/training/location/
Dreceive-location-updates.jd43 further information such as the bearing (horizontal direction of travel),
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_overview.jd61 bearing.</p>
647 pressure, location, and compass bearing. If a device doesn't have a pressure sensor, you can use the
/frameworks/base/docs/html/about/versions/
Dandroid-2.3.jd494 and bearing, and monetary cost. </li>