Create empty workspace of CTS for SettingAPI.

Bug: b/187659818

Test: manual

Change-Id: Ie73d2c0344ea46cccb9d8cb52bd640822bceafd1
diff --git a/tests/atv/OWNERS b/tests/atv/OWNERS
new file mode 100644
index 0000000..02fada1
--- /dev/null
+++ b/tests/atv/OWNERS
@@ -0,0 +1,4 @@
+# Bug component: 105709
+dwliu@google.com
+jingjiangli@google.com
+zhizhiliu@google.com
diff --git a/tests/atv/SettingsAPI/Android.bp b/tests/atv/SettingsAPI/Android.bp
new file mode 100644
index 0000000..04c7c48
--- /dev/null
+++ b/tests/atv/SettingsAPI/Android.bp
@@ -0,0 +1,47 @@
+// Copyright (C) 2021 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 {
+    default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+android_test {
+    name: "CtsSettingsAPITestCases",
+    defaults: ["cts_defaults"],
+    dex_preopt: {
+        enabled: false,
+    },
+    optimize: {
+        enabled: false,
+    },
+    static_libs: [
+        "androidx.test.rules",
+        "compatibility-device-util-axt",
+        "truth-prebuilt",
+        "TvSettingsAPI"
+    ],
+    libs: [
+        "android.test.runner",
+        "android.test.base",
+    ],
+    srcs: ["src/**/*.java"],
+    // Tag this module as a cts test artifact
+    test_suites: [
+        "cts",
+        "general-tests",
+    ],
+    sdk_version: "test_current",
+    min_sdk_version: "31",
+}
+
diff --git a/tests/atv/SettingsAPI/AndroidManifest.xml b/tests/atv/SettingsAPI/AndroidManifest.xml
new file mode 100644
index 0000000..6cdb447
--- /dev/null
+++ b/tests/atv/SettingsAPI/AndroidManifest.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Copyright (C) 2021 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.
+  -->
+
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+     package="com.android.tv.settings.library.cts">
+    <uses-sdk android:minSdkVersion="31" />
+    <application>
+        <uses-library android:name="android.test.runner"/>
+    </application>
+    <!--  self-instrumenting test package. -->
+    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
+         android:label="CTS TV Settings API tests"
+         android:targetPackage="com.android.tv.settings.library.cts">
+    </instrumentation>
+</manifest>
diff --git a/tests/atv/SettingsAPI/AndroidTest.xml b/tests/atv/SettingsAPI/AndroidTest.xml
new file mode 100644
index 0000000..8c2e0ff
--- /dev/null
+++ b/tests/atv/SettingsAPI/AndroidTest.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Copyright (C) 2021 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.
+  -->
+<configuration description="Config for CTS TV Settings API test cases">
+    <option name="test-suite-tag" value="cts" />
+    <option name="config-descriptor:metadata" key="component" value="framework" />
+    <option name="config-descriptor:metadata" key="parameter" value="instant_app" />
+    <option name="config-descriptor:metadata" key="parameter" value="not_multi_abi" />
+    <option name="config-descriptor:metadata" key="parameter" value="secondary_user" />
+    <target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
+        <option name="cleanup-apks" value="true" />
+        <option name="test-file-name" value="CtsSettingsAPITestCases.apk" />
+    </target_preparer>
+    <test class="com.android.tradefed.testtype.AndroidJUnitTest" >
+        <option name="package" value="com.android.tv.settings.library.cts" />
+    </test>
+</configuration>
diff --git a/tests/atv/SettingsAPI/OWNERS b/tests/atv/SettingsAPI/OWNERS
new file mode 100644
index 0000000..bfa0720
--- /dev/null
+++ b/tests/atv/SettingsAPI/OWNERS
@@ -0,0 +1,4 @@
+# Bug component: 105709
+dwliu@google.com
+jingjiangli@google.com
+zhizhiliu@google.com
\ No newline at end of file
diff --git a/tests/atv/SettingsAPI/src/com/android/tv/settings/library/cts/ManagerUtilTest.java b/tests/atv/SettingsAPI/src/com/android/tv/settings/library/cts/ManagerUtilTest.java
new file mode 100644
index 0000000..b026a5d
--- /dev/null
+++ b/tests/atv/SettingsAPI/src/com/android/tv/settings/library/cts/ManagerUtilTest.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2021 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.tv.settings.library.cts;
+
+import static com.google.common.truth.Truth.assertThat;
+
+import static org.junit.Assert.assertThrows;
+
+import com.android.tv.settings.library.ManagerUtil;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.JUnit4;
+
+@RunWith(JUnit4.class)
+public class ManagerUtilTest {
+    // TODO(b/187659818) Add test cases for ManagerUtil.
+    @Test
+    public void testGetChecked() {
+        // TODO(b/187659818) Implement test case for the function
+        //  testGetChecked.
+    }
+}
\ No newline at end of file