Add cts test for android.view.animation.AnticipateInterpolator
Bug: 436374898
Test: atest CtsViewTestCases
Flag: EXEMPT test only
Change-Id: I44520960f576a049c981d93315303b69b52622ac
diff --git a/tests/tests/view/src/android/view/animation/cts/AnticipateInterpolatorTest.java b/tests/tests/view/src/android/view/animation/cts/AnticipateInterpolatorTest.java
new file mode 100644
index 0000000..c43c9fa
--- /dev/null
+++ b/tests/tests/view/src/android/view/animation/cts/AnticipateInterpolatorTest.java
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2025 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 android.view.animation.cts;
+
+import android.platform.test.annotations.AppModeSdkSandbox;
+import android.view.animation.AnticipateInterpolator;
+
+import androidx.test.filters.MediumTest;
+import androidx.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+@MediumTest
+@RunWith(AndroidJUnit4.class)
+@AppModeSdkSandbox(reason = "Allow test in the SDK sandbox (does not prevent other modes).")
+public class AnticipateInterpolatorTest {
+ @Test
+ public void testConstructor() {
+ new AnticipateInterpolator();
+ }
+}