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 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 performScrollTo(androidx.compose.ui.test.SemanticsNodeInteraction); 8 method @androidx.compose.ui.test.ExperimentalTestApi public static androidx.compose.ui.test.SemanticsNodeInteraction performScrollToIndex(androidx.compose.ui.test.SemanticsNodeInteraction, int index); 9 method @androidx.compose.ui.test.ExperimentalTestApi public static androidx.compose.ui.test.SemanticsNodeInteraction performScrollToKey(androidx.compose.ui.test.SemanticsNodeInteraction, Object key); 10 method 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); 11 method 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); 12 } 13 14 public final class AndroidAssertions_androidKt { 15 } 16 17 public final class AndroidImageHelpers_androidKt { 18 method @RequiresApi(android.os.Build.VERSION_CODES.O) public static androidx.compose.ui.graphics.ImageBitmap captureToImage(androidx.compose.ui.test.SemanticsNodeInteraction); 19 } 20 21 public final class AndroidInputDispatcher_androidKt { 22 } 23 24 public final class AndroidOutput_androidKt { 25 } 26 27 public final class AssertionsKt { 28 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); 29 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection assertAll(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher); 30 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection assertAny(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher); 31 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertContentDescriptionContains(androidx.compose.ui.test.SemanticsNodeInteraction, String value, optional boolean ignoreCase); 32 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertContentDescriptionEquals(androidx.compose.ui.test.SemanticsNodeInteraction, String value, optional boolean ignoreCase); 33 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection assertCountEquals(androidx.compose.ui.test.SemanticsNodeInteractionCollection, int expectedSize); 34 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHasClickAction(androidx.compose.ui.test.SemanticsNodeInteraction); 35 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHasNoClickAction(androidx.compose.ui.test.SemanticsNodeInteraction); 36 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsDisplayed(androidx.compose.ui.test.SemanticsNodeInteraction); 37 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsEnabled(androidx.compose.ui.test.SemanticsNodeInteraction); 38 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsFocused(androidx.compose.ui.test.SemanticsNodeInteraction); 39 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotDisplayed(androidx.compose.ui.test.SemanticsNodeInteraction); 40 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotEnabled(androidx.compose.ui.test.SemanticsNodeInteraction); 41 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotFocused(androidx.compose.ui.test.SemanticsNodeInteraction); 42 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsNotSelected(androidx.compose.ui.test.SemanticsNodeInteraction); 43 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsOff(androidx.compose.ui.test.SemanticsNodeInteraction); 44 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsOn(androidx.compose.ui.test.SemanticsNodeInteraction); 45 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsSelectable(androidx.compose.ui.test.SemanticsNodeInteraction); 46 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsSelected(androidx.compose.ui.test.SemanticsNodeInteraction); 47 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertIsToggleable(androidx.compose.ui.test.SemanticsNodeInteraction); 48 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertRangeInfoEquals(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.semantics.ProgressBarRangeInfo value); 49 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTextContains(androidx.compose.ui.test.SemanticsNodeInteraction, String value, optional boolean ignoreCase); 50 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertTextEquals(androidx.compose.ui.test.SemanticsNodeInteraction, String value, optional boolean ignoreCase); 51 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertValueEquals(androidx.compose.ui.test.SemanticsNodeInteraction, String value); 52 } 53 54 public final class BoundsAssertionsKt { 55 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHeightIsAtLeast(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedMinHeight); 56 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertHeightIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedHeight); 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 assertWidthIsAtLeast(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedMinWidth); 61 method public static androidx.compose.ui.test.SemanticsNodeInteraction assertWidthIsEqualTo(androidx.compose.ui.test.SemanticsNodeInteraction, float expectedWidth); 62 method public static float getAlignmentLinePosition(androidx.compose.ui.test.SemanticsNodeInteraction, androidx.compose.ui.layout.AlignmentLine alignmentLine); 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 ErrorMessagesKt { 71 } 72 73 @kotlin.RequiresOptIn(message="This testing API is experimental and is likely to be changed or removed entirely") 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 label, optional boolean substring, optional boolean ignoreCase); 83 method public static androidx.compose.ui.test.SemanticsMatcher hasImeAction(androidx.compose.ui.text.input.ImeAction actionType); 84 method public static androidx.compose.ui.test.SemanticsMatcher hasNoClickAction(); 85 method public static androidx.compose.ui.test.SemanticsMatcher hasNoScrollAction(); 86 method public static androidx.compose.ui.test.SemanticsMatcher hasParent(androidx.compose.ui.test.SemanticsMatcher matcher); 87 method public static androidx.compose.ui.test.SemanticsMatcher hasProgressBarRangeInfo(androidx.compose.ui.semantics.ProgressBarRangeInfo rangeInfo); 88 method public static androidx.compose.ui.test.SemanticsMatcher hasScrollAction(); 89 method @androidx.compose.ui.test.ExperimentalTestApi public static androidx.compose.ui.test.SemanticsMatcher hasScrollToIndexAction(); 90 method @androidx.compose.ui.test.ExperimentalTestApi public static androidx.compose.ui.test.SemanticsMatcher hasScrollToKeyAction(); 91 method public static androidx.compose.ui.test.SemanticsMatcher hasSetTextAction(); 92 method public static androidx.compose.ui.test.SemanticsMatcher hasStateDescription(String value); 93 method public static androidx.compose.ui.test.SemanticsMatcher hasTestTag(String testTag); 94 method public static androidx.compose.ui.test.SemanticsMatcher hasText(String text, optional boolean substring, optional boolean ignoreCase); 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 public final class GestureScope { 124 ctor public GestureScope(androidx.compose.ui.semantics.SemanticsNode node, androidx.compose.ui.test.TestContext testContext); 125 method public long getVisibleSize(); 126 property public final long visibleSize; 127 } 128 129 public final class GestureScopeKt { 130 method public static void cancel(androidx.compose.ui.test.GestureScope); 131 method public static void click(androidx.compose.ui.test.GestureScope, optional long position); 132 method public static void doubleClick(androidx.compose.ui.test.GestureScope, optional long position, optional long delayMillis); 133 method public static void down(androidx.compose.ui.test.GestureScope, int pointerId, long position); 134 method public static void down(androidx.compose.ui.test.GestureScope, long position); 135 method public static inline float getBottom(androidx.compose.ui.test.GestureScope); 136 method public static long getBottomCenter(androidx.compose.ui.test.GestureScope); 137 method public static long getBottomLeft(androidx.compose.ui.test.GestureScope); 138 method public static long getBottomRight(androidx.compose.ui.test.GestureScope); 139 method public static long getCenter(androidx.compose.ui.test.GestureScope); 140 method public static long getCenterLeft(androidx.compose.ui.test.GestureScope); 141 method public static long getCenterRight(androidx.compose.ui.test.GestureScope); 142 method public static inline float getCenterX(androidx.compose.ui.test.GestureScope); 143 method public static inline float getCenterY(androidx.compose.ui.test.GestureScope); 144 method public static inline int getHeight(androidx.compose.ui.test.GestureScope); 145 method public static inline float getLeft(androidx.compose.ui.test.GestureScope); 146 method public static inline float getRight(androidx.compose.ui.test.GestureScope); 147 method public static inline float getTop(androidx.compose.ui.test.GestureScope); 148 method public static long getTopCenter(androidx.compose.ui.test.GestureScope); 149 method public static long getTopLeft(androidx.compose.ui.test.GestureScope); 150 method public static long getTopRight(androidx.compose.ui.test.GestureScope); 151 method public static inline int getWidth(androidx.compose.ui.test.GestureScope); 152 method public static void longClick(androidx.compose.ui.test.GestureScope, optional long position, optional long durationMillis); 153 method public static void move(androidx.compose.ui.test.GestureScope); 154 method public static void moveBy(androidx.compose.ui.test.GestureScope, int pointerId, long delta); 155 method public static void moveBy(androidx.compose.ui.test.GestureScope, long delta); 156 method public static void movePointerBy(androidx.compose.ui.test.GestureScope, int pointerId, long delta); 157 method public static void movePointerTo(androidx.compose.ui.test.GestureScope, int pointerId, long position); 158 method public static void moveTo(androidx.compose.ui.test.GestureScope, int pointerId, long position); 159 method public static void moveTo(androidx.compose.ui.test.GestureScope, long position); 160 method public static long percentOffset(androidx.compose.ui.test.GestureScope, optional float x, optional float y); 161 method public static void pinch(androidx.compose.ui.test.GestureScope, long start0, long end0, long start1, long end1, optional long durationMillis); 162 method public static void swipe(androidx.compose.ui.test.GestureScope, long start, long end, optional long durationMillis); 163 method public static void swipeDown(androidx.compose.ui.test.GestureScope); 164 method @androidx.compose.ui.test.ExperimentalTestApi public static void swipeDown(androidx.compose.ui.test.GestureScope, optional float startY, optional float endY, optional long durationMillis); 165 method public static void swipeLeft(androidx.compose.ui.test.GestureScope); 166 method @androidx.compose.ui.test.ExperimentalTestApi public static void swipeLeft(androidx.compose.ui.test.GestureScope, optional float startX, optional float endX, optional long durationMillis); 167 method public static void swipeRight(androidx.compose.ui.test.GestureScope); 168 method @androidx.compose.ui.test.ExperimentalTestApi public static void swipeRight(androidx.compose.ui.test.GestureScope, optional float startX, optional float endX, optional long durationMillis); 169 method public static void swipeUp(androidx.compose.ui.test.GestureScope); 170 method @androidx.compose.ui.test.ExperimentalTestApi public static void swipeUp(androidx.compose.ui.test.GestureScope, optional float startY, optional float endY, optional long durationMillis); 171 method public static void swipeWithVelocity(androidx.compose.ui.test.GestureScope, long start, long end, float endVelocity, optional long durationMillis); 172 method public static void up(androidx.compose.ui.test.GestureScope, optional int pointerId); 173 } 174 175 public interface IdlingResource { 176 method public default String? getDiagnosticMessageIfBusy(); 177 method public boolean isIdleNow(); 178 property public abstract boolean isIdleNow; 179 } 180 181 @kotlin.RequiresOptIn(message="This is internal API for Compose modules that may change frequently and without warning.") public @interface InternalTestApi { 182 } 183 184 public final class KeyInputHelpersKt { 185 method public static boolean performKeyPress(androidx.compose.ui.test.SemanticsNodeInteraction, android.view.KeyEvent keyEvent); 186 } 187 188 public interface MainTestClock { 189 method public void advanceTimeBy(long milliseconds, optional boolean ignoreFrameDuration); 190 method public void advanceTimeByFrame(); 191 method public void advanceTimeUntil(optional long timeoutMillis, kotlin.jvm.functions.Function0<java.lang.Boolean> condition); 192 method public boolean getAutoAdvance(); 193 method public long getCurrentTime(); 194 method public void setAutoAdvance(boolean autoAdvance); 195 property public abstract boolean autoAdvance; 196 property public abstract long currentTime; 197 } 198 199 public final class OutputKt { 200 method public static void printToLog(androidx.compose.ui.test.SemanticsNodeInteraction, String tag, optional int maxDepth); 201 method public static void printToLog(androidx.compose.ui.test.SemanticsNodeInteractionCollection, String tag, optional int maxDepth); 202 method public static String printToString(androidx.compose.ui.test.SemanticsNodeInteraction, optional int maxDepth); 203 method public static String printToString(androidx.compose.ui.test.SemanticsNodeInteractionCollection, optional int maxDepth); 204 } 205 206 public final class SelectionResult { 207 ctor public SelectionResult(java.util.List<androidx.compose.ui.semantics.SemanticsNode> selectedNodes, optional String? customErrorOnNoMatch); 208 method public String? getCustomErrorOnNoMatch(); 209 method public java.util.List<androidx.compose.ui.semantics.SemanticsNode> getSelectedNodes(); 210 property public final String? customErrorOnNoMatch; 211 property public final java.util.List<androidx.compose.ui.semantics.SemanticsNode> selectedNodes; 212 } 213 214 public final class SelectorsKt { 215 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection filter(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher); 216 method public static androidx.compose.ui.test.SemanticsNodeInteraction filterToOne(androidx.compose.ui.test.SemanticsNodeInteractionCollection, androidx.compose.ui.test.SemanticsMatcher matcher); 217 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onAncestors(androidx.compose.ui.test.SemanticsNodeInteraction); 218 method public static androidx.compose.ui.test.SemanticsNodeInteraction onChild(androidx.compose.ui.test.SemanticsNodeInteraction); 219 method public static androidx.compose.ui.test.SemanticsNodeInteraction onChildAt(androidx.compose.ui.test.SemanticsNodeInteraction, int index); 220 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onChildren(androidx.compose.ui.test.SemanticsNodeInteraction); 221 method public static androidx.compose.ui.test.SemanticsNodeInteraction onFirst(androidx.compose.ui.test.SemanticsNodeInteractionCollection); 222 method public static androidx.compose.ui.test.SemanticsNodeInteraction onLast(androidx.compose.ui.test.SemanticsNodeInteractionCollection); 223 method public static androidx.compose.ui.test.SemanticsNodeInteraction onParent(androidx.compose.ui.test.SemanticsNodeInteraction); 224 method public static androidx.compose.ui.test.SemanticsNodeInteraction onSibling(androidx.compose.ui.test.SemanticsNodeInteraction); 225 method public static androidx.compose.ui.test.SemanticsNodeInteractionCollection onSiblings(androidx.compose.ui.test.SemanticsNodeInteraction); 226 } 227 228 public final class SemanticsMatcher { 229 ctor public SemanticsMatcher(String description, kotlin.jvm.functions.Function1<? super androidx.compose.ui.semantics.SemanticsNode,java.lang.Boolean> matcher); 230 method public infix androidx.compose.ui.test.SemanticsMatcher and(androidx.compose.ui.test.SemanticsMatcher other); 231 method public String getDescription(); 232 method public boolean matches(androidx.compose.ui.semantics.SemanticsNode node); 233 method public boolean matchesAny(Iterable<androidx.compose.ui.semantics.SemanticsNode> nodes); 234 method public operator androidx.compose.ui.test.SemanticsMatcher not(); 235 method public infix androidx.compose.ui.test.SemanticsMatcher or(androidx.compose.ui.test.SemanticsMatcher other); 236 property public final String description; 237 field public static final androidx.compose.ui.test.SemanticsMatcher.Companion Companion; 238 } 239 240 public static final class SemanticsMatcher.Companion { 241 method public <T> androidx.compose.ui.test.SemanticsMatcher expectValue(androidx.compose.ui.semantics.SemanticsPropertyKey<T> key, T? expectedValue); 242 method public <T> androidx.compose.ui.test.SemanticsMatcher keyIsDefined(androidx.compose.ui.semantics.SemanticsPropertyKey<T> key); 243 method public <T> androidx.compose.ui.test.SemanticsMatcher keyNotDefined(androidx.compose.ui.semantics.SemanticsPropertyKey<T> key); 244 } 245 246 public final class SemanticsNodeInteraction { 247 ctor public SemanticsNodeInteraction(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsMatcher matcher); 248 ctor public SemanticsNodeInteraction(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsSelector selector); 249 method public void assertDoesNotExist(); 250 method public androidx.compose.ui.test.SemanticsNodeInteraction assertExists(optional String? errorMessageOnFail); 251 method public androidx.compose.ui.semantics.SemanticsNode fetchSemanticsNode(optional String? errorMessageOnFail); 252 } 253 254 public final class SemanticsNodeInteractionCollection { 255 ctor public SemanticsNodeInteractionCollection(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsMatcher matcher); 256 ctor public SemanticsNodeInteractionCollection(androidx.compose.ui.test.TestContext testContext, boolean useUnmergedTree, androidx.compose.ui.test.SemanticsSelector selector); 257 method public java.util.List<androidx.compose.ui.semantics.SemanticsNode> fetchSemanticsNodes(optional boolean atLeastOneRootRequired, optional String? errorMessageOnFail); 258 method public operator androidx.compose.ui.test.SemanticsNodeInteraction get(int index); 259 } 260 261 public interface SemanticsNodeInteractionsProvider { 262 method public androidx.compose.ui.test.SemanticsNodeInteractionCollection onAllNodes(androidx.compose.ui.test.SemanticsMatcher matcher, optional boolean useUnmergedTree); 263 method public androidx.compose.ui.test.SemanticsNodeInteraction onNode(androidx.compose.ui.test.SemanticsMatcher matcher, optional boolean useUnmergedTree); 264 } 265 266 public final class SemanticsSelector { 267 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); 268 method public String getDescription(); 269 method public androidx.compose.ui.test.SelectionResult map(Iterable<androidx.compose.ui.semantics.SemanticsNode> nodes, String errorOnFail); 270 property public final String description; 271 } 272 273 public final class SemanticsSelectorKt { 274 } 275 276 public final class TestContext { 277 } 278 279 @kotlinx.coroutines.ExperimentalCoroutinesApi public final class TestMonotonicFrameClock implements androidx.compose.runtime.MonotonicFrameClock { 280 ctor public TestMonotonicFrameClock(kotlinx.coroutines.CoroutineScope coroutineScope, kotlinx.coroutines.test.DelayController delayController, optional long frameDelayNanos); 281 method public long getFrameDelayNanos(); 282 method public boolean getHasAwaiters(); 283 method public suspend <R> Object? withFrameNanos(kotlin.jvm.functions.Function1<? super java.lang.Long,? extends R> onFrame, kotlin.coroutines.Continuation<? super R> p); 284 property public final long frameDelayNanos; 285 property public final boolean hasAwaiters; 286 } 287 288 public final class TestMonotonicFrameClock_jvmKt { 289 method @kotlinx.coroutines.ExperimentalCoroutinesApi public static androidx.compose.ui.test.TestMonotonicFrameClock TestMonotonicFrameClock(kotlinx.coroutines.CoroutineScope coroutineScope, optional long frameDelayNanos); 290 method @kotlinx.coroutines.ExperimentalCoroutinesApi public static long getFrameDelayMillis(androidx.compose.ui.test.TestMonotonicFrameClock); 291 } 292 293 @androidx.compose.ui.test.InternalTestApi public interface TestOwner { 294 method public androidx.compose.ui.test.MainTestClock getMainClock(); 295 method public java.util.Set<androidx.compose.ui.node.RootForTest> getRoots(boolean atLeastOneRootExpected); 296 method public <T> T! runOnUiThread(kotlin.jvm.functions.Function0<? extends T> action); 297 method public void sendImeAction(androidx.compose.ui.semantics.SemanticsNode node, androidx.compose.ui.text.input.ImeAction actionSpecified); 298 method public void sendTextInputCommand(androidx.compose.ui.semantics.SemanticsNode node, java.util.List<? extends androidx.compose.ui.text.input.EditCommand> command); 299 property public abstract androidx.compose.ui.test.MainTestClock mainClock; 300 } 301 302 public final class TestOwnerKt { 303 method @androidx.compose.ui.test.InternalTestApi public static androidx.compose.ui.test.TestContext createTestContext(androidx.compose.ui.test.TestOwner owner); 304 } 305 306 public final class TextActionsKt { 307 method public static void performImeAction(androidx.compose.ui.test.SemanticsNodeInteraction); 308 method public static void performTextClearance(androidx.compose.ui.test.SemanticsNodeInteraction); 309 method public static void performTextInput(androidx.compose.ui.test.SemanticsNodeInteraction, String text); 310 method @androidx.compose.ui.test.ExperimentalTestApi public static void performTextInputSelection(androidx.compose.ui.test.SemanticsNodeInteraction, long selection); 311 method public static void performTextReplacement(androidx.compose.ui.test.SemanticsNodeInteraction, String text); 312 } 313 314 public final class UtilsKt { 315 } 316 317} 318 319package androidx.compose.ui.test.android { 320 321 public final class WindowCapture_androidKt { 322 } 323 324} 325 326