Disable CTS to verify the throttling behavior.
With ag/987641, ShortcutManager no longer throttles apps with
foreground services, but when CTS is running, the process will
be in this state. Meaning we can no longer test this behavior
in a simple way like this.
Bug 27923857
Change-Id: I08c11632712fa55cd57d171cc20fbb0e71296c5b
diff --git a/tests/tests/shortcutmanager/src/android/content/pm/cts/ShortcutManagerThrottlingTest.java b/tests/tests/shortcutmanager/src/android/content/pm/cts/ShortcutManagerThrottlingTest.java
index d5fda4d..8347bc0 100644
--- a/tests/tests/shortcutmanager/src/android/content/pm/cts/ShortcutManagerThrottlingTest.java
+++ b/tests/tests/shortcutmanager/src/android/content/pm/cts/ShortcutManagerThrottlingTest.java
@@ -18,7 +18,9 @@
import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.*;
import android.test.suitebuilder.annotation.LargeTest;
+import android.test.suitebuilder.annotation.Suppress;
+import java.util.List;
import java.util.function.BooleanSupplier;
public class ShortcutManagerThrottlingTest extends ShortcutManagerCtsTestsBase {
@@ -131,6 +133,15 @@
});
}
+ /**
+ * Make sure {@link android.content.pm.ShortcutManager#setDynamicShortcuts(List)} correctly
+ * throttles calls.
+ *
+ * <p>Suppressed for now -- because when an instrumentation test is running, the process
+ * will be in the PROCESS_STATE_FOREGROUND_SERVICE state, so none of calls will be throttled.
+ * Need a different way to verify this.
+ */
+ @Suppress
@LargeTest
public void testThrottled_setDynamicShortcuts() {
runWithCaller(mPackageContext1, () -> {