/cts/tests/location/location_none/src/android/location/cts/none/ |
D | LocationTest.java | 17 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/ |
D | GnssLocationValuesTest.java | 17 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 …]
|
D | GnssMeasurementsConstellationTest.java | 17 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;
|
D | GnssMeasurementRegistrationTest.java | 17 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 …]
|
D | GnssMeasurementWhenNoLocationTest.java | 17 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 …]
|
D | GnssMeasurementValuesTest.java | 17 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;
|
D | GnssNavigationMessageRegistrationTest.java | 17 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;
|
D | GnssAntennaInfoTest.java | 1 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/ |
D | GnssLocationValuesTest.java | 17 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 …]
|
D | GnssMeasurementRegistrationTest.java | 17 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 …]
|
D | GnssMeasurementValuesTest.java | 1 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/ |
D | sample.rscript | 27 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/ |
D | LocationManagerCoarseTest.java | 17 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/ |
D | LocationUtils.java | 20 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/ |
D | SuplRrlpMessagesGenerator.java | 17 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/ |
D | LocationProviderBaseTest.java | 17 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/ |
D | AccessLocationOnCommand.java | 19 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/ |
D | MagneticFieldMeasurementTestActivity.java | 33 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/ |
D | LocationListenerCapture.java | 17 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()
|
D | TestLocationListener.java | 16 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/ |
D | PrivateExtension.java | 17 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/ |
D | GnssAntennaInfoCapture.java | 17 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/ |
D | Ver2_SUPLNOTIFY.java | 17 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/ |
D | SessionInformation.java | 17 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/ |
D | Ver2_SUPLTRIGGEREDSTOP.java | 17 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;
|