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>Root</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 178 Summary: 179 180 <a href="#nestedclasses">Nested Classes</a> 181 182 183 184 185 186 187 188 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">Root</h1> 210 <p> 211 <code class="api-signature"> 212 public 213 214 final 215 216 class 217 Root 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.Root 251 </td> 252 </tr> 253 254 255 </table> 256 257 258 259 260 <br><hr> 261 262 263 <p>Represents a root view in the application and optionally the layout params of the window holding 264 it. 265 266 This class is used internally to determine which view root to run user provided matchers against 267 it is not part of the public api. 268 </p> 269 270 271 272 273 274 275 276 <h2 class="api-section">Summary</h2> 277 278 279 280 <!-- ======== NESTED CLASS SUMMARY ======== --> 281 <table id="nestedclasses" class="responsive"> 282 <tr><th colspan="2"><h3>Nested classes</h3></th></tr> 283 284 285 286 <tr class="api apilevel-" > 287 <td class="jd-typecol"><code> 288 289 290 291 292 class</code></td> 293 <td class="jd-descrcol" width="100%"> 294 <code><a href="/reference/android/support/test/espresso/Root.Builder.html">Root.Builder</a></code> 295 <p> 296 297 298 </p> 299 </td> 300 </tr> 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 <!-- ========== METHOD SUMMARY =========== --> 331 <table id="pubmethods" class="responsive methods"> 332 <tr><th colspan="2"><h3>Public methods</h3></th></tr> 333 334 335 336 337 <tr class="api apilevel-" > 338 339 340 <td><code> 341 342 343 344 345 346 View</code> 347 </td> 348 349 <td width="100%"> 350 <code> 351 <a href="/reference/android/support/test/espresso/Root.html#getDecorView()">getDecorView</a>() 352 </code> 353 354 </td> 355 </tr> 356 357 358 359 <tr class="api apilevel-" > 360 361 362 <td><code> 363 364 365 366 367 368 Optional<WindowManager.LayoutParams></code> 369 </td> 370 371 <td width="100%"> 372 <code> 373 <a href="/reference/android/support/test/espresso/Root.html#getWindowLayoutParams()">getWindowLayoutParams</a>() 374 </code> 375 376 </td> 377 </tr> 378 379 380 381 <tr class="api apilevel-" > 382 383 384 <td><code> 385 386 387 388 389 390 String</code> 391 </td> 392 393 <td width="100%"> 394 <code> 395 <a href="/reference/android/support/test/espresso/Root.html#toString()">toString</a>() 396 </code> 397 398 </td> 399 </tr> 400 401 402 403 </table> 404 405 406 407 408 409 410 411 <!-- ========== METHOD SUMMARY =========== --> 412 <table id="inhmethods" class="methods inhtable"> 413 <tr><th><h3>Inherited methods</h3></th></tr> 414 415 416 <tr class="api apilevel-" > 417 <td colspan="2"> 418 419 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" 420 ><img height="34" id="inherited-methods-java.lang.Object-trigger" 421 src="/assets/images/styles/disclosure_down.png" 422 class="jd-expando-trigger-img" /></a>From 423 class 424 <code> 425 426 java.lang.Object 427 428 </code> 429 <div id="inherited-methods-java.lang.Object"> 430 <div id="inherited-methods-java.lang.Object-list" 431 class="jd-inheritedlinks"> 432 </div> 433 <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> 434 <table class="jd-sumtable-expando responsive"> 435 436 437 438 439 <tr class="api apilevel-" > 440 441 442 <td><code> 443 444 445 446 447 448 Object</code> 449 </td> 450 451 <td width="100%"> 452 <code> 453 clone() 454 </code> 455 456 </td> 457 </tr> 458 459 460 461 <tr class="api apilevel-" > 462 463 464 <td><code> 465 466 467 468 469 470 boolean</code> 471 </td> 472 473 <td width="100%"> 474 <code> 475 equals(Object arg0) 476 </code> 477 478 </td> 479 </tr> 480 481 482 483 <tr class="api apilevel-" > 484 485 486 <td><code> 487 488 489 490 491 492 void</code> 493 </td> 494 495 <td width="100%"> 496 <code> 497 finalize() 498 </code> 499 500 </td> 501 </tr> 502 503 504 505 <tr class="api apilevel-" > 506 507 508 <td><code> 509 510 511 512 final 513 514 Class<?></code> 515 </td> 516 517 <td width="100%"> 518 <code> 519 getClass() 520 </code> 521 522 </td> 523 </tr> 524 525 526 527 <tr class="api apilevel-" > 528 529 530 <td><code> 531 532 533 534 535 536 int</code> 537 </td> 538 539 <td width="100%"> 540 <code> 541 hashCode() 542 </code> 543 544 </td> 545 </tr> 546 547 548 549 <tr class="api apilevel-" > 550 551 552 <td><code> 553 554 555 556 final 557 558 void</code> 559 </td> 560 561 <td width="100%"> 562 <code> 563 notify() 564 </code> 565 566 </td> 567 </tr> 568 569 570 571 <tr class="api apilevel-" > 572 573 574 <td><code> 575 576 577 578 final 579 580 void</code> 581 </td> 582 583 <td width="100%"> 584 <code> 585 notifyAll() 586 </code> 587 588 </td> 589 </tr> 590 591 592 593 <tr class="api apilevel-" > 594 595 596 <td><code> 597 598 599 600 601 602 String</code> 603 </td> 604 605 <td width="100%"> 606 <code> 607 toString() 608 </code> 609 610 </td> 611 </tr> 612 613 614 615 <tr class="api apilevel-" > 616 617 618 <td><code> 619 620 621 622 final 623 624 void</code> 625 </td> 626 627 <td width="100%"> 628 <code> 629 wait(long arg0, int arg1) 630 </code> 631 632 </td> 633 </tr> 634 635 636 637 <tr class="api apilevel-" > 638 639 640 <td><code> 641 642 643 644 final 645 646 void</code> 647 </td> 648 649 <td width="100%"> 650 <code> 651 wait(long arg0) 652 </code> 653 654 </td> 655 </tr> 656 657 658 659 <tr class="api apilevel-" > 660 661 662 <td><code> 663 664 665 666 final 667 668 void</code> 669 </td> 670 671 <td width="100%"> 672 <code> 673 wait() 674 </code> 675 676 </td> 677 </tr> 678 679 680 681 </table> 682 </div> 683 </div> 684 </td></tr> 685 686 687 </table> 688 689 690 691 <!-- XML Attributes --> 692 693 694 <!-- Enum Values --> 695 696 697 <!-- Constants --> 698 699 700 <!-- Fields --> 701 702 703 <!-- Public ctors --> 704 705 706 707 <!-- ========= CONSTRUCTOR DETAIL ======== --> 708 <!-- Protected ctors --> 709 710 711 712 <!-- ========= METHOD DETAIL ======== --> 713 <!-- Public methdos --> 714 715 <h2 class="api-section">Public methods</h2> 716 717 718 719 <A NAME="getDecorView()"></A> 720 721 <div class="api apilevel-"> 722 <h3 class="api-name">getDecorView</h3> 723 <div class="api-level"> 724 <div></div> 725 726 727 728 </div> 729 <pre class="api-signature no-pretty-print"> 730 View getDecorView ()</pre> 731 732 733 734 735 <p></p> 736 <table class="responsive"> 737 <tr><th colspan=2>Returns</th></tr> 738 <tr> 739 <td><code>View</code></td> 740 <td width="100%"><!-- no returns description in source --></td> 741 </tr> 742 </table> 743 744 </div> 745 746 747 <A NAME="getWindowLayoutParams()"></A> 748 749 <div class="api apilevel-"> 750 <h3 class="api-name">getWindowLayoutParams</h3> 751 <div class="api-level"> 752 <div></div> 753 754 755 756 </div> 757 <pre class="api-signature no-pretty-print"> 758 Optional<WindowManager.LayoutParams> getWindowLayoutParams ()</pre> 759 760 761 762 763 <p></p> 764 <table class="responsive"> 765 <tr><th colspan=2>Returns</th></tr> 766 <tr> 767 <td><code>Optional<WindowManager.LayoutParams></code></td> 768 <td width="100%"><!-- no returns description in source --></td> 769 </tr> 770 </table> 771 772 </div> 773 774 775 <A NAME="toString()"></A> 776 777 <div class="api apilevel-"> 778 <h3 class="api-name">toString</h3> 779 <div class="api-level"> 780 <div></div> 781 782 783 784 </div> 785 <pre class="api-signature no-pretty-print"> 786 String toString ()</pre> 787 788 789 790 791 <p></p> 792 <table class="responsive"> 793 <tr><th colspan=2>Returns</th></tr> 794 <tr> 795 <td><code>String</code></td> 796 <td width="100%"><!-- no returns description in source --></td> 797 </tr> 798 </table> 799 800 </div> 801 802 803 804 805 806 <!-- ========= METHOD DETAIL ======== --> 807 808 809 810 <!-- ========= END OF CLASS DATA ========= --> 811 812 </div><!-- end jd-content --> 813 814 815 816 <div class="data-reference-resources-wrapper"> 817 818 <ul data-reference-resources> 819 820 821 <li><h2>Interfaces</h2> 822 <ul> 823 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/BaseLayerComponent.html">BaseLayerComponent</a></li> 824 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/EspressoException.html">EspressoException</a></li> 825 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/FailureHandler.html">FailureHandler</a></li> 826 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a></li> 827 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingResource.ResourceCallback.html">IdlingResource.ResourceCallback</a></li> 828 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/UiController.html">UiController</a></li> 829 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewAction.html">ViewAction</a></li> 830 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewAssertion.html">ViewAssertion</a></li> 831 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewFinder.html">ViewFinder</a></li> 832 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewInteractionComponent.html">ViewInteractionComponent</a></li> 833 </ul> 834 </li> 835 836 <li><h2>Classes</h2> 837 <ul> 838 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.Builder.html">AmbiguousViewMatcherException.Builder</a></li> 839 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/DataInteraction.html">DataInteraction</a></li> 840 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/Espresso.html">Espresso</a></li> 841 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/GraphHolder.html">GraphHolder</a></li> 842 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingPolicies.html">IdlingPolicies</a></li> 843 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingPolicy.html">IdlingPolicy</a></li> 844 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoMatchingViewException.Builder.html">NoMatchingViewException.Builder</a></li> 845 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/PerformException.Builder.html">PerformException.Builder</a></li> 846 <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/Root.html">Root</a></li> 847 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/Root.Builder.html">Root.Builder</a></li> 848 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/ViewInteraction.html">ViewInteraction</a></li> 849 </ul> 850 </li> 851 852 853 <li><h2>Exceptions</h2> 854 <ul> 855 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/AmbiguousViewMatcherException.html">AmbiguousViewMatcherException</a></li> 856 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/AppNotIdleException.html">AppNotIdleException</a></li> 857 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/IdlingResourceTimeoutException.html">IdlingResourceTimeoutException</a></li> 858 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/InjectEventSecurityException.html">InjectEventSecurityException</a></li> 859 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoActivityResumedException.html">NoActivityResumedException</a></li> 860 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoMatchingRootException.html">NoMatchingRootException</a></li> 861 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/NoMatchingViewException.html">NoMatchingViewException</a></li> 862 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/PerformException.html">PerformException</a></li> 863 </ul> 864 </li> 865 866 </ul> 867 868 </div> 869 870 871 872 </body> 873 </html> 874