/packages/services/Car/service/src/com/android/car/ |
D | CarLocationService.java | 31 import android.location.Location; 32 import android.location.LocationManager; 298 Location location = null; in storeLocation() local 305 location = mILocationManagerProxy.getLastKnownLocation( in storeLocation() 311 if (location == null) { in storeLocation() 321 jsonWriter.name(PROVIDER).value(location.getProvider()); in storeLocation() 322 jsonWriter.name(LATITUDE).value(location.getLatitude()); in storeLocation() 323 jsonWriter.name(LONGITUDE).value(location.getLongitude()); in storeLocation() 324 if (location.hasAltitude()) { in storeLocation() 325 jsonWriter.name(ALTITUDE).value(location.getAltitude()); in storeLocation() [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_variation/ |
D | stdout.txt.expect | 23 .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/ |
D | stdout.txt.expect | 23 .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/ |
D | stdout.txt.expect | 23 .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/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | LocationHelper.java | 20 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 …]
|
D | LocationFragment.java | 21 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 …]
|
D | LocationUrlBuilder.java | 22 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 …]
|
D | LocationPresenter.java | 20 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 …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_backward_compatibility_float/ |
D | stdout.txt.expect | 23 .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/apps/Car/libs/car-ui-lib/car-ui-androidx/ |
D | Android.bp | 62 cmd: "$(location jetifier) -i $(in) -o $(out) -r -c $(location car-ui-jetifier-reverse.cfg)", 83 cmd: "$(location jetifier) -i $(in) -o $(out) -r -c $(location car-ui-jetifier-reverse.cfg)", 99 cmd: "$(location jetifier) -i $(in) -o $(out) -r -c $(location car-ui-jetifier-reverse.cfg)", 123 cmd: "$(location jetifier) -i $(in) -o $(out) -r -c $(location car-ui-jetifier-reverse.cfg)", 145 cmd: "$(location jetifier) -i $(in) -o $(out) -r -c $(location car-ui-jetifier-reverse.cfg)", 165 cmd: "$(location jetifier) -i $(in) -o $(out) -r -c $(location car-ui-jetifier-reverse.cfg)", 194 cmd: "$(location jetifier) -i $(in) -o $(out) -r -c $(location car-ui-jetifier-reverse.cfg)", 213 cmd: "$(location jetifier) -i $(in) -o $(out) -r -c $(location car-ui-jetifier-reverse.cfg)", 242 cmd: "$(location jetifier) -i $(in) -o $(out) -r -c $(location car-ui-jetifier-reverse.cfg)", 265 cmd: "$(location jetifier) -i $(in) -o $(out) -r -c $(location car-ui-jetifier-reverse.cfg)", [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | DiscoveredPrinter.java | 42 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_internal/ |
D | stdout.txt.expect | 23 .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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | LocationListeners.java | 24 import android.location.Location; 25 import android.location.LocationListener; 26 import android.location.LocationManager; 164 public void onLocationChanged(Location location) { 170 location.getLatitude(), 171 location.getLongitude(), 172 location.getAltitude(), 173 location.getSpeed(), 174 location.getBearing(), 175 location.getAccuracy(), [all …]
|
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/core/ |
D | Environment.java | 16 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.lookup.GeoTimeZonesFinder; 32 import com.android.timezone.location.provider.core.OfflineLocationTimeZoneDelegate.ListenModeEnum; 33 import com.android.timezone.location.common.PiiLoggables.PiiLoggableValue; 95 @Nullable Location location) { in LocationListeningResult() argument [all …]
|
D | OfflineLocationTimeZoneDelegate.java | 17 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/modules/adb/fastdeploy/deploypatchgenerator/ |
D | apk_archive.cpp | 145 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/modules/NeuralNetworks/common/ |
D | ValidateHal.cpp | 78 bool validate(const V1_0::DataLocation& location) const { in validate() 79 if (location.poolIndex >= mPoolCount) { in validate() 80 LOG(ERROR) << "Invalid poolIndex " << location.poolIndex << "/" << mPoolCount; in validate() 83 const size_t size = mPoolSizes[location.poolIndex]; in validate() 85 if (static_cast<size_t>(location.offset) + location.length > size) { in validate() 86 LOG(ERROR) << "Reference to pool " << location.poolIndex << " with offset " in validate() 87 << location.offset << " and length " << location.length in validate() 346 const V1_0::DataLocation& location = operand.location; in validateOperands() local 349 if (location.poolIndex != 0) { in validateOperands() 352 << location.poolIndex; in validateOperands() [all …]
|
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/ |
D | RealLocationListeningAccountantTest.java | 16 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/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/ |
D | EnvironmentImpl.java | 16 package com.android.timezone.location.provider; 18 import static android.location.LocationRequest.QUALITY_BALANCED_POWER_ACCURACY; 19 import static android.location.LocationRequest.QUALITY_HIGH_ACCURACY; 22 import static com.android.timezone.location.provider.core.LogUtils.LOG_TAG; 23 import static com.android.timezone.location.provider.core.LogUtils.formatElapsedRealtimeMillis; 24 import static com.android.timezone.location.provider.core.OfflineLocationTimeZoneDelegate.LOCATION_… 25 import static com.android.timezone.location.provider.core.OfflineLocationTimeZoneDelegate.LOCATION_… 28 import android.location.Location; 29 import android.location.LocationListener; 30 import android.location.LocationManager; [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/actions/ |
D | LowLevelActions.java | 109 int[] location = new int[2]; in touchDownAndUp() local 110 view.getLocationOnScreen(location); in touchDownAndUp() 113 float[] coordinates = new float[]{x + location[0], y + location[1]}; in touchDownAndUp() 147 int[] location = new int[2]; 148 view.getLocationOnScreen(location); 151 float[] coordinatesDown = new float[]{downX + location[0], downY + location[1]}; 152 float[] coordinatesMove = new float[]{downX + location[0], downY + location[1]}; 164 if (coordinatesMove[1] > limitY + location[1] 165 || coordinatesMove[0] > limitX + location[0]) {
|
/packages/modules/GeoTZ/s2storage/tools/src/java/com/android/timezone/location/tools/dump/ |
D | TzS2RangeFileDumper.java | 17 package com.android.timezone.location.tools.dump; 19 import static com.android.timezone.location.tools.dump.DumpUtils.binaryStringLength; 20 import static com.android.timezone.location.tools.dump.DumpUtils.hexStringLength; 21 import static com.android.timezone.location.tools.dump.DumpUtils.zeroPadBinary; 22 import static com.android.timezone.location.tools.dump.DumpUtils.zeroPadHex; 24 import com.android.timezone.location.storage.tzs2range.TzS2RangeFileFormat; 25 import com.android.timezone.location.storage.tzs2range.read.HeaderBlock; 26 import com.android.timezone.location.storage.tzs2range.read.SuffixTableBlock; 27 import com.android.timezone.location.storage.tzs2range.read.SuffixTableExtraInfo; 28 import com.android.timezone.location.storage.tzs2range.read.TzS2RangeFileReader; [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/util/ |
D | LocationUtils.java | 20 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/apps/Dialer/java/com/android/dialer/location/ |
D | CountryDetector.java | 17 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 …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | LocationManager.java | 20 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/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/core/ |
D | OfflineLocationTimeZoneDelegateTest.java | 16 package com.android.timezone.location.provider.core; 18 import static com.android.timezone.location.provider.core.OfflineLocationTimeZoneDelegate.LOCATION_… 19 import static com.android.timezone.location.provider.core.OfflineLocationTimeZoneDelegate.LOCATION_… 20 import static com.android.timezone.location.provider.core.TimeZoneProviderResult.RESULT_TYPE_SUGGES… 33 import android.location.Location; 38 import com.android.timezone.location.lookup.GeoTimeZonesFinder; 39 import com.android.timezone.location.provider.core.Environment.LocationListeningResult; 40 import com.android.timezone.location.provider.core.LocationListeningAccountant.ListeningInstruction; 275 Location location = new Location("test"); 276 location.setLatitude(latDegrees); [all …]
|