Home
last modified time | relevance | path

Searched refs:location (Results 1 – 25 of 794) sorted by relevance

12345678910>>...32

/packages/services/Car/service/src/com/android/car/
DCarLocationService.java38 import android.location.Location;
39 import android.location.LocationManager;
436 Location location = null; in storeLocation() local
443 location = mILocationManagerProxy.getLastKnownLocation( in storeLocation()
449 if (location == null) { in storeLocation()
459 jsonWriter.name(PROVIDER).value(location.getProvider()); in storeLocation()
460 jsonWriter.name(LATITUDE).value(location.getLatitude()); in storeLocation()
461 jsonWriter.name(LONGITUDE).value(location.getLongitude()); in storeLocation()
462 if (location.hasAltitude()) { in storeLocation()
463 jsonWriter.name(ALTITUDE).value(location.getAltitude()); in storeLocation()
[all …]
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DLocationHelper.java20 import android.location.Location;
30 import com.google.android.gms.location.FusedLocationProviderClient;
31 import com.google.android.gms.location.LocationListener;
32 import com.google.android.gms.location.LocationRequest;
33 import com.google.android.gms.location.LocationServices;
105 static @LocationStatus int checkLocation(Location location) { in checkLocation() argument
106 if (location == null) { in checkLocation()
111 long locationTimeMs = location.getTime(); in checkLocation()
118 if (location.getAccuracy() > LOCATION_ACCURACY_THRESHOLD_METERS) { in checkLocation()
119 LogUtil.i("LocationHelper.checkLocation", "poor accuracy: " + location.getAccuracy()); in checkLocation()
[all …]
DLocationUrlBuilder.java22 import android.location.Location;
75 public static String getStaticMapUrl(Context context, Location location) { in getStaticMapUrl() argument
89 .appendQueryParameter(CENTER_PARAM_KEY, getFormattedLatLng(location)) in getStaticMapUrl()
93 .appendQueryParameter(MARKERS_PARAM_KEY, getMarkerUrlParamValue(location)) in getStaticMapUrl()
106 public static String getReverseGeocodeUrl(Location location) { in getReverseGeocodeUrl() argument
116 .appendQueryParameter(LAT_LNG_PARAM_KEY, getFormattedLatLng(location)) in getReverseGeocodeUrl()
123 Location location, @Nullable CharSequence addressLine1, @Nullable CharSequence addressLine2) { in getShowMapIntent() argument
125 String latLong = getFormattedLatLng(location); in getShowMapIntent()
142 location.getLatitude(), in getShowMapIntent()
143 location.getLongitude()); in getShowMapIntent()
[all …]
DLocationPresenter.java20 import android.location.Location;
27 import com.google.android.gms.location.LocationListener;
62 public void onLocationChanged(Location location) { in onLocationChanged() argument
64 updateLocation(location, false); in onLocationChanged()
67 private void updateLocation(Location location, boolean forceUpdate) { in updateLocation() argument
68 LogUtil.i("LocationPresenter.updateLocation", "location: " + location); in updateLocation()
69 if (forceUpdate || !Objects.equals(lastLocation, location)) { in updateLocation()
70 lastLocation = location; in updateLocation()
71 int status = LocationHelper.checkLocation(location); in updateLocation()
74 reverseGeocodeTask = new ReverseGeocodeTask(new WeakReference<>(ui)).execute(location); in updateLocation()
[all …]
DLocationFragment.java21 import android.location.Location;
69 private Location location; field in LocationFragment
134 private void setMap(@NonNull Location location) { in setMap() argument
136 Assert.isNotNull(location); in setMap()
144 updateMap(location); in setMap()
159 updateMap(location); in setMap()
165 private void updateMap(@NonNull Location location) { in updateMap() argument
166 Assert.isNotNull(location); in updateMap()
168 LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude()); in updateMap()
204 public void setLocation(Location location) { in setLocation() argument
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_variation/
Dstdout.txt.expect23 .location = {.poolIndex = 0, .offset = 0, .length = 0},
32 .location = {.poolIndex = 0, .offset = 0, .length = 64},
41 .location = {.poolIndex = 0, .offset = 64, .length = 4},
50 .location = {.poolIndex = 0, .offset = 68, .length = 4},
59 .location = {.poolIndex = 0, .offset = 72, .length = 4},
68 .location = {.poolIndex = 0, .offset = 76, .length = 4},
77 .location = {.poolIndex = 0, .offset = 80, .length = 4},
86 .location = {.poolIndex = 0, .offset = 84, .length = 4},
95 .location = {.poolIndex = 0, .offset = 0, .length = 0},
170 .location = {.poolIndex = 0, .offset = 0, .length = 0},
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_implicit_variation/
Dstdout.txt.expect23 .location = {.poolIndex = 0, .offset = 0, .length = 0},
32 .location = {.poolIndex = 0, .offset = 0, .length = 64},
41 .location = {.poolIndex = 0, .offset = 64, .length = 4},
50 .location = {.poolIndex = 0, .offset = 68, .length = 4},
59 .location = {.poolIndex = 0, .offset = 72, .length = 4},
68 .location = {.poolIndex = 0, .offset = 76, .length = 4},
77 .location = {.poolIndex = 0, .offset = 80, .length = 4},
86 .location = {.poolIndex = 0, .offset = 84, .length = 4},
95 .location = {.poolIndex = 0, .offset = 0, .length = 0},
170 .location = {.poolIndex = 0, .offset = 0, .length = 0},
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_naming/
Dstdout.txt.expect23 .location = {.poolIndex = 0, .offset = 0, .length = 0},
32 .location = {.poolIndex = 0, .offset = 0, .length = 64},
41 .location = {.poolIndex = 0, .offset = 64, .length = 4},
50 .location = {.poolIndex = 0, .offset = 68, .length = 4},
59 .location = {.poolIndex = 0, .offset = 72, .length = 4},
68 .location = {.poolIndex = 0, .offset = 76, .length = 4},
77 .location = {.poolIndex = 0, .offset = 80, .length = 4},
86 .location = {.poolIndex = 0, .offset = 84, .length = 4},
95 .location = {.poolIndex = 0, .offset = 0, .length = 0},
170 .location = {.poolIndex = 0, .offset = 0, .length = 0},
[all …]
/packages/modules/NeuralNetworks/common/types/src/
DSharedMemory.cpp45 bool hasNoPointerData(const DataLocation& location) { in hasNoPointerData() argument
46 return std::visit([](auto ptr) { return ptr == nullptr; }, location.pointer); in hasNoPointerData()
50 return hasNoPointerData(operand.location); in hasNoPointerData()
58 return hasNoPointerData(argument.location); in hasNoPointerData()
70 operand->location.pointer); in copyPointersToSharedMemory()
73 operand->location = memoryBuilder->append(data, operand->location.length); in copyPointersToSharedMemory()
113 const auto location = mBuilder.append(length); in append() local
114 CHECK_EQ(location.length, length); in append()
115 mSlices.push_back({.data = data, .length = length, .offset = location.offset}); in append()
116 return location; in append()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DDiscoveredPrinter.java42 public final String location; field in DiscoveredPrinter
61 public DiscoveredPrinter(Uri uuid, String name, List<Uri> paths, String location) { in DiscoveredPrinter() argument
66 this.location = location; in DiscoveredPrinter()
77 public DiscoveredPrinter(Uri uuid, String name, Uri path, String location) { in DiscoveredPrinter() argument
78 this(uuid, name, Collections.singletonList(path), location); in DiscoveredPrinter()
83 String printerName = null, location = null; in DiscoveredPrinter() local
100 location = reader.nextString(); in DiscoveredPrinter()
113 this.location = location; in DiscoveredPrinter()
159 if (!TextUtils.isEmpty(location)) { in write()
160 writer.name("location").value(location); in write()
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_backward_compatibility_float/
Dstdout.txt.expect23 .location = {.poolIndex = 0, .offset = 0, .length = 0},
32 .location = {.poolIndex = 0, .offset = 0, .length = 0},
41 .location = {.poolIndex = 0, .offset = 0, .length = 0},
50 .location = {.poolIndex = 0, .offset = 0, .length = 0},
59 .location = {.poolIndex = 0, .offset = 0, .length = 0},
68 .location = {.poolIndex = 0, .offset = 0, .length = 0},
77 .location = {.poolIndex = 0, .offset = 0, .length = 0},
86 .location = {.poolIndex = 0, .offset = 0, .length = 0},
95 .location = {.poolIndex = 0, .offset = 0, .length = 0},
104 .location = {.poolIndex = 0, .offset = 0, .length = 0},
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DBodyTemperatureFormatterTest.kt70 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 0.0), preferences)) in <lambda>()
74 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 1.0), preferences)) in <lambda>()
78 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 43.3), preferences)) in <lambda>()
88 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 0.0), preferences)) in <lambda>()
92 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 1.0), preferences)) in <lambda>()
96 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 43.3), preferences)) in <lambda>()
106 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 0.0), preferences)) in <lambda>()
110 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 1.0), preferences)) in <lambda>()
114 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 43.3), preferences)) in <lambda>()
124 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 0.0), preferences)) in <lambda>()
[all …]
DBasalBodyTemperatureFormatterTest.kt70 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 0.0), preferences)) in <lambda>()
74 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 1.0), preferences)) in <lambda>()
78 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 43.3), preferences)) in <lambda>()
88 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 0.0), preferences)) in <lambda>()
92 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 1.0), preferences)) in <lambda>()
96 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 43.3), preferences)) in <lambda>()
106 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 0.0), preferences)) in <lambda>()
110 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 1.0), preferences)) in <lambda>()
114 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 43.3), preferences)) in <lambda>()
124 getRecord(location = MEASUREMENT_LOCATION_UNKNOWN, 0.0), preferences)) in <lambda>()
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_internal/
Dstdout.txt.expect23 .location = {.poolIndex = 0, .offset = 0, .length = 0},
32 .location = {.poolIndex = 0, .offset = 0, .length = 0},
41 .location = {.poolIndex = 0, .offset = 0, .length = 4},
50 .location = {.poolIndex = 0, .offset = 0, .length = 0},
59 .location = {.poolIndex = 0, .offset = 4, .length = 8},
68 .location = {.poolIndex = 0, .offset = 0, .length = 0},
77 .location = {.poolIndex = 0, .offset = 0, .length = 0},
86 .location = {.poolIndex = 0, .offset = 0, .length = 0},
95 .location = {.poolIndex = 0, .offset = 0, .length = 0},
104 .location = {.poolIndex = 0, .offset = 0, .length = 0},
[all …]
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/
DEnvironment.java16 package com.android.timezone.location.provider.core;
18 import static com.android.timezone.location.provider.core.LogUtils.formatElapsedRealtimeMillis;
19 import static com.android.timezone.location.provider.core.Mode.prettyPrintListenModeEnum;
23 import android.location.Location;
29 import com.android.timezone.location.common.PiiLoggable;
30 import com.android.timezone.location.common.PiiLoggables;
31 import com.android.timezone.location.common.PiiLoggables.PiiLoggableValue;
32 import com.android.timezone.location.lookup.GeoTimeZonesFinder;
33 import com.android.timezone.location.provider.core.OfflineLocationTimeZoneDelegate.ListenModeEnum;
95 @Nullable Location location) { in LocationListeningResult() argument
[all …]
DOfflineLocationTimeZoneDelegate.java17 package com.android.timezone.location.provider.core;
19 import static com.android.timezone.location.provider.core.LogUtils.formatElapsedRealtimeMillis;
20 import static com.android.timezone.location.provider.core.LogUtils.formatUtcTime;
21 import static com.android.timezone.location.provider.core.LogUtils.logDebug;
22 import static com.android.timezone.location.provider.core.LogUtils.logWarn;
23 import static com.android.timezone.location.provider.core.Mode.MODE_DESTROYED;
24 import static com.android.timezone.location.provider.core.Mode.MODE_FAILED;
25 import static com.android.timezone.location.provider.core.Mode.MODE_STARTED;
26 import static com.android.timezone.location.provider.core.Mode.MODE_STOPPED;
27 import static com.android.timezone.location.provider.core.Mode.prettyPrintListenModeEnum;
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
DLocationListeners.java24 import android.location.Location;
25 import android.location.LocationListener;
26 import android.location.LocationManager;
197 public void onLocationChanged(Location location) {
203 location.getLatitude(),
204 location.getLongitude(),
205 location.getAltitude(),
206 location.getSpeed(),
207 location.getBearing(),
208 location.getAccuracy(),
[all …]
/packages/modules/adb/fastdeploy/deploypatchgenerator/
Dapk_archive.cpp145 Location location; in FindCDRecord() local
146 location.offset = header->offsetToCdHeader; in FindCDRecord()
147 location.size = header->crSize; in FindCDRecord()
148 location.valid = true; in FindCDRecord()
149 return location; in FindCDRecord()
154 Location location; in GetCDLocation() local
161 return location; in GetCDLocation()
166 location = FindCDRecord(mapped.data()); in GetCDLocation()
167 if (!location.valid) { in GetCDLocation()
170 return location; in GetCDLocation()
[all …]
/packages/services/Car/tests/AdasLocationTestApp/src/com/google/android/car/adaslocation/
DAdasLocationActivity.java25 import android.location.LastLocationRequest;
26 import android.location.Location;
27 import android.location.LocationListener;
28 import android.location.LocationManager;
29 import android.location.LocationRequest;
71 public void onLocationChanged(Location location) { in onCreate()
72 mObserveLocationResult.setText(locationToFormattedString(location)); in onCreate()
98 Location location = in onCreate()
101 if (location != null) { in onCreate()
102 mLastLocationResult.setText(locationToFormattedString(location)); in onCreate()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/util/
DLocationUtils.java20 import android.location.Address;
21 import android.location.Geocoder;
22 import android.location.Location;
23 import android.location.LocationListener;
24 import android.location.LocationManager;
143 private static void updateAddress(Location location) { in updateAddress() argument
144 if (DEBUG) Log.d(TAG, "Updating address with " + location); in updateAddress()
145 if (location == null) { in updateAddress()
151 geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1); in updateAddress()
187 public void onLocationChanged(Location location) {
[all …]
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/
DRealLocationListeningAccountantTest.java16 package com.android.timezone.location.provider;
18 import static com.android.timezone.location.provider.core.OfflineLocationTimeZoneDelegate.LOCATION_…
19 import static com.android.timezone.location.provider.core.OfflineLocationTimeZoneDelegate.LOCATION_…
26 import android.location.Location;
28 import com.android.timezone.location.provider.core.Environment.LocationListeningResult;
29 import com.android.timezone.location.provider.core.LocationListeningAccountant.ListeningInstruction;
198 Location location = createLocationWithElapsedRealtimeMillis(locationTimeMillis); in doLastKnownLocationResultTest() local
204 location); in doLastKnownLocationResultTest()
241 Location location = null;
247 location);
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DLocationManager.java20 import android.location.Location;
21 import android.location.LocationProvider;
33 private android.location.LocationManager mLocationManager;
37 new LocationListener(android.location.LocationManager.GPS_PROVIDER),
38 new LocationListener(android.location.LocationManager.NETWORK_PROVIDER)
76 mLocationManager = (android.location.LocationManager) in startReceivingLocationUpdates()
82 android.location.LocationManager.NETWORK_PROVIDER, in startReceivingLocationUpdates()
93 android.location.LocationManager.GPS_PROVIDER, in startReceivingLocationUpdates()
122 implements android.location.LocationListener {
142 android.location.LocationManager.GPS_PROVIDER.equals(mProvider)) { in onLocationChanged()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DAfcEllipseLocation.java19 import android.location.Location;
64 double centerLeeway, Random random, Location location) { in AfcEllipseLocation() argument
65 super(location); in AfcEllipseLocation()
73 mLongitude = random.nextDouble() * (2 * mCenterLeeway) + (location.getLongitude() in AfcEllipseLocation()
84 mLatitude = random.nextDouble() * (2 * mCenterLeeway) + (location.getLatitude() in AfcEllipseLocation()
101 JSONObject location = new JSONObject(); in toJson() local
111 location.put("ellipse", ellipse); in toJson()
117 location.put("elevation", elevation); in toJson()
118 location.put("indoorDeployment", mLocationType); in toJson()
120 return location; in toJson()
/packages/modules/AdServices/sdksandbox/tests/ui/src/com/android/tests/sdksandbox/ui/
DSdkSandboxScreenshotTest.java112 int[] location = new int[2]; in testClickHandling()
113 view.getLocationOnScreen(location); in testClickHandling()
114 injectClick(location[0] + 100, location[1] + 100); in testClickHandling()
133 int[] location = new int[2]; in testClickHandling()
134 surfaceView.getLocationOnScreen(location); in testClickHandling()
136 injectClick(location[0] + 100, location[1] + 100); in testClickHandling()
192 int[] location = new int[2]; in verifyView()
193 view.getLocationOnScreen(location); in verifyView()
195 location[0], location[1], width, height, IMG_IDENTIFIER); in verifyView()
/packages/apps/Dialer/java/com/android/dialer/location/
DCountryDetector.java17 package com.android.dialer.location;
25 import android.location.Address;
26 import android.location.Geocoder;
27 import android.location.Location;
28 import android.location.LocationManager;
209 final Location location = in onReceive() local
215 processLocationUpdate(context, CountryDetector.getInstance(context).geocoder, location); in onReceive()
220 Context appContext, Geocoder geocoder, Location location) { in processLocationUpdate() argument
243 .executeParallel(location); in processLocationUpdate()
257 public String doInBackground(@Nullable Location location) throws Throwable { in doInBackground() argument
[all …]

12345678910>>...32