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 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); 8 method public static androidx.compose.ui.test.SemanticsNodeInteraction performScrollTo(androidx.compose.ui.test.SemanticsNodeInteraction); 9 method public static androidx.compose.ui.test.SemanticsNodeInteraction performScrollToIndex(androidx.compose.ui.test.SemanticsNodeInteraction, int index); 10 method public static androidx.compose.ui.test.SemanticsNodeInteraction performScrollToKey(androidx.compose.ui.test.SemanticsNodeInteraction, Object key); 11 method public static androidx.compose.ui.test.SemanticsNodeInteraction performScrollToNode(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.test.SemanticsMatcher matcher); 12 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); 13 method @Deprecated public static void performSemanticsAction(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.semantics.SemanticsPropertyKey<androidx.compose.ui.semantics.AccessibilityAction<kotlin.jvm.functions.Function0<java.lang.Boolean>>> key); 14 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); 15 method @Deprecated public static <T extends kotlin.Function<? extends java.lang.Boolean>> void 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); 16 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); 17 } 18 19 public final class AndroidImageHelpers_androidKt { 20 method @RequiresApi(android.os.Build.VERSION_CODES.O) public static androidx.compose.ui.graphics.ImageBitmap captureToImage(androidx.compose.ui.test.SemanticsNodeInteraction); 21 } 22 23 public final class AssertionsKt { 24 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); 25 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection assertAll(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher); 26 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection assertAny(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher); 27 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertContentDescriptionContains(androidx.compose.ui.test.SemanticsNodeInteraction, String value, optional boolean substring, optional boolean ignoreCase); 28 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertContentDescriptionEquals(androidx.compose.ui.test.SemanticsNodeInteraction, java.lang.String... values); 29 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection assertCountEquals(androidx.compose.ui.test.SemanticsNodeInteractionCollection, int expectedSize); 30 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHasClickAction(androidx.compose.ui.test.SemanticsNodeInteraction); 31 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHasNoClickAction(androidx.compose.ui.test.SemanticsNodeInteraction); 32 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsDisplayed(androidx.compose.ui.test.SemanticsNodeInteraction); 33 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsEnabled(androidx.compose.ui.test.SemanticsNodeInteraction); 34 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsFocused(androidx.compose.ui.test.SemanticsNodeInteraction); 35 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotDisplayed(androidx.compose.ui.test.SemanticsNodeInteraction); 36 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotEnabled(androidx.compose.ui.test.SemanticsNodeInteraction); 37 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotFocused(androidx.compose.ui.test.SemanticsNodeInteraction); 38 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotSelected(androidx.compose.ui.test.SemanticsNodeInteraction); 39 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsOff(androidx.compose.ui.test.SemanticsNodeInteraction); 40 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsOn(androidx.compose.ui.test.SemanticsNodeInteraction); 41 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsSelectable(androidx.compose.ui.test.SemanticsNodeInteraction); 42 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsSelected(androidx.compose.ui.test.SemanticsNodeInteraction); 43 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsToggleable(androidx.compose.ui.test.SemanticsNodeInteraction); 44 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertRangeInfoEquals(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.semantics.ProgressBarRangeInfo value); 45 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTextContains(androidx.compose.ui.test.SemanticsNodeInteraction, String value, optional boolean substring, optional boolean ignoreCase); 46 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTextEquals(androidx.compose.ui.test.SemanticsNodeInteraction, String![] values, optional boolean includeEditableText); 47 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertValueEquals(androidx.compose.ui.test.SemanticsNodeInteraction, String value); 48 } 49 50 public final class BoundsAssertionsKt { 51 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHeightIsAtLeast(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedMinHeight); 52 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHeightIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedHeight); 53 method public static void assertIsEqualTo(float, float expected, String subject, optional float tolerance); 54 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertLeftPositionInRootIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedLeft); 55 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertPositionInRootIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedLeft, float expectedTop); 56 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTopPositionInRootIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedTop); 57 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTouchHeightIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedHeight); 58 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTouchWidthIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedWidth); 59 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertWidthIsAtLeast(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedMinWidth); 60 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertWidthIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedWidth); 61 method public static float getAlignmentLinePosition(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.layout.AlignmentLine alignmentLine); 62 method public static androidx.compose.ui.unit.DpRect getBoundsInRoot(androidx.compose.ui.test.SemanticsNodeInteraction); 63 method public static androidx.compose.ui.unit.DpRect getUnclippedBoundsInRoot(androidx.compose.ui.test.SemanticsNodeInteraction); 64 } 65 66 public final class ComposeTimeoutException extends java.lang.Throwable { 67 ctor public ComposeTimeoutException(String? message); 68 } 69 70 public final class FiltersKt { 71 method public static androidx.compose.ui.test.SemanticsMatcher hasAnyAncestor(androidx.compose.ui.test.SemanticsMatcher matcher); 72 method public static androidx.compose.ui.test.SemanticsMatcher hasAnyChild(androidx.compose.ui.test.SemanticsMatcher matcher); 73 method public static androidx.compose.ui.test.SemanticsMatcher hasAnyDescendant(androidx.compose.ui.test.SemanticsMatcher matcher); 74 method public static androidx.compose.ui.test.SemanticsMatcher hasAnySibling(androidx.compose.ui.test.SemanticsMatcher matcher); 75 method public static androidx.compose.ui.test.SemanticsMatcher hasClickAction(); 76 method public static androidx.compose.ui.test.SemanticsMatcher hasContentDescription(String value, optional boolean substring, optional boolean ignoreCase); 77 method public static androidx.compose.ui.test.SemanticsMatcher hasContentDescriptionExactly(java.lang.String... values); 78 method public static androidx.compose.ui.test.SemanticsMatcher hasImeAction(int actionType); 79 method public static androidx.compose.ui.test.SemanticsMatcher hasInsertTextAtCursorAction(); 80 method public static androidx.compose.ui.test.SemanticsMatcher hasNoClickAction(); 81 method public static androidx.compose.ui.test.SemanticsMatcher hasNoScrollAction(); 82 method public static androidx.compose.ui.test.SemanticsMatcher hasParent(androidx.compose.ui.test.SemanticsMatcher matcher); 83 method public static androidx.compose.ui.test.SemanticsMatcher hasPerformImeAction(); 84 method public static androidx.compose.ui.test.SemanticsMatcher hasProgressBarRangeInfo(androidx.compose.ui.semantics.ProgressBarRangeInfo rangeInfo); 85 method public static androidx.compose.ui.test.SemanticsMatcher hasRequestFocusAction(); 86 method public static androidx.compose.ui.test.SemanticsMatcher hasScrollAction(); 87 method public static androidx.compose.ui.test.SemanticsMatcher hasScrollToIndexAction(); 88 method public static androidx.compose.ui.test.SemanticsMatcher hasScrollToKeyAction(); 89 method public static androidx.compose.ui.test.SemanticsMatcher hasScrollToNodeAction(); 90 method public static androidx.compose.ui.test.SemanticsMatcher hasSetTextAction(); 91 method public static androidx.compose.ui.test.SemanticsMatcher hasStateDescription(String value); 92 method public static androidx.compose.ui.test.SemanticsMatcher hasTestTag(String testTag); 93 method public static androidx.compose.ui.test.SemanticsMatcher hasText(String text, optional boolean substring, optional boolean ignoreCase); 94 method public static androidx.compose.ui.test.SemanticsMatcher hasTextExactly(String![] textValues, optional boolean includeEditableText); 95 method public static androidx.compose.ui.test.SemanticsMatcher isDialog(); 96 method public static androidx.compose.ui.test.SemanticsMatcher isEnabled(); 97 method public static androidx.compose.ui.test.SemanticsMatcher isFocusable(); 98 method public static androidx.compose.ui.test.SemanticsMatcher isFocused(); 99 method public static androidx.compose.ui.test.SemanticsMatcher isHeading(); 100 method public static androidx.compose.ui.test.SemanticsMatcher isNotEnabled(); 101 method public static androidx.compose.ui.test.SemanticsMatcher isNotFocusable(); 102 method public static androidx.compose.ui.test.SemanticsMatcher isNotFocused(); 103 method public static androidx.compose.ui.test.SemanticsMatcher isNotSelected(); 104 method public static androidx.compose.ui.test.SemanticsMatcher isOff(); 105 method public static androidx.compose.ui.test.SemanticsMatcher isOn(); 106 method public static androidx.compose.ui.test.SemanticsMatcher isPopup(); 107 method public static androidx.compose.ui.test.SemanticsMatcher isRoot(); 108 method public static androidx.compose.ui.test.SemanticsMatcher isSelectable(); 109 method public static androidx.compose.ui.test.SemanticsMatcher isSelected(); 110 method public static androidx.compose.ui.test.SemanticsMatcher isToggleable(); 111 } 112 113 public final class FindersKt { 114 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); 115 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onAllNodesWithTag(androidx.compose.ui.test.SemanticsNodeInteractionsProvider, String testTag, optional boolean useUnmergedTree); 116 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); 117 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); 118 method public static androidx.compose.ui.test.SemanticsNodeInteraction onNodeWithTag(androidx.compose.ui.test.SemanticsNodeInteractionsProvider, String testTag, optional boolean useUnmergedTree); 119 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); 120 method public static androidx.compose.ui.test.SemanticsNodeInteraction onRoot(androidx.compose.ui.test.SemanticsNodeInteractionsProvider, optional boolean useUnmergedTree); 121 } 122 123 @Deprecated public final class GestureScope { 124 ctor @Deprecated public GestureScope(androidx.compose.ui.semantics.SemanticsNode node, androidx.compose.ui.test.TestContext testContext); 125 method @Deprecated public long getVisibleSize(); 126 property @Deprecated public final long visibleSize; 127 field @Deprecated @kotlin.PublishedApi internal final androidx.compose.ui.test.MultiModalInjectionScope delegateScope; 128 } 129 130 public final class GestureScopeKt { 131 method @Deprecated public static void cancel(androidx.compose.ui.test.GestureScope); 132 method @Deprecated public static void click(androidx.compose.ui.test.GestureScope, optional long position); 133 method @Deprecated public static void doubleClick(androidx.compose.ui.test.GestureScope, optional long position, optional long delayMillis); 134 method @Deprecated public static void down(androidx.compose.ui.test.GestureScope, int pointerId, long position); 135 method @Deprecated public static void down(androidx.compose.ui.test.GestureScope, long position); 136 method @Deprecated public static inline float getBottom(androidx.compose.ui.test.GestureScope); 137 method @Deprecated public static long getBottomCenter(androidx.compose.ui.test.GestureScope); 138 method @Deprecated public static long getBottomLeft(androidx.compose.ui.test.GestureScope); 139 method @Deprecated public static long getBottomRight(androidx.compose.ui.test.GestureScope); 140 method @Deprecated public static long getCenter(androidx.compose.ui.test.GestureScope); 141 method @Deprecated public static long getCenterLeft(androidx.compose.ui.test.GestureScope); 142 method @Deprecated public static long getCenterRight(androidx.compose.ui.test.GestureScope); 143 method @Deprecated public static inline float getCenterX(androidx.compose.ui.test.GestureScope); 144 method @Deprecated public static inline float getCenterY(androidx.compose.ui.test.GestureScope); 145 method @Deprecated public static inline int getHeight(androidx.compose.ui.test.GestureScope); 146 method @Deprecated public static inline float getLeft(androidx.compose.ui.test.GestureScope); 147 method @Deprecated public static inline float getRight(androidx.compose.ui.test.GestureScope); 148 method @Deprecated public static inline float getTop(androidx.compose.ui.test.GestureScope); 149 method @Deprecated public static long getTopCenter(androidx.compose.ui.test.GestureScope); 150 method @Deprecated public static long getTopLeft(androidx.compose.ui.test.GestureScope); 151 method @Deprecated public static long getTopRight(androidx.compose.ui.test.GestureScope); 152 method @Deprecated public static inline int getWidth(androidx.compose.ui.test.GestureScope); 153 method @Deprecated public static void longClick(androidx.compose.ui.test.GestureScope, optional long position, optional long durationMillis); 154 method @Deprecated public static void move(androidx.compose.ui.test.GestureScope); 155 method @Deprecated public static void moveBy(androidx.compose.ui.test.GestureScope, int pointerId, long delta); 156 method @Deprecated public static void moveBy(androidx.compose.ui.test.GestureScope, long delta); 157 method @Deprecated public static void movePointerBy(androidx.compose.ui.test.GestureScope, int pointerId, long delta); 158 method @Deprecated public static void movePointerTo(androidx.compose.ui.test.GestureScope, int pointerId, long position); 159 method @Deprecated public static void moveTo(androidx.compose.ui.test.GestureScope, int pointerId, long position); 160 method @Deprecated public static void moveTo(androidx.compose.ui.test.GestureScope, long position); 161 method @Deprecated public static long percentOffset(androidx.compose.ui.test.GestureScope, optional float x, optional float y); 162 method @Deprecated public static void pinch(androidx.compose.ui.test.GestureScope, long start0, long end0, long start1, long end1, optional long durationMillis); 163 method @Deprecated public static void swipe(androidx.compose.ui.test.GestureScope, long start, long end, optional long durationMillis); 164 method @Deprecated public static void swipeDown(androidx.compose.ui.test.GestureScope); 165 method @Deprecated public static void swipeLeft(androidx.compose.ui.test.GestureScope); 166 method @Deprecated public static void swipeRight(androidx.compose.ui.test.GestureScope); 167 method @Deprecated public static void swipeUp(androidx.compose.ui.test.GestureScope); 168 method @Deprecated public static void swipeWithVelocity(androidx.compose.ui.test.GestureScope, long start, long end, float endVelocity, optional long durationMillis); 169 method @Deprecated public static void up(androidx.compose.ui.test.GestureScope, optional int pointerId); 170 } 171 172 @kotlin.jvm.JvmDefaultWithCompatibility public interface IdlingResource { 173 method public default String? getDiagnosticMessageIfBusy(); 174 method public boolean isIdleNow(); 175 property public abstract boolean isIdleNow; 176 } 177 178 @kotlin.jvm.JvmDefaultWithCompatibility public interface InjectionScope extends androidx.compose.ui.unit.Density { 179 method public void advanceEventTime(optional long durationMillis); 180 method public default float getBottom(); 181 method public default long getBottomCenter(); 182 method public default long getBottomLeft(); 183 method public default long getBottomRight(); 184 method public default long getCenter(); 185 method public default long getCenterLeft(); 186 method public default long getCenterRight(); 187 method public default float getCenterX(); 188 method public default float getCenterY(); 189 method public default long getEventPeriodMillis(); 190 method public default int getHeight(); 191 method public default float getLeft(); 192 method public default float getRight(); 193 method public default float getTop(); 194 method public default long getTopCenter(); 195 method public default long getTopLeft(); 196 method public default long getTopRight(); 197 method public androidx.compose.ui.platform.ViewConfiguration getViewConfiguration(); 198 method public long getVisibleSize(); 199 method public default int getWidth(); 200 method public default long percentOffset(optional float x, optional float y); 201 property public default float bottom; 202 property public default long bottomCenter; 203 property public default long bottomLeft; 204 property public default long bottomRight; 205 property public default long center; 206 property public default long centerLeft; 207 property public default long centerRight; 208 property public default float centerX; 209 property public default float centerY; 210 property public default long eventPeriodMillis; 211 property public default int height; 212 property public default float left; 213 property public default float right; 214 property public default float top; 215 property public default long topCenter; 216 property public default long topLeft; 217 property public default long topRight; 218 property public abstract androidx.compose.ui.platform.ViewConfiguration viewConfiguration; 219 property public abstract long visibleSize; 220 property public default int width; 221 } 222 223 @kotlin.jvm.JvmDefaultWithCompatibility public interface KeyInjectionScope extends androidx.compose.ui.test.InjectionScope { 224 method public boolean isCapsLockOn(); 225 method public boolean isKeyDown(long key); 226 method public boolean isNumLockOn(); 227 method public boolean isScrollLockOn(); 228 method public void keyDown(long key); 229 method public void keyUp(long key); 230 property public abstract boolean isCapsLockOn; 231 property public abstract boolean isNumLockOn; 232 property public abstract boolean isScrollLockOn; 233 } 234 235 public final class KeyInjectionScopeKt { 236 method public static boolean isAltDown(androidx.compose.ui.test.KeyInjectionScope); 237 method public static boolean isCtrlDown(androidx.compose.ui.test.KeyInjectionScope); 238 method public static boolean isFnDown(androidx.compose.ui.test.KeyInjectionScope); 239 method public static boolean isMetaDown(androidx.compose.ui.test.KeyInjectionScope); 240 method public static boolean isShiftDown(androidx.compose.ui.test.KeyInjectionScope); 241 method public static void pressKey(androidx.compose.ui.test.KeyInjectionScope, long key, optional long pressDurationMillis); 242 method public static void withKeyDown(androidx.compose.ui.test.KeyInjectionScope, long key, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.KeyInjectionScope,kotlin.Unit> block); 243 method public static void withKeyToggled(androidx.compose.ui.test.KeyInjectionScope, long key, kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.KeyInjectionScope,kotlin.Unit> block); 244 method 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); 245 method 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); 246 } 247 248 public final class KeyInputHelpersKt { 249 method public static boolean performKeyPress(androidx.compose.ui.test.SemanticsNodeInteraction, android.view.KeyEvent keyEvent); 250 } 251 252 @kotlin.jvm.JvmDefaultWithCompatibility public interface MainTestClock { 253 method public void advanceTimeBy(long milliseconds, optional boolean ignoreFrameDuration); 254 method public void advanceTimeByFrame(); 255 method public void advanceTimeUntil(optional long timeoutMillis, kotlin.jvm.functions.Function0<java.lang.Boolean> condition); 256 method public boolean getAutoAdvance(); 257 method public long getCurrentTime(); 258 method public void setAutoAdvance(boolean); 259 property public abstract boolean autoAdvance; 260 property public abstract long currentTime; 261 } 262 263 public sealed interface MultiModalInjectionScope extends androidx.compose.ui.test.InjectionScope { 264 method public void touch(kotlin.jvm.functions.Function1<? super androidx.compose.ui.test.TouchInjectionScope,kotlin.Unit> block); 265 } 266 267 public final class OutputKt { 268 method public static void printToLog(androidx.compose.ui.test.SemanticsNodeInteraction, String tag, optional int maxDepth); 269 method public static void printToLog(androidx.compose.ui.test.SemanticsNodeInteractionCollection, String tag, optional int maxDepth); 270 method public static String printToString(androidx.compose.ui.test.SemanticsNodeInteraction, optional int maxDepth); 271 method public static String printToString(androidx.compose.ui.test.SemanticsNodeInteractionCollection, optional int maxDepth); 272 } 273 274 public final class SelectionResult { 275 ctor public SelectionResult(java.util.List<androidx.compose.ui.semantics.SemanticsNode> selectedNodes, optional String? customErrorOnNoMatch); 276 method public String? getCustomErrorOnNoMatch(); 277 method public java.util.List<androidx.compose.ui.semantics.SemanticsNode> getSelectedNodes(); 278 property public final String? customErrorOnNoMatch; 279 property public final java.util.List<androidx.compose.ui.semantics.SemanticsNode> selectedNodes; 280 } 281 282 public final class SelectorsKt { 283 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection filter(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher); 284 method public static androidx.compose.ui.test.SemanticsNodeInteraction filterToOne(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher); 285 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onAncestors(androidx.compose.ui.test.SemanticsNodeInteraction); 286 method public static androidx.compose.ui.test.SemanticsNodeInteraction onChild(androidx.compose.ui.test.SemanticsNodeInteraction); 287 method public static androidx.compose.ui.test.SemanticsNodeInteraction onChildAt(androidx.compose.ui.test.SemanticsNodeInteraction, int index); 288 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onChildren(androidx.compose.ui.test.SemanticsNodeInteraction); 289 method public static androidx.compose.ui.test.SemanticsNodeInteraction onFirst(androidx.compose.ui.test.SemanticsNodeInteractionCollection); 290 method public static androidx.compose.ui.test.SemanticsNodeInteraction onLast(androidx.compose.ui.test.SemanticsNodeInteractionCollection); 291 method public static androidx.compose.ui.test.SemanticsNodeInteraction onParent(androidx.compose.ui.test.SemanticsNodeInteraction); 292 method public static androidx.compose.ui.test.SemanticsNodeInteraction onSibling(androidx.compose.ui.test.SemanticsNodeInteraction); 293 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onSiblings(androidx.compose.ui.test.SemanticsNodeInteraction); 294 } 295 296 public final class SemanticsMatcher { 297 ctor public SemanticsMatcher(String description, kotlin.jvm.functions.Function1<? super androidx.compose.ui.semantics.SemanticsNode,java.lang.Boolean> matcher); 298 method public infix androidx.compose.ui.test.SemanticsMatcher and(androidx.compose.ui.test.SemanticsMatcher other); 299 method public String getDescription(); 300 method public boolean matches(androidx.compose.ui.semantics.SemanticsNode node); 301 method public boolean matchesAny(Iterable<androidx.compose.ui.semantics.SemanticsNode> nodes); 302 method public operator androidx.compose.ui.test.SemanticsMatcher not(); 303 method public infix androidx.compose.ui.test.SemanticsMatcher or(androidx.compose.ui.test.SemanticsMatcher other); 304 property public final String description; 305 field public static final androidx.compose.ui.test.SemanticsMatcher.Companion Companion; 306 } 307 308 public static final class SemanticsMatcher.Companion { 309 method public <T> androidx.compose.ui.test.SemanticsMatcher expectValue(androidx.compose.ui.semantics.SemanticsPropertyKey<T> key, T expectedValue); 310 method public <T> androidx.compose.ui.test.SemanticsMatcher keyIsDefined(androidx.compose.ui.semantics.SemanticsPropertyKey<T> key); 311 method public <T> androidx.compose.ui.test.SemanticsMatcher keyNotDefined(androidx.compose.ui.semantics.SemanticsPropertyKey<T> key); 312 } 313 314 public final class SemanticsNodeInteraction { 315 ctor public SemanticsNodeInteraction(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsMatcher matcher); 316 ctor public SemanticsNodeInteraction(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsSelector selector); 317 method public void assertDoesNotExist(); 318 method public androidx.compose.ui.test.SemanticsNodeInteraction assertExists(optional String? errorMessageOnFail); 319 method public androidx.compose.ui.semantics.SemanticsNode fetchSemanticsNode(optional String? errorMessageOnFail); 320 } 321 322 public final class SemanticsNodeInteractionCollection { 323 ctor public SemanticsNodeInteractionCollection(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsMatcher matcher); 324 ctor public SemanticsNodeInteractionCollection(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsSelector selector); 325 method public java.util.List<androidx.compose.ui.semantics.SemanticsNode> fetchSemanticsNodes(optional boolean atLeastOneRootRequired, optional String? errorMessageOnFail); 326 method public operator androidx.compose.ui.test.SemanticsNodeInteraction get(int index); 327 } 328 329 @kotlin.jvm.JvmDefaultWithCompatibility public interface SemanticsNodeInteractionsProvider { 330 method public androidx.compose.ui.test.SemanticsNodeInteractionCollection onAllNodes(androidx.compose.ui.test.SemanticsMatcher matcher, optional boolean useUnmergedTree); 331 method public androidx.compose.ui.test.SemanticsNodeInteraction onNode(androidx.compose.ui.test.SemanticsMatcher matcher, optional boolean useUnmergedTree); 332 } 333 334 public final class SemanticsSelector { 335 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); 336 method public String getDescription(); 337 method public androidx.compose.ui.test.SelectionResult map(Iterable<androidx.compose.ui.semantics.SemanticsNode> nodes, String errorOnFail); 338 property public final String description; 339 } 340 341 public final class TestContext { 342 } 343 344 public final class TextActionsKt { 345 method public static void performImeAction(androidx.compose.ui.test.SemanticsNodeInteraction); 346 method public static void performTextClearance(androidx.compose.ui.test.SemanticsNodeInteraction); 347 method public static void performTextInput(androidx.compose.ui.test.SemanticsNodeInteraction, String text); 348 method public static void performTextReplacement(androidx.compose.ui.test.SemanticsNodeInteraction, String text); 349 } 350 351 @kotlin.jvm.JvmDefaultWithCompatibility public interface TouchInjectionScope extends androidx.compose.ui.test.InjectionScope { 352 method public void cancel(optional long delayMillis); 353 method public androidx.compose.ui.geometry.Offset? currentPosition(optional int pointerId); 354 method public void down(int pointerId, long position); 355 method public default void down(long position); 356 method public void move(optional long delayMillis); 357 method public default void moveBy(int pointerId, long delta, optional long delayMillis); 358 method public default void moveBy(long delta, optional long delayMillis); 359 method public default void moveTo(int pointerId, long position, optional long delayMillis); 360 method public default void moveTo(long position, optional long delayMillis); 361 method public void up(optional int pointerId); 362 method public default void updatePointerBy(int pointerId, long delta); 363 method public void updatePointerTo(int pointerId, long position); 364 } 365 366 public final class TouchInjectionScopeKt { 367 method public static void click(androidx.compose.ui.test.TouchInjectionScope, optional long position); 368 method public static void doubleClick(androidx.compose.ui.test.TouchInjectionScope, optional long position, optional long delayMillis); 369 method public static void longClick(androidx.compose.ui.test.TouchInjectionScope, optional long position, optional long durationMillis); 370 method public static void pinch(androidx.compose.ui.test.TouchInjectionScope, long start0, long end0, long start1, long end1, optional long durationMillis); 371 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); 372 method public static void swipe(androidx.compose.ui.test.TouchInjectionScope, long start, long end, optional long durationMillis); 373 method public static void swipeDown(androidx.compose.ui.test.TouchInjectionScope, optional float startY, optional float endY, optional long durationMillis); 374 method public static void swipeLeft(androidx.compose.ui.test.TouchInjectionScope, optional float startX, optional float endX, optional long durationMillis); 375 method public static void swipeRight(androidx.compose.ui.test.TouchInjectionScope, optional float startX, optional float endX, optional long durationMillis); 376 method public static void swipeUp(androidx.compose.ui.test.TouchInjectionScope, optional float startY, optional float endY, optional long durationMillis); 377 method public static void swipeWithVelocity(androidx.compose.ui.test.TouchInjectionScope, long start, long end, float endVelocity, optional long durationMillis); 378 } 379 380} 381 382