Home
last modified time | relevance | path

Searched refs:Location (Results 1 – 25 of 130) sorted by relevance

123456

/frameworks/data-binding/compilerCommon/src/test/java/android/databinding/tool/store/
DLocationTest.java30 assertFalse(new Location().isValid()); in testInvalid()
35 Location location = new Location(0, 0, 1, 1); in testValid()
41 Location location1 = new Location(0, 0, 10, 1); in testContains()
42 Location location2 = new Location(0, 0, 9, 1); in testContains()
52 Location loc = new Location(1, 2, 3, 4); in testAbsolute()
58 Location loc = new Location(1, 2, 3, 4); in testAbsoluteWithInvalidParent()
59 loc.setParentLocation(new Location()); in testAbsoluteWithInvalidParent()
65 Location loc = new Location(1, 2, 3, 4); in testAbsoluteWithParent()
66 loc.setParentLocation(new Location(10, 0, 20, 0)); in testAbsoluteWithParent()
67 assertEquals(new Location(11, 2, 13, 4), loc.toAbsoluteLocation()); in testAbsoluteWithParent()
[all …]
/frameworks/base/location/tests/locationtests/src/android/location/
DLocationTest.java36 result = Location.convert(testDegreesCoord); in testConvert_DegreesToDouble()
47 result = Location.convert(testMinutesCoord); in testConvert_MinutesToDouble()
58 result = Location.convert(testSecondsCoord); in testConvert_SecondsToDouble()
69 result = Location.convert(testSecondsCoord); in testConvert_SecondsToDouble2()
80 result = Location.convert(-80.075, Location.FORMAT_DEGREES); in testConvert_CoordinateToDegrees()
88 result = Location.convert(-80.0, Location.FORMAT_DEGREES); in testConvert_CoordinateToDegrees2()
97 result = Location.convert(input, Location.FORMAT_MINUTES); in testConvert_CoordinateToMinutes()
107 result = Location.convert(input, Location.FORMAT_MINUTES); in testConvert_CoordinateToMinutes2()
117 result = Location.convert(-80.075, Location.FORMAT_SECONDS); in testConvert_CoordinateToSeconds()
128 Location zeroLocation = new Location(""); in testBearingTo()
[all …]
DLocationManagerTest.java21 import android.location.Location;
88 String loc1 = Location.convert(-80.075, Location.FORMAT_DEGREES); in testLocationConversions()
92 String loc1b = Location.convert(-80.0, Location.FORMAT_DEGREES); in testLocationConversions()
96 String loc2 = Location.convert(-80.085, Location.FORMAT_DEGREES); in testLocationConversions()
100 String loc3 = Location.convert(-80.085, Location.FORMAT_MINUTES); in testLocationConversions()
104 String loc4 = Location.convert(-80.085, Location.FORMAT_SECONDS); in testLocationConversions()
108 String loc5 = Location.convert(5 + 0.5f / 60.0f, Location.FORMAT_MINUTES); in testLocationConversions()
120 String loc6 = Location.convert(0.1, Location.FORMAT_DEGREES); in testLocationConversions()
124 String loc7 = Location.convert(0.1, Location.FORMAT_MINUTES); in testLocationConversions()
128 String loc8 = Location.convert(0.1, Location.FORMAT_SECONDS); in testLocationConversions()
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
DLocation.java40 public class Location { class
51 public Location parentLocation;
54 public Location() { in Location() method in Location
58 public Location(Location other) { in Location() method in Location
65 public Location(Token start, Token end) { in Location() method in Location
84 public Location(ParserRuleContext context) {
89 public Location(int startLine, int startOffset, int endLine, int endOffset) {
107 public void setParentLocation(Location parentLocation) {
120 Location location = (Location) o;
152 public boolean contains(Location other) {
[all …]
DResourceBundle.java399 private Location mClassNameLocation;
464 public void addVariable(String name, String type, Location location, boolean declared) { in addVariable()
470 public void addImport(String alias, String type, Location location) { in addImport()
477 boolean used, String tag, String originalTag, Location location) { in createBindingTarget()
534 public void setBindingClass(String bindingClass, Location location) { in setBindingClass()
665 public Location location;
670 public NameTypeLocation(String name, String type, Location location) { in NameTypeLocation()
733 public VariableDeclaration(String name, String type, Location location, boolean declared) { in VariableDeclaration()
763 public Location mLocation;
770 String tag, String originalTag, Location location) { in BindingTargetBundle()
[all …]
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/processing/
DScope.java22 import android.databinding.tool.store.Location;
39 public static void enter(final Location location) { in enter()
42 public List<Location> provideScopeLocation() { in enter()
126 List<Location> locations = loc.provideScopeLocation(); in produceScopeLog()
130 for (Location location : locations) { in produceScopeLog()
144 List<Location> locations = null; in createReport()
158 private static List<Location> findAbsoluteLocationFrom(ScopeEntry entry, in findAbsoluteLocationFrom()
160 List<Location> locations = top.provideScopeLocation(); in findAbsoluteLocationFrom()
168 List<Location> chosen = new ArrayList<Location>(); in findAbsoluteLocationFrom()
169 for (Location location : locations) { in findAbsoluteLocationFrom()
[all …]
DScopedErrorReport.java19 import android.databinding.tool.store.Location;
28 private final List<Location> mLocations;
33 ScopedErrorReport(String filePath, List<Location> locations) { in ScopedErrorReport()
42 public List<Location> getLocations() { in getLocations()
59 for (Location location : mLocations) { in toUserReadableString()
DScopedException.java24 import android.databinding.tool.store.Location;
87 for (Location location : scopedError.getLocations()) { in createEncodedMessage()
106 List<Location> locations = new ArrayList<Location>(); in createFromOutput()
124 Location loc; in createFromOutput()
126 loc = Location.fromUserReadableString( in createFromOutput()
129 loc = Location.fromUserReadableString( in createFromOutput()
/frameworks/base/services/core/java/com/android/server/location/
DLocationFudger.java24 import android.location.Location;
165 public Location getOrCreate(Location location) { in getOrCreate()
167 Location coarse = location.getExtraLocation(Location.EXTRA_COARSE_LOCATION); in getOrCreate()
178 private Location addCoarseLocationExtraLocked(Location location) { in addCoarseLocationExtraLocked()
179 Location coarse = createCoarseLocked(location); in addCoarseLocationExtraLocked()
180 location.setExtraLocation(Location.EXTRA_COARSE_LOCATION, coarse); in addCoarseLocationExtraLocked()
199 private Location createCoarseLocked(Location fine) { in createCoarseLocked()
200 Location coarse = new Location(fine); in createCoarseLocked()
DLocationBasedCountryDetector.java23 import android.location.Location;
75 protected String getCountryFromLocation(Location location) { in getCountryFromLocation()
122 protected Location getLastKnownLocation() { in getLastKnownLocation()
126 Location bestLocation = null; in getLastKnownLocation()
128 Location lastKnownLocation = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation()
178 public void onLocationChanged(Location location) { in detectCountry()
237 private synchronized void queryCountryCode(final Location location) { in queryCountryCode()
DFlpHardwareProvider.java27 import android.location.Location;
111 private void onLocationReport(Location[] locations) { in onLocationReport()
112 for (Location location : locations) { in onLocationReport()
214 Location location, in onGeofenceTransition()
229 private void onGeofenceMonitorStatus(int status, int source, Location location) { in onGeofenceMonitorStatus()
231 Location updatedLocation = null; in onGeofenceMonitorStatus()
302 private native void nativeInjectLocation(Location location); in nativeInjectLocation()
481 public void onLocationChanged(Location location) { in onLocationChanged()
533 private Location updateLocationInformation(Location location) { in updateLocationInformation()
DGeofenceState.java22 import android.location.Location;
36 private final Location mLocation;
58 mLocation = new Location(""); in GeofenceState()
67 public int processLocation(Location location) { in processLocation()
/frameworks/base/services/tests/servicestests/src/com/android/server/twilight/
DTwilightServiceTest.java21 import android.location.Location;
27 private Location mInitialLocation;
48 final Location validLocation = createMockLocation(35.0, 35.0); in testValidLocation_updatedLocation()
56 final Location invalidLocation = createMockLocation(0.0, 0.0); in testInvalidLocation_ignoreLocationUpdate()
62 private Location createMockLocation(double latitude, double longitude) { in createMockLocation()
64 final Location location = new Location(""); in createMockLocation()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStaggeredGrid.java46 public static class Location extends Grid.Location { class in StaggeredGrid
59 public Location(int row, int offset, int size) { in Location() method in StaggeredGrid.Location
66 protected CircularArray<Location> mLocations = new CircularArray<Location>(64);
101 public final Location getLocation(int index) { in getLocation()
111 Location loc = mLocations.get(i); in debugPrint()
170 Location loc = getLocation(itemIndex); in prependVisbleItemsWithCache()
209 Location loc = getLocation(cachedIndex); in calculateOffsetAfterLastItem()
249 Location oldFirstLoc = mFirstIndex >= 0 ? getLocation(mFirstIndex) : null; in prependVisibleItemToRow()
251 Location loc = new Location(rowIndex, 0, 0); in prependVisibleItemToRow()
324 Location loc = getLocation(itemIndex); in appendVisbleItemsWithCache()
[all …]
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusionEngine.java28 import android.location.Location;
40 void reportLocation(Location location); in reportLocation()
56 private Location mFusedLocation;
57 private Location mGpsLocation;
58 private Location mNetworkLocation;
68 mNetworkLocation = new Location(""); in FusionEngine()
70 mGpsLocation = new Location(""); in FusionEngine()
202 private static boolean isBetterThan(Location locationA, Location locationB) { in isBetterThan()
231 mFusedLocation = new Location(mGpsLocation); in updateFusedLocation()
233 mFusedLocation = new Location(mNetworkLocation); in updateFusedLocation()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DFusedPrintersProvider.java28 import android.location.Location;
105 private final List<Pair<PrinterInfo, Location>> mFavoritePrinters =
118 private Location mLocation;
121 private Location mLocationOfLastPrinterUpdate;
129 private Location getCurrentLocation() { in getCurrentLocation()
174 List<Pair<PrinterInfo, Location>> favoritePrinters) { in computeAndDeliverResult()
182 Location location = getCurrentLocation(); in computeAndDeliverResult()
194 Location printerLocation = favoritePrinters.get(i).second; in computeAndDeliverResult()
258 Location lastLocation = mLocationManager.getLastLocation(); in onStartLoading()
336 List<Pair<PrinterInfo, Location>> favoritePrinters, in updatePrinters()
[all …]
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareMonitorEvent.java20 import android.location.Location;
34 private final Location mLocation;
40 Location location) { in GeofenceHardwareMonitorEvent()
71 public Location getLocation() { in getLocation()
83 Location location = source.readParcelable(classLoader);
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DLocationStatsAggregator.java26 import android.location.Location;
152 private Location getLastKnownLocation() { in getLastKnownLocation()
154 Location bestResult = null; in getLastKnownLocation()
161 Location location = mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation()
187 Location location = getLastKnownLocation(); in onReceive()
210 if (!(msg.obj instanceof Location)) { in setClusteringThread()
213 Location location = (Location) msg.obj; in setClusteringThread()
228 public void onLocationChanged(Location location) {
DLocationCluster.java18 import android.location.Location;
30 private ArrayList<Location> mLocations = new ArrayList<Location>();
48 public LocationCluster(Location location, long duration) { in LocationCluster()
53 public void addSample(Location location, long duration) { in addSample()
71 for (Location location : mLocations) { in consolidate()
/frameworks/base/location/java/android/location/
DLocation.java41 public class Location implements Parcelable { class
135 public Location(String provider) { in Location() method in Location
142 public Location(Location l) { in Location() method in Location
149 public void set(Location l) { in set()
454 public float distanceTo(Location dest) { in distanceTo()
475 public float bearingTo(Location dest) { in bearingTo()
879 public static final Parcelable.Creator<Location> CREATOR =
880 new Parcelable.Creator<Location>() {
882 public Location createFromParcel(Parcel in) {
884 Location l = new Location(provider);
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DTwilightManager.java21 import android.location.Location;
82 final Location location = getLastKnownLocation(); in isNight()
99 private Location getLastKnownLocation() { in getLastKnownLocation()
100 Location coarseLoc = null; in getLastKnownLocation()
101 Location fineLoc = null; in getLastKnownLocation()
124 private Location getLastKnownLocationForProvider(String provider) { in getLastKnownLocationForProvider()
141 private void updateState(@NonNull Location location) { in updateState()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerEntry.java21 import android.location.Location;
37 private Location mLocation;
87 private TrackerEntry(Location loc) { in TrackerEntry()
89 mLocation = new Location(loc); in TrackerEntry()
95 static TrackerEntry createEntry(Location loc, float distFromNetLocation) { in createEntry()
131 private void setLocation(Location location) { in setLocation()
143 Location getLocation() { in getLocation()
215 Location location = new Location(tag); in createEntry()
/frameworks/av/include/media/
DAudioTimestamp.h38 enum Location { enum
103 int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const {
116 *location = (Location)i;
124 status_t getBestTimestamp(AudioTimestamp *timestamp, Location *location = nullptr) const {
/frameworks/base/docs/html/guide/topics/location/
Dindex.jd1 page.title=Location and Maps
10 <li><a href="#location">Location Services</a></li>
19 package {@link android.location}. The Google Location Services API, part of Google Play
21 location provider choice and power management. Location Services also provides new
24 to their apps, should strongly consider using the Location Services API.
27 To learn more about the Location Services API, see
28 <a href="{@docRoot}google/play-services/location.html">Google Location Services for Android</a>.
32 Location and maps-based apps offer a compelling experience on mobile devices. You
38 <h2 id="location">Location Services</h2>
65 href="{@docRoot}guide/topics/location/strategies.html">Location Strategies</a> guide.</p>
/frameworks/base/services/core/java/com/android/server/
DLocationManagerService.java72 import android.location.Location;
205 private final HashMap<String, Location> mLastLocation = new HashMap<String, Location>();
209 private final HashMap<String, Location> mLastLocationCoarseInterval =
210 new HashMap<String, Location>();
849 public boolean callLocationChangedLocked(Location location) { in callLocationChangedLocked()
855 mListener.onLocationChanged(new Location(location)); in callLocationChangedLocked()
865 … locationChanged.putExtra(LocationManager.KEY_LOCATION_CHANGED, new Location(location)); in callLocationChangedLocked()
1475 Location mLastFixBroadcast;
1781 public Location getLastLocation(LocationRequest request, String packageName) { in getLastLocation()
1816 Location location; in getLastLocation()
[all …]

123456