[sts] add @SecurityTest for testing invalid font size scales

BUG: 175816890
Test: sts-tf > run sts-engbuild-no-spl-lock -m CtsProviderTestCases -t android.provider.cts.settings.Settings_SystemTest#testSystemSettingsRejectInvalidFontSizeScale
Change-Id: I7bdfbccf28f99084230068b388fea94e21892e55
(cherry picked from commit 493d5913313dfb6b64868de4c4720e5d0b82771f)
Merged-In: I7bdfbccf28f99084230068b388fea94e21892e55
diff --git a/tests/tests/provider/src/android/provider/cts/Settings_SystemTest.java b/tests/tests/provider/src/android/provider/cts/Settings_SystemTest.java
index 279b393..60a883c 100644
--- a/tests/tests/provider/src/android/provider/cts/Settings_SystemTest.java
+++ b/tests/tests/provider/src/android/provider/cts/Settings_SystemTest.java
@@ -27,6 +27,7 @@
 import android.database.Cursor;
 import android.net.Uri;
 import android.os.SystemClock;
+import android.platform.test.annotations.SecurityTest;
 import android.provider.Settings;
 import android.provider.Settings.SettingNotFoundException;
 import android.provider.Settings.System;
@@ -129,6 +130,10 @@
         }
     }
 
+    /**
+     * Verifies that the invalid values for the font scale setting are rejected.
+     */
+    @SecurityTest(minPatchLevel = "2021-02")
     @Test
     public void testSystemSettingsRejectInvalidFontSizeScale() throws SettingNotFoundException {
         final ContentResolver cr = InstrumentationRegistry.getTargetContext().getContentResolver();