Home
last modified time | relevance | path

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

/frameworks/base/location/tests/locationtests/src/android/location/
DLocationTest.java126 float bearing; in testBearingTo() local
135 bearing = zeroLocation.bearingTo(zeroLocation); in testBearingTo()
136 message = "bearingToTest: Bearing should be 0, actual value is " + String.valueOf(bearing); in testBearingTo()
137 assertEquals(message, 0, bearing, 0); in testBearingTo()
139 bearing = zeroLocation.bearingTo(testLocation); in testBearingTo()
141 String.valueOf(bearing); in testBearingTo()
142 assertEquals(message, 180, bearing, 0); in testBearingTo()
146 bearing = zeroLocation.bearingTo(testLocation); in testBearingTo()
148 String.valueOf(bearing); in testBearingTo()
149 assertEquals(message, -90, bearing, 0); in testBearingTo()
/frameworks/base/location/java/android/location/
DLocation.java601 public void setBearing(float bearing) { in setBearing() argument
602 while (bearing < 0.0f) { in setBearing()
603 bearing += 360.0f; in setBearing()
605 while (bearing >= 360.0f) { in setBearing()
606 bearing -= 360.0f; in setBearing()
608 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/docs/html/guide/topics/location/
Dindex.jd10 device's location and bearing and register for updates</li>
40 determine location and bearing of the underlying device (if available). </p>
/frameworks/base/services/jni/
Dcom_android_server_location_GpsLocationProvider.cpp77 (jfloat)location->speed, (jfloat)location->bearing, in location_callback()
/frameworks/base/services/java/com/android/server/location/
DGpsLocationProvider.java1049 float speed, float bearing, float accuracy, long timestamp) { in reportLocation() argument
1071 mLocation.setBearing(bearing); in reportLocation()
/frameworks/base/docs/html/sdk/
Dandroid-2.3.jd584 and bearing, and monetary cost. </li>