Home
last modified time | relevance | path

Searched refs:mTestLocationManager (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/location/src/android/location/cts/
DGnssLocationRateChangeTest.java45 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 …]
DGnssNavigationMessageRegistrationTest.java60 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()
95mTestLocationManager.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()
DGnssMeasurementWhenNoLocationTest.java73 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 …]
DGnssMeasurementValuesTest.java53 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()
DGnssMeasurementRegistrationTest.java62 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()
DGnssStatusTest.java16 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()
DGnssHardwareInfoTest.java41 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()
DGnssMeasurementsConstellationTest.java57 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()
DGnssTtffTests.java32 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()
DGnssNavigationMessageTest.java49 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()
DGnssTestCase.java30 protected TestLocationManager mTestLocationManager; field in GnssTestCase
40 return ((mTestLocationManager.getLocationManager().getGnssYearOfHardware() >= in isMeasurementTestStrict()
DGnssLocationValuesTest.java44 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()
DGnssPseudorangeVerificationTest.java75 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()