Home
last modified time | relevance | path

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

12345678910>>...33

/cts/tests/location/location_none/src/android/location/cts/none/
DAltitudeConverterTest.java17 package android.location.cts.none;
24 import android.location.Location;
25 import android.location.altitude.AltitudeConverter;
53 Location location = new Location(""); in testAddMslAltitudeToLocation_expectedBehavior() local
54 location.setLatitude(-35.334815); in testAddMslAltitudeToLocation_expectedBehavior()
55 location.setLongitude(-45); in testAddMslAltitudeToLocation_expectedBehavior()
56 location.setAltitude(-1); in testAddMslAltitudeToLocation_expectedBehavior()
57 location.setVerticalAccuracyMeters(1); in testAddMslAltitudeToLocation_expectedBehavior()
59 assertThat(mAltitudeConverter.tryAddMslAltitudeToLocation(location)).isFalse(); in testAddMslAltitudeToLocation_expectedBehavior()
60 assertThat(location.hasMslAltitude()).isFalse(); in testAddMslAltitudeToLocation_expectedBehavior()
[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;
84 for (Location location : mLocationListener.getReceivedLocationList()) { in testAccuracyFields()
85 checkLocationAccuracyFields(softAssert, location, in testAccuracyFields()
93 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;
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.SoftAssert;
24 import android.location.cts.common.TestGnssMeasurementListener;
25 import android.location.cts.common.TestGnssStatusCallback;
26 import android.location.cts.common.TestLocationListener;
27 import android.location.cts.common.TestLocationManager;
[all …]
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.TestGnssStatusCallback;
23 import android.location.cts.common.TestLocationListener;
24 import android.location.cts.common.TestLocationManager;
25 import android.location.cts.common.TestMeasurementUtil;
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.TestGnssStatusCallback;
25 import android.location.cts.common.TestLocationListener;
26 import android.location.cts.common.TestLocationManager;
27 import android.location.cts.common.TestMeasurementUtil;
DGnssAntennaInfoTest.java1 package android.location.cts.gnss;
12 import android.location.GnssAntennaInfo;
13 import android.location.LocationListener;
14 import android.location.LocationManager;
15 import android.location.cts.common.TestGnssStatusCallback;
16 import android.location.cts.common.TestLocationManager;
17 import android.location.cts.common.TestMeasurementUtil;
18 import android.location.cts.common.TestUtils;
97 LocationListener listener = location -> {}; in checkGnssChange()
DGnssMeasurementRegistrationTest.java17 package android.location.cts.gnss;
23 import android.location.GnssMeasurement;
24 import android.location.GnssMeasurementRequest;
25 import android.location.GnssMeasurementsEvent;
26 import android.location.GnssStatus;
27 import android.location.cts.common.SoftAssert;
28 import android.location.cts.common.TestGnssMeasurementListener;
29 import android.location.cts.common.TestGnssStatusCallback;
30 import android.location.cts.common.TestLocationListener;
31 import android.location.cts.common.TestLocationManager;
[all …]
/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;
121 for (Location location : mLocationListener.getReceivedLocationList()) { in waitAndValidateLowPowerLocations()
122 checkLocationRegularFields(softAssert, location, checkSpeed); in waitAndValidateLowPowerLocations()
129 private static void checkLocationRegularFields(SoftAssert softAssert, Location location, in checkLocationRegularFields() argument
[all …]
DGnssMeasurementCorrectionsInjectionTest.java17 package android.location.cts.privileged;
23 import android.location.GnssMeasurementCorrections;
24 import android.location.GnssSingleSatCorrection;
25 import android.location.GnssStatus;
26 import android.location.Location;
27 import android.location.cts.common.TestGnssStatusCallback;
28 import android.location.cts.common.TestLocationListener;
29 import android.location.cts.common.TestLocationManager;
30 import android.location.cts.common.TestMeasurementUtil;
121 for (Location location : locations) { in testInjectGnssMeasurementCorrections()
[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/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/location/
DLocationProvider.java17 package com.android.bedstead.nene.location;
25 import android.location.Location;
26 import android.location.LocationManager;
27 import android.location.provider.ProviderProperties;
86 TestApis.location().setLocationEnabled(false); in clearTestProviderLocation()
87 TestApis.location().setLocationEnabled(true); in clearTestProviderLocation()
97 Location location = new Location(provider); in createLocation() local
98 location.setLatitude(latitude); in createLocation()
99 location.setLongitude(longitude); in createLocation()
100 location.setAccuracy(accuracy); in createLocation()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DLocationUtils.java20 import android.location.Location;
57 Location location = new Location(provider); in createLocation() local
58 location.setLatitude(latitude); in createLocation()
59 location.setLongitude(longitude); in createLocation()
60 location.setAccuracy(accuracy); in createLocation()
61 location.setTime(System.currentTimeMillis()); in createLocation()
62 location.setElapsedRealtimeNanos(elapsedRealTimeNanos); in createLocation()
63 return location; in createLocation()
/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_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_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/tools/vm-tests-tf/
DAndroid.bp57 cmd: "$(location vmtests-buildutil) util.build.BuildCTSHostSources $(genDir) " +
58 " && $(location soong_zip) -jar -o $(out) -C $(genDir) -D $(genDir)/dot",
80 …cmd: "$(location etc/vmtests-cfassembler.sh) $(location cfassembler) $(location soong_zip) $(genDi…
91 " && $(location vmtests-buildutil) util.build.BuildCTSMainsSources $(genDir)/src " +
92 " && $(location soong_zip) -jar -o $(out) -C $(genDir)/src -D $(genDir)/src",
153 " && unzip -bq $(location :cts-tf-dalvik-buildutil) -d $(genDir)/classes" +
156 …" -cp $(location :cts-tf-dalvik-buildutil):$(location :junit):$(location :d8):$(location :andr…
162 " && $(location soong_zip) -jar -o $(genDir)/tests/dot/junit/dexcore.jar-class.jar" +
168 " && $(location d8) -JXms16M -JXmx2048M" +
171 " && $(location soong_zip) -jar -o $(genDir)/tests/dot/junit/dexcore.jar" +
[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/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/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/hostsidetests/security/
DAndroid.bp82 "$(location soong_zip) -jar -o $(location CtsSecurityHostTestCases_StaticLibs.jar) -j " +
83 "-f $(location checkseapp) " +
84 "-f $(location checkfc) " +
85 "-f $(location property_info_checker) " +
86 "-f $(location searchpolicy) " +
87 "-f $(location secilc) " +
88 "-f $(location sepolicy-analyze) " +
89 "-f $(location sepolicy_tests) " +
90 "-f $(location :general_sepolicy.conf) " +
/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/common/device-side/bedstead/testapp/
DAndroid.bp145 " && cp $(location :EmptyTestApp) $(genDir)/res/raw" +
146 " && cp $(location :NotEmptyTestApp) $(genDir)/res/raw" +
147 " && cp $(location :DeviceAdminTestApp) $(genDir)/res/raw" +
148 " && cp $(location :TestOnlyDeviceAdminTestApp) $(genDir)/res/raw" +
149 " && cp $(location :LockTaskApp) $(genDir)/res/raw" +
150 " && cp $(location :DelegateTestApp) $(genDir)/res/raw" +
151 " && cp $(location :ContentTestApp) $(genDir)/res/raw" +
152 " && cp $(location :DevicePolicyManagementRoleHolderTestApp) $(genDir)/res/raw" +
153 " && cp $(location :RemoteDPCTestApp) $(genDir)/res/raw" +
154 " && cp $(location :RemoteDPCTestAppTargetingV23) $(genDir)/res/raw" +
[all …]

12345678910>>...33