/cts/tests/tests/location/src/android/location/cts/ |
D | GnssLocationRateChangeTest.java | 45 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 57 mTestLocationManager.removeLocationUpdates(mLocationListenerMain); in tearDown() 60 mTestLocationManager.removeLocationUpdates(mLocationListenerAfterRateChanges); in tearDown() 77 mTestLocationManager.requestLocationUpdates(mLocationListenerMain); in testVariedRates() 83 mTestLocationManager.requestLocationUpdates(mLocationListenerMain, in testVariedRates() 86 mTestLocationManager.removeLocationUpdates(mLocationListenerMain); in testVariedRates() 88 mTestLocationManager.requestLocationUpdates(mLocationListenerAfterRateChanges); in testVariedRates() 107 mTestLocationManager.requestLocationUpdates(mLocationListenerMain); in testVariedRatesOnOff() 113 mTestLocationManager.requestLocationUpdates(mLocationListenerMain, in testVariedRatesOnOff() 116 mTestLocationManager.removeLocationUpdates(mLocationListenerMain); in testVariedRatesOnOff() [all …]
|
D | GnssNavigationMessageRegistrationTest.java | 60 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 67 mTestLocationManager in tearDown() 72 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown() 75 mTestLocationManager.removeGpsStatusListener(mGpsStatusListener); in tearDown() 87 if (!TestMeasurementUtil.canTestRunOnCurrentDevice(mTestLocationManager, in testGnssNavigationMessageRegistration() 95 … mTestLocationManager.registerGnssNavigationMessageCallback(mTestGnssNavigationMessageListener); in testGnssNavigationMessageRegistration() 105 TestMeasurementUtil.verifyGnssNavMessageMandatoryField(mTestLocationManager, events); in testGnssNavigationMessageRegistration() 117 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssNavigationMessageRegistration() 124 mGpsStatusListener = new TestGpsStatusListener(EVENTS_COUNT, mTestLocationManager); in testGnssNavigationMessageRegistration() 125 mTestLocationManager.addGpsStatusListener(mGpsStatusListener); in testGnssNavigationMessageRegistration()
|
D | GnssMeasurementWhenNoLocationTest.java | 73 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 80 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown() 83 mTestLocationManager.unregisterGnssMeasurementCallback(mMeasurementListener); in tearDown() 86 mTestLocationManager.removeGpsStatusListener(mGpsStatusListener); in tearDown() 98 if (!TestMeasurementUtil.canTestRunOnCurrentDevice(mTestLocationManager, in testGnssMeasurementWhenNoLocation() 104 if (!mTestLocationManager.sendExtraCommand(AGPS_DELETE_COMMAND)) { in testGnssMeasurementWhenNoLocation() 111 mTestLocationManager.registerGnssMeasurementCallback(mMeasurementListener); in testGnssMeasurementWhenNoLocation() 114 mGpsStatusListener = new TestGpsStatusListener(EVENTS_COUNT, mTestLocationManager); in testGnssMeasurementWhenNoLocation() 115 mTestLocationManager.addGpsStatusListener(mGpsStatusListener); in testGnssMeasurementWhenNoLocation() 119 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssMeasurementWhenNoLocation() [all …]
|
D | GnssMeasurementValuesTest.java | 53 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 60 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown() 63 mTestLocationManager.unregisterGnssMeasurementCallback(mMeasurementListener); in tearDown() 76 if (!TestMeasurementUtil.canTestRunOnCurrentDevice(mTestLocationManager, in testListenForGnssMeasurements() 82 mTestLocationManager.requestLocationUpdates(mLocationListener); in testListenForGnssMeasurements() 85 mTestLocationManager.registerGnssMeasurementCallback(mMeasurementListener); in testListenForGnssMeasurements() 122 TestMeasurementUtil.assertAllGnssMeasurementMandatoryFields(mTestLocationManager, in testListenForGnssMeasurements()
|
D | GnssMeasurementRegistrationTest.java | 62 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 69 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown() 72 mTestLocationManager.unregisterGnssMeasurementCallback(mMeasurementListener); in tearDown() 83 if (!TestMeasurementUtil.canTestRunOnCurrentDevice(mTestLocationManager, in testGnssMeasurementRegistration() 90 mTestLocationManager.registerGnssMeasurementCallback(mMeasurementListener); in testGnssMeasurementRegistration() 115 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssMeasurementRegistration()
|
D | GnssStatusTest.java | 16 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 25 if (!TestMeasurementUtil.canTestRunOnCurrentDevice(mTestLocationManager, in testGnssStatusChanges() 38 mTestLocationManager.registerGnssStatusCallback(testGnssStatusCallback); in checkGnssChange() 41 mTestLocationManager.requestLocationUpdates(locationListener); in checkGnssChange() 46 mTestLocationManager.removeLocationUpdates(locationListener); in checkGnssChange() 48 mTestLocationManager.unregisterGnssStatusCallback(testGnssStatusCallback); in checkGnssChange() 63 if (!TestMeasurementUtil.canTestRunOnCurrentDevice(mTestLocationManager, in testGnssStatusValues() 91 TestMeasurementUtil.verifyGnssCarrierFrequency(softAssert, mTestLocationManager, in validateGnssStatus()
|
D | GnssHardwareInfoTest.java | 41 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 53 int gnssHardwareYear = mTestLocationManager.getLocationManager().getGnssYearOfHardware(); in testHardwareYear() 68 int gnssHardwareYear = mTestLocationManager.getLocationManager().getGnssYearOfHardware(); in testHardwareModelName() 70 mTestLocationManager.getLocationManager().getGnssHardwareModelName(); in testHardwareModelName()
|
D | GnssMeasurementsConstellationTest.java | 57 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 64 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown() 67 mTestLocationManager.unregisterGnssMeasurementCallback(mMeasurementListener); in tearDown() 78 if (!TestMeasurementUtil.canTestRunOnCurrentDevice(mTestLocationManager, in testGnssMultiConstellationSupported() 85 mTestLocationManager.registerGnssMeasurementCallback(mMeasurementListener); in testGnssMultiConstellationSupported() 89 mTestLocationManager.requestLocationUpdates(mLocationListener); in testGnssMultiConstellationSupported()
|
D | GnssTtffTests.java | 32 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 64 mTestLocationManager.sendExtraCommand("delete_aiding_data"); in checkTtffWarmWithWifiOn() 120 mTestLocationManager.requestNetworkLocationUpdates(networkLocationListener); in checkTtffByThreshold() 125 mTestLocationManager.registerGnssStatusCallback(testGnssStatusCallback); in checkTtffByThreshold() 128 mTestLocationManager.requestLocationUpdates(locationListener); in checkTtffByThreshold() 141 mTestLocationManager.removeLocationUpdates(locationListener); in checkTtffByThreshold() 142 mTestLocationManager.unregisterGnssStatusCallback(testGnssStatusCallback); in checkTtffByThreshold()
|
D | GnssNavigationMessageTest.java | 49 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 56 mTestLocationManager in tearDown() 71 if (!TestMeasurementUtil.canTestRunOnCurrentDevice(mTestLocationManager, in testGnssNavigationMessageMandatoryFieldRanges() 79 mTestLocationManager in testGnssNavigationMessageMandatoryFieldRanges() 97 TestMeasurementUtil.verifyGnssNavMessageMandatoryField(mTestLocationManager, events); in testGnssNavigationMessageMandatoryFieldRanges()
|
D | GnssTestCase.java | 30 protected TestLocationManager mTestLocationManager; field in GnssTestCase 40 return ((mTestLocationManager.getLocationManager().getGnssYearOfHardware() >= in isMeasurementTestStrict()
|
D | GnssLocationValuesTest.java | 44 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 45 int gnssYearOfHardware = mTestLocationManager.getLocationManager().getGnssYearOfHardware(); in setUp() 56 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown() 67 mTestLocationManager.requestLocationUpdates(mLocationListener); in testAccuracyFields() 125 mTestLocationManager.requestLocationUpdates(mLocationListener); in testLocationRegularFields()
|
D | GnssPseudorangeVerificationTest.java | 75 mTestLocationManager = new TestLocationManager(getContext()); in setUp() 82 mTestLocationManager.removeLocationUpdates(mLocationListener); in tearDown() 85 mTestLocationManager.unregisterGnssMeasurementCallback(mMeasurementListener); in tearDown() 100 if (!TestMeasurementUtil.canTestRunOnCurrentDevice(mTestLocationManager, in testPseudorangeValue() 106 mTestLocationManager.requestLocationUpdates(mLocationListener); in testPseudorangeValue() 110 mTestLocationManager.registerGnssMeasurementCallback(mMeasurementListener); in testPseudorangeValue() 244 if (!TestMeasurementUtil.canTestRunOnCurrentDevice(mTestLocationManager, in testPseudoPosition() 250 mTestLocationManager.requestLocationUpdates(mLocationListener); in testPseudoPosition() 254 mTestLocationManager.registerGnssMeasurementCallback(mMeasurementListener); in testPseudoPosition() 272 int gnssYearOfHardware = mTestLocationManager.getLocationManager().getGnssYearOfHardware(); in testPseudoPosition()
|