Add Sdk30ModuleController

Used to skip tests not applicable to API levels less than 30 (R).

Bug: 153754407
Test: atest DeviceEffectTest
Change-Id: I38adc3322d818e69be1d84636e0aa09c16fe78ef
diff --git a/src/com/android/tradefed/testtype/suite/module/Sdk30ModuleController.java b/src/com/android/tradefed/testtype/suite/module/Sdk30ModuleController.java
new file mode 100644
index 0000000..13ca021
--- /dev/null
+++ b/src/com/android/tradefed/testtype/suite/module/Sdk30ModuleController.java
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.android.tradefed.testtype.suite.module;
+
+/**
+ * Only run tests if the device under test is SDK version 30 or above.
+ *
+ * <p>Use by adding this line to your AndroidTest.xml: <object type="module_controller"
+ * class="com.android.tradefed.testtype.suite.module.Sdk30ModuleController" />
+ */
+public class Sdk30ModuleController extends MinSdkModuleController {
+    public Sdk30ModuleController() {
+        super(30);
+    }
+}