Home
last modified time | relevance | path

Searched refs:bearing (Results 1 – 3 of 3) 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.java782 public void setBearing(float bearing) { in setBearing() argument
783 while (bearing < 0.0f) { in setBearing()
784 bearing += 360.0f; in setBearing()
786 while (bearing >= 360.0f) { in setBearing()
787 bearing -= 360.0f; in setBearing()
789 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()