Add ViewConfiguration test for getScaledAmbiguousGestureMultiplier().
Bug: 132648945
Test: run cts -m android.view.cts
Change-Id: Ie1beedcbc05e4ebd67c357151df8a6aef0e6a067
diff --git a/tests/tests/view/src/android/view/cts/ViewConfigurationTest.java b/tests/tests/view/src/android/view/cts/ViewConfigurationTest.java
index 355d175..830ffc9 100644
--- a/tests/tests/view/src/android/view/cts/ViewConfigurationTest.java
+++ b/tests/tests/view/src/android/view/cts/ViewConfigurationTest.java
@@ -133,6 +133,13 @@
}
@Test
+ public void testGetScaledAmbiguousGestureMultiplier() {
+ ViewConfiguration vc = ViewConfiguration.get(InstrumentationRegistry.getTargetContext());
+ final float instanceMultiplier = vc.getScaledAmbiguousGestureMultiplier();
+ assertTrue(instanceMultiplier >= 1);
+ }
+
+ @Test
public void testGetMaximumDrawingCacheSize() {
Context context = InstrumentationRegistry.getTargetContext();
ViewConfiguration vc = ViewConfiguration.get(context);