Don't strict GNSS measurement test

If the target is the watch device, always exempt this test
if GNSS hardware year is older than 2016,
even if the device starts with P.

Bug:121172430

Change-Id: I614dcadab1f18e30ed4cadf3a158ef0d6af1a953
diff --git a/tests/tests/location/src/android/location/cts/GnssTestCase.java b/tests/tests/location/src/android/location/cts/GnssTestCase.java
index a128c95..62c38c88 100644
--- a/tests/tests/location/src/android/location/cts/GnssTestCase.java
+++ b/tests/tests/location/src/android/location/cts/GnssTestCase.java
@@ -19,6 +19,7 @@
 import android.os.SystemProperties;
 import android.test.AndroidTestCase;
 import android.util.Log;
+import android.content.pm.PackageManager;
 
 /**
  * Base Test Case class for all Gnss Tests.
@@ -37,7 +38,8 @@
     // On devices using newer hardware, GNSS measurement support is required.
     protected boolean isMeasurementTestStrict() {
         // Enforce strict measurement test on devices with first API level at least P.
-        if (SystemProperties.getInt("ro.product.first_api_level", 0) >= Build.VERSION_CODES.P) {
+        if (SystemProperties.getInt("ro.product.first_api_level", 0) >= Build.VERSION_CODES.P &&
+            !getContext().getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) {
             return true;
         }