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>IdlingResourceRegistry</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<div class="sum-details-links"> 177 178Summary: 179 180 181 182 183 184 185 186 187 188 <a href="#pubctors">Ctors</a> 189 190 191 192 193 | <a href="#pubmethods">Methods</a> 194 195 196 197 198 | <a href="#inhmethods">Inherited Methods</a> 199 200| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 201 202</div><!-- end sum-details-links --> 203</div><!-- end api-info-block --> 204 205<div class="api apilevel-" id="jd-content"> 206 207<!-- ======== START OF CLASS DATA ======== --> 208 209<h1 class="api-title">IdlingResourceRegistry</h1> 210<p> 211<code class="api-signature"> 212 public 213 214 final 215 216 class 217 IdlingResourceRegistry 218</code> 219<br> 220 221 222<code class="api-signature"> 223 224 extends Object 225 226 227 228</code> 229 230<code class="api-signature"> 231 232 233 234</code> 235 236</p><table class="jd-inheritance-table"> 237 238 239 <tr> 240 241 <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object 242 </td> 243 </tr> 244 245 246 <tr> 247 248 <td class="jd-inheritance-space"> ↳</td> 249 250 <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.base.IdlingResourceRegistry 251 </td> 252 </tr> 253 254 255</table> 256 257 258 259 260<br><hr> 261 262 263 <p>Keeps track of user-registered <code><a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a></code>s. 264</p> 265 266 267 268 269 270 271 272<h2 class="api-section">Summary</h2> 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296<!-- ======== CONSTRUCTOR SUMMARY ======== --> 297<table id="pubctors" class="responsive constructors"> 298<tr><th colspan="2"><h3>Public constructors</h3></th></tr> 299 300 301 302 303 <tr class="api apilevel-" > 304 305 306 <td width="100%"> 307 <code> 308 <a href="/reference/android/support/test/espresso/base/IdlingResourceRegistry.html#IdlingResourceRegistry(android.os.Looper)">IdlingResourceRegistry</a>(Looper looper) 309 </code> 310 311 </td> 312 </tr> 313 314 315 316</table> 317 318 319 320 321 322 323<!-- ========== METHOD SUMMARY =========== --> 324<table id="pubmethods" class="responsive methods"> 325<tr><th colspan="2"><h3>Public methods</h3></th></tr> 326 327 328 329 330 <tr class="api apilevel-" > 331 332 333 <td><code> 334 335 336 337 338 339 List<<a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a>></code> 340 </td> 341 342 <td width="100%"> 343 <code> 344 <a href="/reference/android/support/test/espresso/base/IdlingResourceRegistry.html#getResources()">getResources</a>() 345 </code> 346 347 <p>Returns a list of all currently registered <code><a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a></code>s. 348 349 350</p> 351 352 </td> 353 </tr> 354 355 356 357 <tr class="api apilevel-" > 358 359 360 <td><code> 361 362 363 364 365 366 void</code> 367 </td> 368 369 <td width="100%"> 370 <code> 371 <a href="/reference/android/support/test/espresso/base/IdlingResourceRegistry.html#registerLooper(android.os.Looper, boolean)">registerLooper</a>(Looper looper, boolean considerWaitIdle) 372 </code> 373 374 </td> 375 </tr> 376 377 378 379 <tr class="api apilevel-" > 380 381 382 <td><code> 383 384 385 386 387 388 boolean</code> 389 </td> 390 391 <td width="100%"> 392 <code> 393 <a href="/reference/android/support/test/espresso/base/IdlingResourceRegistry.html#registerResources(java.util.List<? extends android.support.test.espresso.IdlingResource>)">registerResources</a>(List<? extends <a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a>> resourceList) 394 </code> 395 396 <p>Registers the given resources. 397 398 399</p> 400 401 </td> 402 </tr> 403 404 405 406 <tr class="api apilevel-" > 407 408 409 <td><code> 410 411 412 413 414 415 boolean</code> 416 </td> 417 418 <td width="100%"> 419 <code> 420 <a href="/reference/android/support/test/espresso/base/IdlingResourceRegistry.html#unregisterResources(java.util.List<? extends android.support.test.espresso.IdlingResource>)">unregisterResources</a>(List<? extends <a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a>> resourceList) 421 </code> 422 423 <p>Unregisters the given resources. 424 425 426</p> 427 428 </td> 429 </tr> 430 431 432 433</table> 434 435 436 437 438 439 440 441<!-- ========== METHOD SUMMARY =========== --> 442<table id="inhmethods" class="methods inhtable"> 443<tr><th><h3>Inherited methods</h3></th></tr> 444 445 446<tr class="api apilevel-" > 447<td colspan="2"> 448 449 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" 450 ><img height="34" id="inherited-methods-java.lang.Object-trigger" 451 src="/assets/images/styles/disclosure_down.png" 452 class="jd-expando-trigger-img" /></a>From 453class 454<code> 455 456 java.lang.Object 457 458</code> 459<div id="inherited-methods-java.lang.Object"> 460 <div id="inherited-methods-java.lang.Object-list" 461 class="jd-inheritedlinks"> 462 </div> 463 <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> 464 <table class="jd-sumtable-expando responsive"> 465 466 467 468 469 <tr class="api apilevel-" > 470 471 472 <td><code> 473 474 475 476 477 478 Object</code> 479 </td> 480 481 <td width="100%"> 482 <code> 483 clone() 484 </code> 485 486 </td> 487 </tr> 488 489 490 491 <tr class="api apilevel-" > 492 493 494 <td><code> 495 496 497 498 499 500 boolean</code> 501 </td> 502 503 <td width="100%"> 504 <code> 505 equals(Object arg0) 506 </code> 507 508 </td> 509 </tr> 510 511 512 513 <tr class="api apilevel-" > 514 515 516 <td><code> 517 518 519 520 521 522 void</code> 523 </td> 524 525 <td width="100%"> 526 <code> 527 finalize() 528 </code> 529 530 </td> 531 </tr> 532 533 534 535 <tr class="api apilevel-" > 536 537 538 <td><code> 539 540 541 542 final 543 544 Class<?></code> 545 </td> 546 547 <td width="100%"> 548 <code> 549 getClass() 550 </code> 551 552 </td> 553 </tr> 554 555 556 557 <tr class="api apilevel-" > 558 559 560 <td><code> 561 562 563 564 565 566 int</code> 567 </td> 568 569 <td width="100%"> 570 <code> 571 hashCode() 572 </code> 573 574 </td> 575 </tr> 576 577 578 579 <tr class="api apilevel-" > 580 581 582 <td><code> 583 584 585 586 final 587 588 void</code> 589 </td> 590 591 <td width="100%"> 592 <code> 593 notify() 594 </code> 595 596 </td> 597 </tr> 598 599 600 601 <tr class="api apilevel-" > 602 603 604 <td><code> 605 606 607 608 final 609 610 void</code> 611 </td> 612 613 <td width="100%"> 614 <code> 615 notifyAll() 616 </code> 617 618 </td> 619 </tr> 620 621 622 623 <tr class="api apilevel-" > 624 625 626 <td><code> 627 628 629 630 631 632 String</code> 633 </td> 634 635 <td width="100%"> 636 <code> 637 toString() 638 </code> 639 640 </td> 641 </tr> 642 643 644 645 <tr class="api apilevel-" > 646 647 648 <td><code> 649 650 651 652 final 653 654 void</code> 655 </td> 656 657 <td width="100%"> 658 <code> 659 wait(long arg0, int arg1) 660 </code> 661 662 </td> 663 </tr> 664 665 666 667 <tr class="api apilevel-" > 668 669 670 <td><code> 671 672 673 674 final 675 676 void</code> 677 </td> 678 679 <td width="100%"> 680 <code> 681 wait(long arg0) 682 </code> 683 684 </td> 685 </tr> 686 687 688 689 <tr class="api apilevel-" > 690 691 692 <td><code> 693 694 695 696 final 697 698 void</code> 699 </td> 700 701 <td width="100%"> 702 <code> 703 wait() 704 </code> 705 706 </td> 707 </tr> 708 709 710 711 </table> 712 </div> 713</div> 714</td></tr> 715 716 717</table> 718 719 720 721<!-- XML Attributes --> 722 723 724<!-- Enum Values --> 725 726 727<!-- Constants --> 728 729 730<!-- Fields --> 731 732 733<!-- Public ctors --> 734 735 736<!-- ========= CONSTRUCTOR DETAIL ======== --> 737<h2 class="api-section">Public constructors</h2> 738 739 740 741<A NAME="IdlingResourceRegistry(android.os.Looper)"></A> 742 743<div class="api apilevel-"> 744 <h3 class="api-name">IdlingResourceRegistry</h3> 745 <div class="api-level"> 746 <div></div> 747 748 749 750 </div> 751<pre class="api-signature no-pretty-print"> 752IdlingResourceRegistry (Looper looper)</pre> 753 754 755 756 757 <p></p> 758 <table class="responsive"> 759 <tr><th colspan=2>Parameters</th></tr> 760 <tr> 761 <td><code>looper</code></td> 762 <td width="100%"> 763 <code>Looper</code> 764 <!-- no parameter comment --></td> 765 </tr> 766 </table> 767 768</div> 769 770 771 772 773 774<!-- ========= CONSTRUCTOR DETAIL ======== --> 775<!-- Protected ctors --> 776 777 778 779<!-- ========= METHOD DETAIL ======== --> 780<!-- Public methdos --> 781 782<h2 class="api-section">Public methods</h2> 783 784 785 786<A NAME="getResources()"></A> 787 788<div class="api apilevel-"> 789 <h3 class="api-name">getResources</h3> 790 <div class="api-level"> 791 <div></div> 792 793 794 795 </div> 796<pre class="api-signature no-pretty-print"> 797List<<a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a>> getResources ()</pre> 798 799 800 801 802 <p>Returns a list of all currently registered <code><a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a></code>s. 803 This method is safe to call from any thread.</p> 804 <table class="responsive"> 805 <tr><th colspan=2>Returns</th></tr> 806 <tr> 807 <td><code>List<<a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a>></code></td> 808 <td width="100%">an ImmutableList of <code><a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a></code>s. 809</td> 810 </tr> 811 </table> 812 813</div> 814 815 816<A NAME="registerLooper(android.os.Looper, boolean)"></A> 817 818<div class="api apilevel-"> 819 <h3 class="api-name">registerLooper</h3> 820 <div class="api-level"> 821 <div></div> 822 823 824 825 </div> 826<pre class="api-signature no-pretty-print"> 827void registerLooper (Looper looper, 828 boolean considerWaitIdle)</pre> 829 830 831 832 833 <p></p> 834 <table class="responsive"> 835 <tr><th colspan=2>Parameters</th></tr> 836 <tr> 837 <td><code>looper</code></td> 838 <td width="100%"> 839 <code>Looper</code> 840 <!-- no parameter comment --></td> 841 </tr> 842 <tr> 843 <td><code>considerWaitIdle</code></td> 844 <td width="100%"> 845 <code>boolean</code> 846 <!-- no parameter comment --></td> 847 </tr> 848 </table> 849 850</div> 851 852 853<A NAME="registerResources(java.util.List<? extends android.support.test.espresso.IdlingResource>)"></A> 854 855<div class="api apilevel-"> 856 <h3 class="api-name">registerResources</h3> 857 <div class="api-level"> 858 <div></div> 859 860 861 862 </div> 863<pre class="api-signature no-pretty-print"> 864boolean registerResources (List<? extends <a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a>> resourceList)</pre> 865 866 867 868 869 <p>Registers the given resources. If any of the given resources are already 870 registered, a warning is logged.</p> 871 <table class="responsive"> 872 <tr><th colspan=2>Parameters</th></tr> 873 <tr> 874 <td><code>resourceList</code></td> 875 <td width="100%"> 876 <code>List</code> 877 <!-- no parameter comment --></td> 878 </tr> 879 </table> 880 <table class="responsive"> 881 <tr><th colspan=2>Returns</th></tr> 882 <tr> 883 <td><code>boolean</code></td> 884 <td width="100%"><code>true</code> if all resources were successfully registered 885</td> 886 </tr> 887 </table> 888 889</div> 890 891 892<A NAME="unregisterResources(java.util.List<? extends android.support.test.espresso.IdlingResource>)"></A> 893 894<div class="api apilevel-"> 895 <h3 class="api-name">unregisterResources</h3> 896 <div class="api-level"> 897 <div></div> 898 899 900 901 </div> 902<pre class="api-signature no-pretty-print"> 903boolean unregisterResources (List<? extends <a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a>> resourceList)</pre> 904 905 906 907 908 <p>Unregisters the given resources. If any of the given resources are not already 909 registered, a warning is logged.</p> 910 <table class="responsive"> 911 <tr><th colspan=2>Parameters</th></tr> 912 <tr> 913 <td><code>resourceList</code></td> 914 <td width="100%"> 915 <code>List</code> 916 <!-- no parameter comment --></td> 917 </tr> 918 </table> 919 <table class="responsive"> 920 <tr><th colspan=2>Returns</th></tr> 921 <tr> 922 <td><code>boolean</code></td> 923 <td width="100%"><code>true</code> if all resources were successfully unregistered 924</td> 925 </tr> 926 </table> 927 928</div> 929 930 931 932 933 934<!-- ========= METHOD DETAIL ======== --> 935 936 937 938<!-- ========= END OF CLASS DATA ========= --> 939 940</div><!-- end jd-content --> 941 942 943 944<div class="data-reference-resources-wrapper"> 945 946 <ul data-reference-resources> 947 948 <li><h2>Annotations</h2> 949 <ul> 950 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/base/Default.html">Default</a></li> 951 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/base/MainThread.html">MainThread</a></li> 952 </ul> 953 </li> 954 955 <li><h2>Interfaces</h2> 956 <ul> 957 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/base/ActiveRootLister.html">ActiveRootLister</a></li> 958 </ul> 959 </li> 960 961 <li><h2>Classes</h2> 962 <ul> 963 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/base/BaseLayerModule.html">BaseLayerModule</a></li> 964 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/base/BaseLayerModule.FailureHandlerHolder.html">BaseLayerModule.FailureHandlerHolder</a></li> 965 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/base/DefaultFailureHandler.html">DefaultFailureHandler</a></li> 966 <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/base/IdlingResourceRegistry.html">IdlingResourceRegistry</a></li> 967 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/base/RootViewPicker.html">RootViewPicker</a></li> 968 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/base/UiControllerModule.html">UiControllerModule</a></li> 969 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/base/ViewFinderImpl.html">ViewFinderImpl</a></li> 970 </ul> 971 </li> 972 973 974 975 </ul> 976 977</div> 978 979 980 981</body> 982</html> 983