Home
last modified time | relevance | path

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

12345678910>>...30

/cts/tests/location/location_none/src/android/location/cts/none/
DLocationTest.java17 package android.location.cts.none;
26 import android.location.Location;
63 Location location = new Location(l); in testConstructor() local
64 assertTestLocation(location); in testConstructor()
78 Location location = new Location("LocationProvider"); in testDump() local
79 location.dump(printer, ""); in testDump()
85 Location location = new Location(""); in testBearingTo() local
89 location.setLatitude(39.9); in testBearingTo()
90 location.setLongitude(116.4); in testBearingTo()
94 assertEquals(-128.66, location.bearingTo(dest), DELTA); in testBearingTo()
[all …]
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DGnssLocationValuesTest.java17 package android.location.cts.gnss;
19 import android.location.Location;
20 import android.location.cts.common.GnssTestCase;
21 import android.location.cts.common.SoftAssert;
22 import android.location.cts.common.TestLocationListener;
23 import android.location.cts.common.TestLocationManager;
24 import android.location.cts.common.TestMeasurementUtil;
82 for (Location location : mLocationListener.getReceivedLocationList()) { in testAccuracyFields()
83 checkLocationAccuracyFields(softAssert, location, in testAccuracyFields()
91 Location location, boolean extendedLocationAccuracyExpected) { in checkLocationAccuracyFields() argument
[all …]
DGnssMeasurementsConstellationTest.java17 package android.location.cts.gnss;
19 import android.location.GnssMeasurement;
20 import android.location.GnssMeasurementsEvent;
21 import android.location.GnssStatus;
22 import android.location.cts.common.GnssTestCase;
23 import android.location.cts.common.SoftAssert;
24 import android.location.cts.common.TestGnssMeasurementListener;
25 import android.location.cts.common.TestLocationListener;
26 import android.location.cts.common.TestLocationManager;
27 import android.location.cts.common.TestMeasurementUtil;
DGnssMeasurementRegistrationTest.java17 package android.location.cts.gnss;
19 import android.location.GnssMeasurement;
20 import android.location.GnssMeasurementRequest;
21 import android.location.GnssMeasurementsEvent;
22 import android.location.GnssStatus;
23 import android.location.cts.common.GnssTestCase;
24 import android.location.cts.common.SoftAssert;
25 import android.location.cts.common.TestGnssMeasurementListener;
26 import android.location.cts.common.TestLocationListener;
27 import android.location.cts.common.TestLocationManager;
[all …]
DGnssMeasurementWhenNoLocationTest.java17 package android.location.cts.gnss;
19 import android.location.GnssMeasurement;
20 import android.location.GnssMeasurementsEvent;
21 import android.location.GnssStatus;
22 import android.location.cts.common.GnssTestCase;
23 import android.location.cts.common.TestGnssMeasurementListener;
24 import android.location.cts.common.TestLocationListener;
27 import android.location.cts.common.TestUtils;
28 import android.location.cts.common.TestMeasurementUtil;
29 import android.location.cts.common.SoftAssert;
[all …]
DGnssMeasurementValuesTest.java17 package android.location.cts.gnss;
19 import android.location.GnssMeasurement;
20 import android.location.GnssMeasurementsEvent;
21 import android.location.cts.common.GnssTestCase;
22 import android.location.cts.common.SoftAssert;
23 import android.location.cts.common.TestGnssMeasurementListener;
24 import android.location.cts.common.TestLocationListener;
25 import android.location.cts.common.TestLocationManager;
26 import android.location.cts.common.TestMeasurementUtil;
DGnssNavigationMessageRegistrationTest.java17 package android.location.cts.gnss;
19 import android.location.GnssNavigationMessage;
20 import android.location.cts.common.GnssTestCase;
21 import android.location.cts.common.SoftAssert;
22 import android.location.cts.common.TestLocationListener;
23 import android.location.cts.common.TestLocationManager;
24 import android.location.cts.common.TestMeasurementUtil;
DGnssAntennaInfoTest.java1 package android.location.cts.gnss;
9 import android.location.GnssAntennaInfo;
10 import android.location.LocationListener;
11 import android.location.LocationManager;
12 import android.location.cts.common.TestLocationManager;
13 import android.location.cts.common.TestMeasurementUtil;
78 LocationListener listener = location -> {}; in checkGnssChange()
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DGnssLocationValuesTest.java17 package android.location.cts.privileged;
20 import android.location.Location;
21 import android.location.cts.common.GnssTestCase;
22 import android.location.cts.common.SoftAssert;
23 import android.location.cts.common.TestLocationListener;
24 import android.location.cts.common.TestLocationManager;
25 import android.location.cts.common.TestMeasurementUtil;
119 for (Location location : mLocationListener.getReceivedLocationList()) { in waitAndValidateLowPowerLocations()
120 checkLocationRegularFields(softAssert, location, checkSpeed); in waitAndValidateLowPowerLocations()
127 private static void checkLocationRegularFields(SoftAssert softAssert, Location location, in checkLocationRegularFields() argument
[all …]
DGnssMeasurementRegistrationTest.java17 package android.location.cts.privileged;
20 import android.location.GnssMeasurementRequest;
21 import android.location.GnssMeasurementsEvent;
22 import android.location.GnssRequest;
23 import android.location.Location;
24 import android.location.cts.common.GnssTestCase;
25 import android.location.cts.common.SoftAssert;
26 import android.location.cts.common.TestGnssMeasurementListener;
27 import android.location.cts.common.TestLocationListener;
28 import android.location.cts.common.TestLocationManager;
[all …]
DGnssMeasurementValuesTest.java1 package android.location.cts.privileged;
7 import android.location.GnssCapabilities;
8 import android.location.GnssMeasurement;
9 import android.location.GnssMeasurementRequest;
10 import android.location.GnssMeasurementsEvent;
11 import android.location.cts.common.SoftAssert;
12 import android.location.cts.common.TestGnssMeasurementListener;
13 import android.location.cts.common.TestLocationListener;
14 import android.location.cts.common.TestLocationManager;
15 import android.location.cts.common.TestMeasurementUtil;
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsample.rscript27 static bool sub_test_RGBA_1D(rs_allocation alloc1D, float location, float lod,
30 float4 result = rsSample(alloc1D, gNearest, location, lod);
33 result = rsSample(alloc1D, gLinear, location, lod);
36 result = rsSample(alloc1D, gMipNearest, location, lod);
39 result = rsSample(alloc1D, gMipLinear, location, lod);
44 static bool sub_test_RGBA_2D(rs_allocation alloc2D, float2 location, float lod,
47 float4 result = rsSample(alloc2D, gNearest, location, lod);
50 result = rsSample(alloc2D, gLinear, location, lod);
53 result = rsSample(alloc2D, gMipNearest, location, lod);
56 result = rsSample(alloc2D, gMipLinear, location, lod);
[all …]
/cts/tests/location/location_coarse/src/android/location/cts/coarse/
DLocationManagerCoarseTest.java17 package android.location.cts.coarse;
19 import static android.location.LocationManager.FUSED_PROVIDER;
20 import static android.location.LocationManager.GPS_PROVIDER;
21 import static android.location.LocationManager.NETWORK_PROVIDER;
22 import static android.location.LocationManager.PASSIVE_PROVIDER;
23 import static android.location.LocationRequest.PASSIVE_INTERVAL;
26 import static androidx.test.ext.truth.location.LocationSubject.assertThat;
41 import android.location.Criteria;
42 import android.location.Location;
43 import android.location.LocationManager;
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DLocationUtils.java20 import android.location.Location;
56 Location location = new Location(provider); in createLocation() local
57 location.setLatitude(latitude); in createLocation()
58 location.setLongitude(longitude); in createLocation()
59 location.setAccuracy(accuracy); in createLocation()
60 location.setTime(System.currentTimeMillis()); in createLocation()
61 location.setElapsedRealtimeNanos(elapsedRealTimeNanos); in createLocation()
62 return location; in createLocation()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/suplClient/
DSuplRrlpMessagesGenerator.java17 package android.location.cts.gnss.suplClient;
19 import android.location.cts.asn1.base.PacketBuilder;
20 import android.location.cts.asn1.supl2.rrlp_messages.PDU;
21 import android.location.cts.asn1.supl2.supl_pos.PosPayLoad;
22 import android.location.cts.asn1.supl2.supl_pos.SUPLPOS;
23 import android.location.cts.asn1.supl2.supl_pos_init.NavigationModel;
24 import android.location.cts.asn1.supl2.supl_pos_init.RequestedAssistData;
25 import android.location.cts.asn1.supl2.supl_pos_init.SUPLPOSINIT;
26 import android.location.cts.asn1.supl2.supl_start.PosProtocol;
27 import android.location.cts.asn1.supl2.supl_start.PosTechnology;
[all …]
/cts/tests/location/location_fine/src/android/location/cts/fine/
DLocationProviderBaseTest.java17 package android.location.cts.fine;
19 import static android.location.Location.EXTRA_NO_GPS_LOCATION;
31 import android.location.Location;
32 import android.location.provider.ILocationProvider;
33 import android.location.provider.ILocationProviderManager;
34 import android.location.provider.LocationProviderBase;
35 import android.location.provider.LocationProviderBase.OnFlushCompleteCallback;
36 import android.location.provider.ProviderProperties;
37 import android.location.provider.ProviderRequest;
107 Location location = createLocation("test", mRandom); in testReportLocation() local
[all …]
/cts/tests/tests/permission/AppThatAccessesLocationOnCommand/src/android/permission/cts/appthataccesseslocation/
DAccessLocationOnCommand.java19 import static android.location.Criteria.ACCURACY_FINE;
23 import android.location.Criteria;
24 import android.location.Location;
25 import android.location.LocationListener;
26 import android.location.LocationManager;
40 public void onLocationChanged(Location location) {
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DMagneticFieldMeasurementTestActivity.java33 import android.location.Location;
34 import android.location.LocationManager;
99 Location location = null; in testNorm() local
104 while (lm != null && location == null && tries > 0) { in testNorm()
108 while (providerIndex > 0 && location == null) { in testNorm()
110 location = lm.getLastKnownLocation(providers.get(providerIndex)); in testNorm()
112 if (location == null) { in testNorm()
118 if (location == null) { in testNorm()
124 GeomagneticField geomagneticField = new GeomagneticField((float) location.getLatitude(), in testNorm()
125 (float) location.getLongitude(), (float) location.getAltitude(), in testNorm()
[all …]
/cts/tests/location/common/src/android/location/cts/common/
DLocationListenerCapture.java17 package android.location.cts.common;
20 import android.location.Location;
21 import android.location.LocationListener;
22 import android.location.LocationManager;
54 public void onLocationChanged(Location location) { in onLocationChanged() argument
55 mLocations.add(location); in onLocationChanged()
DTestLocationListener.java16 package android.location.cts.common;
18 import android.location.Location;
19 import android.location.LocationListener;
20 import android.location.LocationManager;
46 public synchronized void onLocationChanged(Location location) { in onLocationChanged() argument
48 mLocationList.add(location); in onLocationChanged()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/map_extensiondatatypes/
DPrivateExtension.java17 package android.location.cts.asn1.supl2.map_extensiondatatypes;
25 import android.location.cts.asn1.base.Asn1Null;
26 import android.location.cts.asn1.base.Asn1Object;
27 import android.location.cts.asn1.base.Asn1Sequence;
28 import android.location.cts.asn1.base.Asn1Tag;
29 import android.location.cts.asn1.base.BitStream;
30 import android.location.cts.asn1.base.BitStreamReader;
31 import android.location.cts.asn1.base.SequenceComponent;
/cts/tests/location/common/src/android/location/cts/common/gnss/
DGnssAntennaInfoCapture.java17 package android.location.cts.common.gnss;
20 import android.location.GnssAntennaInfo;
21 import android.location.Location;
22 import android.location.LocationListener;
23 import android.location.LocationManager;
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/supl_notify/
DVer2_SUPLNOTIFY.java17 package android.location.cts.asn1.supl2.supl_notify;
25 import android.location.cts.asn1.base.Asn1Null;
26 import android.location.cts.asn1.base.Asn1Object;
27 import android.location.cts.asn1.base.Asn1Sequence;
28 import android.location.cts.asn1.base.Asn1Tag;
29 import android.location.cts.asn1.base.BitStream;
30 import android.location.cts.asn1.base.BitStreamReader;
31 import android.location.cts.asn1.base.SequenceComponent;
32 import android.location.cts.asn1.supl2.supl_init.Notification;
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/supl_report/
DSessionInformation.java17 package android.location.cts.asn1.supl2.supl_report;
25 import android.location.cts.asn1.base.Asn1Null;
26 import android.location.cts.asn1.base.Asn1Object;
27 import android.location.cts.asn1.base.Asn1Sequence;
28 import android.location.cts.asn1.base.Asn1Tag;
29 import android.location.cts.asn1.base.BitStream;
30 import android.location.cts.asn1.base.BitStreamReader;
31 import android.location.cts.asn1.base.SequenceComponent;
32 import android.location.cts.asn1.supl2.ulp_components.SessionID;
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/supl2/supl_triggered_stop/
DVer2_SUPLTRIGGEREDSTOP.java17 package android.location.cts.asn1.supl2.supl_triggered_stop;
25 import android.location.cts.asn1.base.Asn1Null;
26 import android.location.cts.asn1.base.Asn1Object;
27 import android.location.cts.asn1.base.Asn1Sequence;
28 import android.location.cts.asn1.base.Asn1Tag;
29 import android.location.cts.asn1.base.BitStream;
30 import android.location.cts.asn1.base.BitStreamReader;
31 import android.location.cts.asn1.base.SequenceComponent;
32 import android.location.cts.asn1.supl2.ulp_components.StatusCode;

12345678910>>...30