/frameworks/data-binding/compilerCommon/src/test/java/android/databinding/tool/store/ |
D | LocationTest.java | 30 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/ |
D | LocationTest.java | 36 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 …]
|
D | LocationManagerTest.java | 21 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/ |
D | Location.java | 40 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 …]
|
D | ResourceBundle.java | 399 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/ |
D | Scope.java | 22 import android.databinding.tool.store.Location; 40 public static void enter(final Location location) { in enter() 43 public List<Location> provideScopeLocation() { in enter() 127 List<Location> locations = loc.provideScopeLocation(); in produceScopeLog() 131 for (Location location : locations) { in produceScopeLog() 145 List<Location> locations = null; in createReport() 159 private static List<Location> findAbsoluteLocationFrom(ScopeEntry entry, in findAbsoluteLocationFrom() 161 List<Location> locations = top.provideScopeLocation(); in findAbsoluteLocationFrom() 169 List<Location> chosen = new ArrayList<Location>(); in findAbsoluteLocationFrom() 170 for (Location location : locations) { in findAbsoluteLocationFrom() [all …]
|
D | ScopedErrorReport.java | 19 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()
|
D | ScopedException.java | 24 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/ |
D | LocationFudger.java | 24 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()
|
D | LocationBasedCountryDetector.java | 23 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()
|
D | GeofenceState.java | 22 import android.location.Location; 36 private final Location mLocation; 58 mLocation = new Location(""); in GeofenceState() 67 public int processLocation(Location location) { in processLocation()
|
D | MockProvider.java | 20 import android.location.Location; 45 private final Location mLocation; 63 mLocation = new Location(name); in MockProvider() 107 public void setLocation(Location l) { in setLocation()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/twilight/ |
D | TwilightServiceTest.java | 21 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/base/packages/FusedLocation/src/com/android/location/fused/ |
D | FusionEngine.java | 28 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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | StaggeredGrid.java | 44 public static class Location extends Grid.Location { class in StaggeredGrid 57 public Location(int row, int offset, int size) { in Location() method in StaggeredGrid.Location 64 protected CircularArray<Location> mLocations = new CircularArray<Location>(64); 97 public final Location getLocation(int index) { in getLocation() 108 Location loc = mLocations.get(i); in debugPrint() 166 Location loc = getLocation(itemIndex); in prependVisbleItemsWithCache() 205 Location loc = getLocation(cachedIndex); in calculateOffsetAfterLastItem() 245 Location oldFirstLoc = mFirstIndex >= 0 ? getLocation(mFirstIndex) : null; in prependVisibleItemToRow() 247 Location loc = new Location(rowIndex, 0, 0); in prependVisibleItemToRow() 320 Location loc = getLocation(itemIndex); in appendVisbleItemsWithCache() [all …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | FusedPrintersProvider.java | 28 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/ |
D | GeofenceHardwareMonitorEvent.java | 20 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/ |
D | LocationStatsAggregator.java | 26 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) {
|
D | LocationCluster.java | 18 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/support/v7/appcompat/src/android/support/v7/app/ |
D | TwilightManager.java | 21 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/location/java/android/location/ |
D | Location.java | 41 public class Location implements Parcelable { class 151 public Location(String provider) { in Location() method in Location 158 public Location(Location l) { in Location() method in Location 165 public void set(Location l) { in set() 476 public float distanceTo(Location dest) { in distanceTo() 497 public float bearingTo(Location dest) { in bearingTo() 1066 public static final Parcelable.Creator<Location> CREATOR = 1067 new Parcelable.Creator<Location>() { 1069 public Location createFromParcel(Parcel in) { 1071 Location l = new Location(provider); [all …]
|
D | ILocationManager.aidl | 29 import android.location.Location; 50 Location getLastLocation(in LocationRequest request, String packageName); in getLastLocation() 93 void setTestProviderLocation(String provider, in Location loc, String opPackageName); in setTestProviderLocation() 108 void reportLocation(in Location location, boolean passive); in reportLocation() 111 void reportLocationBatch(in List<Location> locations); in reportLocationBatch()
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerEntry.java | 21 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/ |
D | AudioTimestamp.h | 38 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/av/media/libaudioclient/include/media/ |
D | AudioTimestamp.h | 38 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 {
|