Quddus Chong | 489218c | 2015-02-26 16:38:46 -0800 | [diff] [blame^] | 1 | <!DOCTYPE html> |
| 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 | <html> |
| 99 | <head> |
| 100 | |
| 101 | |
| 102 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 103 | <meta name="viewport" content="width=device-width" /> |
| 104 | |
| 105 | <link rel="shortcut icon" type="image/x-icon" href="../../../../../favicon.ico" /> |
| 106 | <title>UiCollection | Android Developers</title> |
| 107 | |
| 108 | <!-- STYLESHEETS --> |
| 109 | <link rel="stylesheet" |
| 110 | href="http://fonts.googleapis.com/css?family=Roboto+Condensed"> |
| 111 | <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold" |
| 112 | title="roboto"> |
| 113 | <link href="../../../../../assets/css/default.css?v=2" rel="stylesheet" type="text/css"> |
| 114 | |
| 115 | |
| 116 | <!-- FULLSCREEN STYLESHEET --> |
| 117 | <link href="../../../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen" |
| 118 | type="text/css"> |
| 119 | |
| 120 | |
| 121 | <!-- JAVASCRIPT --> |
| 122 | <script src="http://www.google.com/jsapi" type="text/javascript"></script> |
| 123 | <script src="../../../../../assets/js/android_3p-bundle.js" type="text/javascript"></script> |
| 124 | <script type="text/javascript"> |
| 125 | var toRoot = "../../../../../"; |
| 126 | var metaTags = []; |
| 127 | var devsite = false; |
| 128 | </script> |
| 129 | <script src="../../../../../assets/js/docs.js?v=2" type="text/javascript"></script> |
| 130 | |
| 131 | <script> |
| 132 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 133 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 134 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 135 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| 136 | |
| 137 | ga('create', 'UA-5831155-1', 'android.com'); |
| 138 | ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker); |
| 139 | ga('send', 'pageview'); |
| 140 | ga('universal.send', 'pageview'); // Send page view for new tracker. |
| 141 | </script> |
| 142 | |
| 143 | </head> |
| 144 | |
| 145 | <body class="gc-documentation |
| 146 | develop reference" itemscope itemtype="http://schema.org/Article"> |
| 147 | <div id="doc-api-level" class="" style="display:none"></div> |
| 148 | <a name="top"></a> |
| 149 | |
| 150 | |
| 151 | <a name="top"></a> |
| 152 | |
| 153 | <!-- Header --> |
| 154 | <div id="header-wrapper"> |
| 155 | <div id="header"> |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | <div class="wrap" id="header-wrap"> |
| 161 | <div class="col-3 logo"> |
| 162 | <a href="../../../../../index.html"> |
| 163 | <img src="../../../../../assets/images/dac_logo.png" |
| 164 | srcset="../../../../../assets/images/dac_logo@2x.png 2x" |
| 165 | width="123" height="25" alt="Android Developers" /> |
| 166 | </a> |
| 167 | <div class="btn-quicknav" id="btn-quicknav"> |
| 168 | <a href="#" class="arrow-inactive">Quicknav</a> |
| 169 | <a href="#" class="arrow-active">Quicknav</a> |
| 170 | </div> |
| 171 | </div> |
| 172 | <ul class="nav-x col-9"> |
| 173 | <li class="design"> |
| 174 | <a href="../../../../../design/index.html" |
| 175 | zh-tw-lang="設計" |
| 176 | zh-cn-lang="设计" |
| 177 | ru-lang="Проектирование" |
| 178 | ko-lang="디자인" |
| 179 | ja-lang="設計" |
| 180 | es-lang="Diseñar" |
| 181 | >Design</a></li> |
| 182 | <li class="develop"><a href="../../../../../develop/index.html" |
| 183 | zh-tw-lang="開發" |
| 184 | zh-cn-lang="开发" |
| 185 | ru-lang="Разработка" |
| 186 | ko-lang="개발" |
| 187 | ja-lang="開発" |
| 188 | es-lang="Desarrollar" |
| 189 | >Develop</a></li> |
| 190 | <li class="distribute last"><a href="../../../../../distribute/index.html" |
| 191 | zh-tw-lang="發佈" |
| 192 | zh-cn-lang="分发" |
| 193 | ru-lang="Распространение" |
| 194 | ko-lang="배포" |
| 195 | ja-lang="配布" |
| 196 | es-lang="Distribuir" |
| 197 | >Distribute</a></li> |
| 198 | </ul> |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | <div class="menu-container"> |
| 204 | <div class="moremenu"> |
| 205 | <div id="more-btn"></div> |
| 206 | </div> |
| 207 | <div class="morehover" id="moremenu"> |
| 208 | <div class="top"></div> |
| 209 | <div class="mid"> |
| 210 | <div class="header">Links</div> |
| 211 | <ul> |
| 212 | <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li> |
| 213 | <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li> |
| 214 | <li><a href="../../../../../about/index.html">About Android</a></li> |
| 215 | </ul> |
| 216 | <div class="header">Android Sites</div> |
| 217 | <ul> |
| 218 | <li><a href="http://www.android.com">Android.com</a></li> |
| 219 | <li class="active"><a>Android Developers</a></li> |
| 220 | <li><a href="http://source.android.com">Android Open Source Project</a></li> |
| 221 | </ul> |
| 222 | |
| 223 | |
| 224 | |
| 225 | |
| 226 | <br class="clearfix" /> |
| 227 | </div><!-- end 'mid' --> |
| 228 | <div class="bottom"></div> |
| 229 | </div><!-- end 'moremenu' --> |
| 230 | |
| 231 | <div class="search" id="search-container"> |
| 232 | <div class="search-inner"> |
| 233 | <div id="search-btn"></div> |
| 234 | <div class="left"></div> |
| 235 | <form onsubmit="return submit_search()"> |
| 236 | <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q" |
| 237 | onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)" |
| 238 | onkeydown="return search_changed(event, true, '../../../../../')" |
| 239 | onkeyup="return search_changed(event, false, '../../../../../')" /> |
| 240 | </form> |
| 241 | <div class="right"></div> |
| 242 | <a class="close hide">close</a> |
| 243 | <div class="left"></div> |
| 244 | <div class="right"></div> |
| 245 | </div><!-- end search-inner --> |
| 246 | </div><!-- end search-container --> |
| 247 | |
| 248 | <div class="search_filtered_wrapper reference"> |
| 249 | <div class="suggest-card reference no-display"> |
| 250 | <ul class="search_filtered"> |
| 251 | </ul> |
| 252 | </div> |
| 253 | </div> |
| 254 | |
| 255 | <div class="search_filtered_wrapper docs"> |
| 256 | <div class="suggest-card dummy no-display"> </div> |
| 257 | <div class="suggest-card develop no-display"> |
| 258 | <ul class="search_filtered"> |
| 259 | </ul> |
| 260 | <div class="child-card guides no-display"> |
| 261 | </div> |
| 262 | <div class="child-card training no-display"> |
| 263 | </div> |
| 264 | <div class="child-card samples no-display"> |
| 265 | </div> |
| 266 | </div> |
| 267 | <div class="suggest-card design no-display"> |
| 268 | <ul class="search_filtered"> |
| 269 | </ul> |
| 270 | </div> |
| 271 | <div class="suggest-card distribute no-display"> |
| 272 | <ul class="search_filtered"> |
| 273 | </ul> |
| 274 | </div> |
| 275 | </div> |
| 276 | </div><!-- end menu-container (search and menu widget) --> |
| 277 | |
| 278 | |
| 279 | |
| 280 | <!-- Expanded quicknav --> |
| 281 | <div id="quicknav" class="col-13"> |
| 282 | <ul> |
| 283 | <li class="about"> |
| 284 | <ul> |
| 285 | <li><a href="../../../../../about/index.html">About</a></li> |
| 286 | <li><a href="../../../../../wear/index.html">Wear</a></li> |
| 287 | <li><a href="../../../../../tv/index.html">TV</a></li> |
| 288 | <li><a href="../../../../../auto/index.html">Auto</a></li> |
| 289 | </ul> |
| 290 | </li> |
| 291 | <li class="design"> |
| 292 | <ul> |
| 293 | <li><a href="../../../../../design/index.html">Get Started</a></li> |
| 294 | <li><a href="../../../../../design/devices.html">Devices</a></li> |
| 295 | <li><a href="../../../../../design/style/index.html">Style</a></li> |
| 296 | <li><a href="../../../../../design/patterns/index.html">Patterns</a></li> |
| 297 | <li><a href="../../../../../design/building-blocks/index.html">Building Blocks</a></li> |
| 298 | <li><a href="../../../../../design/downloads/index.html">Downloads</a></li> |
| 299 | <li><a href="../../../../../design/videos/index.html">Videos</a></li> |
| 300 | </ul> |
| 301 | </li> |
| 302 | <li class="develop"> |
| 303 | <ul> |
| 304 | <li><a href="../../../../../training/index.html" |
| 305 | zh-tw-lang="訓練課程" |
| 306 | zh-cn-lang="培训" |
| 307 | ru-lang="Курсы" |
| 308 | ko-lang="교육" |
| 309 | ja-lang="トレーニング" |
| 310 | es-lang="Capacitación" |
| 311 | >Training</a></li> |
| 312 | <li><a href="../../../../../guide/index.html" |
| 313 | zh-tw-lang="API 指南" |
| 314 | zh-cn-lang="API 指南" |
| 315 | ru-lang="Руководства по API" |
| 316 | ko-lang="API 가이드" |
| 317 | ja-lang="API ガイド" |
| 318 | es-lang="Guías de la API" |
| 319 | >API Guides</a></li> |
| 320 | <li><a href="../../../../../reference/packages.html" |
| 321 | zh-tw-lang="參考資源" |
| 322 | zh-cn-lang="参考" |
| 323 | ru-lang="Справочник" |
| 324 | ko-lang="참조문서" |
| 325 | ja-lang="リファレンス" |
| 326 | es-lang="Referencia" |
| 327 | >Reference</a></li> |
| 328 | <li><a href="../../../../../sdk/index.html" |
| 329 | zh-tw-lang="相關工具" |
| 330 | zh-cn-lang="工具" |
| 331 | ru-lang="Инструменты" |
| 332 | ko-lang="도구" |
| 333 | ja-lang="ツール" |
| 334 | es-lang="Herramientas" |
| 335 | >Tools</a> |
| 336 | </li> |
| 337 | <li><a href="../../../../../google/index.html">Google Services</a> |
| 338 | </li> |
| 339 | |
| 340 | </ul> |
| 341 | </li> |
| 342 | <li class="distribute last"> |
| 343 | <ul> |
| 344 | <li><a href="../../../../../distribute/googleplay/index.html">Google Play</a></li> |
| 345 | <li><a href="../../../../../distribute/essentials/index.html">Essentials</a></li> |
| 346 | <li><a href="../../../../../distribute/users/index.html">Get Users</a></li> |
| 347 | <li><a href="../../../../../distribute/engage/index.html">Engage & Retain</a></li> |
| 348 | <li><a href="../../../../../distribute/monetize/index.html">Monetize</a></li> |
| 349 | <li><a href="../../../../../distribute/tools/index.html">Tools & Reference</a></li> |
| 350 | <li><a href="../../../../../distribute/stories/index.html">Developer Stories</a></li> |
| 351 | </ul> |
| 352 | </li> |
| 353 | </ul> |
| 354 | </div><!-- /Expanded quicknav --> |
| 355 | </div><!-- end header-wrap.wrap --> |
| 356 | </div><!-- end header --> |
| 357 | |
| 358 | |
| 359 | <!-- Secondary x-nav --> |
| 360 | <div id="nav-x"> |
| 361 | <div class="wrap" style="position:relative;z-index:1"> |
| 362 | |
| 363 | |
| 364 | <a id="helpoutsLink" class="resource resource-card resource-card-6x2x3 resource-card-6x2 helpouts-card" |
| 365 | href="http://helpouts.google.com/partner/landing/provider/googledevelopers" target="_blank"> |
| 366 | <div class="card-bg helpouts-card-bg"></div> |
| 367 | <div class="card-info"> |
| 368 | <div class="helpouts-description"> |
| 369 | <div class="text">Help developers solve problems<br/> |
| 370 | <span id="helpoutsLinkText" class="link-color" style="display:block;padding-top:5px;text-align:right">Learn more</span> |
| 371 | </div> |
| 372 | </div> |
| 373 | </div> |
| 374 | </a> |
| 375 | <script> |
| 376 | var textA = "LEARN MORE"; |
| 377 | var linkA = "http://helpouts.google.com/partner/landing/provider/googledevelopers?utm_source=android_banner1&utm_medium=banner&utm_campaign=android_provider_banner1"; |
| 378 | var textB = "SIGN UP NOW"; |
| 379 | var linkB = "http://helpouts.google.com/partner/landing/provider/googledevelopers?utm_source=android_banner2&utm_medium=banner&utm_campaign=android_provider_banner2"; |
| 380 | |
| 381 | if (Math.floor(1/Math.random()) > 1) { |
| 382 | $("a#helpoutsLink").attr('href', linkA); |
| 383 | $("span#helpoutsLinkText").text(textA); |
| 384 | } else { |
| 385 | $("a#helpoutsLink").attr('href', linkB); |
| 386 | $("span#helpoutsLinkText").text(textB); |
| 387 | } |
| 388 | </script> |
| 389 | |
| 390 | |
| 391 | <ul class="nav-x col-9 develop" style="width:100%"> |
| 392 | <li class="training"><a href="../../../../../training/index.html" |
| 393 | zh-tw-lang="訓練課程" |
| 394 | zh-cn-lang="培训" |
| 395 | ru-lang="Курсы" |
| 396 | ko-lang="교육" |
| 397 | ja-lang="トレーニング" |
| 398 | es-lang="Capacitación" |
| 399 | >Training</a></li> |
| 400 | <li class="guide"><a href="../../../../../guide/index.html" |
| 401 | zh-tw-lang="API 指南" |
| 402 | zh-cn-lang="API 指南" |
| 403 | ru-lang="Руководства по API" |
| 404 | ko-lang="API 가이드" |
| 405 | ja-lang="API ガイド" |
| 406 | es-lang="Guías de la API" |
| 407 | >API Guides</a></li> |
| 408 | <li class="reference"><a href="../../../../../reference/packages.html" |
| 409 | zh-tw-lang="參考資源" |
| 410 | zh-cn-lang="参考" |
| 411 | ru-lang="Справочник" |
| 412 | ko-lang="참조문서" |
| 413 | ja-lang="リファレンス" |
| 414 | es-lang="Referencia" |
| 415 | >Reference</a></li> |
| 416 | <li class="tools"><a href="../../../../../sdk/index.html" |
| 417 | zh-tw-lang="相關工具" |
| 418 | zh-cn-lang="工具" |
| 419 | ru-lang="Инструменты" |
| 420 | ko-lang="도구" |
| 421 | ja-lang="ツール" |
| 422 | es-lang="Herramientas" |
| 423 | >Tools</a></li> |
| 424 | <li class="google"><a href="../../../../../google/index.html" |
| 425 | >Google Services</a> |
| 426 | </li> |
| 427 | |
| 428 | </ul> |
| 429 | </div> |
| 430 | </div> |
| 431 | <!-- /Sendondary x-nav DEVELOP --> |
| 432 | |
| 433 | |
| 434 | |
| 435 | <div id="searchResults" class="wrap" style="display:none;"> |
| 436 | <h2 id="searchTitle">Results</h2> |
| 437 | <div id="leftSearchControl" class="search-control">Loading...</div> |
| 438 | </div> |
| 439 | </div> <!--end header-wrapper --> |
| 440 | |
| 441 | <div id="sticky-header"> |
| 442 | <div> |
| 443 | <a class="logo" href="#top"></a> |
| 444 | <a class="top" href="#top"></a> |
| 445 | <ul class="breadcrumb"> |
| 446 | |
| 447 | <li class="current">UiCollection</li> |
| 448 | </ul> |
| 449 | </div> |
| 450 | </div> |
| 451 | |
| 452 | |
| 453 | |
| 454 | |
| 455 | |
| 456 | <div class="wrap clearfix" id="body-content"> |
| 457 | <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement"> |
| 458 | <div id="devdoc-nav"> |
| 459 | <div id="api-nav-header"> |
| 460 | <div id="api-level-toggle"> |
| 461 | <label for="apiLevelCheckbox" class="disabled" |
| 462 | title="Select your target API level to dim unavailable APIs">API level: </label> |
| 463 | <div class="select-wrapper"> |
| 464 | <select id="apiLevelSelector"> |
| 465 | <!-- option elements added by buildApiLevelSelector() --> |
| 466 | </select> |
| 467 | </div> |
| 468 | </div><!-- end toggle --> |
| 469 | <div id="api-nav-title">Android APIs</div> |
| 470 | </div><!-- end nav header --> |
| 471 | <script> |
| 472 | var SINCE_DATA = [ ]; |
| 473 | buildApiLevelSelector(); |
| 474 | </script> |
| 475 | |
| 476 | <div id="swapper"> |
| 477 | <div id="nav-panels"> |
| 478 | <div id="resize-packages-nav"> |
| 479 | <div id="packages-nav" class="scroll-pane"> |
| 480 | |
| 481 | <ul> |
| 482 | |
| 483 | <li class="api apilevel-"> |
| 484 | <a href="../../../../../reference/android/support/test/package-summary.html">android.support.test</a></li> |
| 485 | <li class="api apilevel-"> |
| 486 | <a href="../../../../../reference/android/support/test/espresso/package-summary.html">android.support.test.espresso</a></li> |
| 487 | <li class="api apilevel-"> |
| 488 | <a href="../../../../../reference/android/support/test/espresso/action/package-summary.html">android.support.test.espresso.action</a></li> |
| 489 | <li class="api apilevel-"> |
| 490 | <a href="../../../../../reference/android/support/test/espresso/assertion/package-summary.html">android.support.test.espresso.assertion</a></li> |
| 491 | <li class="api apilevel-"> |
| 492 | <a href="../../../../../reference/android/support/test/espresso/base/package-summary.html">android.support.test.espresso.base</a></li> |
| 493 | <li class="api apilevel-"> |
| 494 | <a href="../../../../../reference/android/support/test/espresso/contrib/package-summary.html">android.support.test.espresso.contrib</a></li> |
| 495 | <li class="api apilevel-"> |
| 496 | <a href="../../../../../reference/android/support/test/espresso/matcher/package-summary.html">android.support.test.espresso.matcher</a></li> |
| 497 | <li class="api apilevel-"> |
| 498 | <a href="../../../../../reference/android/support/test/espresso/util/package-summary.html">android.support.test.espresso.util</a></li> |
| 499 | <li class="api apilevel-"> |
| 500 | <a href="../../../../../reference/android/support/test/filters/package-summary.html">android.support.test.filters</a></li> |
| 501 | <li class="api apilevel-"> |
| 502 | <a href="../../../../../reference/android/support/test/runner/package-summary.html">android.support.test.runner</a></li> |
| 503 | <li class="api apilevel-"> |
| 504 | <a href="../../../../../reference/android/support/test/runner/lifecycle/package-summary.html">android.support.test.runner.lifecycle</a></li> |
| 505 | <li class="selected api apilevel-"> |
| 506 | <a href="../../../../../reference/android/support/test/uiautomator/package-summary.html">android.support.test.uiautomator</a></li> |
| 507 | </ul><br/> |
| 508 | |
| 509 | </div> <!-- end packages-nav --> |
| 510 | </div> <!-- end resize-packages --> |
| 511 | <div id="classes-nav" class="scroll-pane"> |
| 512 | |
| 513 | |
| 514 | |
| 515 | <ul> |
| 516 | |
| 517 | |
| 518 | <li><h2>Interfaces</h2> |
| 519 | <ul> |
| 520 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/IAutomationSupport.html">IAutomationSupport</a></li> |
| 521 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiWatcher.html">UiWatcher</a></li> |
| 522 | </ul> |
| 523 | </li> |
| 524 | |
| 525 | <li><h2>Classes</h2> |
| 526 | <ul> |
| 527 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/By.html">By</a></li> |
| 528 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/BySelector.html">BySelector</a></li> |
| 529 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/Configurator.html">Configurator</a></li> |
| 530 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/EventCondition.html">EventCondition</a></li> |
| 531 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></li> |
| 532 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiAutomatorInstrumentationTestRunner.html">UiAutomatorInstrumentationTestRunner</a></li> |
| 533 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiAutomatorTestCase.html">UiAutomatorTestCase</a></li> |
| 534 | <li class="selected api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html">UiCollection</a></li> |
| 535 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiDevice.html">UiDevice</a></li> |
| 536 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></li> |
| 537 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></li> |
| 538 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a></li> |
| 539 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a></li> |
| 540 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></li> |
| 541 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/Until.html">Until</a></li> |
| 542 | </ul> |
| 543 | </li> |
| 544 | |
| 545 | <li><h2>Enums</h2> |
| 546 | <ul> |
| 547 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/Direction.html">Direction</a></li> |
| 548 | </ul> |
| 549 | </li> |
| 550 | |
| 551 | <li><h2>Exceptions</h2> |
| 552 | <ul> |
| 553 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/StaleObjectException.html">StaleObjectException</a></li> |
| 554 | <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></li> |
| 555 | </ul> |
| 556 | </li> |
| 557 | |
| 558 | </ul><br/> |
| 559 | |
| 560 | |
| 561 | </div><!-- end classes --> |
| 562 | </div><!-- end nav-panels --> |
| 563 | <div id="nav-tree" style="display:none" class="scroll-pane"> |
| 564 | <div id="tree-list"></div> |
| 565 | </div><!-- end nav-tree --> |
| 566 | </div><!-- end swapper --> |
| 567 | <div id="nav-swap"> |
| 568 | <a class="fullscreen">fullscreen</a> |
| 569 | <a href='#' onclick='swapNav();return false;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a> |
| 570 | </div> |
| 571 | </div> <!-- end devdoc-nav --> |
| 572 | </div> <!-- end side-nav --> |
| 573 | <script type="text/javascript"> |
| 574 | // init fullscreen based on user pref |
| 575 | var fullscreen = readCookie("fullscreen"); |
| 576 | if (fullscreen != 0) { |
| 577 | if (fullscreen == "false") { |
| 578 | toggleFullscreen(false); |
| 579 | } else { |
| 580 | toggleFullscreen(true); |
| 581 | } |
| 582 | } |
| 583 | // init nav version for mobile |
| 584 | if (isMobile) { |
| 585 | swapNav(); // tree view should be used on mobile |
| 586 | $('#nav-swap').hide(); |
| 587 | } else { |
| 588 | chooseDefaultNav(); |
| 589 | if ($("#nav-tree").is(':visible')) { |
| 590 | init_default_navtree("../../../../../"); |
| 591 | } |
| 592 | } |
| 593 | // scroll the selected page into view |
| 594 | $(document).ready(function() { |
| 595 | scrollIntoView("packages-nav"); |
| 596 | scrollIntoView("classes-nav"); |
| 597 | }); |
| 598 | </script> |
| 599 | |
| 600 | |
| 601 | |
| 602 | |
| 603 | |
| 604 | <div class="col-12" id="doc-col"> |
| 605 | |
| 606 | <div id="api-info-block"> |
| 607 | |
| 608 | |
| 609 | |
| 610 | |
| 611 | |
| 612 | |
| 613 | |
| 614 | |
| 615 | |
| 616 | |
| 617 | |
| 618 | |
| 619 | |
| 620 | |
| 621 | |
| 622 | |
| 623 | |
| 624 | |
| 625 | |
| 626 | |
| 627 | <div class="sum-details-links"> |
| 628 | |
| 629 | Summary: |
| 630 | |
| 631 | |
| 632 | |
| 633 | |
| 634 | |
| 635 | |
| 636 | <a href="#inhconstants">Inherited Constants</a> |
| 637 | |
| 638 | |
| 639 | |
| 640 | |
| 641 | |
| 642 | | <a href="#pubctors">Ctors</a> |
| 643 | |
| 644 | |
| 645 | |
| 646 | |
| 647 | | <a href="#pubmethods">Methods</a> |
| 648 | |
| 649 | |
| 650 | |
| 651 | |
| 652 | | <a href="#inhmethods">Inherited Methods</a> |
| 653 | |
| 654 | | <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> |
| 655 | |
| 656 | </div><!-- end sum-details-links --> |
| 657 | <div class="api-level"> |
| 658 | |
| 659 | |
| 660 | |
| 661 | |
| 662 | </div> |
| 663 | </div><!-- end api-info-block --> |
| 664 | |
| 665 | |
| 666 | <!-- ======== START OF CLASS DATA ======== --> |
| 667 | |
| 668 | <div id="jd-header"> |
| 669 | public |
| 670 | |
| 671 | |
| 672 | |
| 673 | class |
| 674 | <h1 itemprop="name">UiCollection</h1> |
| 675 | |
| 676 | |
| 677 | |
| 678 | |
| 679 | |
| 680 | |
| 681 | |
| 682 | |
| 683 | extends <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a><br/> |
| 684 | |
| 685 | |
| 686 | |
| 687 | |
| 688 | |
| 689 | |
| 690 | |
| 691 | |
| 692 | |
| 693 | |
| 694 | |
| 695 | |
| 696 | </div><!-- end header --> |
| 697 | |
| 698 | <div id="naMessage"></div> |
| 699 | |
| 700 | <div id="jd-content" class="api apilevel-"> |
| 701 | <table class="jd-inheritance-table"> |
| 702 | |
| 703 | |
| 704 | <tr> |
| 705 | |
| 706 | <td colspan="3" class="jd-inheritance-class-cell">java.lang.Object</td> |
| 707 | </tr> |
| 708 | |
| 709 | |
| 710 | <tr> |
| 711 | |
| 712 | <td class="jd-inheritance-space"> ↳</td> |
| 713 | |
| 714 | <td colspan="2" class="jd-inheritance-class-cell"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">android.support.test.uiautomator.UiObject</a></td> |
| 715 | </tr> |
| 716 | |
| 717 | |
| 718 | <tr> |
| 719 | |
| 720 | <td class="jd-inheritance-space"> </td> |
| 721 | |
| 722 | <td class="jd-inheritance-space"> ↳</td> |
| 723 | |
| 724 | <td colspan="1" class="jd-inheritance-class-cell">android.support.test.uiautomator.UiCollection</td> |
| 725 | </tr> |
| 726 | |
| 727 | |
| 728 | </table> |
| 729 | |
| 730 | |
| 731 | |
| 732 | |
| 733 | <table class="jd-sumtable jd-sumtable-subclasses"><tr><td colspan="12" style="border:none;margin:0;padding:0;"> |
| 734 | |
| 735 | <a href="#" onclick="return toggleInherited(this, null)" id="subclasses-direct" class="jd-expando-trigger closed" |
| 736 | ><img id="subclasses-direct-trigger" |
| 737 | src="../../../../../assets/images/triangle-closed.png" |
| 738 | class="jd-expando-trigger-img" /></a>Known Direct Subclasses |
| 739 | |
| 740 | <div id="subclasses-direct"> |
| 741 | <div id="subclasses-direct-list" |
| 742 | class="jd-inheritedlinks" |
| 743 | |
| 744 | > |
| 745 | |
| 746 | |
| 747 | <a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a> |
| 748 | |
| 749 | |
| 750 | </div> |
| 751 | <div id="subclasses-direct-summary" |
| 752 | style="display: none;" |
| 753 | > |
| 754 | |
| 755 | <table class="jd-sumtable-expando"> |
| 756 | |
| 757 | <tr class="alt-color api apilevel-" > |
| 758 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a></td> |
| 759 | <td class="jd-descrcol" width="100%"> |
| 760 | UiScrollable is a <code><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html">UiCollection</a></code> and provides support for searching |
| 761 | for items in scrollable layout elements. |
| 762 | |
| 763 | |
| 764 | |
| 765 | </td> |
| 766 | </tr> |
| 767 | |
| 768 | |
| 769 | </table> |
| 770 | |
| 771 | </div> |
| 772 | </div> |
| 773 | </td></tr></table> |
| 774 | |
| 775 | |
| 776 | |
| 777 | |
| 778 | <div class="jd-descr"> |
| 779 | |
| 780 | |
| 781 | <h2>Class Overview</h2> |
| 782 | <p itemprop="articleBody">Used to enumerate a container's UI elements for the purpose of counting, |
| 783 | or targeting a sub elements by a child's text or description.</p> |
| 784 | |
| 785 | |
| 786 | |
| 787 | |
| 788 | |
| 789 | </div><!-- jd-descr --> |
| 790 | |
| 791 | |
| 792 | |
| 793 | |
| 794 | |
| 795 | |
| 796 | |
| 797 | |
| 798 | |
| 799 | |
| 800 | |
| 801 | |
| 802 | |
| 803 | |
| 804 | |
| 805 | |
| 806 | <div class="jd-descr"> |
| 807 | |
| 808 | |
| 809 | <h2>Summary</h2> |
| 810 | |
| 811 | |
| 812 | |
| 813 | |
| 814 | |
| 815 | |
| 816 | |
| 817 | |
| 818 | |
| 819 | |
| 820 | |
| 821 | |
| 822 | |
| 823 | |
| 824 | |
| 825 | |
| 826 | <!-- =========== ENUM CONSTANT SUMMARY =========== --> |
| 827 | <table id="inhconstants" class="jd-sumtable"><tr><th> |
| 828 | <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> |
| 829 | <div style="clear:left;">Inherited Constants</div></th></tr> |
| 830 | |
| 831 | |
| 832 | <tr class="api apilevel-" > |
| 833 | <td colspan="12"> |
| 834 | |
| 835 | <a href="#" onclick="return toggleInherited(this, null)" id="inherited-constants-android.support.test.uiautomator.UiObject" class="jd-expando-trigger closed" |
| 836 | ><img id="inherited-constants-android.support.test.uiautomator.UiObject-trigger" |
| 837 | src="../../../../../assets/images/triangle-closed.png" |
| 838 | class="jd-expando-trigger-img" /></a>From class |
| 839 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">android.support.test.uiautomator.UiObject</a> |
| 840 | <div id="inherited-constants-android.support.test.uiautomator.UiObject"> |
| 841 | <div id="inherited-constants-android.support.test.uiautomator.UiObject-list" |
| 842 | class="jd-inheritedlinks"> |
| 843 | </div> |
| 844 | <div id="inherited-constants-android.support.test.uiautomator.UiObject-summary" style="display: none;"> |
| 845 | <table class="jd-sumtable-expando"> |
| 846 | |
| 847 | |
| 848 | |
| 849 | <tr class="alt-color api apilevel-" > |
| 850 | <td class="jd-typecol">int</td> |
| 851 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#FINGER_TOUCH_HALF_WIDTH">FINGER_TOUCH_HALF_WIDTH</a></td> |
| 852 | <td class="jd-descrcol" width="100%"> |
| 853 | |
| 854 | |
| 855 | |
| 856 | |
| 857 | </td> |
| 858 | </tr> |
| 859 | |
| 860 | |
| 861 | <tr class=" api apilevel-" > |
| 862 | <td class="jd-typecol">int</td> |
| 863 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#SWIPE_MARGIN_LIMIT">SWIPE_MARGIN_LIMIT</a></td> |
| 864 | <td class="jd-descrcol" width="100%"> |
| 865 | |
| 866 | |
| 867 | |
| 868 | |
| 869 | </td> |
| 870 | </tr> |
| 871 | |
| 872 | |
| 873 | <tr class="alt-color api apilevel-" > |
| 874 | <td class="jd-typecol">long</td> |
| 875 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#WAIT_FOR_EVENT_TMEOUT">WAIT_FOR_EVENT_TMEOUT</a></td> |
| 876 | <td class="jd-descrcol" width="100%"> |
| 877 | <em> |
| 878 | This constant is deprecated. |
| 879 | use <code><a href="../../../../../reference/android/support/test/uiautomator/Configurator.html#setScrollAcknowledgmentTimeout(long)">setScrollAcknowledgmentTimeout(long)</a></code> |
| 880 | </em> |
| 881 | |
| 882 | |
| 883 | |
| 884 | </td> |
| 885 | </tr> |
| 886 | |
| 887 | |
| 888 | <tr class=" api apilevel-" > |
| 889 | <td class="jd-typecol">long</td> |
| 890 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#WAIT_FOR_SELECTOR_POLL">WAIT_FOR_SELECTOR_POLL</a></td> |
| 891 | <td class="jd-descrcol" width="100%"> |
| 892 | |
| 893 | |
| 894 | |
| 895 | |
| 896 | </td> |
| 897 | </tr> |
| 898 | |
| 899 | |
| 900 | <tr class="alt-color api apilevel-" > |
| 901 | <td class="jd-typecol">long</td> |
| 902 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#WAIT_FOR_SELECTOR_TIMEOUT">WAIT_FOR_SELECTOR_TIMEOUT</a></td> |
| 903 | <td class="jd-descrcol" width="100%"> |
| 904 | <em> |
| 905 | This constant is deprecated. |
| 906 | use <code><a href="../../../../../reference/android/support/test/uiautomator/Configurator.html#setWaitForSelectorTimeout(long)">setWaitForSelectorTimeout(long)</a></code> |
| 907 | </em> |
| 908 | |
| 909 | |
| 910 | |
| 911 | </td> |
| 912 | </tr> |
| 913 | |
| 914 | |
| 915 | <tr class=" api apilevel-" > |
| 916 | <td class="jd-typecol">long</td> |
| 917 | <td class="jd-linkcol"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#WAIT_FOR_WINDOW_TMEOUT">WAIT_FOR_WINDOW_TMEOUT</a></td> |
| 918 | <td class="jd-descrcol" width="100%"> |
| 919 | |
| 920 | |
| 921 | |
| 922 | |
| 923 | </td> |
| 924 | </tr> |
| 925 | |
| 926 | |
| 927 | </table> |
| 928 | </div> |
| 929 | </div> |
| 930 | </td></tr> |
| 931 | |
| 932 | |
| 933 | |
| 934 | |
| 935 | </table> |
| 936 | |
| 937 | |
| 938 | |
| 939 | |
| 940 | |
| 941 | |
| 942 | |
| 943 | |
| 944 | |
| 945 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| 946 | <table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr> |
| 947 | |
| 948 | |
| 949 | |
| 950 | |
| 951 | <tr class="alt-color api apilevel-" > |
| 952 | <td class="jd-typecol"><nobr> |
| 953 | |
| 954 | |
| 955 | |
| 956 | |
| 957 | |
| 958 | </nobr> |
| 959 | </td> |
| 960 | <td class="jd-linkcol" width="100%"><nobr> |
| 961 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html#UiCollection(android.support.test.uiautomator.UiSelector)">UiCollection</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</nobr> |
| 962 | |
| 963 | <div class="jd-descrdiv"> |
| 964 | Constructs an instance as described by the selector |
| 965 | |
| 966 | |
| 967 | |
| 968 | </div> |
| 969 | |
| 970 | </td></tr> |
| 971 | |
| 972 | |
| 973 | |
| 974 | </table> |
| 975 | |
| 976 | |
| 977 | |
| 978 | |
| 979 | |
| 980 | |
| 981 | <!-- ========== METHOD SUMMARY =========== --> |
| 982 | <table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr> |
| 983 | |
| 984 | |
| 985 | |
| 986 | |
| 987 | <tr class="alt-color api apilevel-" > |
| 988 | <td class="jd-typecol"><nobr> |
| 989 | |
| 990 | |
| 991 | |
| 992 | |
| 993 | |
| 994 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 995 | </td> |
| 996 | <td class="jd-linkcol" width="100%"><nobr> |
| 997 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html#getChildByDescription(android.support.test.uiautomator.UiSelector, java.lang.String)">getChildByDescription</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text)</nobr> |
| 998 | |
| 999 | <div class="jd-descrdiv"> |
| 1000 | Searches for child UI element within the constraints of this UiCollection <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> |
| 1001 | selector. |
| 1002 | |
| 1003 | |
| 1004 | |
| 1005 | </div> |
| 1006 | |
| 1007 | </td></tr> |
| 1008 | |
| 1009 | |
| 1010 | |
| 1011 | <tr class=" api apilevel-" > |
| 1012 | <td class="jd-typecol"><nobr> |
| 1013 | |
| 1014 | |
| 1015 | |
| 1016 | |
| 1017 | |
| 1018 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1019 | </td> |
| 1020 | <td class="jd-linkcol" width="100%"><nobr> |
| 1021 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html#getChildByInstance(android.support.test.uiautomator.UiSelector, int)">getChildByInstance</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, int instance)</nobr> |
| 1022 | |
| 1023 | <div class="jd-descrdiv"> |
| 1024 | Searches for child UI element within the constraints of this UiCollection <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> |
| 1025 | selector. |
| 1026 | |
| 1027 | |
| 1028 | |
| 1029 | </div> |
| 1030 | |
| 1031 | </td></tr> |
| 1032 | |
| 1033 | |
| 1034 | |
| 1035 | <tr class="alt-color api apilevel-" > |
| 1036 | <td class="jd-typecol"><nobr> |
| 1037 | |
| 1038 | |
| 1039 | |
| 1040 | |
| 1041 | |
| 1042 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1043 | </td> |
| 1044 | <td class="jd-linkcol" width="100%"><nobr> |
| 1045 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html#getChildByText(android.support.test.uiautomator.UiSelector, java.lang.String)">getChildByText</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text)</nobr> |
| 1046 | |
| 1047 | <div class="jd-descrdiv"> |
| 1048 | Searches for child UI element within the constraints of this UiCollection <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> |
| 1049 | selector. |
| 1050 | |
| 1051 | |
| 1052 | |
| 1053 | </div> |
| 1054 | |
| 1055 | </td></tr> |
| 1056 | |
| 1057 | |
| 1058 | |
| 1059 | <tr class=" api apilevel-" > |
| 1060 | <td class="jd-typecol"><nobr> |
| 1061 | |
| 1062 | |
| 1063 | |
| 1064 | |
| 1065 | |
| 1066 | int</nobr> |
| 1067 | </td> |
| 1068 | <td class="jd-linkcol" width="100%"><nobr> |
| 1069 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html#getChildCount(android.support.test.uiautomator.UiSelector)">getChildCount</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern)</nobr> |
| 1070 | |
| 1071 | <div class="jd-descrdiv"> |
| 1072 | Counts child UI element instances matching the <code>childPattern</code> |
| 1073 | argument. |
| 1074 | |
| 1075 | |
| 1076 | |
| 1077 | </div> |
| 1078 | |
| 1079 | </td></tr> |
| 1080 | |
| 1081 | |
| 1082 | |
| 1083 | </table> |
| 1084 | |
| 1085 | |
| 1086 | |
| 1087 | |
| 1088 | |
| 1089 | |
| 1090 | |
| 1091 | <!-- ========== METHOD SUMMARY =========== --> |
| 1092 | <table id="inhmethods" class="jd-sumtable"><tr><th> |
| 1093 | <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> |
| 1094 | <div style="clear:left;">Inherited Methods</div></th></tr> |
| 1095 | |
| 1096 | |
| 1097 | <tr class="api apilevel-" > |
| 1098 | <td colspan="12"> |
| 1099 | <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.support.test.uiautomator.UiObject" class="jd-expando-trigger closed" |
| 1100 | ><img id="inherited-methods-android.support.test.uiautomator.UiObject-trigger" |
| 1101 | src="../../../../../assets/images/triangle-closed.png" |
| 1102 | class="jd-expando-trigger-img" /></a> |
| 1103 | From class |
| 1104 | |
| 1105 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">android.support.test.uiautomator.UiObject</a> |
| 1106 | |
| 1107 | <div id="inherited-methods-android.support.test.uiautomator.UiObject"> |
| 1108 | <div id="inherited-methods-android.support.test.uiautomator.UiObject-list" |
| 1109 | class="jd-inheritedlinks"> |
| 1110 | </div> |
| 1111 | <div id="inherited-methods-android.support.test.uiautomator.UiObject-summary" style="display: none;"> |
| 1112 | <table class="jd-sumtable-expando"> |
| 1113 | |
| 1114 | |
| 1115 | |
| 1116 | |
| 1117 | <tr class="alt-color api apilevel-" > |
| 1118 | <td class="jd-typecol"><nobr> |
| 1119 | |
| 1120 | |
| 1121 | |
| 1122 | |
| 1123 | |
| 1124 | void</nobr> |
| 1125 | </td> |
| 1126 | <td class="jd-linkcol" width="100%"><nobr> |
| 1127 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#clearTextField()">clearTextField</a></span>()</nobr> |
| 1128 | |
| 1129 | <div class="jd-descrdiv"> |
| 1130 | Clears the existing text contents in an editable field. |
| 1131 | |
| 1132 | |
| 1133 | |
| 1134 | </div> |
| 1135 | |
| 1136 | </td></tr> |
| 1137 | |
| 1138 | |
| 1139 | |
| 1140 | <tr class=" api apilevel-" > |
| 1141 | <td class="jd-typecol"><nobr> |
| 1142 | |
| 1143 | |
| 1144 | |
| 1145 | |
| 1146 | |
| 1147 | boolean</nobr> |
| 1148 | </td> |
| 1149 | <td class="jd-linkcol" width="100%"><nobr> |
| 1150 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#click()">click</a></span>()</nobr> |
| 1151 | |
| 1152 | <div class="jd-descrdiv"> |
| 1153 | Performs a click at the center of the visible bounds of the UI element represented |
| 1154 | by this UiObject. |
| 1155 | |
| 1156 | |
| 1157 | |
| 1158 | </div> |
| 1159 | |
| 1160 | </td></tr> |
| 1161 | |
| 1162 | |
| 1163 | |
| 1164 | <tr class="alt-color api apilevel-" > |
| 1165 | <td class="jd-typecol"><nobr> |
| 1166 | |
| 1167 | |
| 1168 | |
| 1169 | |
| 1170 | |
| 1171 | boolean</nobr> |
| 1172 | </td> |
| 1173 | <td class="jd-linkcol" width="100%"><nobr> |
| 1174 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#clickAndWaitForNewWindow(long)">clickAndWaitForNewWindow</a></span>(long timeout)</nobr> |
| 1175 | |
| 1176 | <div class="jd-descrdiv"> |
| 1177 | Performs a click at the center of the visible bounds of the UI element represented |
| 1178 | by this UiObject and waits for window transitions. |
| 1179 | |
| 1180 | |
| 1181 | |
| 1182 | </div> |
| 1183 | |
| 1184 | </td></tr> |
| 1185 | |
| 1186 | |
| 1187 | |
| 1188 | <tr class=" api apilevel-" > |
| 1189 | <td class="jd-typecol"><nobr> |
| 1190 | |
| 1191 | |
| 1192 | |
| 1193 | |
| 1194 | |
| 1195 | boolean</nobr> |
| 1196 | </td> |
| 1197 | <td class="jd-linkcol" width="100%"><nobr> |
| 1198 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#clickAndWaitForNewWindow()">clickAndWaitForNewWindow</a></span>()</nobr> |
| 1199 | |
| 1200 | <div class="jd-descrdiv"> |
| 1201 | Waits for window transitions that would typically take longer than the |
| 1202 | usual default timeouts. |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | </div> |
| 1207 | |
| 1208 | </td></tr> |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | <tr class="alt-color api apilevel-" > |
| 1213 | <td class="jd-typecol"><nobr> |
| 1214 | |
| 1215 | |
| 1216 | |
| 1217 | |
| 1218 | |
| 1219 | boolean</nobr> |
| 1220 | </td> |
| 1221 | <td class="jd-linkcol" width="100%"><nobr> |
| 1222 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#clickBottomRight()">clickBottomRight</a></span>()</nobr> |
| 1223 | |
| 1224 | <div class="jd-descrdiv"> |
| 1225 | Clicks the bottom and right corner of the UI element |
| 1226 | |
| 1227 | |
| 1228 | |
| 1229 | </div> |
| 1230 | |
| 1231 | </td></tr> |
| 1232 | |
| 1233 | |
| 1234 | |
| 1235 | <tr class=" api apilevel-" > |
| 1236 | <td class="jd-typecol"><nobr> |
| 1237 | |
| 1238 | |
| 1239 | |
| 1240 | |
| 1241 | |
| 1242 | boolean</nobr> |
| 1243 | </td> |
| 1244 | <td class="jd-linkcol" width="100%"><nobr> |
| 1245 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#clickTopLeft()">clickTopLeft</a></span>()</nobr> |
| 1246 | |
| 1247 | <div class="jd-descrdiv"> |
| 1248 | Clicks the top and left corner of the UI element |
| 1249 | |
| 1250 | |
| 1251 | |
| 1252 | </div> |
| 1253 | |
| 1254 | </td></tr> |
| 1255 | |
| 1256 | |
| 1257 | |
| 1258 | <tr class="alt-color api apilevel-" > |
| 1259 | <td class="jd-typecol"><nobr> |
| 1260 | |
| 1261 | |
| 1262 | |
| 1263 | |
| 1264 | |
| 1265 | boolean</nobr> |
| 1266 | </td> |
| 1267 | <td class="jd-linkcol" width="100%"><nobr> |
| 1268 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#dragTo(android.support.test.uiautomator.UiObject, int)">dragTo</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> destObj, int steps)</nobr> |
| 1269 | |
| 1270 | <div class="jd-descrdiv"> |
| 1271 | Drags this object to a destination UiObject. |
| 1272 | |
| 1273 | |
| 1274 | |
| 1275 | </div> |
| 1276 | |
| 1277 | </td></tr> |
| 1278 | |
| 1279 | |
| 1280 | |
| 1281 | <tr class=" api apilevel-" > |
| 1282 | <td class="jd-typecol"><nobr> |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | boolean</nobr> |
| 1289 | </td> |
| 1290 | <td class="jd-linkcol" width="100%"><nobr> |
| 1291 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#dragTo(int, int, int)">dragTo</a></span>(int destX, int destY, int steps)</nobr> |
| 1292 | |
| 1293 | <div class="jd-descrdiv"> |
| 1294 | Drags this object to arbitrary coordinates. |
| 1295 | |
| 1296 | |
| 1297 | |
| 1298 | </div> |
| 1299 | |
| 1300 | </td></tr> |
| 1301 | |
| 1302 | |
| 1303 | |
| 1304 | <tr class="alt-color api apilevel-" > |
| 1305 | <td class="jd-typecol"><nobr> |
| 1306 | |
| 1307 | |
| 1308 | |
| 1309 | |
| 1310 | |
| 1311 | boolean</nobr> |
| 1312 | </td> |
| 1313 | <td class="jd-linkcol" width="100%"><nobr> |
| 1314 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#exists()">exists</a></span>()</nobr> |
| 1315 | |
| 1316 | <div class="jd-descrdiv"> |
| 1317 | Check if view exists. |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | </div> |
| 1322 | |
| 1323 | </td></tr> |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | <tr class=" api apilevel-" > |
| 1328 | <td class="jd-typecol"><nobr> |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | AccessibilityNodeInfo</nobr> |
| 1335 | </td> |
| 1336 | <td class="jd-linkcol" width="100%"><nobr> |
| 1337 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#findAccessibilityNodeInfo(long)">findAccessibilityNodeInfo</a></span>(long timeout)</nobr> |
| 1338 | |
| 1339 | <div class="jd-descrdiv"> |
| 1340 | Finds a matching UI element in the accessibility hierarchy, by |
| 1341 | using the selector for this UiObject. |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | </div> |
| 1346 | |
| 1347 | </td></tr> |
| 1348 | |
| 1349 | |
| 1350 | |
| 1351 | <tr class="alt-color api apilevel-" > |
| 1352 | <td class="jd-typecol"><nobr> |
| 1353 | |
| 1354 | |
| 1355 | |
| 1356 | |
| 1357 | |
| 1358 | Rect</nobr> |
| 1359 | </td> |
| 1360 | <td class="jd-linkcol" width="100%"><nobr> |
| 1361 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getBounds()">getBounds</a></span>()</nobr> |
| 1362 | |
| 1363 | <div class="jd-descrdiv"> |
| 1364 | Returns the view's <code>bounds</code> property. |
| 1365 | |
| 1366 | |
| 1367 | |
| 1368 | </div> |
| 1369 | |
| 1370 | </td></tr> |
| 1371 | |
| 1372 | |
| 1373 | |
| 1374 | <tr class=" api apilevel-" > |
| 1375 | <td class="jd-typecol"><nobr> |
| 1376 | |
| 1377 | |
| 1378 | |
| 1379 | |
| 1380 | |
| 1381 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1382 | </td> |
| 1383 | <td class="jd-linkcol" width="100%"><nobr> |
| 1384 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getChild(android.support.test.uiautomator.UiSelector)">getChild</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</nobr> |
| 1385 | |
| 1386 | <div class="jd-descrdiv"> |
| 1387 | Creates a new UiObject for a child view that is under the present UiObject. |
| 1388 | |
| 1389 | |
| 1390 | |
| 1391 | </div> |
| 1392 | |
| 1393 | </td></tr> |
| 1394 | |
| 1395 | |
| 1396 | |
| 1397 | <tr class="alt-color api apilevel-" > |
| 1398 | <td class="jd-typecol"><nobr> |
| 1399 | |
| 1400 | |
| 1401 | |
| 1402 | |
| 1403 | |
| 1404 | int</nobr> |
| 1405 | </td> |
| 1406 | <td class="jd-linkcol" width="100%"><nobr> |
| 1407 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getChildCount()">getChildCount</a></span>()</nobr> |
| 1408 | |
| 1409 | <div class="jd-descrdiv"> |
| 1410 | Counts the child views immediately under the present UiObject. |
| 1411 | |
| 1412 | |
| 1413 | |
| 1414 | </div> |
| 1415 | |
| 1416 | </td></tr> |
| 1417 | |
| 1418 | |
| 1419 | |
| 1420 | <tr class=" api apilevel-" > |
| 1421 | <td class="jd-typecol"><nobr> |
| 1422 | |
| 1423 | |
| 1424 | |
| 1425 | |
| 1426 | |
| 1427 | String</nobr> |
| 1428 | </td> |
| 1429 | <td class="jd-linkcol" width="100%"><nobr> |
| 1430 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getClassName()">getClassName</a></span>()</nobr> |
| 1431 | |
| 1432 | <div class="jd-descrdiv"> |
| 1433 | Retrieves the <code>className</code> property of the UI element. |
| 1434 | |
| 1435 | |
| 1436 | |
| 1437 | </div> |
| 1438 | |
| 1439 | </td></tr> |
| 1440 | |
| 1441 | |
| 1442 | |
| 1443 | <tr class="alt-color api apilevel-" > |
| 1444 | <td class="jd-typecol"><nobr> |
| 1445 | |
| 1446 | |
| 1447 | |
| 1448 | |
| 1449 | |
| 1450 | String</nobr> |
| 1451 | </td> |
| 1452 | <td class="jd-linkcol" width="100%"><nobr> |
| 1453 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getContentDescription()">getContentDescription</a></span>()</nobr> |
| 1454 | |
| 1455 | <div class="jd-descrdiv"> |
| 1456 | Reads the <code>content_desc</code> property of the UI element |
| 1457 | |
| 1458 | |
| 1459 | |
| 1460 | </div> |
| 1461 | |
| 1462 | </td></tr> |
| 1463 | |
| 1464 | |
| 1465 | |
| 1466 | <tr class=" api apilevel-" > |
| 1467 | <td class="jd-typecol"><nobr> |
| 1468 | |
| 1469 | |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></nobr> |
| 1474 | </td> |
| 1475 | <td class="jd-linkcol" width="100%"><nobr> |
| 1476 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getFromParent(android.support.test.uiautomator.UiSelector)">getFromParent</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</nobr> |
| 1477 | |
| 1478 | <div class="jd-descrdiv"> |
| 1479 | Creates a new UiObject for a sibling view or a child of the sibling view, |
| 1480 | relative to the present UiObject. |
| 1481 | |
| 1482 | |
| 1483 | |
| 1484 | </div> |
| 1485 | |
| 1486 | </td></tr> |
| 1487 | |
| 1488 | |
| 1489 | |
| 1490 | <tr class="alt-color api apilevel-" > |
| 1491 | <td class="jd-typecol"><nobr> |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | |
| 1496 | |
| 1497 | String</nobr> |
| 1498 | </td> |
| 1499 | <td class="jd-linkcol" width="100%"><nobr> |
| 1500 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getPackageName()">getPackageName</a></span>()</nobr> |
| 1501 | |
| 1502 | <div class="jd-descrdiv"> |
| 1503 | Reads the view's <code>package</code> property |
| 1504 | |
| 1505 | |
| 1506 | |
| 1507 | </div> |
| 1508 | |
| 1509 | </td></tr> |
| 1510 | |
| 1511 | |
| 1512 | |
| 1513 | <tr class=" api apilevel-" > |
| 1514 | <td class="jd-typecol"><nobr> |
| 1515 | |
| 1516 | |
| 1517 | final |
| 1518 | |
| 1519 | |
| 1520 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1521 | </td> |
| 1522 | <td class="jd-linkcol" width="100%"><nobr> |
| 1523 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getSelector()">getSelector</a></span>()</nobr> |
| 1524 | |
| 1525 | <div class="jd-descrdiv"> |
| 1526 | Debugging helper. |
| 1527 | |
| 1528 | |
| 1529 | |
| 1530 | </div> |
| 1531 | |
| 1532 | </td></tr> |
| 1533 | |
| 1534 | |
| 1535 | |
| 1536 | <tr class="alt-color api apilevel-" > |
| 1537 | <td class="jd-typecol"><nobr> |
| 1538 | |
| 1539 | |
| 1540 | |
| 1541 | |
| 1542 | |
| 1543 | String</nobr> |
| 1544 | </td> |
| 1545 | <td class="jd-linkcol" width="100%"><nobr> |
| 1546 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getText()">getText</a></span>()</nobr> |
| 1547 | |
| 1548 | <div class="jd-descrdiv"> |
| 1549 | Reads the <code>text</code> property of the UI element |
| 1550 | |
| 1551 | |
| 1552 | |
| 1553 | </div> |
| 1554 | |
| 1555 | </td></tr> |
| 1556 | |
| 1557 | |
| 1558 | |
| 1559 | <tr class=" api apilevel-" > |
| 1560 | <td class="jd-typecol"><nobr> |
| 1561 | |
| 1562 | |
| 1563 | |
| 1564 | |
| 1565 | |
| 1566 | Rect</nobr> |
| 1567 | </td> |
| 1568 | <td class="jd-linkcol" width="100%"><nobr> |
| 1569 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#getVisibleBounds()">getVisibleBounds</a></span>()</nobr> |
| 1570 | |
| 1571 | <div class="jd-descrdiv"> |
| 1572 | Returns the visible bounds of the view. |
| 1573 | |
| 1574 | |
| 1575 | |
| 1576 | </div> |
| 1577 | |
| 1578 | </td></tr> |
| 1579 | |
| 1580 | |
| 1581 | |
| 1582 | <tr class="alt-color api apilevel-" > |
| 1583 | <td class="jd-typecol"><nobr> |
| 1584 | |
| 1585 | |
| 1586 | |
| 1587 | |
| 1588 | |
| 1589 | boolean</nobr> |
| 1590 | </td> |
| 1591 | <td class="jd-linkcol" width="100%"><nobr> |
| 1592 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isCheckable()">isCheckable</a></span>()</nobr> |
| 1593 | |
| 1594 | <div class="jd-descrdiv"> |
| 1595 | Checks if the UI element's <code>checkable</code> property is currently true. |
| 1596 | |
| 1597 | |
| 1598 | |
| 1599 | </div> |
| 1600 | |
| 1601 | </td></tr> |
| 1602 | |
| 1603 | |
| 1604 | |
| 1605 | <tr class=" api apilevel-" > |
| 1606 | <td class="jd-typecol"><nobr> |
| 1607 | |
| 1608 | |
| 1609 | |
| 1610 | |
| 1611 | |
| 1612 | boolean</nobr> |
| 1613 | </td> |
| 1614 | <td class="jd-linkcol" width="100%"><nobr> |
| 1615 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isChecked()">isChecked</a></span>()</nobr> |
| 1616 | |
| 1617 | <div class="jd-descrdiv"> |
| 1618 | Check if the UI element's <code>checked</code> property is currently true |
| 1619 | |
| 1620 | |
| 1621 | |
| 1622 | </div> |
| 1623 | |
| 1624 | </td></tr> |
| 1625 | |
| 1626 | |
| 1627 | |
| 1628 | <tr class="alt-color api apilevel-" > |
| 1629 | <td class="jd-typecol"><nobr> |
| 1630 | |
| 1631 | |
| 1632 | |
| 1633 | |
| 1634 | |
| 1635 | boolean</nobr> |
| 1636 | </td> |
| 1637 | <td class="jd-linkcol" width="100%"><nobr> |
| 1638 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isClickable()">isClickable</a></span>()</nobr> |
| 1639 | |
| 1640 | <div class="jd-descrdiv"> |
| 1641 | Checks if the UI element's <code>clickable</code> property is currently true. |
| 1642 | |
| 1643 | |
| 1644 | |
| 1645 | </div> |
| 1646 | |
| 1647 | </td></tr> |
| 1648 | |
| 1649 | |
| 1650 | |
| 1651 | <tr class=" api apilevel-" > |
| 1652 | <td class="jd-typecol"><nobr> |
| 1653 | |
| 1654 | |
| 1655 | |
| 1656 | |
| 1657 | |
| 1658 | boolean</nobr> |
| 1659 | </td> |
| 1660 | <td class="jd-linkcol" width="100%"><nobr> |
| 1661 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isEnabled()">isEnabled</a></span>()</nobr> |
| 1662 | |
| 1663 | <div class="jd-descrdiv"> |
| 1664 | Checks if the UI element's <code>enabled</code> property is currently true. |
| 1665 | |
| 1666 | |
| 1667 | |
| 1668 | </div> |
| 1669 | |
| 1670 | </td></tr> |
| 1671 | |
| 1672 | |
| 1673 | |
| 1674 | <tr class="alt-color api apilevel-" > |
| 1675 | <td class="jd-typecol"><nobr> |
| 1676 | |
| 1677 | |
| 1678 | |
| 1679 | |
| 1680 | |
| 1681 | boolean</nobr> |
| 1682 | </td> |
| 1683 | <td class="jd-linkcol" width="100%"><nobr> |
| 1684 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isFocusable()">isFocusable</a></span>()</nobr> |
| 1685 | |
| 1686 | <div class="jd-descrdiv"> |
| 1687 | Check if the UI element's <code>focusable</code> property is currently true. |
| 1688 | |
| 1689 | |
| 1690 | |
| 1691 | </div> |
| 1692 | |
| 1693 | </td></tr> |
| 1694 | |
| 1695 | |
| 1696 | |
| 1697 | <tr class=" api apilevel-" > |
| 1698 | <td class="jd-typecol"><nobr> |
| 1699 | |
| 1700 | |
| 1701 | |
| 1702 | |
| 1703 | |
| 1704 | boolean</nobr> |
| 1705 | </td> |
| 1706 | <td class="jd-linkcol" width="100%"><nobr> |
| 1707 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isFocused()">isFocused</a></span>()</nobr> |
| 1708 | |
| 1709 | <div class="jd-descrdiv"> |
| 1710 | Check if the UI element's <code>focused</code> property is currently true |
| 1711 | |
| 1712 | |
| 1713 | |
| 1714 | </div> |
| 1715 | |
| 1716 | </td></tr> |
| 1717 | |
| 1718 | |
| 1719 | |
| 1720 | <tr class="alt-color api apilevel-" > |
| 1721 | <td class="jd-typecol"><nobr> |
| 1722 | |
| 1723 | |
| 1724 | |
| 1725 | |
| 1726 | |
| 1727 | boolean</nobr> |
| 1728 | </td> |
| 1729 | <td class="jd-linkcol" width="100%"><nobr> |
| 1730 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isLongClickable()">isLongClickable</a></span>()</nobr> |
| 1731 | |
| 1732 | <div class="jd-descrdiv"> |
| 1733 | Check if the view's <code>long-clickable</code> property is currently true |
| 1734 | |
| 1735 | |
| 1736 | |
| 1737 | </div> |
| 1738 | |
| 1739 | </td></tr> |
| 1740 | |
| 1741 | |
| 1742 | |
| 1743 | <tr class=" api apilevel-" > |
| 1744 | <td class="jd-typecol"><nobr> |
| 1745 | |
| 1746 | |
| 1747 | |
| 1748 | |
| 1749 | |
| 1750 | boolean</nobr> |
| 1751 | </td> |
| 1752 | <td class="jd-linkcol" width="100%"><nobr> |
| 1753 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isScrollable()">isScrollable</a></span>()</nobr> |
| 1754 | |
| 1755 | <div class="jd-descrdiv"> |
| 1756 | Check if the view's <code>scrollable</code> property is currently true |
| 1757 | |
| 1758 | |
| 1759 | |
| 1760 | </div> |
| 1761 | |
| 1762 | </td></tr> |
| 1763 | |
| 1764 | |
| 1765 | |
| 1766 | <tr class="alt-color api apilevel-" > |
| 1767 | <td class="jd-typecol"><nobr> |
| 1768 | |
| 1769 | |
| 1770 | |
| 1771 | |
| 1772 | |
| 1773 | boolean</nobr> |
| 1774 | </td> |
| 1775 | <td class="jd-linkcol" width="100%"><nobr> |
| 1776 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#isSelected()">isSelected</a></span>()</nobr> |
| 1777 | |
| 1778 | <div class="jd-descrdiv"> |
| 1779 | Checks if the UI element's <code>selected</code> property is currently true. |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | </div> |
| 1784 | |
| 1785 | </td></tr> |
| 1786 | |
| 1787 | |
| 1788 | |
| 1789 | <tr class=" api apilevel-" > |
| 1790 | <td class="jd-typecol"><nobr> |
| 1791 | |
| 1792 | |
| 1793 | |
| 1794 | |
| 1795 | |
| 1796 | boolean</nobr> |
| 1797 | </td> |
| 1798 | <td class="jd-linkcol" width="100%"><nobr> |
| 1799 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#longClick()">longClick</a></span>()</nobr> |
| 1800 | |
| 1801 | <div class="jd-descrdiv"> |
| 1802 | Long clicks the center of the visible bounds of the UI element |
| 1803 | |
| 1804 | |
| 1805 | |
| 1806 | </div> |
| 1807 | |
| 1808 | </td></tr> |
| 1809 | |
| 1810 | |
| 1811 | |
| 1812 | <tr class="alt-color api apilevel-" > |
| 1813 | <td class="jd-typecol"><nobr> |
| 1814 | |
| 1815 | |
| 1816 | |
| 1817 | |
| 1818 | |
| 1819 | boolean</nobr> |
| 1820 | </td> |
| 1821 | <td class="jd-linkcol" width="100%"><nobr> |
| 1822 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#longClickBottomRight()">longClickBottomRight</a></span>()</nobr> |
| 1823 | |
| 1824 | <div class="jd-descrdiv"> |
| 1825 | Long clicks bottom and right corner of the UI element |
| 1826 | |
| 1827 | |
| 1828 | |
| 1829 | </div> |
| 1830 | |
| 1831 | </td></tr> |
| 1832 | |
| 1833 | |
| 1834 | |
| 1835 | <tr class=" api apilevel-" > |
| 1836 | <td class="jd-typecol"><nobr> |
| 1837 | |
| 1838 | |
| 1839 | |
| 1840 | |
| 1841 | |
| 1842 | boolean</nobr> |
| 1843 | </td> |
| 1844 | <td class="jd-linkcol" width="100%"><nobr> |
| 1845 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#longClickTopLeft()">longClickTopLeft</a></span>()</nobr> |
| 1846 | |
| 1847 | <div class="jd-descrdiv"> |
| 1848 | Long clicks on the top and left corner of the UI element |
| 1849 | |
| 1850 | |
| 1851 | |
| 1852 | </div> |
| 1853 | |
| 1854 | </td></tr> |
| 1855 | |
| 1856 | |
| 1857 | |
| 1858 | <tr class="alt-color api apilevel-" > |
| 1859 | <td class="jd-typecol"><nobr> |
| 1860 | |
| 1861 | |
| 1862 | |
| 1863 | |
| 1864 | |
| 1865 | boolean</nobr> |
| 1866 | </td> |
| 1867 | <td class="jd-linkcol" width="100%"><nobr> |
| 1868 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#performMultiPointerGesture(android.view.MotionEvent.PointerCoords[]...)">performMultiPointerGesture</a></span>(PointerCoords... touches)</nobr> |
| 1869 | |
| 1870 | <div class="jd-descrdiv"> |
| 1871 | Performs a multi-touch gesture. |
| 1872 | |
| 1873 | |
| 1874 | |
| 1875 | </div> |
| 1876 | |
| 1877 | </td></tr> |
| 1878 | |
| 1879 | |
| 1880 | |
| 1881 | <tr class=" api apilevel-" > |
| 1882 | <td class="jd-typecol"><nobr> |
| 1883 | |
| 1884 | |
| 1885 | |
| 1886 | |
| 1887 | |
| 1888 | boolean</nobr> |
| 1889 | </td> |
| 1890 | <td class="jd-linkcol" width="100%"><nobr> |
| 1891 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#performTwoPointerGesture(android.graphics.Point, android.graphics.Point, android.graphics.Point, android.graphics.Point, int)">performTwoPointerGesture</a></span>(Point startPoint1, Point startPoint2, Point endPoint1, Point endPoint2, int steps)</nobr> |
| 1892 | |
| 1893 | <div class="jd-descrdiv"> |
| 1894 | Generates a two-pointer gesture with arbitrary starting and ending points. |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | </div> |
| 1899 | |
| 1900 | </td></tr> |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | <tr class="alt-color api apilevel-" > |
| 1905 | <td class="jd-typecol"><nobr> |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | boolean</nobr> |
| 1912 | </td> |
| 1913 | <td class="jd-linkcol" width="100%"><nobr> |
| 1914 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#pinchIn(int, int)">pinchIn</a></span>(int percent, int steps)</nobr> |
| 1915 | |
| 1916 | <div class="jd-descrdiv"> |
| 1917 | Performs a two-pointer gesture, where each pointer moves diagonally |
| 1918 | toward the other, from the edges to the center of this UiObject . |
| 1919 | |
| 1920 | |
| 1921 | |
| 1922 | </div> |
| 1923 | |
| 1924 | </td></tr> |
| 1925 | |
| 1926 | |
| 1927 | |
| 1928 | <tr class=" api apilevel-" > |
| 1929 | <td class="jd-typecol"><nobr> |
| 1930 | |
| 1931 | |
| 1932 | |
| 1933 | |
| 1934 | |
| 1935 | boolean</nobr> |
| 1936 | </td> |
| 1937 | <td class="jd-linkcol" width="100%"><nobr> |
| 1938 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#pinchOut(int, int)">pinchOut</a></span>(int percent, int steps)</nobr> |
| 1939 | |
| 1940 | <div class="jd-descrdiv"> |
| 1941 | Performs a two-pointer gesture, where each pointer moves diagonally |
| 1942 | opposite across the other, from the center out towards the edges of the |
| 1943 | this UiObject. |
| 1944 | |
| 1945 | |
| 1946 | |
| 1947 | </div> |
| 1948 | |
| 1949 | </td></tr> |
| 1950 | |
| 1951 | |
| 1952 | |
| 1953 | <tr class="alt-color api apilevel-" > |
| 1954 | <td class="jd-typecol"><nobr> |
| 1955 | |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | |
| 1960 | boolean</nobr> |
| 1961 | </td> |
| 1962 | <td class="jd-linkcol" width="100%"><nobr> |
| 1963 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#setText(java.lang.String)">setText</a></span>(String text)</nobr> |
| 1964 | |
| 1965 | <div class="jd-descrdiv"> |
| 1966 | Sets the text in an editable field, after clearing the field's content. |
| 1967 | |
| 1968 | |
| 1969 | |
| 1970 | </div> |
| 1971 | |
| 1972 | </td></tr> |
| 1973 | |
| 1974 | |
| 1975 | |
| 1976 | <tr class=" api apilevel-" > |
| 1977 | <td class="jd-typecol"><nobr> |
| 1978 | |
| 1979 | |
| 1980 | |
| 1981 | |
| 1982 | |
| 1983 | boolean</nobr> |
| 1984 | </td> |
| 1985 | <td class="jd-linkcol" width="100%"><nobr> |
| 1986 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#swipeDown(int)">swipeDown</a></span>(int steps)</nobr> |
| 1987 | |
| 1988 | <div class="jd-descrdiv"> |
| 1989 | Performs the swipe down action on the UiObject. |
| 1990 | |
| 1991 | |
| 1992 | |
| 1993 | </div> |
| 1994 | |
| 1995 | </td></tr> |
| 1996 | |
| 1997 | |
| 1998 | |
| 1999 | <tr class="alt-color api apilevel-" > |
| 2000 | <td class="jd-typecol"><nobr> |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
| 2005 | |
| 2006 | boolean</nobr> |
| 2007 | </td> |
| 2008 | <td class="jd-linkcol" width="100%"><nobr> |
| 2009 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#swipeLeft(int)">swipeLeft</a></span>(int steps)</nobr> |
| 2010 | |
| 2011 | <div class="jd-descrdiv"> |
| 2012 | Performs the swipe left action on the UiObject. |
| 2013 | |
| 2014 | |
| 2015 | |
| 2016 | </div> |
| 2017 | |
| 2018 | </td></tr> |
| 2019 | |
| 2020 | |
| 2021 | |
| 2022 | <tr class=" api apilevel-" > |
| 2023 | <td class="jd-typecol"><nobr> |
| 2024 | |
| 2025 | |
| 2026 | |
| 2027 | |
| 2028 | |
| 2029 | boolean</nobr> |
| 2030 | </td> |
| 2031 | <td class="jd-linkcol" width="100%"><nobr> |
| 2032 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#swipeRight(int)">swipeRight</a></span>(int steps)</nobr> |
| 2033 | |
| 2034 | <div class="jd-descrdiv"> |
| 2035 | Performs the swipe right action on the UiObject. |
| 2036 | |
| 2037 | |
| 2038 | |
| 2039 | </div> |
| 2040 | |
| 2041 | </td></tr> |
| 2042 | |
| 2043 | |
| 2044 | |
| 2045 | <tr class="alt-color api apilevel-" > |
| 2046 | <td class="jd-typecol"><nobr> |
| 2047 | |
| 2048 | |
| 2049 | |
| 2050 | |
| 2051 | |
| 2052 | boolean</nobr> |
| 2053 | </td> |
| 2054 | <td class="jd-linkcol" width="100%"><nobr> |
| 2055 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#swipeUp(int)">swipeUp</a></span>(int steps)</nobr> |
| 2056 | |
| 2057 | <div class="jd-descrdiv"> |
| 2058 | Performs the swipe up action on the UiObject. |
| 2059 | |
| 2060 | |
| 2061 | |
| 2062 | </div> |
| 2063 | |
| 2064 | </td></tr> |
| 2065 | |
| 2066 | |
| 2067 | |
| 2068 | <tr class=" api apilevel-" > |
| 2069 | <td class="jd-typecol"><nobr> |
| 2070 | |
| 2071 | |
| 2072 | |
| 2073 | |
| 2074 | |
| 2075 | boolean</nobr> |
| 2076 | </td> |
| 2077 | <td class="jd-linkcol" width="100%"><nobr> |
| 2078 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#waitForExists(long)">waitForExists</a></span>(long timeout)</nobr> |
| 2079 | |
| 2080 | <div class="jd-descrdiv"> |
| 2081 | Waits a specified length of time for a view to become visible. |
| 2082 | |
| 2083 | |
| 2084 | |
| 2085 | </div> |
| 2086 | |
| 2087 | </td></tr> |
| 2088 | |
| 2089 | |
| 2090 | |
| 2091 | <tr class="alt-color api apilevel-" > |
| 2092 | <td class="jd-typecol"><nobr> |
| 2093 | |
| 2094 | |
| 2095 | |
| 2096 | |
| 2097 | |
| 2098 | boolean</nobr> |
| 2099 | </td> |
| 2100 | <td class="jd-linkcol" width="100%"><nobr> |
| 2101 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html#waitUntilGone(long)">waitUntilGone</a></span>(long timeout)</nobr> |
| 2102 | |
| 2103 | <div class="jd-descrdiv"> |
| 2104 | Waits a specified length of time for a view to become undetectable. |
| 2105 | |
| 2106 | |
| 2107 | |
| 2108 | </div> |
| 2109 | |
| 2110 | </td></tr> |
| 2111 | |
| 2112 | |
| 2113 | </table> |
| 2114 | </div> |
| 2115 | </div> |
| 2116 | </td></tr> |
| 2117 | |
| 2118 | |
| 2119 | |
| 2120 | <tr class="api apilevel-" > |
| 2121 | <td colspan="12"> |
| 2122 | <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" |
| 2123 | ><img id="inherited-methods-java.lang.Object-trigger" |
| 2124 | src="../../../../../assets/images/triangle-closed.png" |
| 2125 | class="jd-expando-trigger-img" /></a> |
| 2126 | From class |
| 2127 | |
| 2128 | java.lang.Object |
| 2129 | |
| 2130 | <div id="inherited-methods-java.lang.Object"> |
| 2131 | <div id="inherited-methods-java.lang.Object-list" |
| 2132 | class="jd-inheritedlinks"> |
| 2133 | </div> |
| 2134 | <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> |
| 2135 | <table class="jd-sumtable-expando"> |
| 2136 | |
| 2137 | |
| 2138 | |
| 2139 | |
| 2140 | <tr class="alt-color api apilevel-" > |
| 2141 | <td class="jd-typecol"><nobr> |
| 2142 | |
| 2143 | |
| 2144 | |
| 2145 | |
| 2146 | |
| 2147 | Object</nobr> |
| 2148 | </td> |
| 2149 | <td class="jd-linkcol" width="100%"><nobr> |
| 2150 | <span class="sympad">clone</span>()</nobr> |
| 2151 | |
| 2152 | </td></tr> |
| 2153 | |
| 2154 | |
| 2155 | |
| 2156 | <tr class=" api apilevel-" > |
| 2157 | <td class="jd-typecol"><nobr> |
| 2158 | |
| 2159 | |
| 2160 | |
| 2161 | |
| 2162 | |
| 2163 | boolean</nobr> |
| 2164 | </td> |
| 2165 | <td class="jd-linkcol" width="100%"><nobr> |
| 2166 | <span class="sympad">equals</span>(Object arg0)</nobr> |
| 2167 | |
| 2168 | </td></tr> |
| 2169 | |
| 2170 | |
| 2171 | |
| 2172 | <tr class="alt-color api apilevel-" > |
| 2173 | <td class="jd-typecol"><nobr> |
| 2174 | |
| 2175 | |
| 2176 | |
| 2177 | |
| 2178 | |
| 2179 | void</nobr> |
| 2180 | </td> |
| 2181 | <td class="jd-linkcol" width="100%"><nobr> |
| 2182 | <span class="sympad">finalize</span>()</nobr> |
| 2183 | |
| 2184 | </td></tr> |
| 2185 | |
| 2186 | |
| 2187 | |
| 2188 | <tr class=" api apilevel-" > |
| 2189 | <td class="jd-typecol"><nobr> |
| 2190 | |
| 2191 | |
| 2192 | final |
| 2193 | |
| 2194 | |
| 2195 | Class<?></nobr> |
| 2196 | </td> |
| 2197 | <td class="jd-linkcol" width="100%"><nobr> |
| 2198 | <span class="sympad">getClass</span>()</nobr> |
| 2199 | |
| 2200 | </td></tr> |
| 2201 | |
| 2202 | |
| 2203 | |
| 2204 | <tr class="alt-color api apilevel-" > |
| 2205 | <td class="jd-typecol"><nobr> |
| 2206 | |
| 2207 | |
| 2208 | |
| 2209 | |
| 2210 | |
| 2211 | int</nobr> |
| 2212 | </td> |
| 2213 | <td class="jd-linkcol" width="100%"><nobr> |
| 2214 | <span class="sympad">hashCode</span>()</nobr> |
| 2215 | |
| 2216 | </td></tr> |
| 2217 | |
| 2218 | |
| 2219 | |
| 2220 | <tr class=" api apilevel-" > |
| 2221 | <td class="jd-typecol"><nobr> |
| 2222 | |
| 2223 | |
| 2224 | final |
| 2225 | |
| 2226 | |
| 2227 | void</nobr> |
| 2228 | </td> |
| 2229 | <td class="jd-linkcol" width="100%"><nobr> |
| 2230 | <span class="sympad">notify</span>()</nobr> |
| 2231 | |
| 2232 | </td></tr> |
| 2233 | |
| 2234 | |
| 2235 | |
| 2236 | <tr class="alt-color api apilevel-" > |
| 2237 | <td class="jd-typecol"><nobr> |
| 2238 | |
| 2239 | |
| 2240 | final |
| 2241 | |
| 2242 | |
| 2243 | void</nobr> |
| 2244 | </td> |
| 2245 | <td class="jd-linkcol" width="100%"><nobr> |
| 2246 | <span class="sympad">notifyAll</span>()</nobr> |
| 2247 | |
| 2248 | </td></tr> |
| 2249 | |
| 2250 | |
| 2251 | |
| 2252 | <tr class=" api apilevel-" > |
| 2253 | <td class="jd-typecol"><nobr> |
| 2254 | |
| 2255 | |
| 2256 | |
| 2257 | |
| 2258 | |
| 2259 | String</nobr> |
| 2260 | </td> |
| 2261 | <td class="jd-linkcol" width="100%"><nobr> |
| 2262 | <span class="sympad">toString</span>()</nobr> |
| 2263 | |
| 2264 | </td></tr> |
| 2265 | |
| 2266 | |
| 2267 | |
| 2268 | <tr class="alt-color api apilevel-" > |
| 2269 | <td class="jd-typecol"><nobr> |
| 2270 | |
| 2271 | |
| 2272 | final |
| 2273 | |
| 2274 | |
| 2275 | void</nobr> |
| 2276 | </td> |
| 2277 | <td class="jd-linkcol" width="100%"><nobr> |
| 2278 | <span class="sympad">wait</span>()</nobr> |
| 2279 | |
| 2280 | </td></tr> |
| 2281 | |
| 2282 | |
| 2283 | |
| 2284 | <tr class=" api apilevel-" > |
| 2285 | <td class="jd-typecol"><nobr> |
| 2286 | |
| 2287 | |
| 2288 | final |
| 2289 | |
| 2290 | |
| 2291 | void</nobr> |
| 2292 | </td> |
| 2293 | <td class="jd-linkcol" width="100%"><nobr> |
| 2294 | <span class="sympad">wait</span>(long arg0, int arg1)</nobr> |
| 2295 | |
| 2296 | </td></tr> |
| 2297 | |
| 2298 | |
| 2299 | |
| 2300 | <tr class="alt-color api apilevel-" > |
| 2301 | <td class="jd-typecol"><nobr> |
| 2302 | |
| 2303 | |
| 2304 | final |
| 2305 | |
| 2306 | |
| 2307 | void</nobr> |
| 2308 | </td> |
| 2309 | <td class="jd-linkcol" width="100%"><nobr> |
| 2310 | <span class="sympad">wait</span>(long arg0)</nobr> |
| 2311 | |
| 2312 | </td></tr> |
| 2313 | |
| 2314 | |
| 2315 | </table> |
| 2316 | </div> |
| 2317 | </div> |
| 2318 | </td></tr> |
| 2319 | |
| 2320 | |
| 2321 | </table> |
| 2322 | |
| 2323 | |
| 2324 | </div><!-- jd-descr (summary) --> |
| 2325 | |
| 2326 | <!-- Details --> |
| 2327 | |
| 2328 | |
| 2329 | |
| 2330 | |
| 2331 | |
| 2332 | |
| 2333 | |
| 2334 | |
| 2335 | <!-- XML Attributes --> |
| 2336 | |
| 2337 | |
| 2338 | <!-- Enum Values --> |
| 2339 | |
| 2340 | |
| 2341 | <!-- Constants --> |
| 2342 | |
| 2343 | |
| 2344 | <!-- Fields --> |
| 2345 | |
| 2346 | |
| 2347 | <!-- Public ctors --> |
| 2348 | |
| 2349 | |
| 2350 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 2351 | <h2>Public Constructors</h2> |
| 2352 | |
| 2353 | |
| 2354 | |
| 2355 | <A NAME="UiCollection(android.support.test.uiautomator.UiSelector)"></A> |
| 2356 | |
| 2357 | <div class="jd-details api apilevel-"> |
| 2358 | <h4 class="jd-details-title"> |
| 2359 | <span class="normal"> |
| 2360 | public |
| 2361 | |
| 2362 | |
| 2363 | |
| 2364 | |
| 2365 | |
| 2366 | </span> |
| 2367 | <span class="sympad">UiCollection</span> |
| 2368 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</span> |
| 2369 | </h4> |
| 2370 | <div class="api-level"> |
| 2371 | <div></div> |
| 2372 | |
| 2373 | |
| 2374 | |
| 2375 | </div> |
| 2376 | <div class="jd-details-descr"> |
| 2377 | |
| 2378 | |
| 2379 | |
| 2380 | |
| 2381 | <div class="jd-tagdata jd-tagdescr"><p>Constructs an instance as described by the selector</p></div> |
| 2382 | |
| 2383 | </div> |
| 2384 | </div> |
| 2385 | |
| 2386 | |
| 2387 | |
| 2388 | |
| 2389 | |
| 2390 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 2391 | <!-- Protected ctors --> |
| 2392 | |
| 2393 | |
| 2394 | |
| 2395 | <!-- ========= METHOD DETAIL ======== --> |
| 2396 | <!-- Public methdos --> |
| 2397 | |
| 2398 | <h2>Public Methods</h2> |
| 2399 | |
| 2400 | |
| 2401 | |
| 2402 | <A NAME="getChildByDescription(android.support.test.uiautomator.UiSelector, java.lang.String)"></A> |
| 2403 | |
| 2404 | <div class="jd-details api apilevel-"> |
| 2405 | <h4 class="jd-details-title"> |
| 2406 | <span class="normal"> |
| 2407 | public |
| 2408 | |
| 2409 | |
| 2410 | |
| 2411 | |
| 2412 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> |
| 2413 | </span> |
| 2414 | <span class="sympad">getChildByDescription</span> |
| 2415 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text)</span> |
| 2416 | </h4> |
| 2417 | <div class="api-level"> |
| 2418 | <div></div> |
| 2419 | |
| 2420 | |
| 2421 | |
| 2422 | </div> |
| 2423 | <div class="jd-details-descr"> |
| 2424 | |
| 2425 | |
| 2426 | |
| 2427 | |
| 2428 | <div class="jd-tagdata jd-tagdescr"><p>Searches for child UI element within the constraints of this UiCollection <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> |
| 2429 | selector. |
| 2430 | |
| 2431 | It looks for any child matching the <code>childPattern</code> argument that has |
| 2432 | a child UI element anywhere within its sub hierarchy that has content-description text. |
| 2433 | The returned UiObject will point at the <code>childPattern</code> instance that matched the |
| 2434 | search and not at the identifying child element that matched the content description.</p></p></div> |
| 2435 | <div class="jd-tagdata"> |
| 2436 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2437 | <table class="jd-tagtable"> |
| 2438 | <tr> |
| 2439 | <th>childPattern</td> |
| 2440 | <td><code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> selector of the child pattern to match and return</td> |
| 2441 | </tr> |
| 2442 | <tr> |
| 2443 | <th>text</td> |
| 2444 | <td>String of the identifying child contents of of the <code>childPattern</code></td> |
| 2445 | </tr> |
| 2446 | </table> |
| 2447 | </div> |
| 2448 | <div class="jd-tagdata"> |
| 2449 | <h5 class="jd-tagtitle">Returns</h5> |
| 2450 | <ul class="nolist"><li><code><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></code> pointing at and instance of <code>childPattern</code></li></ul> |
| 2451 | </div> |
| 2452 | <div class="jd-tagdata"> |
| 2453 | <h5 class="jd-tagtitle">Throws</h5> |
| 2454 | <table class="jd-tagtable"> |
| 2455 | <tr> |
| 2456 | <th></td> |
| 2457 | <td>UiObjectNotFoundException</td> |
| 2458 | </tr> |
| 2459 | <tr> |
| 2460 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 2461 | <td></td> |
| 2462 | </tr> |
| 2463 | </table> |
| 2464 | </div> |
| 2465 | |
| 2466 | </div> |
| 2467 | </div> |
| 2468 | |
| 2469 | |
| 2470 | <A NAME="getChildByInstance(android.support.test.uiautomator.UiSelector, int)"></A> |
| 2471 | |
| 2472 | <div class="jd-details api apilevel-"> |
| 2473 | <h4 class="jd-details-title"> |
| 2474 | <span class="normal"> |
| 2475 | public |
| 2476 | |
| 2477 | |
| 2478 | |
| 2479 | |
| 2480 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> |
| 2481 | </span> |
| 2482 | <span class="sympad">getChildByInstance</span> |
| 2483 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, int instance)</span> |
| 2484 | </h4> |
| 2485 | <div class="api-level"> |
| 2486 | <div></div> |
| 2487 | |
| 2488 | |
| 2489 | |
| 2490 | </div> |
| 2491 | <div class="jd-details-descr"> |
| 2492 | |
| 2493 | |
| 2494 | |
| 2495 | |
| 2496 | <div class="jd-tagdata jd-tagdescr"><p>Searches for child UI element within the constraints of this UiCollection <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> |
| 2497 | selector. |
| 2498 | |
| 2499 | It looks for any child matching the <code>childPattern</code> argument that has |
| 2500 | a child UI element anywhere within its sub hierarchy that is at the <code>instance</code> |
| 2501 | specified. The operation is performed only on the visible items and no scrolling is performed |
| 2502 | in this case.</p></div> |
| 2503 | <div class="jd-tagdata"> |
| 2504 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2505 | <table class="jd-tagtable"> |
| 2506 | <tr> |
| 2507 | <th>childPattern</td> |
| 2508 | <td><code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> selector of the child pattern to match and return</td> |
| 2509 | </tr> |
| 2510 | <tr> |
| 2511 | <th>instance</td> |
| 2512 | <td>int the desired matched instance of this <code>childPattern</code></td> |
| 2513 | </tr> |
| 2514 | </table> |
| 2515 | </div> |
| 2516 | <div class="jd-tagdata"> |
| 2517 | <h5 class="jd-tagtitle">Returns</h5> |
| 2518 | <ul class="nolist"><li><code><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></code> pointing at and instance of <code>childPattern</code></li></ul> |
| 2519 | </div> |
| 2520 | <div class="jd-tagdata"> |
| 2521 | <h5 class="jd-tagtitle">Throws</h5> |
| 2522 | <table class="jd-tagtable"> |
| 2523 | <tr> |
| 2524 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 2525 | <td></td> |
| 2526 | </tr> |
| 2527 | </table> |
| 2528 | </div> |
| 2529 | |
| 2530 | </div> |
| 2531 | </div> |
| 2532 | |
| 2533 | |
| 2534 | <A NAME="getChildByText(android.support.test.uiautomator.UiSelector, java.lang.String)"></A> |
| 2535 | |
| 2536 | <div class="jd-details api apilevel-"> |
| 2537 | <h4 class="jd-details-title"> |
| 2538 | <span class="normal"> |
| 2539 | public |
| 2540 | |
| 2541 | |
| 2542 | |
| 2543 | |
| 2544 | <a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a> |
| 2545 | </span> |
| 2546 | <span class="sympad">getChildByText</span> |
| 2547 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern, String text)</span> |
| 2548 | </h4> |
| 2549 | <div class="api-level"> |
| 2550 | <div></div> |
| 2551 | |
| 2552 | |
| 2553 | |
| 2554 | </div> |
| 2555 | <div class="jd-details-descr"> |
| 2556 | |
| 2557 | |
| 2558 | |
| 2559 | |
| 2560 | <div class="jd-tagdata jd-tagdescr"><p>Searches for child UI element within the constraints of this UiCollection <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> |
| 2561 | selector. |
| 2562 | |
| 2563 | It looks for any child matching the <code>childPattern</code> argument that has |
| 2564 | a child UI element anywhere within its sub hierarchy that has text attribute = |
| 2565 | <code>text</code>. The returned UiObject will point at the <code>childPattern</code> |
| 2566 | instance that matched the search and not at the identifying child element that matched the |
| 2567 | text attribute.</p></p></div> |
| 2568 | <div class="jd-tagdata"> |
| 2569 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2570 | <table class="jd-tagtable"> |
| 2571 | <tr> |
| 2572 | <th>childPattern</td> |
| 2573 | <td><code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> selector of the child pattern to match and return</td> |
| 2574 | </tr> |
| 2575 | <tr> |
| 2576 | <th>text</td> |
| 2577 | <td>String of the identifying child contents of of the <code>childPattern</code></td> |
| 2578 | </tr> |
| 2579 | </table> |
| 2580 | </div> |
| 2581 | <div class="jd-tagdata"> |
| 2582 | <h5 class="jd-tagtitle">Returns</h5> |
| 2583 | <ul class="nolist"><li><code><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></code> pointing at and instance of <code>childPattern</code></li></ul> |
| 2584 | </div> |
| 2585 | <div class="jd-tagdata"> |
| 2586 | <h5 class="jd-tagtitle">Throws</h5> |
| 2587 | <table class="jd-tagtable"> |
| 2588 | <tr> |
| 2589 | <th></td> |
| 2590 | <td>UiObjectNotFoundException</td> |
| 2591 | </tr> |
| 2592 | <tr> |
| 2593 | <th><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></td> |
| 2594 | <td></td> |
| 2595 | </tr> |
| 2596 | </table> |
| 2597 | </div> |
| 2598 | |
| 2599 | </div> |
| 2600 | </div> |
| 2601 | |
| 2602 | |
| 2603 | <A NAME="getChildCount(android.support.test.uiautomator.UiSelector)"></A> |
| 2604 | |
| 2605 | <div class="jd-details api apilevel-"> |
| 2606 | <h4 class="jd-details-title"> |
| 2607 | <span class="normal"> |
| 2608 | public |
| 2609 | |
| 2610 | |
| 2611 | |
| 2612 | |
| 2613 | int |
| 2614 | </span> |
| 2615 | <span class="sympad">getChildCount</span> |
| 2616 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> childPattern)</span> |
| 2617 | </h4> |
| 2618 | <div class="api-level"> |
| 2619 | <div></div> |
| 2620 | |
| 2621 | |
| 2622 | |
| 2623 | </div> |
| 2624 | <div class="jd-details-descr"> |
| 2625 | |
| 2626 | |
| 2627 | |
| 2628 | |
| 2629 | <div class="jd-tagdata jd-tagdescr"><p>Counts child UI element instances matching the <code>childPattern</code> |
| 2630 | argument. The method returns the number of matching UI elements that are |
| 2631 | currently visible. The count does not include items of a scrollable list |
| 2632 | that are off-screen.</p></div> |
| 2633 | <div class="jd-tagdata"> |
| 2634 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2635 | <table class="jd-tagtable"> |
| 2636 | <tr> |
| 2637 | <th>childPattern</td> |
| 2638 | <td>a <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></code> that represents the matching child UI |
| 2639 | elements to count</td> |
| 2640 | </tr> |
| 2641 | </table> |
| 2642 | </div> |
| 2643 | <div class="jd-tagdata"> |
| 2644 | <h5 class="jd-tagtitle">Returns</h5> |
| 2645 | <ul class="nolist"><li>the number of matched childPattern under the current <code><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html">UiCollection</a></code></li></ul> |
| 2646 | </div> |
| 2647 | |
| 2648 | </div> |
| 2649 | </div> |
| 2650 | |
| 2651 | |
| 2652 | |
| 2653 | |
| 2654 | |
| 2655 | <!-- ========= METHOD DETAIL ======== --> |
| 2656 | |
| 2657 | |
| 2658 | |
| 2659 | <!-- ========= END OF CLASS DATA ========= --> |
| 2660 | <A NAME="navbar_top"></A> |
| 2661 | |
| 2662 | <div id="footer" class="wrap" > |
| 2663 | |
| 2664 | |
| 2665 | <div id="copyright"> |
| 2666 | |
| 2667 | Except as noted, this content is licensed under <a |
| 2668 | href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. |
| 2669 | For details and restrictions, see the <a href="../../../../../license.html"> |
| 2670 | Content License</a>. |
| 2671 | </div> |
| 2672 | <div id="build_info"> |
| 2673 | |
| 2674 | Android r — |
| 2675 | <script src="../../../../../timestamp.js" type="text/javascript"></script> |
| 2676 | <script>document.write(BUILD_TIMESTAMP)</script> |
| 2677 | |
| 2678 | </div> |
| 2679 | |
| 2680 | |
| 2681 | <div id="footerlinks"> |
| 2682 | |
| 2683 | <p> |
| 2684 | <a href="../../../../../about/index.html">About Android</a> | |
| 2685 | <a href="../../../../../legal.html">Legal</a> | |
| 2686 | <a href="../../../../../support.html">Support</a> |
| 2687 | </p> |
| 2688 | </div> |
| 2689 | |
| 2690 | </div> <!-- end footer --> |
| 2691 | </div> <!-- jd-content --> |
| 2692 | |
| 2693 | </div><!-- end doc-content --> |
| 2694 | |
| 2695 | </div> <!-- end body-content --> |
| 2696 | |
| 2697 | |
| 2698 | |
| 2699 | |
| 2700 | |
| 2701 | |
| 2702 | </body> |
| 2703 | </html> |