Fix Location WLS test in Ryu

Ryu (Pixel C tablet) has no (functional) GPS chipset in it, so the
manifest should list no GPS,
so this test shouldn't run.

Test: mmma cts/tests/tests/location/
adb install CtsLocationTestCases.apk
adb shell am instrument -w  -e class
android.location.cts.GnssPseudorangeVerificationTest#testPseudoPosition
\
android.location.cts/android.support.test.runner.AndroidJUnitRunner

Bug: 65478514

Change-Id: I8241d2832add89d76d21295930f66e2e39ba920b
(cherry picked from commit 71f92e4b13bb1e333379af2ee2e1487fb6e5bd44)
diff --git a/tests/tests/location/src/android/location/cts/GnssPseudorangeVerificationTest.java b/tests/tests/location/src/android/location/cts/GnssPseudorangeVerificationTest.java
index f5e68f6..3521b34 100644
--- a/tests/tests/location/src/android/location/cts/GnssPseudorangeVerificationTest.java
+++ b/tests/tests/location/src/android/location/cts/GnssPseudorangeVerificationTest.java
@@ -227,7 +227,15 @@
  * Use pseudorange calculation library to calculate position then compare to location from
  * Location Manager.
  */
+  @CddTest(requirement="7.3.3")
   public void testPseudoPosition() throws Exception {
+    // Checks if Gnss hardware feature is present, skips test (pass) if not,
+    // and hard asserts that Location/Gnss (Provider) is turned on if is Cts Verifier.
+    if (!TestMeasurementUtil.canTestRunOnCurrentDevice(mTestLocationManager,
+        TAG, MIN_HARDWARE_YEAR_MEASUREMENTS_REQUIRED, isCtsVerifierTest())) {
+      return;
+    }
+
     mLocationListener = new TestLocationListener(LOCATION_TO_COLLECT_COUNT);
     mTestLocationManager.requestLocationUpdates(mLocationListener);