Home
last modified time | relevance | path

Searched refs:activityTestRule (Results 1 – 7 of 7) sorted by relevance

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsTouchUtils.java92 ActivityTestRule<?> activityTestRule, View view) { in emulateTapOnViewCenter() argument
93 emulateTapOnView(instrumentation, activityTestRule, view, view.getWidth() / 2, in emulateTapOnViewCenter()
107 ActivityTestRule<?> activityTestRule, View anchorView, in emulateTapOnView() argument
124 if (activityTestRule != null) { in emulateTapOnView()
125 WidgetTestUtils.runOnMainAndDrawSync(activityTestRule, in emulateTapOnView()
126 activityTestRule.getActivity().getWindow().getDecorView(), null); in emulateTapOnView()
139 ActivityTestRule<?> activityTestRule, View view) { in emulateDoubleTapOnViewCenter() argument
140 emulateDoubleTapOnView(instrumentation, activityTestRule, view, view.getWidth() / 2, in emulateDoubleTapOnViewCenter()
154 ActivityTestRule<?> activityTestRule, View anchorView, in emulateDoubleTapOnView() argument
172 if (activityTestRule != null) { in emulateDoubleTapOnView()
[all …]
DWidgetTestUtils.java214 public static void runOnMainAndDrawSync(@NonNull final ActivityTestRule activityTestRule,
219 activityTestRule.runOnUiThread(() -> {
298 public static void runOnMainAndLayoutSync(@NonNull final ActivityTestRule activityTestRule,
301 runOnMainAndLayoutSync(activityTestRule,
302 activityTestRule.getActivity().getWindow().getDecorView(), runner, forceLayout);
316 public static void runOnMainAndLayoutSync(@NonNull final ActivityTestRule activityTestRule,
323 activityTestRule.runOnUiThread(() -> {
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTestUtils.java54 final ActivityTestRule activityTestRule, final View view, final Animation animation) in assertRunAnimation() argument
56 assertRunAnimation(instrumentation, activityTestRule, view, animation, in assertRunAnimation()
71 final ActivityTestRule activityTestRule, final View view, final Animation animation, in assertRunAnimation() argument
74 activityTestRule.runOnUiThread(() -> view.startAnimation(animation)); in assertRunAnimation()
89 public static void assertRunController(final ActivityTestRule activityTestRule, in assertRunController() argument
93 activityTestRule.runOnUiThread(() -> { in assertRunController()
/cts/tests/tests/slice/src/android/slice/cts/
DSliceProviderTest.kt45 @Rule @JvmField var activityTestRule = ActivityTestRule(Launcher::class.java) variable in android.slice.cts.SliceProviderTest
59 contentResolver = activityTestRule.activity.contentResolver in setUp()
60 isSlicesDisabled = activityTestRule in setUp()
/cts/tests/tests/widget/src/android/widget/cts/util/
DStretchEdgeUtil.kt217 activityTestRule: ActivityTestRule<*>?, in emulateDragGesture()
240 if (activityTestRule != null) { in emulateDragGesture()
241 WidgetTestUtils.runOnMainAndDrawSync(activityTestRule, in emulateDragGesture()
242 activityTestRule.activity.getWindow().getDecorView(), null) in emulateDragGesture()
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplayClientTests.java96 final ActivityTestRule<T> activityTestRule = new ActivityTestRule<>( in testDisplayIdUpdateOnMove() local
101 Activity activity = activityTestRule.launchActivity(new Intent()); in testDisplayIdUpdateOnMove()
128 activity = activityTestRule.getActivity(); in testDisplayIdUpdateOnMove()
/cts/tests/tests/widget/src/android/widget/cts/
DExpandableListTester.java42 public ExpandableListTester(ActivityTestRule<?> activityTestRule, in ExpandableListTester() argument
44 mActivityTestRule = activityTestRule; in ExpandableListTester()