1// Signature format: 4.0
2package androidx.compose.ui.test {
3
4  public final class ActionsKt {
5    method public static androidx.compose.ui.test.SemanticsNodeInteraction performClick(androidx.compose.ui.test.SemanticsNodeInteraction);
6    method @Deprecated public static androidx.compose.ui.test.SemanticsNodeInteraction performGesture(androidx.compose.ui.test.SemanticsNodeInteraction, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.GestureScope,kotlin.Unit> block);
7    method @androidx.compose.ui.test.ExperimentalTestApi public static androidx.compose.ui.test.SemanticsNodeInteraction performKeyInput(androidx.compose.ui.test.SemanticsNodeInteraction, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.KeyInjectionScope,kotlin.Unit> block);
8    method @androidx.compose.ui.test.ExperimentalTestApi public static androidx.compose.ui.test.SemanticsNodeInteraction performMouseInput(androidx.compose.ui.test.SemanticsNodeInteraction, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.MouseInjectionScope,kotlin.Unit> block);
9    method public static androidx.compose.ui.test.SemanticsNodeInteraction performMultiModalInput(androidx.compose.ui.test.SemanticsNodeInteraction, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.MultiModalInjectionScope,kotlin.Unit> block);
10    method @androidx.compose.ui.test.ExperimentalTestApi public static androidx.compose.ui.test.SemanticsNodeInteraction performRotaryScrollInput(androidx.compose.ui.test.SemanticsNodeInteraction, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.RotaryInjectionScope,kotlin.Unit> block);
11    method public static androidx.compose.ui.test.SemanticsNodeInteraction performScrollTo(androidx.compose.ui.test.SemanticsNodeInteraction);
12    method public static androidx.compose.ui.test.SemanticsNodeInteraction performScrollToIndex(androidx.compose.ui.test.SemanticsNodeInteraction, int index);
13    method public static androidx.compose.ui.test.SemanticsNodeInteraction performScrollToKey(androidx.compose.ui.test.SemanticsNodeInteraction, Object key);
14    method public static androidx.compose.ui.test.SemanticsNodeInteraction performScrollToNode(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.test.SemanticsMatcher matcher);
15    method public static androidx.compose.ui.test.SemanticsNodeInteraction performSemanticsAction(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.semantics.SemanticsPropertyKey<androidx.compose.ui.semantics.AccessibilityAction<kotlin.jvm.functions.Function0<java.lang.Boolean>>> key);
16    method public static <T extends kotlin.Function<? extends java.lang.Boolean>> androidx.compose.ui.test.SemanticsNodeInteraction performSemanticsAction(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.semantics.SemanticsPropertyKey<androidx.compose.ui.semantics.AccessibilityAction<T>> key, kotlin.jvm.functions.Function1<? super T,kotlin.Unit> invocation);
17    method @Deprecated public static void performSemanticsActionUnit(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.semantics.SemanticsPropertyKey<androidx.compose.ui.semantics.AccessibilityAction<kotlin.jvm.functions.Function0<? extends java.lang.Boolean>>> key);
18    method @Deprecated public static <T extends kotlin.Function<? extends java.lang.Boolean>> void performSemanticsActionUnit(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.semantics.SemanticsPropertyKey<androidx.compose.ui.semantics.AccessibilityAction<T>> key, kotlin.jvm.functions.Function1<? super T,? extends kotlin.Unit> invocation);
19    method public static androidx.compose.ui.test.SemanticsNodeInteraction performTouchInput(androidx.compose.ui.test.SemanticsNodeInteraction, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.TouchInjectionScope,kotlin.Unit> block);
20  }
21
22  public final class AndroidImageHelpers_androidKt {
23    method @RequiresApi(android.os.Build.VERSION_CODES.O) public static androidx.compose.ui.graphics.ImageBitmap captureToImage(androidx.compose.ui.test.SemanticsNodeInteraction);
24  }
25
26  public final class AssertionsKt {
27    method public static androidx.compose.ui.test.SemanticsNodeInteraction assert(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.test.SemanticsMatcher matcher, optional kotlin.jvm.functions.Function0<java.lang.String>? messagePrefixOnError);
28    method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection assertAll(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher);
29    method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection assertAny(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher);
30    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertContentDescriptionContains(androidx.compose.ui.test.SemanticsNodeInteraction, String value, optional boolean substring, optional boolean ignoreCase);
31    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertContentDescriptionEquals(androidx.compose.ui.test.SemanticsNodeInteraction, java.lang.String... values);
32    method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection assertCountEquals(androidx.compose.ui.test.SemanticsNodeInteractionCollection, int expectedSize);
33    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHasClickAction(androidx.compose.ui.test.SemanticsNodeInteraction);
34    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHasNoClickAction(androidx.compose.ui.test.SemanticsNodeInteraction);
35    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsDisplayed(androidx.compose.ui.test.SemanticsNodeInteraction);
36    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsEnabled(androidx.compose.ui.test.SemanticsNodeInteraction);
37    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsFocused(androidx.compose.ui.test.SemanticsNodeInteraction);
38    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotDisplayed(androidx.compose.ui.test.SemanticsNodeInteraction);
39    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotEnabled(androidx.compose.ui.test.SemanticsNodeInteraction);
40    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotFocused(androidx.compose.ui.test.SemanticsNodeInteraction);
41    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotSelected(androidx.compose.ui.test.SemanticsNodeInteraction);
42    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsOff(androidx.compose.ui.test.SemanticsNodeInteraction);
43    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsOn(androidx.compose.ui.test.SemanticsNodeInteraction);
44    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsSelectable(androidx.compose.ui.test.SemanticsNodeInteraction);
45    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsSelected(androidx.compose.ui.test.SemanticsNodeInteraction);
46    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsToggleable(androidx.compose.ui.test.SemanticsNodeInteraction);
47    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertRangeInfoEquals(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.semantics.ProgressBarRangeInfo value);
48    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTextContains(androidx.compose.ui.test.SemanticsNodeInteraction, String value, optional boolean substring, optional boolean ignoreCase);
49    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTextEquals(androidx.compose.ui.test.SemanticsNodeInteraction, String![] values, optional boolean includeEditableText);
50    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertValueEquals(androidx.compose.ui.test.SemanticsNodeInteraction, String value);
51  }
52
53  public final class BoundsAssertionsKt {
54    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHeightIsAtLeast(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedMinHeight);
55    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHeightIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedHeight);
56    method public static void assertIsEqualTo(float, float expected, String subject, optional float tolerance);
57    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertLeftPositionInRootIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedLeft);
58    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertPositionInRootIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedLeft, float expectedTop);
59    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTopPositionInRootIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedTop);
60    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTouchHeightIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedHeight);
61    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTouchWidthIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedWidth);
62    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertWidthIsAtLeast(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedMinWidth);
63    method public static androidx.compose.ui.test.SemanticsNodeInteraction assertWidthIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedWidth);
64    method public static float getAlignmentLinePosition(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.layout.AlignmentLine alignmentLine);
65    method public static androidx.compose.ui.unit.DpRect getBoundsInRoot(androidx.compose.ui.test.SemanticsNodeInteraction);
66    method public static androidx.compose.ui.unit.DpRect getUnclippedBoundsInRoot(androidx.compose.ui.test.SemanticsNodeInteraction);
67  }
68
69  public final class ComposeTimeoutException extends java.lang.Throwable {
70    ctor public ComposeTimeoutException(String? message);
71  }
72
73  @kotlin.RequiresOptIn(message="This testing API is experimental and is likely to be changed or removed entirely") @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.BINARY) public @interface ExperimentalTestApi {
74  }
75
76  public final class FiltersKt {
77    method public static androidx.compose.ui.test.SemanticsMatcher hasAnyAncestor(androidx.compose.ui.test.SemanticsMatcher matcher);
78    method public static androidx.compose.ui.test.SemanticsMatcher hasAnyChild(androidx.compose.ui.test.SemanticsMatcher matcher);
79    method public static androidx.compose.ui.test.SemanticsMatcher hasAnyDescendant(androidx.compose.ui.test.SemanticsMatcher matcher);
80    method public static androidx.compose.ui.test.SemanticsMatcher hasAnySibling(androidx.compose.ui.test.SemanticsMatcher matcher);
81    method public static androidx.compose.ui.test.SemanticsMatcher hasClickAction();
82    method public static androidx.compose.ui.test.SemanticsMatcher hasContentDescription(String value, optional boolean substring, optional boolean ignoreCase);
83    method public static androidx.compose.ui.test.SemanticsMatcher hasContentDescriptionExactly(java.lang.String... values);
84    method public static androidx.compose.ui.test.SemanticsMatcher hasImeAction(int actionType);
85    method public static androidx.compose.ui.test.SemanticsMatcher hasNoClickAction();
86    method public static androidx.compose.ui.test.SemanticsMatcher hasNoScrollAction();
87    method public static androidx.compose.ui.test.SemanticsMatcher hasParent(androidx.compose.ui.test.SemanticsMatcher matcher);
88    method public static androidx.compose.ui.test.SemanticsMatcher hasProgressBarRangeInfo(androidx.compose.ui.semantics.ProgressBarRangeInfo rangeInfo);
89    method public static androidx.compose.ui.test.SemanticsMatcher hasScrollAction();
90    method public static androidx.compose.ui.test.SemanticsMatcher hasScrollToIndexAction();
91    method public static androidx.compose.ui.test.SemanticsMatcher hasScrollToKeyAction();
92    method public static androidx.compose.ui.test.SemanticsMatcher hasScrollToNodeAction();
93    method public static androidx.compose.ui.test.SemanticsMatcher hasSetTextAction();
94    method public static androidx.compose.ui.test.SemanticsMatcher hasStateDescription(String value);
95    method public static androidx.compose.ui.test.SemanticsMatcher hasTestTag(String testTag);
96    method public static androidx.compose.ui.test.SemanticsMatcher hasText(String text, optional boolean substring, optional boolean ignoreCase);
97    method public static androidx.compose.ui.test.SemanticsMatcher hasTextExactly(String![] textValues, optional boolean includeEditableText);
98    method public static androidx.compose.ui.test.SemanticsMatcher isDialog();
99    method public static androidx.compose.ui.test.SemanticsMatcher isEnabled();
100    method public static androidx.compose.ui.test.SemanticsMatcher isFocusable();
101    method public static androidx.compose.ui.test.SemanticsMatcher isFocused();
102    method public static androidx.compose.ui.test.SemanticsMatcher isHeading();
103    method public static androidx.compose.ui.test.SemanticsMatcher isNotEnabled();
104    method public static androidx.compose.ui.test.SemanticsMatcher isNotFocusable();
105    method public static androidx.compose.ui.test.SemanticsMatcher isNotFocused();
106    method public static androidx.compose.ui.test.SemanticsMatcher isNotSelected();
107    method public static androidx.compose.ui.test.SemanticsMatcher isOff();
108    method public static androidx.compose.ui.test.SemanticsMatcher isOn();
109    method public static androidx.compose.ui.test.SemanticsMatcher isPopup();
110    method public static androidx.compose.ui.test.SemanticsMatcher isRoot();
111    method public static androidx.compose.ui.test.SemanticsMatcher isSelectable();
112    method public static androidx.compose.ui.test.SemanticsMatcher isSelected();
113    method public static androidx.compose.ui.test.SemanticsMatcher isToggleable();
114  }
115
116  public final class FindersKt {
117    method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onAllNodesWithContentDescription(androidx.compose.ui.test.SemanticsNodeInteractionsProvider, String label, optional boolean substring, optional boolean ignoreCase, optional boolean useUnmergedTree);
118    method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onAllNodesWithTag(androidx.compose.ui.test.SemanticsNodeInteractionsProvider, String testTag, optional boolean useUnmergedTree);
119    method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onAllNodesWithText(androidx.compose.ui.test.SemanticsNodeInteractionsProvider, String text, optional boolean substring, optional boolean ignoreCase, optional boolean useUnmergedTree);
120    method public static androidx.compose.ui.test.SemanticsNodeInteraction onNodeWithContentDescription(androidx.compose.ui.test.SemanticsNodeInteractionsProvider, String label, optional boolean substring, optional boolean ignoreCase, optional boolean useUnmergedTree);
121    method public static androidx.compose.ui.test.SemanticsNodeInteraction onNodeWithTag(androidx.compose.ui.test.SemanticsNodeInteractionsProvider, String testTag, optional boolean useUnmergedTree);
122    method public static androidx.compose.ui.test.SemanticsNodeInteraction onNodeWithText(androidx.compose.ui.test.SemanticsNodeInteractionsProvider, String text, optional boolean substring, optional boolean ignoreCase, optional boolean useUnmergedTree);
123    method public static androidx.compose.ui.test.SemanticsNodeInteraction onRoot(androidx.compose.ui.test.SemanticsNodeInteractionsProvider, optional boolean useUnmergedTree);
124  }
125
126  @Deprecated public final class GestureScope {
127    ctor @Deprecated public GestureScope(androidx.compose.ui.semantics.SemanticsNode node, androidx.compose.ui.test.TestContext testContext);
128    method @Deprecated public long getVisibleSize();
129    property @Deprecated public final long visibleSize;
130  }
131
132  public final class GestureScopeKt {
133    method @Deprecated @androidx.compose.ui.test.ExperimentalTestApi public static void advanceEventTime(androidx.compose.ui.test.GestureScope, long durationMillis);
134    method @Deprecated public static void cancel(androidx.compose.ui.test.GestureScope);
135    method @Deprecated public static void click(androidx.compose.ui.test.GestureScope, optional long position);
136    method @Deprecated public static void doubleClick(androidx.compose.ui.test.GestureScope, optional long position, optional long delayMillis);
137    method @Deprecated public static void down(androidx.compose.ui.test.GestureScope, int pointerId, long position);
138    method @Deprecated public static void down(androidx.compose.ui.test.GestureScope, long position);
139    method @Deprecated public static inline float getBottom(androidx.compose.ui.test.GestureScope);
140    method @Deprecated public static long getBottomCenter(androidx.compose.ui.test.GestureScope);
141    method @Deprecated public static long getBottomLeft(androidx.compose.ui.test.GestureScope);
142    method @Deprecated public static long getBottomRight(androidx.compose.ui.test.GestureScope);
143    method @Deprecated public static long getCenter(androidx.compose.ui.test.GestureScope);
144    method @Deprecated public static long getCenterLeft(androidx.compose.ui.test.GestureScope);
145    method @Deprecated public static long getCenterRight(androidx.compose.ui.test.GestureScope);
146    method @Deprecated public static inline float getCenterX(androidx.compose.ui.test.GestureScope);
147    method @Deprecated public static inline float getCenterY(androidx.compose.ui.test.GestureScope);
148    method @Deprecated public static inline int getHeight(androidx.compose.ui.test.GestureScope);
149    method @Deprecated public static inline float getLeft(androidx.compose.ui.test.GestureScope);
150    method @Deprecated public static inline float getRight(androidx.compose.ui.test.GestureScope);
151    method @Deprecated public static inline float getTop(androidx.compose.ui.test.GestureScope);
152    method @Deprecated public static long getTopCenter(androidx.compose.ui.test.GestureScope);
153    method @Deprecated public static long getTopLeft(androidx.compose.ui.test.GestureScope);
154    method @Deprecated public static long getTopRight(androidx.compose.ui.test.GestureScope);
155    method @Deprecated public static inline int getWidth(androidx.compose.ui.test.GestureScope);
156    method @Deprecated public static void longClick(androidx.compose.ui.test.GestureScope, optional long position, optional long durationMillis);
157    method @Deprecated public static void move(androidx.compose.ui.test.GestureScope);
158    method @Deprecated public static void moveBy(androidx.compose.ui.test.GestureScope, int pointerId, long delta);
159    method @Deprecated public static void moveBy(androidx.compose.ui.test.GestureScope, long delta);
160    method @Deprecated public static void movePointerBy(androidx.compose.ui.test.GestureScope, int pointerId, long delta);
161    method @Deprecated public static void movePointerTo(androidx.compose.ui.test.GestureScope, int pointerId, long position);
162    method @Deprecated public static void moveTo(androidx.compose.ui.test.GestureScope, int pointerId, long position);
163    method @Deprecated public static void moveTo(androidx.compose.ui.test.GestureScope, long position);
164    method @Deprecated public static long percentOffset(androidx.compose.ui.test.GestureScope, optional float x, optional float y);
165    method @Deprecated public static void pinch(androidx.compose.ui.test.GestureScope, long start0, long end0, long start1, long end1, optional long durationMillis);
166    method @Deprecated public static void swipe(androidx.compose.ui.test.GestureScope, long start, long end, optional long durationMillis);
167    method @Deprecated public static void swipeDown(androidx.compose.ui.test.GestureScope);
168    method @Deprecated @androidx.compose.ui.test.ExperimentalTestApi public static void swipeDown(androidx.compose.ui.test.GestureScope, optional float startY, optional float endY, optional long durationMillis);
169    method @Deprecated public static void swipeLeft(androidx.compose.ui.test.GestureScope);
170    method @Deprecated @androidx.compose.ui.test.ExperimentalTestApi public static void swipeLeft(androidx.compose.ui.test.GestureScope, optional float startX, optional float endX, optional long durationMillis);
171    method @Deprecated public static void swipeRight(androidx.compose.ui.test.GestureScope);
172    method @Deprecated @androidx.compose.ui.test.ExperimentalTestApi public static void swipeRight(androidx.compose.ui.test.GestureScope, optional float startX, optional float endX, optional long durationMillis);
173    method @Deprecated public static void swipeUp(androidx.compose.ui.test.GestureScope);
174    method @Deprecated @androidx.compose.ui.test.ExperimentalTestApi public static void swipeUp(androidx.compose.ui.test.GestureScope, optional float startY, optional float endY, optional long durationMillis);
175    method @Deprecated public static void swipeWithVelocity(androidx.compose.ui.test.GestureScope, long start, long end, float endVelocity, optional long durationMillis);
176    method @Deprecated public static void up(androidx.compose.ui.test.GestureScope, optional int pointerId);
177  }
178
179  @kotlin.jvm.JvmDefaultWithCompatibility public interface IdlingResource {
180    method public default String? getDiagnosticMessageIfBusy();
181    method public boolean isIdleNow();
182    property public abstract boolean isIdleNow;
183  }
184
185  @kotlin.jvm.JvmDefaultWithCompatibility public interface InjectionScope extends androidx.compose.ui.unit.Density {
186    method public void advanceEventTime(optional long durationMillis);
187    method public default float getBottom();
188    method public default long getBottomCenter();
189    method public default long getBottomLeft();
190    method public default long getBottomRight();
191    method public default long getCenter();
192    method public default long getCenterLeft();
193    method public default long getCenterRight();
194    method public default float getCenterX();
195    method public default float getCenterY();
196    method public default long getEventPeriodMillis();
197    method public default int getHeight();
198    method public default float getLeft();
199    method public default float getRight();
200    method public default float getTop();
201    method public default long getTopCenter();
202    method public default long getTopLeft();
203    method public default long getTopRight();
204    method public androidx.compose.ui.platform.ViewConfiguration getViewConfiguration();
205    method public long getVisibleSize();
206    method public default int getWidth();
207    method public default long percentOffset(optional float x, optional float y);
208    property public default float bottom;
209    property public default long bottomCenter;
210    property public default long bottomLeft;
211    property public default long bottomRight;
212    property public default long center;
213    property public default long centerLeft;
214    property public default long centerRight;
215    property public default float centerX;
216    property public default float centerY;
217    property public default long eventPeriodMillis;
218    property public default int height;
219    property public default float left;
220    property public default float right;
221    property public default float top;
222    property public default long topCenter;
223    property public default long topLeft;
224    property public default long topRight;
225    property public abstract androidx.compose.ui.platform.ViewConfiguration viewConfiguration;
226    property public abstract long visibleSize;
227    property public default int width;
228  }
229
230  @kotlin.RequiresOptIn(message="This is internal API for Compose modules that may change frequently and without warning.") @kotlin.annotation.Retention(kotlin.annotation.AnnotationRetention.BINARY) public @interface InternalTestApi {
231  }
232
233  @androidx.compose.ui.test.ExperimentalTestApi @kotlin.jvm.JvmDefaultWithCompatibility public interface KeyInjectionScope extends androidx.compose.ui.test.InjectionScope {
234    method public boolean isCapsLockOn();
235    method public boolean isKeyDown(long key);
236    method public boolean isNumLockOn();
237    method public boolean isScrollLockOn();
238    method public void keyDown(long key);
239    method public void keyUp(long key);
240    property public abstract boolean isCapsLockOn;
241    property public abstract boolean isNumLockOn;
242    property public abstract boolean isScrollLockOn;
243  }
244
245  public final class KeyInjectionScopeKt {
246    method @androidx.compose.ui.test.ExperimentalTestApi public static boolean isAltDown(androidx.compose.ui.test.KeyInjectionScope);
247    method @androidx.compose.ui.test.ExperimentalTestApi public static boolean isCtrlDown(androidx.compose.ui.test.KeyInjectionScope);
248    method @androidx.compose.ui.test.ExperimentalTestApi public static boolean isFnDown(androidx.compose.ui.test.KeyInjectionScope);
249    method @androidx.compose.ui.test.ExperimentalTestApi public static boolean isMetaDown(androidx.compose.ui.test.KeyInjectionScope);
250    method @androidx.compose.ui.test.ExperimentalTestApi public static boolean isShiftDown(androidx.compose.ui.test.KeyInjectionScope);
251    method @androidx.compose.ui.test.ExperimentalTestApi public static void pressKey(androidx.compose.ui.test.KeyInjectionScope, long key, optional long pressDurationMillis);
252    method @androidx.compose.ui.test.ExperimentalTestApi public static void withKeyDown(androidx.compose.ui.test.KeyInjectionScope, long key, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.KeyInjectionScope,kotlin.Unit> block);
253    method @androidx.compose.ui.test.ExperimentalTestApi public static void withKeyToggled(androidx.compose.ui.test.KeyInjectionScope, long key, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.KeyInjectionScope,kotlin.Unit> block);
254    method @androidx.compose.ui.test.ExperimentalTestApi public static void withKeysDown(androidx.compose.ui.test.KeyInjectionScope, java.util.List<androidx.compose.ui.input.key.Key> keys, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.KeyInjectionScope,kotlin.Unit> block);
255    method @androidx.compose.ui.test.ExperimentalTestApi public static void withKeysToggled(androidx.compose.ui.test.KeyInjectionScope, java.util.List<androidx.compose.ui.input.key.Key> keys, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.KeyInjectionScope,kotlin.Unit> block);
256  }
257
258  public final class KeyInputHelpersKt {
259    method public static boolean performKeyPress(androidx.compose.ui.test.SemanticsNodeInteraction, android.view.KeyEvent keyEvent);
260  }
261
262  @kotlin.jvm.JvmDefaultWithCompatibility public interface MainTestClock {
263    method public void advanceTimeBy(long milliseconds, optional boolean ignoreFrameDuration);
264    method public void advanceTimeByFrame();
265    method public void advanceTimeUntil(optional long timeoutMillis, kotlin.jvm.functions.Function0<java.lang.Boolean> condition);
266    method public boolean getAutoAdvance();
267    method public long getCurrentTime();
268    method public void setAutoAdvance(boolean);
269    property public abstract boolean autoAdvance;
270    property public abstract long currentTime;
271  }
272
273  @androidx.compose.ui.test.ExperimentalTestApi @kotlin.jvm.JvmInline public final value class MouseButton {
274    ctor public MouseButton(int buttonId);
275    method public int getButtonId();
276    property public final int buttonId;
277    field public static final androidx.compose.ui.test.MouseButton.Companion Companion;
278  }
279
280  @androidx.compose.ui.test.ExperimentalTestApi public static final class MouseButton.Companion {
281    method public int getPrimary();
282    method public int getSecondary();
283    method public int getTertiary();
284    property public final int Primary;
285    property public final int Secondary;
286    property public final int Tertiary;
287  }
288
289  @androidx.compose.ui.test.ExperimentalTestApi public interface MouseInjectionScope extends androidx.compose.ui.test.InjectionScope {
290    method public void cancel(optional long delayMillis);
291    method public void enter(optional long position, optional long delayMillis);
292    method public void exit(optional long position, optional long delayMillis);
293    method public long getCurrentPosition();
294    method public default void moveBy(long delta, optional long delayMillis);
295    method public void moveTo(long position, optional long delayMillis);
296    method public void press(optional int button);
297    method public void release(optional int button);
298    method public void scroll(float delta, optional int scrollWheel);
299    method public default void updatePointerBy(long delta);
300    method public void updatePointerTo(long position);
301    property public abstract long currentPosition;
302  }
303
304  public final class MouseInjectionScopeKt {
305    method @androidx.compose.ui.test.ExperimentalTestApi public static void animateAlong(androidx.compose.ui.test.MouseInjectionScope, kotlin.jvm.functions.Function1<? super java.lang.Long,androidx.compose.ui.geometry.Offset> curve, optional long durationMillis);
306    method @androidx.compose.ui.test.ExperimentalTestApi public static void animateBy(androidx.compose.ui.test.MouseInjectionScope, long delta, optional long durationMillis);
307    method @androidx.compose.ui.test.ExperimentalTestApi public static void animateTo(androidx.compose.ui.test.MouseInjectionScope, long position, optional long durationMillis);
308    method @androidx.compose.ui.test.ExperimentalTestApi public static void click(androidx.compose.ui.test.MouseInjectionScope, optional long position);
309    method @androidx.compose.ui.test.ExperimentalTestApi public static void doubleClick(androidx.compose.ui.test.MouseInjectionScope, optional long position);
310    method @androidx.compose.ui.test.ExperimentalTestApi public static void dragAndDrop(androidx.compose.ui.test.MouseInjectionScope, long start, long end, optional long durationMillis);
311    method @androidx.compose.ui.test.ExperimentalTestApi public static void longClick(androidx.compose.ui.test.MouseInjectionScope, optional long position);
312    method @androidx.compose.ui.test.ExperimentalTestApi public static void rightClick(androidx.compose.ui.test.MouseInjectionScope, optional long position);
313    method @androidx.compose.ui.test.ExperimentalTestApi public static void smoothScroll(androidx.compose.ui.test.MouseInjectionScope, float scrollAmount, optional long durationMillis, optional int scrollWheel);
314    method @androidx.compose.ui.test.ExperimentalTestApi public static void tripleClick(androidx.compose.ui.test.MouseInjectionScope, optional long position);
315  }
316
317  public sealed interface MultiModalInjectionScope extends androidx.compose.ui.test.InjectionScope {
318    method @androidx.compose.ui.test.ExperimentalTestApi public void key(kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.KeyInjectionScope,kotlin.Unit> block);
319    method @androidx.compose.ui.test.ExperimentalTestApi public void mouse(kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.MouseInjectionScope,kotlin.Unit> block);
320    method @androidx.compose.ui.test.ExperimentalTestApi public void rotary(kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.RotaryInjectionScope,kotlin.Unit> block);
321    method public void touch(kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.TouchInjectionScope,kotlin.Unit> block);
322  }
323
324  public final class OutputKt {
325    method public static void printToLog(androidx.compose.ui.test.SemanticsNodeInteraction, String tag, optional int maxDepth);
326    method public static void printToLog(androidx.compose.ui.test.SemanticsNodeInteractionCollection, String tag, optional int maxDepth);
327    method public static String printToString(androidx.compose.ui.test.SemanticsNodeInteraction, optional int maxDepth);
328    method public static String printToString(androidx.compose.ui.test.SemanticsNodeInteractionCollection, optional int maxDepth);
329  }
330
331  @androidx.compose.ui.test.ExperimentalTestApi public interface RotaryInjectionScope extends androidx.compose.ui.test.InjectionScope {
332    method public void rotateToScrollHorizontally(float horizontalScrollPixels);
333    method public void rotateToScrollVertically(float verticalScrollPixels);
334  }
335
336  @androidx.compose.ui.test.ExperimentalTestApi @kotlin.jvm.JvmInline public final value class ScrollWheel {
337    method public int getValue();
338    property public final int value;
339    field public static final androidx.compose.ui.test.ScrollWheel.Companion Companion;
340  }
341
342  @androidx.compose.ui.test.ExperimentalTestApi public static final class ScrollWheel.Companion {
343    method public int getHorizontal();
344    method public int getVertical();
345    property public final int Horizontal;
346    property public final int Vertical;
347  }
348
349  public final class SelectionResult {
350    ctor public SelectionResult(java.util.List<androidx.compose.ui.semantics.SemanticsNode> selectedNodes, optional String? customErrorOnNoMatch);
351    method public String? getCustomErrorOnNoMatch();
352    method public java.util.List<androidx.compose.ui.semantics.SemanticsNode> getSelectedNodes();
353    property public final String? customErrorOnNoMatch;
354    property public final java.util.List<androidx.compose.ui.semantics.SemanticsNode> selectedNodes;
355  }
356
357  public final class SelectorsKt {
358    method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection filter(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher);
359    method public static androidx.compose.ui.test.SemanticsNodeInteraction filterToOne(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher);
360    method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onAncestors(androidx.compose.ui.test.SemanticsNodeInteraction);
361    method public static androidx.compose.ui.test.SemanticsNodeInteraction onChild(androidx.compose.ui.test.SemanticsNodeInteraction);
362    method public static androidx.compose.ui.test.SemanticsNodeInteraction onChildAt(androidx.compose.ui.test.SemanticsNodeInteraction, int index);
363    method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onChildren(androidx.compose.ui.test.SemanticsNodeInteraction);
364    method public static androidx.compose.ui.test.SemanticsNodeInteraction onFirst(androidx.compose.ui.test.SemanticsNodeInteractionCollection);
365    method public static androidx.compose.ui.test.SemanticsNodeInteraction onLast(androidx.compose.ui.test.SemanticsNodeInteractionCollection);
366    method public static androidx.compose.ui.test.SemanticsNodeInteraction onParent(androidx.compose.ui.test.SemanticsNodeInteraction);
367    method public static androidx.compose.ui.test.SemanticsNodeInteraction onSibling(androidx.compose.ui.test.SemanticsNodeInteraction);
368    method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onSiblings(androidx.compose.ui.test.SemanticsNodeInteraction);
369  }
370
371  public final class SemanticsMatcher {
372    ctor public SemanticsMatcher(String description, kotlin.jvm.functions.Function1<? super androidx.compose.ui.semantics.SemanticsNode,java.lang.Boolean> matcher);
373    method public infix androidx.compose.ui.test.SemanticsMatcher and(androidx.compose.ui.test.SemanticsMatcher other);
374    method public String getDescription();
375    method public boolean matches(androidx.compose.ui.semantics.SemanticsNode node);
376    method public boolean matchesAny(Iterable<androidx.compose.ui.semantics.SemanticsNode> nodes);
377    method public operator androidx.compose.ui.test.SemanticsMatcher not();
378    method public infix androidx.compose.ui.test.SemanticsMatcher or(androidx.compose.ui.test.SemanticsMatcher other);
379    property public final String description;
380    field public static final androidx.compose.ui.test.SemanticsMatcher.Companion Companion;
381  }
382
383  public static final class SemanticsMatcher.Companion {
384    method public <T> androidx.compose.ui.test.SemanticsMatcher expectValue(androidx.compose.ui.semantics.SemanticsPropertyKey<T> key, T? expectedValue);
385    method public <T> androidx.compose.ui.test.SemanticsMatcher keyIsDefined(androidx.compose.ui.semantics.SemanticsPropertyKey<T> key);
386    method public <T> androidx.compose.ui.test.SemanticsMatcher keyNotDefined(androidx.compose.ui.semantics.SemanticsPropertyKey<T> key);
387  }
388
389  public final class SemanticsNodeInteraction {
390    ctor public SemanticsNodeInteraction(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsMatcher matcher);
391    ctor public SemanticsNodeInteraction(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsSelector selector);
392    method public void assertDoesNotExist();
393    method public androidx.compose.ui.test.SemanticsNodeInteraction assertExists(optional String? errorMessageOnFail);
394    method public androidx.compose.ui.semantics.SemanticsNode fetchSemanticsNode(optional String? errorMessageOnFail);
395  }
396
397  public final class SemanticsNodeInteractionCollection {
398    ctor public SemanticsNodeInteractionCollection(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsMatcher matcher);
399    ctor public SemanticsNodeInteractionCollection(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsSelector selector);
400    method public java.util.List<androidx.compose.ui.semantics.SemanticsNode> fetchSemanticsNodes(optional boolean atLeastOneRootRequired, optional String? errorMessageOnFail);
401    method public operator androidx.compose.ui.test.SemanticsNodeInteraction get(int index);
402  }
403
404  @kotlin.jvm.JvmDefaultWithCompatibility public interface SemanticsNodeInteractionsProvider {
405    method public androidx.compose.ui.test.SemanticsNodeInteractionCollection onAllNodes(androidx.compose.ui.test.SemanticsMatcher matcher, optional boolean useUnmergedTree);
406    method public androidx.compose.ui.test.SemanticsNodeInteraction onNode(androidx.compose.ui.test.SemanticsMatcher matcher, optional boolean useUnmergedTree);
407  }
408
409  public final class SemanticsSelector {
410    ctor public SemanticsSelector(String description, boolean requiresExactlyOneNode, optional androidx.compose.ui.test.SemanticsSelector? chainedInputSelector, kotlin.jvm.functions.Function1<? super java.lang.Iterable<androidx.compose.ui.semantics.SemanticsNode>,androidx.compose.ui.test.SelectionResult> selector);
411    method public String getDescription();
412    method public androidx.compose.ui.test.SelectionResult map(Iterable<androidx.compose.ui.semantics.SemanticsNode> nodes, String errorOnFail);
413    property public final String description;
414  }
415
416  public final class TestContext {
417  }
418
419  @androidx.compose.ui.test.ExperimentalTestApi @kotlinx.coroutines.ExperimentalCoroutinesApi public final class TestMonotonicFrameClock implements androidx.compose.runtime.MonotonicFrameClock {
420    ctor public TestMonotonicFrameClock(kotlinx.coroutines.CoroutineScope coroutineScope, optional long frameDelayNanos, optional kotlin.jvm.functions.Function1<? super java.lang.Long,kotlin.Unit> onPerformTraversals);
421    method @androidx.compose.ui.test.ExperimentalTestApi public kotlin.coroutines.ContinuationInterceptor getContinuationInterceptor();
422    method public long getFrameDelayNanos();
423    method public boolean getHasAwaiters();
424    method public suspend <R> Object? withFrameNanos(kotlin.jvm.functions.Function1<? super java.lang.Long,? extends R> onFrame, kotlin.coroutines.Continuation<? super R>);
425    property @androidx.compose.ui.test.ExperimentalTestApi public final kotlin.coroutines.ContinuationInterceptor continuationInterceptor;
426    property public final long frameDelayNanos;
427    property public final boolean hasAwaiters;
428  }
429
430  public final class TestMonotonicFrameClock_jvmKt {
431    method @androidx.compose.ui.test.ExperimentalTestApi public static long getFrameDelayMillis(androidx.compose.ui.test.TestMonotonicFrameClock);
432  }
433
434  @androidx.compose.ui.test.InternalTestApi public interface TestOwner {
435    method public androidx.compose.ui.test.MainTestClock getMainClock();
436    method public java.util.Set<androidx.compose.ui.node.RootForTest> getRoots(boolean atLeastOneRootExpected);
437    method public <T> T! runOnUiThread(kotlin.jvm.functions.Function0<? extends T> action);
438    method public void sendImeAction(androidx.compose.ui.semantics.SemanticsNode node, int actionSpecified);
439    method public void sendTextInputCommand(androidx.compose.ui.semantics.SemanticsNode node, java.util.List<? extends androidx.compose.ui.text.input.EditCommand> command);
440    property public abstract androidx.compose.ui.test.MainTestClock mainClock;
441  }
442
443  public final class TestOwnerKt {
444    method @androidx.compose.ui.test.InternalTestApi public static androidx.compose.ui.test.TestContext createTestContext(androidx.compose.ui.test.TestOwner owner);
445  }
446
447  public final class TextActionsKt {
448    method public static void performImeAction(androidx.compose.ui.test.SemanticsNodeInteraction);
449    method public static void performTextClearance(androidx.compose.ui.test.SemanticsNodeInteraction);
450    method public static void performTextInput(androidx.compose.ui.test.SemanticsNodeInteraction, String text);
451    method @androidx.compose.ui.test.ExperimentalTestApi public static void performTextInputSelection(androidx.compose.ui.test.SemanticsNodeInteraction, long selection);
452    method public static void performTextReplacement(androidx.compose.ui.test.SemanticsNodeInteraction, String text);
453  }
454
455  @kotlin.jvm.JvmDefaultWithCompatibility public interface TouchInjectionScope extends androidx.compose.ui.test.InjectionScope {
456    method public void cancel(optional long delayMillis);
457    method public androidx.compose.ui.geometry.Offset? currentPosition(optional int pointerId);
458    method public void down(int pointerId, long position);
459    method public default void down(long position);
460    method public void move(optional long delayMillis);
461    method public default void moveBy(int pointerId, long delta, optional long delayMillis);
462    method public default void moveBy(long delta, optional long delayMillis);
463    method public default void moveTo(int pointerId, long position, optional long delayMillis);
464    method public default void moveTo(long position, optional long delayMillis);
465    method @androidx.compose.ui.test.ExperimentalTestApi public default void moveWithHistory(java.util.List<java.lang.Long> relativeHistoricalTimes, java.util.List<androidx.compose.ui.geometry.Offset> historicalCoordinates, optional long delayMillis);
466    method @androidx.compose.ui.test.ExperimentalTestApi public void moveWithHistoryMultiPointer(java.util.List<java.lang.Long> relativeHistoricalTimes, java.util.List<? extends java.util.List<androidx.compose.ui.geometry.Offset>> historicalCoordinates, optional long delayMillis);
467    method public void up(optional int pointerId);
468    method public default void updatePointerBy(int pointerId, long delta);
469    method public void updatePointerTo(int pointerId, long position);
470  }
471
472  public final class TouchInjectionScopeKt {
473    method public static void click(androidx.compose.ui.test.TouchInjectionScope, optional long position);
474    method public static void doubleClick(androidx.compose.ui.test.TouchInjectionScope, optional long position, optional long delayMillis);
475    method public static void longClick(androidx.compose.ui.test.TouchInjectionScope, optional long position, optional long durationMillis);
476    method @androidx.compose.ui.test.ExperimentalTestApi public static void multiTouchSwipe(androidx.compose.ui.test.TouchInjectionScope, java.util.List<? extends kotlin.jvm.functions.Function1<? super java.lang.Long,androidx.compose.ui.geometry.Offset>> curves, long durationMillis, optional java.util.List<java.lang.Long> keyTimes);
477    method public static void pinch(androidx.compose.ui.test.TouchInjectionScope, long start0, long end0, long start1, long end1, optional long durationMillis);
478    method public static void swipe(androidx.compose.ui.test.TouchInjectionScope, kotlin.jvm.functions.Function1<? super java.lang.Long,androidx.compose.ui.geometry.Offset> curve, long durationMillis, optional java.util.List<java.lang.Long> keyTimes);
479    method public static void swipe(androidx.compose.ui.test.TouchInjectionScope, long start, long end, optional long durationMillis);
480    method public static void swipeDown(androidx.compose.ui.test.TouchInjectionScope, optional float startY, optional float endY, optional long durationMillis);
481    method public static void swipeLeft(androidx.compose.ui.test.TouchInjectionScope, optional float startX, optional float endX, optional long durationMillis);
482    method public static void swipeRight(androidx.compose.ui.test.TouchInjectionScope, optional float startX, optional float endX, optional long durationMillis);
483    method public static void swipeUp(androidx.compose.ui.test.TouchInjectionScope, optional float startY, optional float endY, optional long durationMillis);
484    method public static void swipeWithVelocity(androidx.compose.ui.test.TouchInjectionScope, long start, long end, float endVelocity, optional long durationMillis);
485  }
486
487}
488
489package androidx.compose.ui.test.internal {
490
491  @androidx.compose.ui.test.InternalTestApi public abstract class DelayPropagatingContinuationInterceptorWrapper extends kotlin.coroutines.AbstractCoroutineContextElement implements kotlin.coroutines.ContinuationInterceptor kotlinx.coroutines.Delay {
492    ctor public DelayPropagatingContinuationInterceptorWrapper(kotlin.coroutines.ContinuationInterceptor? wrappedInterceptor);
493  }
494
495}
496
497