1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119<!DOCTYPE html> 120<html devsite> 121<head> 122 123 124 <meta name="top_category" value="develop" /> 125 126 <meta name="subcategory" value="reference" /> 127 128 129 <meta name="book_path" value="/reference/android/support/test/_book.yaml" /> 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145<title>AppNotIdleException</title> 146 147 148</head> 149 150<body class="gc-documentation develop reference api apilevel-"> 151<div id="doc-api-level" class="" style="display:none"></div> 152 153 154 155 156<div id="naMessage"></div> 157 158<div id="api-info-block"> 159<div class="api-level"> 160 161 162 163 164</div> 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203<div class="sum-details-links"> 204 205Summary: 206 207 208 209 210 211 212 213 214 215 216 217 <a href="#pubmethods">Methods</a> 218 219 220 221 222 | <a href="#inhmethods">Inherited Methods</a> 223 224| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 225 226</div><!-- end sum-details-links --> 227</div><!-- end api-info-block --> 228 229<div class="api apilevel-" id="jd-content"> 230 231<!-- ======== START OF CLASS DATA ======== --> 232 233<h1 class="api-title">AppNotIdleException</h1> 234<p> 235<code class="api-signature"> 236 public 237 238 final 239 240 class 241 AppNotIdleException 242</code> 243<br> 244 245 246<code class="api-signature"> 247 248 249 250</code> 251 252<code class="api-signature"> 253 254 255 256</code> 257 258<code class="api-signature"> 259 260 261 262</code> 263 264<code class="api-signature"> 265 266 extends RuntimeException 267 268 269 270</code> 271 272<code class="api-signature"> 273 274 275 implements 276 277 <a href="/reference/android/support/test/espresso/EspressoException.html">EspressoException</a> 278 279 280 281</code> 282 283</p><table class="jd-inheritance-table"> 284 285 286 <tr> 287 288 <td colspan="5" class="jd-inheritance-class-cell">java.lang.Object 289 </td> 290 </tr> 291 292 293 <tr> 294 295 <td class="jd-inheritance-space"> ↳</td> 296 297 <td colspan="4" class="jd-inheritance-class-cell">java.lang.Throwable 298 </td> 299 </tr> 300 301 302 <tr> 303 304 <td class="jd-inheritance-space"> </td> 305 306 <td class="jd-inheritance-space"> ↳</td> 307 308 <td colspan="3" class="jd-inheritance-class-cell">java.lang.Exception 309 </td> 310 </tr> 311 312 313 <tr> 314 315 <td class="jd-inheritance-space"> </td> 316 317 <td class="jd-inheritance-space"> </td> 318 319 <td class="jd-inheritance-space"> ↳</td> 320 321 <td colspan="2" class="jd-inheritance-class-cell">java.lang.RuntimeException 322 </td> 323 </tr> 324 325 326 <tr> 327 328 <td class="jd-inheritance-space"> </td> 329 330 <td class="jd-inheritance-space"> </td> 331 332 <td class="jd-inheritance-space"> </td> 333 334 <td class="jd-inheritance-space"> ↳</td> 335 336 <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.AppNotIdleException 337 </td> 338 </tr> 339 340 341</table> 342 343 344 345 346<br><hr> 347 348 349 <p>An exception which indicates that the App has not become idle even after the specified duration. 350</p> 351 352 353 354 355 356 357 358<h2 class="api-section">Summary</h2> 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386<!-- ========== METHOD SUMMARY =========== --> 387<table id="pubmethods" class="responsive methods"> 388<tr><th colspan="2"><h3>Public methods</h3></th></tr> 389 390 391 392 393 <tr class="api apilevel-" > 394 395 396 <td><code> 397 398 399 static 400 401 402 <a href="/reference/android/support/test/espresso/AppNotIdleException.html">AppNotIdleException</a></code> 403 </td> 404 405 <td width="100%"> 406 <code> 407 <a href="/reference/android/support/test/espresso/AppNotIdleException.html#create(java.util.List<java.lang.String>, int, int)">create</a>(List<String> idleConditions, int loopCount, int seconds) 408 </code> 409 410 <p><em> 411 This method is deprecated. 412 use <code><a href="/reference/android/support/test/espresso/AppNotIdleException.html#create(java.util.List<java.lang.String>, java.lang.String)">create(List, String)</a></code> instead 413</em> 414 415 416</p> 417 418 </td> 419 </tr> 420 421 422 423 <tr class="api apilevel-" > 424 425 426 <td><code> 427 428 429 static 430 431 432 <a href="/reference/android/support/test/espresso/AppNotIdleException.html">AppNotIdleException</a></code> 433 </td> 434 435 <td width="100%"> 436 <code> 437 <a href="/reference/android/support/test/espresso/AppNotIdleException.html#create(java.util.List<java.lang.String>, java.lang.String)">create</a>(List<String> idleConditions, String message) 438 </code> 439 440 <p>Creates a new AppNotIdleException suitable for erroring out a test case. 441 442 443</p> 444 445 </td> 446 </tr> 447 448 449 450</table> 451 452 453 454 455 456 457 458<!-- ========== METHOD SUMMARY =========== --> 459<table id="inhmethods" class="methods inhtable"> 460<tr><th><h3>Inherited methods</h3></th></tr> 461 462 463 464 465 466 467<tr class="api apilevel-" > 468<td colspan="2"> 469 470 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Throwable" class="jd-expando-trigger closed" 471 ><img height="34" id="inherited-methods-java.lang.Throwable-trigger" 472 src="/assets/images/styles/disclosure_down.png" 473 class="jd-expando-trigger-img" /></a>From 474class 475<code> 476 477 java.lang.Throwable 478 479</code> 480<div id="inherited-methods-java.lang.Throwable"> 481 <div id="inherited-methods-java.lang.Throwable-list" 482 class="jd-inheritedlinks"> 483 </div> 484 <div id="inherited-methods-java.lang.Throwable-summary" style="display: none;"> 485 <table class="jd-sumtable-expando responsive"> 486 487 488 489 490 <tr class="api apilevel-" > 491 492 493 <td><code> 494 495 496 497 final 498 499 void</code> 500 </td> 501 502 <td width="100%"> 503 <code> 504 addSuppressed(Throwable arg0) 505 </code> 506 507 </td> 508 </tr> 509 510 511 512 <tr class="api apilevel-" > 513 514 515 <td><code> 516 517 518 519 520 521 Throwable</code> 522 </td> 523 524 <td width="100%"> 525 <code> 526 fillInStackTrace() 527 </code> 528 529 </td> 530 </tr> 531 532 533 534 <tr class="api apilevel-" > 535 536 537 <td><code> 538 539 540 541 542 543 Throwable</code> 544 </td> 545 546 <td width="100%"> 547 <code> 548 getCause() 549 </code> 550 551 </td> 552 </tr> 553 554 555 556 <tr class="api apilevel-" > 557 558 559 <td><code> 560 561 562 563 564 565 String</code> 566 </td> 567 568 <td width="100%"> 569 <code> 570 getLocalizedMessage() 571 </code> 572 573 </td> 574 </tr> 575 576 577 578 <tr class="api apilevel-" > 579 580 581 <td><code> 582 583 584 585 586 587 String</code> 588 </td> 589 590 <td width="100%"> 591 <code> 592 getMessage() 593 </code> 594 595 </td> 596 </tr> 597 598 599 600 <tr class="api apilevel-" > 601 602 603 <td><code> 604 605 606 607 608 609 StackTraceElement[]</code> 610 </td> 611 612 <td width="100%"> 613 <code> 614 getStackTrace() 615 </code> 616 617 </td> 618 </tr> 619 620 621 622 <tr class="api apilevel-" > 623 624 625 <td><code> 626 627 628 629 final 630 631 Throwable[]</code> 632 </td> 633 634 <td width="100%"> 635 <code> 636 getSuppressed() 637 </code> 638 639 </td> 640 </tr> 641 642 643 644 <tr class="api apilevel-" > 645 646 647 <td><code> 648 649 650 651 652 653 Throwable</code> 654 </td> 655 656 <td width="100%"> 657 <code> 658 initCause(Throwable arg0) 659 </code> 660 661 </td> 662 </tr> 663 664 665 666 <tr class="api apilevel-" > 667 668 669 <td><code> 670 671 672 673 674 675 void</code> 676 </td> 677 678 <td width="100%"> 679 <code> 680 printStackTrace() 681 </code> 682 683 </td> 684 </tr> 685 686 687 688 <tr class="api apilevel-" > 689 690 691 <td><code> 692 693 694 695 696 697 void</code> 698 </td> 699 700 <td width="100%"> 701 <code> 702 printStackTrace(PrintWriter arg0) 703 </code> 704 705 </td> 706 </tr> 707 708 709 710 <tr class="api apilevel-" > 711 712 713 <td><code> 714 715 716 717 718 719 void</code> 720 </td> 721 722 <td width="100%"> 723 <code> 724 printStackTrace(PrintStream arg0) 725 </code> 726 727 </td> 728 </tr> 729 730 731 732 <tr class="api apilevel-" > 733 734 735 <td><code> 736 737 738 739 740 741 void</code> 742 </td> 743 744 <td width="100%"> 745 <code> 746 setStackTrace(StackTraceElement[] arg0) 747 </code> 748 749 </td> 750 </tr> 751 752 753 754 <tr class="api apilevel-" > 755 756 757 <td><code> 758 759 760 761 762 763 String</code> 764 </td> 765 766 <td width="100%"> 767 <code> 768 toString() 769 </code> 770 771 </td> 772 </tr> 773 774 775 776 </table> 777 </div> 778</div> 779</td></tr> 780 781 782 783<tr class="api apilevel-" > 784<td colspan="2"> 785 786 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" 787 ><img height="34" id="inherited-methods-java.lang.Object-trigger" 788 src="/assets/images/styles/disclosure_down.png" 789 class="jd-expando-trigger-img" /></a>From 790class 791<code> 792 793 java.lang.Object 794 795</code> 796<div id="inherited-methods-java.lang.Object"> 797 <div id="inherited-methods-java.lang.Object-list" 798 class="jd-inheritedlinks"> 799 </div> 800 <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> 801 <table class="jd-sumtable-expando responsive"> 802 803 804 805 806 <tr class="api apilevel-" > 807 808 809 <td><code> 810 811 812 813 814 815 Object</code> 816 </td> 817 818 <td width="100%"> 819 <code> 820 clone() 821 </code> 822 823 </td> 824 </tr> 825 826 827 828 <tr class="api apilevel-" > 829 830 831 <td><code> 832 833 834 835 836 837 boolean</code> 838 </td> 839 840 <td width="100%"> 841 <code> 842 equals(Object arg0) 843 </code> 844 845 </td> 846 </tr> 847 848 849 850 <tr class="api apilevel-" > 851 852 853 <td><code> 854 855 856 857 858 859 void</code> 860 </td> 861 862 <td width="100%"> 863 <code> 864 finalize() 865 </code> 866 867 </td> 868 </tr> 869 870 871 872 <tr class="api apilevel-" > 873 874 875 <td><code> 876 877 878 879 final 880 881 Class<?></code> 882 </td> 883 884 <td width="100%"> 885 <code> 886 getClass() 887 </code> 888 889 </td> 890 </tr> 891 892 893 894 <tr class="api apilevel-" > 895 896 897 <td><code> 898 899 900 901 902 903 int</code> 904 </td> 905 906 <td width="100%"> 907 <code> 908 hashCode() 909 </code> 910 911 </td> 912 </tr> 913 914 915 916 <tr class="api apilevel-" > 917 918 919 <td><code> 920 921 922 923 final 924 925 void</code> 926 </td> 927 928 <td width="100%"> 929 <code> 930 notify() 931 </code> 932 933 </td> 934 </tr> 935 936 937 938 <tr class="api apilevel-" > 939 940 941 <td><code> 942 943 944 945 final 946 947 void</code> 948 </td> 949 950 <td width="100%"> 951 <code> 952 notifyAll() 953 </code> 954 955 </td> 956 </tr> 957 958 959 960 <tr class="api apilevel-" > 961 962 963 <td><code> 964 965 966 967 968 969 String</code> 970 </td> 971 972 <td width="100%"> 973 <code> 974 toString() 975 </code> 976 977 </td> 978 </tr> 979 980 981 982 <tr class="api apilevel-" > 983 984 985 <td><code> 986 987 988 989 final 990 991 void</code> 992 </td> 993 994 <td width="100%"> 995 <code> 996 wait(long arg0, int arg1) 997 </code> 998 999 </td> 1000 </tr> 1001 1002 1003 1004 <tr class="api apilevel-" > 1005 1006 1007 <td><code> 1008 1009 1010 1011 final 1012 1013 void</code> 1014 </td> 1015 1016 <td width="100%"> 1017 <code> 1018 wait(long arg0) 1019 </code> 1020 1021 </td> 1022 </tr> 1023 1024 1025 1026 <tr class="api apilevel-" > 1027 1028 1029 <td><code> 1030 1031 1032 1033 final 1034 1035 void</code> 1036 </td> 1037 1038 <td width="100%"> 1039 <code> 1040 wait() 1041 </code> 1042 1043 </td> 1044 </tr> 1045 1046 1047 1048 </table> 1049 </div> 1050</div> 1051</td></tr> 1052 1053 1054 1055 1056 1057 1058</table> 1059 1060 1061 1062<!-- XML Attributes --> 1063 1064 1065<!-- Enum Values --> 1066 1067 1068<!-- Constants --> 1069 1070 1071<!-- Fields --> 1072 1073 1074<!-- Public ctors --> 1075 1076 1077 1078<!-- ========= CONSTRUCTOR DETAIL ======== --> 1079<!-- Protected ctors --> 1080 1081 1082 1083<!-- ========= METHOD DETAIL ======== --> 1084<!-- Public methdos --> 1085 1086<h2 class="api-section">Public methods</h2> 1087 1088 1089 1090<A NAME="create(java.util.List<java.lang.String>, int, int)"></A> 1091 1092<div class="api apilevel-"> 1093 <h3 class="api-name">create</h3> 1094 <div class="api-level"> 1095 <div></div> 1096 1097 1098 1099 </div> 1100<pre class="api-signature no-pretty-print"> 1101<a href="/reference/android/support/test/espresso/AppNotIdleException.html">AppNotIdleException</a> create (List<String> idleConditions, 1102 int loopCount, 1103 int seconds)</pre> 1104 1105 1106 1107 <p> 1108 <p class="caution"><strong> 1109 This method is deprecated.</strong><br/> 1110 use <code><a href="/reference/android/support/test/espresso/AppNotIdleException.html#create(java.util.List<java.lang.String>, java.lang.String)">create(List, String)</a></code> instead 1111 1112 </p> 1113 <p>Creates a new AppNotIdleException suitable for erroring out a test case. 1114 1115 <p>This should be called only from the main thread if the app does not idle out within the 1116 specified duration.</p> 1117 <table class="responsive"> 1118 <tr><th colspan=2>Parameters</th></tr> 1119 <tr> 1120 <td><code>idleConditions</code></td> 1121 <td width="100%"> 1122 <code>List</code>: 1123 list of idleConditions that failed to become idle.</td> 1124 </tr> 1125 <tr> 1126 <td><code>loopCount</code></td> 1127 <td width="100%"> 1128 <code>int</code>: 1129 number of times it was tried to check if they became idle.</td> 1130 </tr> 1131 <tr> 1132 <td><code>seconds</code></td> 1133 <td width="100%"> 1134 <code>int</code>: 1135 number of seconds that was tried before giving up.</td> 1136 </tr> 1137 </table> 1138 <table class="responsive"> 1139 <tr><th colspan=2>Returns</th></tr> 1140 <tr> 1141 <td><code><a href="/reference/android/support/test/espresso/AppNotIdleException.html">AppNotIdleException</a></code></td> 1142 <td width="100%">a AppNotIdleException suitable to be thrown on the instrumentation thread.</td> 1143 </tr> 1144 </table> 1145 1146</div> 1147 1148 1149<A NAME="create(java.util.List<java.lang.String>, java.lang.String)"></A> 1150 1151<div class="api apilevel-"> 1152 <h3 class="api-name">create</h3> 1153 <div class="api-level"> 1154 <div></div> 1155 1156 1157 1158 </div> 1159<pre class="api-signature no-pretty-print"> 1160<a href="/reference/android/support/test/espresso/AppNotIdleException.html">AppNotIdleException</a> create (List<String> idleConditions, 1161 String message)</pre> 1162 1163 1164 1165 1166 <p>Creates a new AppNotIdleException suitable for erroring out a test case. 1167 1168 <p>This should be called only from the main thread if the app does not idle out within the 1169 specified duration.</p> 1170 <table class="responsive"> 1171 <tr><th colspan=2>Parameters</th></tr> 1172 <tr> 1173 <td><code>idleConditions</code></td> 1174 <td width="100%"> 1175 <code>List</code>: 1176 list of idleConditions that failed to become idle.</td> 1177 </tr> 1178 <tr> 1179 <td><code>message</code></td> 1180 <td width="100%"> 1181 <code>String</code>: 1182 a message about the failure.</td> 1183 </tr> 1184 </table> 1185 <table class="responsive"> 1186 <tr><th colspan=2>Returns</th></tr> 1187 <tr> 1188 <td><code><a href="/reference/android/support/test/espresso/AppNotIdleException.html">AppNotIdleException</a></code></td> 1189 <td width="100%">a AppNotIdleException suitable to be thrown on the instrumentation thread. 1190</td> 1191 </tr> 1192 </table> 1193 1194</div> 1195 1196 1197 1198 1199 1200<!-- ========= METHOD DETAIL ======== --> 1201 1202 1203 1204<!-- ========= END OF CLASS DATA ========= --> 1205 1206</div><!-- end jd-content --> 1207 1208 1209 1210<div class="data-reference-resources-wrapper"> 1211 1212 <ul data-reference-resources> 1213 1214 1215 <li><h2>Interfaces</h2> 1216 <ul> 1217 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/BaseLayerComponent.html">BaseLayerComponent</a></li> 1218 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/EspressoException.html">EspressoException</a></li> 1219 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/FailureHandler.html">FailureHandler</a></li> 1220 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a></li> 1221 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingResource.ResourceCallback.html">IdlingResource.ResourceCallback</a></li> 1222 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/UiController.html">UiController</a></li> 1223 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewAction.html">ViewAction</a></li> 1224 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></li> 1225 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewFinder.html">ViewFinder</a></li> 1226 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewInteractionComponent.html">ViewInteractionComponent</a></li> 1227 </ul> 1228 </li> 1229 1230 <li><h2>Classes</h2> 1231 <ul> 1232 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.Builder.html">AmbiguousViewMatcherException.Builder</a></li> 1233 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/DataInteraction.html">DataInteraction</a></li> 1234 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/Espresso.html">Espresso</a></li> 1235 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/GraphHolder.html">GraphHolder</a></li> 1236 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingPolicies.html">IdlingPolicies</a></li> 1237 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingPolicy.html">IdlingPolicy</a></li> 1238 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoMatchingViewException.Builder.html">NoMatchingViewException.Builder</a></li> 1239 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/PerformException.Builder.html">PerformException.Builder</a></li> 1240 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/Root.html">Root</a></li> 1241 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/Root.Builder.html">Root.Builder</a></li> 1242 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewInteraction.html">ViewInteraction</a></li> 1243 </ul> 1244 </li> 1245 1246 1247 <li><h2>Exceptions</h2> 1248 <ul> 1249 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></li> 1250 <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/AppNotIdleException.html">AppNotIdleException</a></li> 1251 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingResourceTimeoutException.html">IdlingResourceTimeoutException</a></li> 1252 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/InjectEventSecurityException.html">InjectEventSecurityException</a></li> 1253 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoActivityResumedException.html">NoActivityResumedException</a></li> 1254 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoMatchingRootException.html">NoMatchingRootException</a></li> 1255 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></li> 1256 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/PerformException.html">PerformException</a></li> 1257 </ul> 1258 </li> 1259 1260 </ul> 1261 1262</div> 1263 1264 1265 1266</body> 1267</html> 1268