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.java73 ActivityTestRule<?> activityTestRule, View view) { in emulateTapOnViewCenter() argument
74 emulateTapOnViewCenter(instrumentation, activityTestRule, view, true); in emulateTapOnViewCenter()
85 ActivityTestRule<?> activityTestRule, View view, boolean waitForAnimations) { in emulateTapOnViewCenter() argument
86 emulateTapOnView(instrumentation, activityTestRule, view, view.getWidth() / 2, in emulateTapOnViewCenter()
100 ActivityTestRule<?> activityTestRule, View anchorView, in emulateTapOnView() argument
102 emulateTapOnView(instrumentation, activityTestRule, anchorView, offsetX, offsetY, true); in emulateTapOnView()
116 ActivityTestRule<?> activityTestRule, View anchorView, in emulateTapOnView() argument
133 if (activityTestRule != null) { in emulateTapOnView()
134 WidgetTestUtils.runOnMainAndDrawSync(activityTestRule, in emulateTapOnView()
135 activityTestRule.getActivity().getWindow().getDecorView(), null); in emulateTapOnView()
[all …]
DWidgetTestUtils.java214 public static void runOnMainAndDrawSync(@NonNull final ActivityTestRule activityTestRule,
219 activityTestRule.runOnUiThread(() -> {
256 public static void runOnMainAndLayoutSync(@NonNull final ActivityTestRule activityTestRule,
259 runOnMainAndLayoutSync(activityTestRule,
260 activityTestRule.getActivity().getWindow().getDecorView(), runner, forceLayout);
274 public static void runOnMainAndLayoutSync(@NonNull final ActivityTestRule activityTestRule,
281 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.kt44 @Rule @JvmField var activityTestRule = ActivityTestRule(Launcher::class.java) variable in android.slice.cts.SliceProviderTest
56 contentResolver = activityTestRule.activity.contentResolver in setUp()
57 isSlicesDisabled = activityTestRule in setUp()
/cts/tests/tests/widget/src/android/widget/cts/util/
DStretchEdgeUtil.kt204 activityTestRule: ActivityTestRule<*>?, in emulateDragGesture()
227 if (activityTestRule != null) { in emulateDragGesture()
228 WidgetTestUtils.runOnMainAndDrawSync(activityTestRule, in emulateDragGesture()
229 activityTestRule.activity.getWindow().getDecorView(), null) in emulateDragGesture()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayClientTests.java93 final ActivityTestRule<T> activityTestRule = new ActivityTestRule<>( in testDisplayIdUpdateOnMove() local
98 Activity activity = activityTestRule.launchActivity(new Intent()); in testDisplayIdUpdateOnMove()
125 activity = activityTestRule.getActivity(); in testDisplayIdUpdateOnMove()
/cts/tests/tests/widget/src/android/widget/cts/
DExpandableListTester.java41 public ExpandableListTester(ActivityTestRule<?> activityTestRule, in ExpandableListTester() argument
43 mActivityTestRule = activityTestRule; in ExpandableListTester()