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>UiSelector | 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">UiSelector</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="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="selected 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 | <div class="sum-details-links"> |
| 619 | |
| 620 | Summary: |
| 621 | |
| 622 | |
| 623 | |
| 624 | |
| 625 | |
| 626 | |
| 627 | |
| 628 | |
| 629 | |
| 630 | <a href="#pubctors">Ctors</a> |
| 631 | |
| 632 | |
| 633 | |
| 634 | |
| 635 | | <a href="#pubmethods">Methods</a> |
| 636 | |
| 637 | |
| 638 | |
| 639 | | <a href="#promethods">Protected Methods</a> |
| 640 | |
| 641 | |
| 642 | |
| 643 | | <a href="#inhmethods">Inherited Methods</a> |
| 644 | |
| 645 | | <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> |
| 646 | |
| 647 | </div><!-- end sum-details-links --> |
| 648 | <div class="api-level"> |
| 649 | |
| 650 | |
| 651 | |
| 652 | |
| 653 | </div> |
| 654 | </div><!-- end api-info-block --> |
| 655 | |
| 656 | |
| 657 | <!-- ======== START OF CLASS DATA ======== --> |
| 658 | |
| 659 | <div id="jd-header"> |
| 660 | public |
| 661 | |
| 662 | |
| 663 | |
| 664 | class |
| 665 | <h1 itemprop="name">UiSelector</h1> |
| 666 | |
| 667 | |
| 668 | |
| 669 | |
| 670 | extends Object<br/> |
| 671 | |
| 672 | |
| 673 | |
| 674 | |
| 675 | |
| 676 | |
| 677 | |
| 678 | |
| 679 | |
| 680 | |
| 681 | |
| 682 | |
| 683 | </div><!-- end header --> |
| 684 | |
| 685 | <div id="naMessage"></div> |
| 686 | |
| 687 | <div id="jd-content" class="api apilevel-"> |
| 688 | <table class="jd-inheritance-table"> |
| 689 | |
| 690 | |
| 691 | <tr> |
| 692 | |
| 693 | <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td> |
| 694 | </tr> |
| 695 | |
| 696 | |
| 697 | <tr> |
| 698 | |
| 699 | <td class="jd-inheritance-space"> ↳</td> |
| 700 | |
| 701 | <td colspan="1" class="jd-inheritance-class-cell">android.support.test.uiautomator.UiSelector</td> |
| 702 | </tr> |
| 703 | |
| 704 | |
| 705 | </table> |
| 706 | |
| 707 | |
| 708 | |
| 709 | |
| 710 | |
| 711 | |
| 712 | |
| 713 | <div class="jd-descr"> |
| 714 | |
| 715 | |
| 716 | <h2>Class Overview</h2> |
| 717 | <p itemprop="articleBody">Specifies the elements in the layout hierarchy for tests to target, filtered |
| 718 | by properties such as text value, content-description, class name, and state |
| 719 | information. You can also target an element by its location in a layout |
| 720 | hierarchy.</p> |
| 721 | |
| 722 | |
| 723 | |
| 724 | |
| 725 | |
| 726 | </div><!-- jd-descr --> |
| 727 | |
| 728 | |
| 729 | |
| 730 | |
| 731 | |
| 732 | |
| 733 | |
| 734 | |
| 735 | |
| 736 | |
| 737 | |
| 738 | |
| 739 | |
| 740 | |
| 741 | |
| 742 | |
| 743 | <div class="jd-descr"> |
| 744 | |
| 745 | |
| 746 | <h2>Summary</h2> |
| 747 | |
| 748 | |
| 749 | |
| 750 | |
| 751 | |
| 752 | |
| 753 | |
| 754 | |
| 755 | |
| 756 | |
| 757 | |
| 758 | |
| 759 | |
| 760 | |
| 761 | |
| 762 | |
| 763 | |
| 764 | |
| 765 | |
| 766 | |
| 767 | |
| 768 | |
| 769 | |
| 770 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| 771 | <table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr> |
| 772 | |
| 773 | |
| 774 | |
| 775 | |
| 776 | <tr class="alt-color api apilevel-" > |
| 777 | <td class="jd-typecol"><nobr> |
| 778 | |
| 779 | |
| 780 | |
| 781 | |
| 782 | |
| 783 | </nobr> |
| 784 | </td> |
| 785 | <td class="jd-linkcol" width="100%"><nobr> |
| 786 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#UiSelector()">UiSelector</a></span>()</nobr> |
| 787 | |
| 788 | </td></tr> |
| 789 | |
| 790 | |
| 791 | |
| 792 | </table> |
| 793 | |
| 794 | |
| 795 | |
| 796 | |
| 797 | |
| 798 | |
| 799 | <!-- ========== METHOD SUMMARY =========== --> |
| 800 | <table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr> |
| 801 | |
| 802 | |
| 803 | |
| 804 | |
| 805 | <tr class="alt-color api apilevel-" > |
| 806 | <td class="jd-typecol"><nobr> |
| 807 | |
| 808 | |
| 809 | |
| 810 | |
| 811 | |
| 812 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 813 | </td> |
| 814 | <td class="jd-linkcol" width="100%"><nobr> |
| 815 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#checkable(boolean)">checkable</a></span>(boolean val)</nobr> |
| 816 | |
| 817 | <div class="jd-descrdiv"> |
| 818 | Set the search criteria to match widgets that are checkable. |
| 819 | |
| 820 | |
| 821 | |
| 822 | </div> |
| 823 | |
| 824 | </td></tr> |
| 825 | |
| 826 | |
| 827 | |
| 828 | <tr class=" api apilevel-" > |
| 829 | <td class="jd-typecol"><nobr> |
| 830 | |
| 831 | |
| 832 | |
| 833 | |
| 834 | |
| 835 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 836 | </td> |
| 837 | <td class="jd-linkcol" width="100%"><nobr> |
| 838 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#checked(boolean)">checked</a></span>(boolean val)</nobr> |
| 839 | |
| 840 | <div class="jd-descrdiv"> |
| 841 | Set the search criteria to match widgets that |
| 842 | are currently checked (usually for checkboxes). |
| 843 | |
| 844 | |
| 845 | |
| 846 | </div> |
| 847 | |
| 848 | </td></tr> |
| 849 | |
| 850 | |
| 851 | |
| 852 | <tr class="alt-color api apilevel-" > |
| 853 | <td class="jd-typecol"><nobr> |
| 854 | |
| 855 | |
| 856 | |
| 857 | |
| 858 | |
| 859 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 860 | </td> |
| 861 | <td class="jd-linkcol" width="100%"><nobr> |
| 862 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#childSelector(android.support.test.uiautomator.UiSelector)">childSelector</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</nobr> |
| 863 | |
| 864 | <div class="jd-descrdiv"> |
| 865 | Adds a child UiSelector criteria to this selector. |
| 866 | |
| 867 | |
| 868 | |
| 869 | </div> |
| 870 | |
| 871 | </td></tr> |
| 872 | |
| 873 | |
| 874 | |
| 875 | <tr class=" api apilevel-" > |
| 876 | <td class="jd-typecol"><nobr> |
| 877 | |
| 878 | |
| 879 | |
| 880 | |
| 881 | |
| 882 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 883 | </td> |
| 884 | <td class="jd-linkcol" width="100%"><nobr> |
| 885 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#className(java.lang.String)">className</a></span>(String className)</nobr> |
| 886 | |
| 887 | <div class="jd-descrdiv"> |
| 888 | Set the search criteria to match the class property |
| 889 | for a widget (for example, "android.widget.Button"). |
| 890 | |
| 891 | |
| 892 | |
| 893 | </div> |
| 894 | |
| 895 | </td></tr> |
| 896 | |
| 897 | |
| 898 | |
| 899 | <tr class="alt-color api apilevel-" > |
| 900 | <td class="jd-typecol"><nobr> |
| 901 | |
| 902 | |
| 903 | |
| 904 | |
| 905 | <T> |
| 906 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 907 | </td> |
| 908 | <td class="jd-linkcol" width="100%"><nobr> |
| 909 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#className(java.lang.Class<T>)">className</a></span>(Class<T> type)</nobr> |
| 910 | |
| 911 | <div class="jd-descrdiv"> |
| 912 | Set the search criteria to match the class property |
| 913 | for a widget (for example, "android.widget.Button"). |
| 914 | |
| 915 | |
| 916 | |
| 917 | </div> |
| 918 | |
| 919 | </td></tr> |
| 920 | |
| 921 | |
| 922 | |
| 923 | <tr class=" api apilevel-" > |
| 924 | <td class="jd-typecol"><nobr> |
| 925 | |
| 926 | |
| 927 | |
| 928 | |
| 929 | |
| 930 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 931 | </td> |
| 932 | <td class="jd-linkcol" width="100%"><nobr> |
| 933 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#classNameMatches(java.lang.String)">classNameMatches</a></span>(String regex)</nobr> |
| 934 | |
| 935 | <div class="jd-descrdiv"> |
| 936 | Set the search criteria to match the class property |
| 937 | for a widget, using a regular expression. |
| 938 | |
| 939 | |
| 940 | |
| 941 | </div> |
| 942 | |
| 943 | </td></tr> |
| 944 | |
| 945 | |
| 946 | |
| 947 | <tr class="alt-color api apilevel-" > |
| 948 | <td class="jd-typecol"><nobr> |
| 949 | |
| 950 | |
| 951 | |
| 952 | |
| 953 | |
| 954 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 955 | </td> |
| 956 | <td class="jd-linkcol" width="100%"><nobr> |
| 957 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#clickable(boolean)">clickable</a></span>(boolean val)</nobr> |
| 958 | |
| 959 | <div class="jd-descrdiv"> |
| 960 | Set the search criteria to match widgets that are clickable. |
| 961 | |
| 962 | |
| 963 | |
| 964 | </div> |
| 965 | |
| 966 | </td></tr> |
| 967 | |
| 968 | |
| 969 | |
| 970 | <tr class=" api apilevel-" > |
| 971 | <td class="jd-typecol"><nobr> |
| 972 | |
| 973 | |
| 974 | |
| 975 | |
| 976 | |
| 977 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 978 | </td> |
| 979 | <td class="jd-linkcol" width="100%"><nobr> |
| 980 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#description(java.lang.String)">description</a></span>(String desc)</nobr> |
| 981 | |
| 982 | <div class="jd-descrdiv"> |
| 983 | Set the search criteria to match the content-description |
| 984 | property for a widget. |
| 985 | |
| 986 | |
| 987 | |
| 988 | </div> |
| 989 | |
| 990 | </td></tr> |
| 991 | |
| 992 | |
| 993 | |
| 994 | <tr class="alt-color api apilevel-" > |
| 995 | <td class="jd-typecol"><nobr> |
| 996 | |
| 997 | |
| 998 | |
| 999 | |
| 1000 | |
| 1001 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1002 | </td> |
| 1003 | <td class="jd-linkcol" width="100%"><nobr> |
| 1004 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#descriptionContains(java.lang.String)">descriptionContains</a></span>(String desc)</nobr> |
| 1005 | |
| 1006 | <div class="jd-descrdiv"> |
| 1007 | Set the search criteria to match the content-description |
| 1008 | property for a widget. |
| 1009 | |
| 1010 | |
| 1011 | |
| 1012 | </div> |
| 1013 | |
| 1014 | </td></tr> |
| 1015 | |
| 1016 | |
| 1017 | |
| 1018 | <tr class=" api apilevel-" > |
| 1019 | <td class="jd-typecol"><nobr> |
| 1020 | |
| 1021 | |
| 1022 | |
| 1023 | |
| 1024 | |
| 1025 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1026 | </td> |
| 1027 | <td class="jd-linkcol" width="100%"><nobr> |
| 1028 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#descriptionMatches(java.lang.String)">descriptionMatches</a></span>(String regex)</nobr> |
| 1029 | |
| 1030 | <div class="jd-descrdiv"> |
| 1031 | Set the search criteria to match the content-description |
| 1032 | property for a widget. |
| 1033 | |
| 1034 | |
| 1035 | |
| 1036 | </div> |
| 1037 | |
| 1038 | </td></tr> |
| 1039 | |
| 1040 | |
| 1041 | |
| 1042 | <tr class="alt-color api apilevel-" > |
| 1043 | <td class="jd-typecol"><nobr> |
| 1044 | |
| 1045 | |
| 1046 | |
| 1047 | |
| 1048 | |
| 1049 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1050 | </td> |
| 1051 | <td class="jd-linkcol" width="100%"><nobr> |
| 1052 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#descriptionStartsWith(java.lang.String)">descriptionStartsWith</a></span>(String desc)</nobr> |
| 1053 | |
| 1054 | <div class="jd-descrdiv"> |
| 1055 | Set the search criteria to match the content-description |
| 1056 | property for a widget. |
| 1057 | |
| 1058 | |
| 1059 | |
| 1060 | </div> |
| 1061 | |
| 1062 | </td></tr> |
| 1063 | |
| 1064 | |
| 1065 | |
| 1066 | <tr class=" api apilevel-" > |
| 1067 | <td class="jd-typecol"><nobr> |
| 1068 | |
| 1069 | |
| 1070 | |
| 1071 | |
| 1072 | |
| 1073 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1074 | </td> |
| 1075 | <td class="jd-linkcol" width="100%"><nobr> |
| 1076 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#enabled(boolean)">enabled</a></span>(boolean val)</nobr> |
| 1077 | |
| 1078 | <div class="jd-descrdiv"> |
| 1079 | Set the search criteria to match widgets that are enabled. |
| 1080 | |
| 1081 | |
| 1082 | |
| 1083 | </div> |
| 1084 | |
| 1085 | </td></tr> |
| 1086 | |
| 1087 | |
| 1088 | |
| 1089 | <tr class="alt-color api apilevel-" > |
| 1090 | <td class="jd-typecol"><nobr> |
| 1091 | |
| 1092 | |
| 1093 | |
| 1094 | |
| 1095 | |
| 1096 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1097 | </td> |
| 1098 | <td class="jd-linkcol" width="100%"><nobr> |
| 1099 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#focusable(boolean)">focusable</a></span>(boolean val)</nobr> |
| 1100 | |
| 1101 | <div class="jd-descrdiv"> |
| 1102 | Set the search criteria to match widgets that are focusable. |
| 1103 | |
| 1104 | |
| 1105 | |
| 1106 | </div> |
| 1107 | |
| 1108 | </td></tr> |
| 1109 | |
| 1110 | |
| 1111 | |
| 1112 | <tr class=" api apilevel-" > |
| 1113 | <td class="jd-typecol"><nobr> |
| 1114 | |
| 1115 | |
| 1116 | |
| 1117 | |
| 1118 | |
| 1119 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1120 | </td> |
| 1121 | <td class="jd-linkcol" width="100%"><nobr> |
| 1122 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#focused(boolean)">focused</a></span>(boolean val)</nobr> |
| 1123 | |
| 1124 | <div class="jd-descrdiv"> |
| 1125 | Set the search criteria to match widgets that have focus. |
| 1126 | |
| 1127 | |
| 1128 | |
| 1129 | </div> |
| 1130 | |
| 1131 | </td></tr> |
| 1132 | |
| 1133 | |
| 1134 | |
| 1135 | <tr class="alt-color api apilevel-" > |
| 1136 | <td class="jd-typecol"><nobr> |
| 1137 | |
| 1138 | |
| 1139 | |
| 1140 | |
| 1141 | |
| 1142 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1143 | </td> |
| 1144 | <td class="jd-linkcol" width="100%"><nobr> |
| 1145 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#fromParent(android.support.test.uiautomator.UiSelector)">fromParent</a></span>(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</nobr> |
| 1146 | |
| 1147 | <div class="jd-descrdiv"> |
| 1148 | Adds a child UiSelector criteria to this selector which is used to |
| 1149 | start search from the parent widget. |
| 1150 | |
| 1151 | |
| 1152 | |
| 1153 | </div> |
| 1154 | |
| 1155 | </td></tr> |
| 1156 | |
| 1157 | |
| 1158 | |
| 1159 | <tr class=" api apilevel-" > |
| 1160 | <td class="jd-typecol"><nobr> |
| 1161 | |
| 1162 | |
| 1163 | |
| 1164 | |
| 1165 | |
| 1166 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1167 | </td> |
| 1168 | <td class="jd-linkcol" width="100%"><nobr> |
| 1169 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#index(int)">index</a></span>(int index)</nobr> |
| 1170 | |
| 1171 | <div class="jd-descrdiv"> |
| 1172 | Set the search criteria to match the widget by its node |
| 1173 | index in the layout hierarchy. |
| 1174 | |
| 1175 | |
| 1176 | |
| 1177 | </div> |
| 1178 | |
| 1179 | </td></tr> |
| 1180 | |
| 1181 | |
| 1182 | |
| 1183 | <tr class="alt-color api apilevel-" > |
| 1184 | <td class="jd-typecol"><nobr> |
| 1185 | |
| 1186 | |
| 1187 | |
| 1188 | |
| 1189 | |
| 1190 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1191 | </td> |
| 1192 | <td class="jd-linkcol" width="100%"><nobr> |
| 1193 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#instance(int)">instance</a></span>(int instance)</nobr> |
| 1194 | |
| 1195 | <div class="jd-descrdiv"> |
| 1196 | Set the search criteria to match the |
| 1197 | widget by its instance number. |
| 1198 | |
| 1199 | |
| 1200 | |
| 1201 | </div> |
| 1202 | |
| 1203 | </td></tr> |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | <tr class=" api apilevel-" > |
| 1208 | <td class="jd-typecol"><nobr> |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | |
| 1214 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1215 | </td> |
| 1216 | <td class="jd-linkcol" width="100%"><nobr> |
| 1217 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#longClickable(boolean)">longClickable</a></span>(boolean val)</nobr> |
| 1218 | |
| 1219 | <div class="jd-descrdiv"> |
| 1220 | Set the search criteria to match widgets that are long-clickable. |
| 1221 | |
| 1222 | |
| 1223 | |
| 1224 | </div> |
| 1225 | |
| 1226 | </td></tr> |
| 1227 | |
| 1228 | |
| 1229 | |
| 1230 | <tr class="alt-color api apilevel-" > |
| 1231 | <td class="jd-typecol"><nobr> |
| 1232 | |
| 1233 | |
| 1234 | |
| 1235 | |
| 1236 | |
| 1237 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1238 | </td> |
| 1239 | <td class="jd-linkcol" width="100%"><nobr> |
| 1240 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#packageName(java.lang.String)">packageName</a></span>(String name)</nobr> |
| 1241 | |
| 1242 | <div class="jd-descrdiv"> |
| 1243 | Set the search criteria to match the package name |
| 1244 | of the application that contains the widget. |
| 1245 | |
| 1246 | |
| 1247 | |
| 1248 | </div> |
| 1249 | |
| 1250 | </td></tr> |
| 1251 | |
| 1252 | |
| 1253 | |
| 1254 | <tr class=" api apilevel-" > |
| 1255 | <td class="jd-typecol"><nobr> |
| 1256 | |
| 1257 | |
| 1258 | |
| 1259 | |
| 1260 | |
| 1261 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1262 | </td> |
| 1263 | <td class="jd-linkcol" width="100%"><nobr> |
| 1264 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#packageNameMatches(java.lang.String)">packageNameMatches</a></span>(String regex)</nobr> |
| 1265 | |
| 1266 | <div class="jd-descrdiv"> |
| 1267 | Set the search criteria to match the package name |
| 1268 | of the application that contains the widget. |
| 1269 | |
| 1270 | |
| 1271 | |
| 1272 | </div> |
| 1273 | |
| 1274 | </td></tr> |
| 1275 | |
| 1276 | |
| 1277 | |
| 1278 | <tr class="alt-color api apilevel-" > |
| 1279 | <td class="jd-typecol"><nobr> |
| 1280 | |
| 1281 | |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1286 | </td> |
| 1287 | <td class="jd-linkcol" width="100%"><nobr> |
| 1288 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#resourceId(java.lang.String)">resourceId</a></span>(String id)</nobr> |
| 1289 | |
| 1290 | <div class="jd-descrdiv"> |
| 1291 | Set the search criteria to match the given resource ID. |
| 1292 | |
| 1293 | |
| 1294 | |
| 1295 | </div> |
| 1296 | |
| 1297 | </td></tr> |
| 1298 | |
| 1299 | |
| 1300 | |
| 1301 | <tr class=" api apilevel-" > |
| 1302 | <td class="jd-typecol"><nobr> |
| 1303 | |
| 1304 | |
| 1305 | |
| 1306 | |
| 1307 | |
| 1308 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1309 | </td> |
| 1310 | <td class="jd-linkcol" width="100%"><nobr> |
| 1311 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#resourceIdMatches(java.lang.String)">resourceIdMatches</a></span>(String regex)</nobr> |
| 1312 | |
| 1313 | <div class="jd-descrdiv"> |
| 1314 | Set the search criteria to match the resource ID |
| 1315 | of the widget, using a regular expression. |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | </div> |
| 1320 | |
| 1321 | </td></tr> |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | <tr class="alt-color api apilevel-" > |
| 1326 | <td class="jd-typecol"><nobr> |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1333 | </td> |
| 1334 | <td class="jd-linkcol" width="100%"><nobr> |
| 1335 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#scrollable(boolean)">scrollable</a></span>(boolean val)</nobr> |
| 1336 | |
| 1337 | <div class="jd-descrdiv"> |
| 1338 | Set the search criteria to match widgets that are scrollable. |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | </div> |
| 1343 | |
| 1344 | </td></tr> |
| 1345 | |
| 1346 | |
| 1347 | |
| 1348 | <tr class=" api apilevel-" > |
| 1349 | <td class="jd-typecol"><nobr> |
| 1350 | |
| 1351 | |
| 1352 | |
| 1353 | |
| 1354 | |
| 1355 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1356 | </td> |
| 1357 | <td class="jd-linkcol" width="100%"><nobr> |
| 1358 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#selected(boolean)">selected</a></span>(boolean val)</nobr> |
| 1359 | |
| 1360 | <div class="jd-descrdiv"> |
| 1361 | Set the search criteria to match widgets that |
| 1362 | are currently selected. |
| 1363 | |
| 1364 | |
| 1365 | |
| 1366 | </div> |
| 1367 | |
| 1368 | </td></tr> |
| 1369 | |
| 1370 | |
| 1371 | |
| 1372 | <tr class="alt-color api apilevel-" > |
| 1373 | <td class="jd-typecol"><nobr> |
| 1374 | |
| 1375 | |
| 1376 | |
| 1377 | |
| 1378 | |
| 1379 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1380 | </td> |
| 1381 | <td class="jd-linkcol" width="100%"><nobr> |
| 1382 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#text(java.lang.String)">text</a></span>(String text)</nobr> |
| 1383 | |
| 1384 | <div class="jd-descrdiv"> |
| 1385 | Set the search criteria to match the visible text displayed |
| 1386 | in a widget (for example, the text label to launch an app). |
| 1387 | |
| 1388 | |
| 1389 | |
| 1390 | </div> |
| 1391 | |
| 1392 | </td></tr> |
| 1393 | |
| 1394 | |
| 1395 | |
| 1396 | <tr class=" api apilevel-" > |
| 1397 | <td class="jd-typecol"><nobr> |
| 1398 | |
| 1399 | |
| 1400 | |
| 1401 | |
| 1402 | |
| 1403 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1404 | </td> |
| 1405 | <td class="jd-linkcol" width="100%"><nobr> |
| 1406 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#textContains(java.lang.String)">textContains</a></span>(String text)</nobr> |
| 1407 | |
| 1408 | <div class="jd-descrdiv"> |
| 1409 | Set the search criteria to match the visible text in a widget |
| 1410 | where the visible text must contain the string in your input argument. |
| 1411 | |
| 1412 | |
| 1413 | |
| 1414 | </div> |
| 1415 | |
| 1416 | </td></tr> |
| 1417 | |
| 1418 | |
| 1419 | |
| 1420 | <tr class="alt-color api apilevel-" > |
| 1421 | <td class="jd-typecol"><nobr> |
| 1422 | |
| 1423 | |
| 1424 | |
| 1425 | |
| 1426 | |
| 1427 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1428 | </td> |
| 1429 | <td class="jd-linkcol" width="100%"><nobr> |
| 1430 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#textMatches(java.lang.String)">textMatches</a></span>(String regex)</nobr> |
| 1431 | |
| 1432 | <div class="jd-descrdiv"> |
| 1433 | Set the search criteria to match the visible text displayed in a layout |
| 1434 | element, using a regular expression. |
| 1435 | |
| 1436 | |
| 1437 | |
| 1438 | </div> |
| 1439 | |
| 1440 | </td></tr> |
| 1441 | |
| 1442 | |
| 1443 | |
| 1444 | <tr class=" api apilevel-" > |
| 1445 | <td class="jd-typecol"><nobr> |
| 1446 | |
| 1447 | |
| 1448 | |
| 1449 | |
| 1450 | |
| 1451 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1452 | </td> |
| 1453 | <td class="jd-linkcol" width="100%"><nobr> |
| 1454 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#textStartsWith(java.lang.String)">textStartsWith</a></span>(String text)</nobr> |
| 1455 | |
| 1456 | <div class="jd-descrdiv"> |
| 1457 | Set the search criteria to match visible text in a widget that is |
| 1458 | prefixed by the text parameter. |
| 1459 | |
| 1460 | |
| 1461 | |
| 1462 | </div> |
| 1463 | |
| 1464 | </td></tr> |
| 1465 | |
| 1466 | |
| 1467 | |
| 1468 | <tr class="alt-color api apilevel-" > |
| 1469 | <td class="jd-typecol"><nobr> |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | String</nobr> |
| 1476 | </td> |
| 1477 | <td class="jd-linkcol" width="100%"><nobr> |
| 1478 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#toString()">toString</a></span>()</nobr> |
| 1479 | |
| 1480 | </td></tr> |
| 1481 | |
| 1482 | |
| 1483 | |
| 1484 | </table> |
| 1485 | |
| 1486 | |
| 1487 | |
| 1488 | |
| 1489 | <!-- ========== METHOD SUMMARY =========== --> |
| 1490 | <table id="promethods" class="jd-sumtable"><tr><th colspan="12">Protected Methods</th></tr> |
| 1491 | |
| 1492 | |
| 1493 | |
| 1494 | |
| 1495 | <tr class="alt-color api apilevel-" > |
| 1496 | <td class="jd-typecol"><nobr> |
| 1497 | |
| 1498 | |
| 1499 | |
| 1500 | |
| 1501 | |
| 1502 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr> |
| 1503 | </td> |
| 1504 | <td class="jd-linkcol" width="100%"><nobr> |
| 1505 | <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#cloneSelector()">cloneSelector</a></span>()</nobr> |
| 1506 | |
| 1507 | </td></tr> |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | </table> |
| 1512 | |
| 1513 | |
| 1514 | |
| 1515 | |
| 1516 | |
| 1517 | <!-- ========== METHOD SUMMARY =========== --> |
| 1518 | <table id="inhmethods" class="jd-sumtable"><tr><th> |
| 1519 | <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a> |
| 1520 | <div style="clear:left;">Inherited Methods</div></th></tr> |
| 1521 | |
| 1522 | |
| 1523 | <tr class="api apilevel-" > |
| 1524 | <td colspan="12"> |
| 1525 | <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" |
| 1526 | ><img id="inherited-methods-java.lang.Object-trigger" |
| 1527 | src="../../../../../assets/images/triangle-closed.png" |
| 1528 | class="jd-expando-trigger-img" /></a> |
| 1529 | From class |
| 1530 | |
| 1531 | java.lang.Object |
| 1532 | |
| 1533 | <div id="inherited-methods-java.lang.Object"> |
| 1534 | <div id="inherited-methods-java.lang.Object-list" |
| 1535 | class="jd-inheritedlinks"> |
| 1536 | </div> |
| 1537 | <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> |
| 1538 | <table class="jd-sumtable-expando"> |
| 1539 | |
| 1540 | |
| 1541 | |
| 1542 | |
| 1543 | <tr class="alt-color api apilevel-" > |
| 1544 | <td class="jd-typecol"><nobr> |
| 1545 | |
| 1546 | |
| 1547 | |
| 1548 | |
| 1549 | |
| 1550 | Object</nobr> |
| 1551 | </td> |
| 1552 | <td class="jd-linkcol" width="100%"><nobr> |
| 1553 | <span class="sympad">clone</span>()</nobr> |
| 1554 | |
| 1555 | </td></tr> |
| 1556 | |
| 1557 | |
| 1558 | |
| 1559 | <tr class=" api apilevel-" > |
| 1560 | <td class="jd-typecol"><nobr> |
| 1561 | |
| 1562 | |
| 1563 | |
| 1564 | |
| 1565 | |
| 1566 | boolean</nobr> |
| 1567 | </td> |
| 1568 | <td class="jd-linkcol" width="100%"><nobr> |
| 1569 | <span class="sympad">equals</span>(Object arg0)</nobr> |
| 1570 | |
| 1571 | </td></tr> |
| 1572 | |
| 1573 | |
| 1574 | |
| 1575 | <tr class="alt-color api apilevel-" > |
| 1576 | <td class="jd-typecol"><nobr> |
| 1577 | |
| 1578 | |
| 1579 | |
| 1580 | |
| 1581 | |
| 1582 | void</nobr> |
| 1583 | </td> |
| 1584 | <td class="jd-linkcol" width="100%"><nobr> |
| 1585 | <span class="sympad">finalize</span>()</nobr> |
| 1586 | |
| 1587 | </td></tr> |
| 1588 | |
| 1589 | |
| 1590 | |
| 1591 | <tr class=" api apilevel-" > |
| 1592 | <td class="jd-typecol"><nobr> |
| 1593 | |
| 1594 | |
| 1595 | final |
| 1596 | |
| 1597 | |
| 1598 | Class<?></nobr> |
| 1599 | </td> |
| 1600 | <td class="jd-linkcol" width="100%"><nobr> |
| 1601 | <span class="sympad">getClass</span>()</nobr> |
| 1602 | |
| 1603 | </td></tr> |
| 1604 | |
| 1605 | |
| 1606 | |
| 1607 | <tr class="alt-color api apilevel-" > |
| 1608 | <td class="jd-typecol"><nobr> |
| 1609 | |
| 1610 | |
| 1611 | |
| 1612 | |
| 1613 | |
| 1614 | int</nobr> |
| 1615 | </td> |
| 1616 | <td class="jd-linkcol" width="100%"><nobr> |
| 1617 | <span class="sympad">hashCode</span>()</nobr> |
| 1618 | |
| 1619 | </td></tr> |
| 1620 | |
| 1621 | |
| 1622 | |
| 1623 | <tr class=" api apilevel-" > |
| 1624 | <td class="jd-typecol"><nobr> |
| 1625 | |
| 1626 | |
| 1627 | final |
| 1628 | |
| 1629 | |
| 1630 | void</nobr> |
| 1631 | </td> |
| 1632 | <td class="jd-linkcol" width="100%"><nobr> |
| 1633 | <span class="sympad">notify</span>()</nobr> |
| 1634 | |
| 1635 | </td></tr> |
| 1636 | |
| 1637 | |
| 1638 | |
| 1639 | <tr class="alt-color api apilevel-" > |
| 1640 | <td class="jd-typecol"><nobr> |
| 1641 | |
| 1642 | |
| 1643 | final |
| 1644 | |
| 1645 | |
| 1646 | void</nobr> |
| 1647 | </td> |
| 1648 | <td class="jd-linkcol" width="100%"><nobr> |
| 1649 | <span class="sympad">notifyAll</span>()</nobr> |
| 1650 | |
| 1651 | </td></tr> |
| 1652 | |
| 1653 | |
| 1654 | |
| 1655 | <tr class=" api apilevel-" > |
| 1656 | <td class="jd-typecol"><nobr> |
| 1657 | |
| 1658 | |
| 1659 | |
| 1660 | |
| 1661 | |
| 1662 | String</nobr> |
| 1663 | </td> |
| 1664 | <td class="jd-linkcol" width="100%"><nobr> |
| 1665 | <span class="sympad">toString</span>()</nobr> |
| 1666 | |
| 1667 | </td></tr> |
| 1668 | |
| 1669 | |
| 1670 | |
| 1671 | <tr class="alt-color api apilevel-" > |
| 1672 | <td class="jd-typecol"><nobr> |
| 1673 | |
| 1674 | |
| 1675 | final |
| 1676 | |
| 1677 | |
| 1678 | void</nobr> |
| 1679 | </td> |
| 1680 | <td class="jd-linkcol" width="100%"><nobr> |
| 1681 | <span class="sympad">wait</span>()</nobr> |
| 1682 | |
| 1683 | </td></tr> |
| 1684 | |
| 1685 | |
| 1686 | |
| 1687 | <tr class=" api apilevel-" > |
| 1688 | <td class="jd-typecol"><nobr> |
| 1689 | |
| 1690 | |
| 1691 | final |
| 1692 | |
| 1693 | |
| 1694 | void</nobr> |
| 1695 | </td> |
| 1696 | <td class="jd-linkcol" width="100%"><nobr> |
| 1697 | <span class="sympad">wait</span>(long arg0, int arg1)</nobr> |
| 1698 | |
| 1699 | </td></tr> |
| 1700 | |
| 1701 | |
| 1702 | |
| 1703 | <tr class="alt-color api apilevel-" > |
| 1704 | <td class="jd-typecol"><nobr> |
| 1705 | |
| 1706 | |
| 1707 | final |
| 1708 | |
| 1709 | |
| 1710 | void</nobr> |
| 1711 | </td> |
| 1712 | <td class="jd-linkcol" width="100%"><nobr> |
| 1713 | <span class="sympad">wait</span>(long arg0)</nobr> |
| 1714 | |
| 1715 | </td></tr> |
| 1716 | |
| 1717 | |
| 1718 | </table> |
| 1719 | </div> |
| 1720 | </div> |
| 1721 | </td></tr> |
| 1722 | |
| 1723 | |
| 1724 | </table> |
| 1725 | |
| 1726 | |
| 1727 | </div><!-- jd-descr (summary) --> |
| 1728 | |
| 1729 | <!-- Details --> |
| 1730 | |
| 1731 | |
| 1732 | |
| 1733 | |
| 1734 | |
| 1735 | |
| 1736 | |
| 1737 | |
| 1738 | <!-- XML Attributes --> |
| 1739 | |
| 1740 | |
| 1741 | <!-- Enum Values --> |
| 1742 | |
| 1743 | |
| 1744 | <!-- Constants --> |
| 1745 | |
| 1746 | |
| 1747 | <!-- Fields --> |
| 1748 | |
| 1749 | |
| 1750 | <!-- Public ctors --> |
| 1751 | |
| 1752 | |
| 1753 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 1754 | <h2>Public Constructors</h2> |
| 1755 | |
| 1756 | |
| 1757 | |
| 1758 | <A NAME="UiSelector()"></A> |
| 1759 | |
| 1760 | <div class="jd-details api apilevel-"> |
| 1761 | <h4 class="jd-details-title"> |
| 1762 | <span class="normal"> |
| 1763 | public |
| 1764 | |
| 1765 | |
| 1766 | |
| 1767 | |
| 1768 | |
| 1769 | </span> |
| 1770 | <span class="sympad">UiSelector</span> |
| 1771 | <span class="normal">()</span> |
| 1772 | </h4> |
| 1773 | <div class="api-level"> |
| 1774 | <div></div> |
| 1775 | |
| 1776 | |
| 1777 | |
| 1778 | </div> |
| 1779 | <div class="jd-details-descr"> |
| 1780 | |
| 1781 | |
| 1782 | |
| 1783 | |
| 1784 | <div class="jd-tagdata jd-tagdescr"><p></p></div> |
| 1785 | |
| 1786 | </div> |
| 1787 | </div> |
| 1788 | |
| 1789 | |
| 1790 | |
| 1791 | |
| 1792 | |
| 1793 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 1794 | <!-- Protected ctors --> |
| 1795 | |
| 1796 | |
| 1797 | |
| 1798 | <!-- ========= METHOD DETAIL ======== --> |
| 1799 | <!-- Public methdos --> |
| 1800 | |
| 1801 | <h2>Public Methods</h2> |
| 1802 | |
| 1803 | |
| 1804 | |
| 1805 | <A NAME="checkable(boolean)"></A> |
| 1806 | |
| 1807 | <div class="jd-details api apilevel-"> |
| 1808 | <h4 class="jd-details-title"> |
| 1809 | <span class="normal"> |
| 1810 | public |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | |
| 1815 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 1816 | </span> |
| 1817 | <span class="sympad">checkable</span> |
| 1818 | <span class="normal">(boolean val)</span> |
| 1819 | </h4> |
| 1820 | <div class="api-level"> |
| 1821 | <div></div> |
| 1822 | |
| 1823 | |
| 1824 | |
| 1825 | </div> |
| 1826 | <div class="jd-details-descr"> |
| 1827 | |
| 1828 | |
| 1829 | |
| 1830 | |
| 1831 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are checkable. |
| 1832 | |
| 1833 | Typically, using this search criteria alone is not useful. |
| 1834 | You should also include additional criteria, such as text, |
| 1835 | content-description, or the class name for a widget. |
| 1836 | |
| 1837 | If no other search criteria is specified, and there is more |
| 1838 | than one matching widget, the first widget in the tree |
| 1839 | is selected.</p></div> |
| 1840 | <div class="jd-tagdata"> |
| 1841 | <h5 class="jd-tagtitle">Parameters</h5> |
| 1842 | <table class="jd-tagtable"> |
| 1843 | <tr> |
| 1844 | <th>val</td> |
| 1845 | <td>Value to match</td> |
| 1846 | </tr> |
| 1847 | </table> |
| 1848 | </div> |
| 1849 | <div class="jd-tagdata"> |
| 1850 | <h5 class="jd-tagtitle">Returns</h5> |
| 1851 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 1852 | </div> |
| 1853 | |
| 1854 | </div> |
| 1855 | </div> |
| 1856 | |
| 1857 | |
| 1858 | <A NAME="checked(boolean)"></A> |
| 1859 | |
| 1860 | <div class="jd-details api apilevel-"> |
| 1861 | <h4 class="jd-details-title"> |
| 1862 | <span class="normal"> |
| 1863 | public |
| 1864 | |
| 1865 | |
| 1866 | |
| 1867 | |
| 1868 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 1869 | </span> |
| 1870 | <span class="sympad">checked</span> |
| 1871 | <span class="normal">(boolean val)</span> |
| 1872 | </h4> |
| 1873 | <div class="api-level"> |
| 1874 | <div></div> |
| 1875 | |
| 1876 | |
| 1877 | |
| 1878 | </div> |
| 1879 | <div class="jd-details-descr"> |
| 1880 | |
| 1881 | |
| 1882 | |
| 1883 | |
| 1884 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that |
| 1885 | are currently checked (usually for checkboxes). |
| 1886 | |
| 1887 | Typically, using this search criteria alone is not useful. |
| 1888 | You should also include additional criteria, such as text, |
| 1889 | content-description, or the class name for a widget. |
| 1890 | |
| 1891 | If no other search criteria is specified, and there is more |
| 1892 | than one matching widget, the first widget in the tree |
| 1893 | is selected.</p></div> |
| 1894 | <div class="jd-tagdata"> |
| 1895 | <h5 class="jd-tagtitle">Parameters</h5> |
| 1896 | <table class="jd-tagtable"> |
| 1897 | <tr> |
| 1898 | <th>val</td> |
| 1899 | <td>Value to match</td> |
| 1900 | </tr> |
| 1901 | </table> |
| 1902 | </div> |
| 1903 | <div class="jd-tagdata"> |
| 1904 | <h5 class="jd-tagtitle">Returns</h5> |
| 1905 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 1906 | </div> |
| 1907 | |
| 1908 | </div> |
| 1909 | </div> |
| 1910 | |
| 1911 | |
| 1912 | <A NAME="childSelector(android.support.test.uiautomator.UiSelector)"></A> |
| 1913 | |
| 1914 | <div class="jd-details api apilevel-"> |
| 1915 | <h4 class="jd-details-title"> |
| 1916 | <span class="normal"> |
| 1917 | public |
| 1918 | |
| 1919 | |
| 1920 | |
| 1921 | |
| 1922 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 1923 | </span> |
| 1924 | <span class="sympad">childSelector</span> |
| 1925 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</span> |
| 1926 | </h4> |
| 1927 | <div class="api-level"> |
| 1928 | <div></div> |
| 1929 | |
| 1930 | |
| 1931 | |
| 1932 | </div> |
| 1933 | <div class="jd-details-descr"> |
| 1934 | |
| 1935 | |
| 1936 | |
| 1937 | |
| 1938 | <div class="jd-tagdata jd-tagdescr"><p>Adds a child UiSelector criteria to this selector. |
| 1939 | |
| 1940 | Use this selector to narrow the search scope to |
| 1941 | child widgets under a specific parent widget.</p></div> |
| 1942 | <div class="jd-tagdata"> |
| 1943 | <h5 class="jd-tagtitle">Returns</h5> |
| 1944 | <ul class="nolist"><li>UiSelector with this added search criterion</li></ul> |
| 1945 | </div> |
| 1946 | |
| 1947 | </div> |
| 1948 | </div> |
| 1949 | |
| 1950 | |
| 1951 | <A NAME="className(java.lang.String)"></A> |
| 1952 | |
| 1953 | <div class="jd-details api apilevel-"> |
| 1954 | <h4 class="jd-details-title"> |
| 1955 | <span class="normal"> |
| 1956 | public |
| 1957 | |
| 1958 | |
| 1959 | |
| 1960 | |
| 1961 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 1962 | </span> |
| 1963 | <span class="sympad">className</span> |
| 1964 | <span class="normal">(String className)</span> |
| 1965 | </h4> |
| 1966 | <div class="api-level"> |
| 1967 | <div></div> |
| 1968 | |
| 1969 | |
| 1970 | |
| 1971 | </div> |
| 1972 | <div class="jd-details-descr"> |
| 1973 | |
| 1974 | |
| 1975 | |
| 1976 | |
| 1977 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the class property |
| 1978 | for a widget (for example, "android.widget.Button").</p></div> |
| 1979 | <div class="jd-tagdata"> |
| 1980 | <h5 class="jd-tagtitle">Parameters</h5> |
| 1981 | <table class="jd-tagtable"> |
| 1982 | <tr> |
| 1983 | <th>className</td> |
| 1984 | <td>Value to match</td> |
| 1985 | </tr> |
| 1986 | </table> |
| 1987 | </div> |
| 1988 | <div class="jd-tagdata"> |
| 1989 | <h5 class="jd-tagtitle">Returns</h5> |
| 1990 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 1991 | </div> |
| 1992 | |
| 1993 | </div> |
| 1994 | </div> |
| 1995 | |
| 1996 | |
| 1997 | <A NAME="className(java.lang.Class<T>)"></A> |
| 1998 | |
| 1999 | <div class="jd-details api apilevel-"> |
| 2000 | <h4 class="jd-details-title"> |
| 2001 | <span class="normal"> |
| 2002 | public |
| 2003 | |
| 2004 | |
| 2005 | |
| 2006 | |
| 2007 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2008 | </span> |
| 2009 | <span class="sympad">className</span> |
| 2010 | <span class="normal">(Class<T> type)</span> |
| 2011 | </h4> |
| 2012 | <div class="api-level"> |
| 2013 | <div></div> |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | </div> |
| 2018 | <div class="jd-details-descr"> |
| 2019 | |
| 2020 | |
| 2021 | |
| 2022 | |
| 2023 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the class property |
| 2024 | for a widget (for example, "android.widget.Button").</p></div> |
| 2025 | <div class="jd-tagdata"> |
| 2026 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2027 | <table class="jd-tagtable"> |
| 2028 | <tr> |
| 2029 | <th>type</td> |
| 2030 | <td>type</td> |
| 2031 | </tr> |
| 2032 | </table> |
| 2033 | </div> |
| 2034 | <div class="jd-tagdata"> |
| 2035 | <h5 class="jd-tagtitle">Returns</h5> |
| 2036 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2037 | </div> |
| 2038 | |
| 2039 | </div> |
| 2040 | </div> |
| 2041 | |
| 2042 | |
| 2043 | <A NAME="classNameMatches(java.lang.String)"></A> |
| 2044 | |
| 2045 | <div class="jd-details api apilevel-"> |
| 2046 | <h4 class="jd-details-title"> |
| 2047 | <span class="normal"> |
| 2048 | public |
| 2049 | |
| 2050 | |
| 2051 | |
| 2052 | |
| 2053 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2054 | </span> |
| 2055 | <span class="sympad">classNameMatches</span> |
| 2056 | <span class="normal">(String regex)</span> |
| 2057 | </h4> |
| 2058 | <div class="api-level"> |
| 2059 | <div></div> |
| 2060 | |
| 2061 | |
| 2062 | |
| 2063 | </div> |
| 2064 | <div class="jd-details-descr"> |
| 2065 | |
| 2066 | |
| 2067 | |
| 2068 | |
| 2069 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the class property |
| 2070 | for a widget, using a regular expression.</p></div> |
| 2071 | <div class="jd-tagdata"> |
| 2072 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2073 | <table class="jd-tagtable"> |
| 2074 | <tr> |
| 2075 | <th>regex</td> |
| 2076 | <td>a regular expression</td> |
| 2077 | </tr> |
| 2078 | </table> |
| 2079 | </div> |
| 2080 | <div class="jd-tagdata"> |
| 2081 | <h5 class="jd-tagtitle">Returns</h5> |
| 2082 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2083 | </div> |
| 2084 | |
| 2085 | </div> |
| 2086 | </div> |
| 2087 | |
| 2088 | |
| 2089 | <A NAME="clickable(boolean)"></A> |
| 2090 | |
| 2091 | <div class="jd-details api apilevel-"> |
| 2092 | <h4 class="jd-details-title"> |
| 2093 | <span class="normal"> |
| 2094 | public |
| 2095 | |
| 2096 | |
| 2097 | |
| 2098 | |
| 2099 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2100 | </span> |
| 2101 | <span class="sympad">clickable</span> |
| 2102 | <span class="normal">(boolean val)</span> |
| 2103 | </h4> |
| 2104 | <div class="api-level"> |
| 2105 | <div></div> |
| 2106 | |
| 2107 | |
| 2108 | |
| 2109 | </div> |
| 2110 | <div class="jd-details-descr"> |
| 2111 | |
| 2112 | |
| 2113 | |
| 2114 | |
| 2115 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are clickable. |
| 2116 | |
| 2117 | Typically, using this search criteria alone is not useful. |
| 2118 | You should also include additional criteria, such as text, |
| 2119 | content-description, or the class name for a widget. |
| 2120 | |
| 2121 | If no other search criteria is specified, and there is more |
| 2122 | than one matching widget, the first widget in the tree |
| 2123 | is selected.</p></div> |
| 2124 | <div class="jd-tagdata"> |
| 2125 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2126 | <table class="jd-tagtable"> |
| 2127 | <tr> |
| 2128 | <th>val</td> |
| 2129 | <td>Value to match</td> |
| 2130 | </tr> |
| 2131 | </table> |
| 2132 | </div> |
| 2133 | <div class="jd-tagdata"> |
| 2134 | <h5 class="jd-tagtitle">Returns</h5> |
| 2135 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2136 | </div> |
| 2137 | |
| 2138 | </div> |
| 2139 | </div> |
| 2140 | |
| 2141 | |
| 2142 | <A NAME="description(java.lang.String)"></A> |
| 2143 | |
| 2144 | <div class="jd-details api apilevel-"> |
| 2145 | <h4 class="jd-details-title"> |
| 2146 | <span class="normal"> |
| 2147 | public |
| 2148 | |
| 2149 | |
| 2150 | |
| 2151 | |
| 2152 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2153 | </span> |
| 2154 | <span class="sympad">description</span> |
| 2155 | <span class="normal">(String desc)</span> |
| 2156 | </h4> |
| 2157 | <div class="api-level"> |
| 2158 | <div></div> |
| 2159 | |
| 2160 | |
| 2161 | |
| 2162 | </div> |
| 2163 | <div class="jd-details-descr"> |
| 2164 | |
| 2165 | |
| 2166 | |
| 2167 | |
| 2168 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description |
| 2169 | property for a widget. |
| 2170 | |
| 2171 | The content-description is typically used |
| 2172 | by the Android Accessibility framework to |
| 2173 | provide an audio prompt for the widget when |
| 2174 | the widget is selected. The content-description |
| 2175 | for the widget must match exactly |
| 2176 | with the string in your input argument. |
| 2177 | |
| 2178 | Matching is case-sensitive.</p></div> |
| 2179 | <div class="jd-tagdata"> |
| 2180 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2181 | <table class="jd-tagtable"> |
| 2182 | <tr> |
| 2183 | <th>desc</td> |
| 2184 | <td>Value to match</td> |
| 2185 | </tr> |
| 2186 | </table> |
| 2187 | </div> |
| 2188 | <div class="jd-tagdata"> |
| 2189 | <h5 class="jd-tagtitle">Returns</h5> |
| 2190 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2191 | </div> |
| 2192 | |
| 2193 | </div> |
| 2194 | </div> |
| 2195 | |
| 2196 | |
| 2197 | <A NAME="descriptionContains(java.lang.String)"></A> |
| 2198 | |
| 2199 | <div class="jd-details api apilevel-"> |
| 2200 | <h4 class="jd-details-title"> |
| 2201 | <span class="normal"> |
| 2202 | public |
| 2203 | |
| 2204 | |
| 2205 | |
| 2206 | |
| 2207 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2208 | </span> |
| 2209 | <span class="sympad">descriptionContains</span> |
| 2210 | <span class="normal">(String desc)</span> |
| 2211 | </h4> |
| 2212 | <div class="api-level"> |
| 2213 | <div></div> |
| 2214 | |
| 2215 | |
| 2216 | |
| 2217 | </div> |
| 2218 | <div class="jd-details-descr"> |
| 2219 | |
| 2220 | |
| 2221 | |
| 2222 | |
| 2223 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description |
| 2224 | property for a widget. |
| 2225 | |
| 2226 | The content-description is typically used |
| 2227 | by the Android Accessibility framework to |
| 2228 | provide an audio prompt for the widget when |
| 2229 | the widget is selected. The content-description |
| 2230 | for the widget must contain |
| 2231 | the string in your input argument. |
| 2232 | |
| 2233 | Matching is case-insensitive.</p></div> |
| 2234 | <div class="jd-tagdata"> |
| 2235 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2236 | <table class="jd-tagtable"> |
| 2237 | <tr> |
| 2238 | <th>desc</td> |
| 2239 | <td>Value to match</td> |
| 2240 | </tr> |
| 2241 | </table> |
| 2242 | </div> |
| 2243 | <div class="jd-tagdata"> |
| 2244 | <h5 class="jd-tagtitle">Returns</h5> |
| 2245 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2246 | </div> |
| 2247 | |
| 2248 | </div> |
| 2249 | </div> |
| 2250 | |
| 2251 | |
| 2252 | <A NAME="descriptionMatches(java.lang.String)"></A> |
| 2253 | |
| 2254 | <div class="jd-details api apilevel-"> |
| 2255 | <h4 class="jd-details-title"> |
| 2256 | <span class="normal"> |
| 2257 | public |
| 2258 | |
| 2259 | |
| 2260 | |
| 2261 | |
| 2262 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2263 | </span> |
| 2264 | <span class="sympad">descriptionMatches</span> |
| 2265 | <span class="normal">(String regex)</span> |
| 2266 | </h4> |
| 2267 | <div class="api-level"> |
| 2268 | <div></div> |
| 2269 | |
| 2270 | |
| 2271 | |
| 2272 | </div> |
| 2273 | <div class="jd-details-descr"> |
| 2274 | |
| 2275 | |
| 2276 | |
| 2277 | |
| 2278 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description |
| 2279 | property for a widget. |
| 2280 | |
| 2281 | The content-description is typically used |
| 2282 | by the Android Accessibility framework to |
| 2283 | provide an audio prompt for the widget when |
| 2284 | the widget is selected. The content-description |
| 2285 | for the widget must match exactly |
| 2286 | with the string in your input argument.</p></div> |
| 2287 | <div class="jd-tagdata"> |
| 2288 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2289 | <table class="jd-tagtable"> |
| 2290 | <tr> |
| 2291 | <th>regex</td> |
| 2292 | <td>a regular expression</td> |
| 2293 | </tr> |
| 2294 | </table> |
| 2295 | </div> |
| 2296 | <div class="jd-tagdata"> |
| 2297 | <h5 class="jd-tagtitle">Returns</h5> |
| 2298 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2299 | </div> |
| 2300 | |
| 2301 | </div> |
| 2302 | </div> |
| 2303 | |
| 2304 | |
| 2305 | <A NAME="descriptionStartsWith(java.lang.String)"></A> |
| 2306 | |
| 2307 | <div class="jd-details api apilevel-"> |
| 2308 | <h4 class="jd-details-title"> |
| 2309 | <span class="normal"> |
| 2310 | public |
| 2311 | |
| 2312 | |
| 2313 | |
| 2314 | |
| 2315 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2316 | </span> |
| 2317 | <span class="sympad">descriptionStartsWith</span> |
| 2318 | <span class="normal">(String desc)</span> |
| 2319 | </h4> |
| 2320 | <div class="api-level"> |
| 2321 | <div></div> |
| 2322 | |
| 2323 | |
| 2324 | |
| 2325 | </div> |
| 2326 | <div class="jd-details-descr"> |
| 2327 | |
| 2328 | |
| 2329 | |
| 2330 | |
| 2331 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description |
| 2332 | property for a widget. |
| 2333 | |
| 2334 | The content-description is typically used |
| 2335 | by the Android Accessibility framework to |
| 2336 | provide an audio prompt for the widget when |
| 2337 | the widget is selected. The content-description |
| 2338 | for the widget must start |
| 2339 | with the string in your input argument. |
| 2340 | |
| 2341 | Matching is case-insensitive.</p></div> |
| 2342 | <div class="jd-tagdata"> |
| 2343 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2344 | <table class="jd-tagtable"> |
| 2345 | <tr> |
| 2346 | <th>desc</td> |
| 2347 | <td>Value to match</td> |
| 2348 | </tr> |
| 2349 | </table> |
| 2350 | </div> |
| 2351 | <div class="jd-tagdata"> |
| 2352 | <h5 class="jd-tagtitle">Returns</h5> |
| 2353 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2354 | </div> |
| 2355 | |
| 2356 | </div> |
| 2357 | </div> |
| 2358 | |
| 2359 | |
| 2360 | <A NAME="enabled(boolean)"></A> |
| 2361 | |
| 2362 | <div class="jd-details api apilevel-"> |
| 2363 | <h4 class="jd-details-title"> |
| 2364 | <span class="normal"> |
| 2365 | public |
| 2366 | |
| 2367 | |
| 2368 | |
| 2369 | |
| 2370 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2371 | </span> |
| 2372 | <span class="sympad">enabled</span> |
| 2373 | <span class="normal">(boolean val)</span> |
| 2374 | </h4> |
| 2375 | <div class="api-level"> |
| 2376 | <div></div> |
| 2377 | |
| 2378 | |
| 2379 | |
| 2380 | </div> |
| 2381 | <div class="jd-details-descr"> |
| 2382 | |
| 2383 | |
| 2384 | |
| 2385 | |
| 2386 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are enabled. |
| 2387 | |
| 2388 | Typically, using this search criteria alone is not useful. |
| 2389 | You should also include additional criteria, such as text, |
| 2390 | content-description, or the class name for a widget. |
| 2391 | |
| 2392 | If no other search criteria is specified, and there is more |
| 2393 | than one matching widget, the first widget in the tree |
| 2394 | is selected.</p></div> |
| 2395 | <div class="jd-tagdata"> |
| 2396 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2397 | <table class="jd-tagtable"> |
| 2398 | <tr> |
| 2399 | <th>val</td> |
| 2400 | <td>Value to match</td> |
| 2401 | </tr> |
| 2402 | </table> |
| 2403 | </div> |
| 2404 | <div class="jd-tagdata"> |
| 2405 | <h5 class="jd-tagtitle">Returns</h5> |
| 2406 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2407 | </div> |
| 2408 | |
| 2409 | </div> |
| 2410 | </div> |
| 2411 | |
| 2412 | |
| 2413 | <A NAME="focusable(boolean)"></A> |
| 2414 | |
| 2415 | <div class="jd-details api apilevel-"> |
| 2416 | <h4 class="jd-details-title"> |
| 2417 | <span class="normal"> |
| 2418 | public |
| 2419 | |
| 2420 | |
| 2421 | |
| 2422 | |
| 2423 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2424 | </span> |
| 2425 | <span class="sympad">focusable</span> |
| 2426 | <span class="normal">(boolean val)</span> |
| 2427 | </h4> |
| 2428 | <div class="api-level"> |
| 2429 | <div></div> |
| 2430 | |
| 2431 | |
| 2432 | |
| 2433 | </div> |
| 2434 | <div class="jd-details-descr"> |
| 2435 | |
| 2436 | |
| 2437 | |
| 2438 | |
| 2439 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are focusable. |
| 2440 | |
| 2441 | Typically, using this search criteria alone is not useful. |
| 2442 | You should also include additional criteria, such as text, |
| 2443 | content-description, or the class name for a widget. |
| 2444 | |
| 2445 | If no other search criteria is specified, and there is more |
| 2446 | than one matching widget, the first widget in the tree |
| 2447 | is selected.</p></div> |
| 2448 | <div class="jd-tagdata"> |
| 2449 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2450 | <table class="jd-tagtable"> |
| 2451 | <tr> |
| 2452 | <th>val</td> |
| 2453 | <td>Value to match</td> |
| 2454 | </tr> |
| 2455 | </table> |
| 2456 | </div> |
| 2457 | <div class="jd-tagdata"> |
| 2458 | <h5 class="jd-tagtitle">Returns</h5> |
| 2459 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2460 | </div> |
| 2461 | |
| 2462 | </div> |
| 2463 | </div> |
| 2464 | |
| 2465 | |
| 2466 | <A NAME="focused(boolean)"></A> |
| 2467 | |
| 2468 | <div class="jd-details api apilevel-"> |
| 2469 | <h4 class="jd-details-title"> |
| 2470 | <span class="normal"> |
| 2471 | public |
| 2472 | |
| 2473 | |
| 2474 | |
| 2475 | |
| 2476 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2477 | </span> |
| 2478 | <span class="sympad">focused</span> |
| 2479 | <span class="normal">(boolean val)</span> |
| 2480 | </h4> |
| 2481 | <div class="api-level"> |
| 2482 | <div></div> |
| 2483 | |
| 2484 | |
| 2485 | |
| 2486 | </div> |
| 2487 | <div class="jd-details-descr"> |
| 2488 | |
| 2489 | |
| 2490 | |
| 2491 | |
| 2492 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that have focus. |
| 2493 | |
| 2494 | Typically, using this search criteria alone is not useful. |
| 2495 | You should also include additional criteria, such as text, |
| 2496 | content-description, or the class name for a widget. |
| 2497 | |
| 2498 | If no other search criteria is specified, and there is more |
| 2499 | than one matching widget, the first widget in the tree |
| 2500 | is selected.</p></div> |
| 2501 | <div class="jd-tagdata"> |
| 2502 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2503 | <table class="jd-tagtable"> |
| 2504 | <tr> |
| 2505 | <th>val</td> |
| 2506 | <td>Value to match</td> |
| 2507 | </tr> |
| 2508 | </table> |
| 2509 | </div> |
| 2510 | <div class="jd-tagdata"> |
| 2511 | <h5 class="jd-tagtitle">Returns</h5> |
| 2512 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2513 | </div> |
| 2514 | |
| 2515 | </div> |
| 2516 | </div> |
| 2517 | |
| 2518 | |
| 2519 | <A NAME="fromParent(android.support.test.uiautomator.UiSelector)"></A> |
| 2520 | |
| 2521 | <div class="jd-details api apilevel-"> |
| 2522 | <h4 class="jd-details-title"> |
| 2523 | <span class="normal"> |
| 2524 | public |
| 2525 | |
| 2526 | |
| 2527 | |
| 2528 | |
| 2529 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2530 | </span> |
| 2531 | <span class="sympad">fromParent</span> |
| 2532 | <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</span> |
| 2533 | </h4> |
| 2534 | <div class="api-level"> |
| 2535 | <div></div> |
| 2536 | |
| 2537 | |
| 2538 | |
| 2539 | </div> |
| 2540 | <div class="jd-details-descr"> |
| 2541 | |
| 2542 | |
| 2543 | |
| 2544 | |
| 2545 | <div class="jd-tagdata jd-tagdescr"><p>Adds a child UiSelector criteria to this selector which is used to |
| 2546 | start search from the parent widget. |
| 2547 | |
| 2548 | Use this selector to narrow the search scope to |
| 2549 | sibling widgets as well all child widgets under a parent.</p></div> |
| 2550 | <div class="jd-tagdata"> |
| 2551 | <h5 class="jd-tagtitle">Returns</h5> |
| 2552 | <ul class="nolist"><li>UiSelector with this added search criterion</li></ul> |
| 2553 | </div> |
| 2554 | |
| 2555 | </div> |
| 2556 | </div> |
| 2557 | |
| 2558 | |
| 2559 | <A NAME="index(int)"></A> |
| 2560 | |
| 2561 | <div class="jd-details api apilevel-"> |
| 2562 | <h4 class="jd-details-title"> |
| 2563 | <span class="normal"> |
| 2564 | public |
| 2565 | |
| 2566 | |
| 2567 | |
| 2568 | |
| 2569 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2570 | </span> |
| 2571 | <span class="sympad">index</span> |
| 2572 | <span class="normal">(int index)</span> |
| 2573 | </h4> |
| 2574 | <div class="api-level"> |
| 2575 | <div></div> |
| 2576 | |
| 2577 | |
| 2578 | |
| 2579 | </div> |
| 2580 | <div class="jd-details-descr"> |
| 2581 | |
| 2582 | |
| 2583 | |
| 2584 | |
| 2585 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the widget by its node |
| 2586 | index in the layout hierarchy. |
| 2587 | |
| 2588 | The index value must be 0 or greater. |
| 2589 | |
| 2590 | Using the index can be unreliable and should only |
| 2591 | be used as a last resort for matching. Instead, |
| 2592 | consider using the <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#instance(int)">instance(int)</a></code> method.</p></div> |
| 2593 | <div class="jd-tagdata"> |
| 2594 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2595 | <table class="jd-tagtable"> |
| 2596 | <tr> |
| 2597 | <th>index</td> |
| 2598 | <td>Value to match</td> |
| 2599 | </tr> |
| 2600 | </table> |
| 2601 | </div> |
| 2602 | <div class="jd-tagdata"> |
| 2603 | <h5 class="jd-tagtitle">Returns</h5> |
| 2604 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2605 | </div> |
| 2606 | |
| 2607 | </div> |
| 2608 | </div> |
| 2609 | |
| 2610 | |
| 2611 | <A NAME="instance(int)"></A> |
| 2612 | |
| 2613 | <div class="jd-details api apilevel-"> |
| 2614 | <h4 class="jd-details-title"> |
| 2615 | <span class="normal"> |
| 2616 | public |
| 2617 | |
| 2618 | |
| 2619 | |
| 2620 | |
| 2621 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2622 | </span> |
| 2623 | <span class="sympad">instance</span> |
| 2624 | <span class="normal">(int instance)</span> |
| 2625 | </h4> |
| 2626 | <div class="api-level"> |
| 2627 | <div></div> |
| 2628 | |
| 2629 | |
| 2630 | |
| 2631 | </div> |
| 2632 | <div class="jd-details-descr"> |
| 2633 | |
| 2634 | |
| 2635 | |
| 2636 | |
| 2637 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the |
| 2638 | widget by its instance number. |
| 2639 | |
| 2640 | The instance value must be 0 or greater, where |
| 2641 | the first instance is 0. |
| 2642 | |
| 2643 | For example, to simulate a user click on |
| 2644 | the third image that is enabled in a UI screen, you |
| 2645 | could specify a a search criteria where the instance is |
| 2646 | 2, the <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#className(java.lang.String)">className(String)</a></code> matches the image |
| 2647 | widget class, and <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#enabled(boolean)">enabled(boolean)</a></code> is true. |
| 2648 | The code would look like this: |
| 2649 | <code> |
| 2650 | new UiSelector().className("android.widget.ImageView") |
| 2651 | .enabled(true).instance(2); |
| 2652 | </code></p></div> |
| 2653 | <div class="jd-tagdata"> |
| 2654 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2655 | <table class="jd-tagtable"> |
| 2656 | <tr> |
| 2657 | <th>instance</td> |
| 2658 | <td>Value to match</td> |
| 2659 | </tr> |
| 2660 | </table> |
| 2661 | </div> |
| 2662 | <div class="jd-tagdata"> |
| 2663 | <h5 class="jd-tagtitle">Returns</h5> |
| 2664 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2665 | </div> |
| 2666 | |
| 2667 | </div> |
| 2668 | </div> |
| 2669 | |
| 2670 | |
| 2671 | <A NAME="longClickable(boolean)"></A> |
| 2672 | |
| 2673 | <div class="jd-details api apilevel-"> |
| 2674 | <h4 class="jd-details-title"> |
| 2675 | <span class="normal"> |
| 2676 | public |
| 2677 | |
| 2678 | |
| 2679 | |
| 2680 | |
| 2681 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2682 | </span> |
| 2683 | <span class="sympad">longClickable</span> |
| 2684 | <span class="normal">(boolean val)</span> |
| 2685 | </h4> |
| 2686 | <div class="api-level"> |
| 2687 | <div></div> |
| 2688 | |
| 2689 | |
| 2690 | |
| 2691 | </div> |
| 2692 | <div class="jd-details-descr"> |
| 2693 | |
| 2694 | |
| 2695 | |
| 2696 | |
| 2697 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are long-clickable. |
| 2698 | |
| 2699 | Typically, using this search criteria alone is not useful. |
| 2700 | You should also include additional criteria, such as text, |
| 2701 | content-description, or the class name for a widget. |
| 2702 | |
| 2703 | If no other search criteria is specified, and there is more |
| 2704 | than one matching widget, the first widget in the tree |
| 2705 | is selected.</p></div> |
| 2706 | <div class="jd-tagdata"> |
| 2707 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2708 | <table class="jd-tagtable"> |
| 2709 | <tr> |
| 2710 | <th>val</td> |
| 2711 | <td>Value to match</td> |
| 2712 | </tr> |
| 2713 | </table> |
| 2714 | </div> |
| 2715 | <div class="jd-tagdata"> |
| 2716 | <h5 class="jd-tagtitle">Returns</h5> |
| 2717 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2718 | </div> |
| 2719 | |
| 2720 | </div> |
| 2721 | </div> |
| 2722 | |
| 2723 | |
| 2724 | <A NAME="packageName(java.lang.String)"></A> |
| 2725 | |
| 2726 | <div class="jd-details api apilevel-"> |
| 2727 | <h4 class="jd-details-title"> |
| 2728 | <span class="normal"> |
| 2729 | public |
| 2730 | |
| 2731 | |
| 2732 | |
| 2733 | |
| 2734 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2735 | </span> |
| 2736 | <span class="sympad">packageName</span> |
| 2737 | <span class="normal">(String name)</span> |
| 2738 | </h4> |
| 2739 | <div class="api-level"> |
| 2740 | <div></div> |
| 2741 | |
| 2742 | |
| 2743 | |
| 2744 | </div> |
| 2745 | <div class="jd-details-descr"> |
| 2746 | |
| 2747 | |
| 2748 | |
| 2749 | |
| 2750 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the package name |
| 2751 | of the application that contains the widget.</p></div> |
| 2752 | <div class="jd-tagdata"> |
| 2753 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2754 | <table class="jd-tagtable"> |
| 2755 | <tr> |
| 2756 | <th>name</td> |
| 2757 | <td>Value to match</td> |
| 2758 | </tr> |
| 2759 | </table> |
| 2760 | </div> |
| 2761 | <div class="jd-tagdata"> |
| 2762 | <h5 class="jd-tagtitle">Returns</h5> |
| 2763 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2764 | </div> |
| 2765 | |
| 2766 | </div> |
| 2767 | </div> |
| 2768 | |
| 2769 | |
| 2770 | <A NAME="packageNameMatches(java.lang.String)"></A> |
| 2771 | |
| 2772 | <div class="jd-details api apilevel-"> |
| 2773 | <h4 class="jd-details-title"> |
| 2774 | <span class="normal"> |
| 2775 | public |
| 2776 | |
| 2777 | |
| 2778 | |
| 2779 | |
| 2780 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2781 | </span> |
| 2782 | <span class="sympad">packageNameMatches</span> |
| 2783 | <span class="normal">(String regex)</span> |
| 2784 | </h4> |
| 2785 | <div class="api-level"> |
| 2786 | <div></div> |
| 2787 | |
| 2788 | |
| 2789 | |
| 2790 | </div> |
| 2791 | <div class="jd-details-descr"> |
| 2792 | |
| 2793 | |
| 2794 | |
| 2795 | |
| 2796 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the package name |
| 2797 | of the application that contains the widget.</p></div> |
| 2798 | <div class="jd-tagdata"> |
| 2799 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2800 | <table class="jd-tagtable"> |
| 2801 | <tr> |
| 2802 | <th>regex</td> |
| 2803 | <td>a regular expression</td> |
| 2804 | </tr> |
| 2805 | </table> |
| 2806 | </div> |
| 2807 | <div class="jd-tagdata"> |
| 2808 | <h5 class="jd-tagtitle">Returns</h5> |
| 2809 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2810 | </div> |
| 2811 | |
| 2812 | </div> |
| 2813 | </div> |
| 2814 | |
| 2815 | |
| 2816 | <A NAME="resourceId(java.lang.String)"></A> |
| 2817 | |
| 2818 | <div class="jd-details api apilevel-"> |
| 2819 | <h4 class="jd-details-title"> |
| 2820 | <span class="normal"> |
| 2821 | public |
| 2822 | |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2827 | </span> |
| 2828 | <span class="sympad">resourceId</span> |
| 2829 | <span class="normal">(String id)</span> |
| 2830 | </h4> |
| 2831 | <div class="api-level"> |
| 2832 | <div></div> |
| 2833 | |
| 2834 | |
| 2835 | |
| 2836 | </div> |
| 2837 | <div class="jd-details-descr"> |
| 2838 | |
| 2839 | |
| 2840 | |
| 2841 | |
| 2842 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the given resource ID.</p></div> |
| 2843 | <div class="jd-tagdata"> |
| 2844 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2845 | <table class="jd-tagtable"> |
| 2846 | <tr> |
| 2847 | <th>id</td> |
| 2848 | <td>Value to match</td> |
| 2849 | </tr> |
| 2850 | </table> |
| 2851 | </div> |
| 2852 | <div class="jd-tagdata"> |
| 2853 | <h5 class="jd-tagtitle">Returns</h5> |
| 2854 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2855 | </div> |
| 2856 | |
| 2857 | </div> |
| 2858 | </div> |
| 2859 | |
| 2860 | |
| 2861 | <A NAME="resourceIdMatches(java.lang.String)"></A> |
| 2862 | |
| 2863 | <div class="jd-details api apilevel-"> |
| 2864 | <h4 class="jd-details-title"> |
| 2865 | <span class="normal"> |
| 2866 | public |
| 2867 | |
| 2868 | |
| 2869 | |
| 2870 | |
| 2871 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2872 | </span> |
| 2873 | <span class="sympad">resourceIdMatches</span> |
| 2874 | <span class="normal">(String regex)</span> |
| 2875 | </h4> |
| 2876 | <div class="api-level"> |
| 2877 | <div></div> |
| 2878 | |
| 2879 | |
| 2880 | |
| 2881 | </div> |
| 2882 | <div class="jd-details-descr"> |
| 2883 | |
| 2884 | |
| 2885 | |
| 2886 | |
| 2887 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the resource ID |
| 2888 | of the widget, using a regular expression.</p></div> |
| 2889 | <div class="jd-tagdata"> |
| 2890 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2891 | <table class="jd-tagtable"> |
| 2892 | <tr> |
| 2893 | <th>regex</td> |
| 2894 | <td>a regular expression</td> |
| 2895 | </tr> |
| 2896 | </table> |
| 2897 | </div> |
| 2898 | <div class="jd-tagdata"> |
| 2899 | <h5 class="jd-tagtitle">Returns</h5> |
| 2900 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2901 | </div> |
| 2902 | |
| 2903 | </div> |
| 2904 | </div> |
| 2905 | |
| 2906 | |
| 2907 | <A NAME="scrollable(boolean)"></A> |
| 2908 | |
| 2909 | <div class="jd-details api apilevel-"> |
| 2910 | <h4 class="jd-details-title"> |
| 2911 | <span class="normal"> |
| 2912 | public |
| 2913 | |
| 2914 | |
| 2915 | |
| 2916 | |
| 2917 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2918 | </span> |
| 2919 | <span class="sympad">scrollable</span> |
| 2920 | <span class="normal">(boolean val)</span> |
| 2921 | </h4> |
| 2922 | <div class="api-level"> |
| 2923 | <div></div> |
| 2924 | |
| 2925 | |
| 2926 | |
| 2927 | </div> |
| 2928 | <div class="jd-details-descr"> |
| 2929 | |
| 2930 | |
| 2931 | |
| 2932 | |
| 2933 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are scrollable. |
| 2934 | |
| 2935 | Typically, using this search criteria alone is not useful. |
| 2936 | You should also include additional criteria, such as text, |
| 2937 | content-description, or the class name for a widget. |
| 2938 | |
| 2939 | If no other search criteria is specified, and there is more |
| 2940 | than one matching widget, the first widget in the tree |
| 2941 | is selected.</p></div> |
| 2942 | <div class="jd-tagdata"> |
| 2943 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2944 | <table class="jd-tagtable"> |
| 2945 | <tr> |
| 2946 | <th>val</td> |
| 2947 | <td>Value to match</td> |
| 2948 | </tr> |
| 2949 | </table> |
| 2950 | </div> |
| 2951 | <div class="jd-tagdata"> |
| 2952 | <h5 class="jd-tagtitle">Returns</h5> |
| 2953 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 2954 | </div> |
| 2955 | |
| 2956 | </div> |
| 2957 | </div> |
| 2958 | |
| 2959 | |
| 2960 | <A NAME="selected(boolean)"></A> |
| 2961 | |
| 2962 | <div class="jd-details api apilevel-"> |
| 2963 | <h4 class="jd-details-title"> |
| 2964 | <span class="normal"> |
| 2965 | public |
| 2966 | |
| 2967 | |
| 2968 | |
| 2969 | |
| 2970 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 2971 | </span> |
| 2972 | <span class="sympad">selected</span> |
| 2973 | <span class="normal">(boolean val)</span> |
| 2974 | </h4> |
| 2975 | <div class="api-level"> |
| 2976 | <div></div> |
| 2977 | |
| 2978 | |
| 2979 | |
| 2980 | </div> |
| 2981 | <div class="jd-details-descr"> |
| 2982 | |
| 2983 | |
| 2984 | |
| 2985 | |
| 2986 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that |
| 2987 | are currently selected. |
| 2988 | |
| 2989 | Typically, using this search criteria alone is not useful. |
| 2990 | You should also include additional criteria, such as text, |
| 2991 | content-description, or the class name for a widget. |
| 2992 | |
| 2993 | If no other search criteria is specified, and there is more |
| 2994 | than one matching widget, the first widget in the tree |
| 2995 | is selected.</p></div> |
| 2996 | <div class="jd-tagdata"> |
| 2997 | <h5 class="jd-tagtitle">Parameters</h5> |
| 2998 | <table class="jd-tagtable"> |
| 2999 | <tr> |
| 3000 | <th>val</td> |
| 3001 | <td>Value to match</td> |
| 3002 | </tr> |
| 3003 | </table> |
| 3004 | </div> |
| 3005 | <div class="jd-tagdata"> |
| 3006 | <h5 class="jd-tagtitle">Returns</h5> |
| 3007 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 3008 | </div> |
| 3009 | |
| 3010 | </div> |
| 3011 | </div> |
| 3012 | |
| 3013 | |
| 3014 | <A NAME="text(java.lang.String)"></A> |
| 3015 | |
| 3016 | <div class="jd-details api apilevel-"> |
| 3017 | <h4 class="jd-details-title"> |
| 3018 | <span class="normal"> |
| 3019 | public |
| 3020 | |
| 3021 | |
| 3022 | |
| 3023 | |
| 3024 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 3025 | </span> |
| 3026 | <span class="sympad">text</span> |
| 3027 | <span class="normal">(String text)</span> |
| 3028 | </h4> |
| 3029 | <div class="api-level"> |
| 3030 | <div></div> |
| 3031 | |
| 3032 | |
| 3033 | |
| 3034 | </div> |
| 3035 | <div class="jd-details-descr"> |
| 3036 | |
| 3037 | |
| 3038 | |
| 3039 | |
| 3040 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the visible text displayed |
| 3041 | in a widget (for example, the text label to launch an app). |
| 3042 | |
| 3043 | The text for the element must match exactly with the string in your input |
| 3044 | argument. Matching is case-sensitive.</p></div> |
| 3045 | <div class="jd-tagdata"> |
| 3046 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3047 | <table class="jd-tagtable"> |
| 3048 | <tr> |
| 3049 | <th>text</td> |
| 3050 | <td>Value to match</td> |
| 3051 | </tr> |
| 3052 | </table> |
| 3053 | </div> |
| 3054 | <div class="jd-tagdata"> |
| 3055 | <h5 class="jd-tagtitle">Returns</h5> |
| 3056 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 3057 | </div> |
| 3058 | |
| 3059 | </div> |
| 3060 | </div> |
| 3061 | |
| 3062 | |
| 3063 | <A NAME="textContains(java.lang.String)"></A> |
| 3064 | |
| 3065 | <div class="jd-details api apilevel-"> |
| 3066 | <h4 class="jd-details-title"> |
| 3067 | <span class="normal"> |
| 3068 | public |
| 3069 | |
| 3070 | |
| 3071 | |
| 3072 | |
| 3073 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 3074 | </span> |
| 3075 | <span class="sympad">textContains</span> |
| 3076 | <span class="normal">(String text)</span> |
| 3077 | </h4> |
| 3078 | <div class="api-level"> |
| 3079 | <div></div> |
| 3080 | |
| 3081 | |
| 3082 | |
| 3083 | </div> |
| 3084 | <div class="jd-details-descr"> |
| 3085 | |
| 3086 | |
| 3087 | |
| 3088 | |
| 3089 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the visible text in a widget |
| 3090 | where the visible text must contain the string in your input argument. |
| 3091 | |
| 3092 | The matching is case-sensitive.</p></div> |
| 3093 | <div class="jd-tagdata"> |
| 3094 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3095 | <table class="jd-tagtable"> |
| 3096 | <tr> |
| 3097 | <th>text</td> |
| 3098 | <td>Value to match</td> |
| 3099 | </tr> |
| 3100 | </table> |
| 3101 | </div> |
| 3102 | <div class="jd-tagdata"> |
| 3103 | <h5 class="jd-tagtitle">Returns</h5> |
| 3104 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 3105 | </div> |
| 3106 | |
| 3107 | </div> |
| 3108 | </div> |
| 3109 | |
| 3110 | |
| 3111 | <A NAME="textMatches(java.lang.String)"></A> |
| 3112 | |
| 3113 | <div class="jd-details api apilevel-"> |
| 3114 | <h4 class="jd-details-title"> |
| 3115 | <span class="normal"> |
| 3116 | public |
| 3117 | |
| 3118 | |
| 3119 | |
| 3120 | |
| 3121 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 3122 | </span> |
| 3123 | <span class="sympad">textMatches</span> |
| 3124 | <span class="normal">(String regex)</span> |
| 3125 | </h4> |
| 3126 | <div class="api-level"> |
| 3127 | <div></div> |
| 3128 | |
| 3129 | |
| 3130 | |
| 3131 | </div> |
| 3132 | <div class="jd-details-descr"> |
| 3133 | |
| 3134 | |
| 3135 | |
| 3136 | |
| 3137 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the visible text displayed in a layout |
| 3138 | element, using a regular expression. |
| 3139 | |
| 3140 | The text in the widget must match exactly with the string in your |
| 3141 | input argument.</p></div> |
| 3142 | <div class="jd-tagdata"> |
| 3143 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3144 | <table class="jd-tagtable"> |
| 3145 | <tr> |
| 3146 | <th>regex</td> |
| 3147 | <td>a regular expression</td> |
| 3148 | </tr> |
| 3149 | </table> |
| 3150 | </div> |
| 3151 | <div class="jd-tagdata"> |
| 3152 | <h5 class="jd-tagtitle">Returns</h5> |
| 3153 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 3154 | </div> |
| 3155 | |
| 3156 | </div> |
| 3157 | </div> |
| 3158 | |
| 3159 | |
| 3160 | <A NAME="textStartsWith(java.lang.String)"></A> |
| 3161 | |
| 3162 | <div class="jd-details api apilevel-"> |
| 3163 | <h4 class="jd-details-title"> |
| 3164 | <span class="normal"> |
| 3165 | public |
| 3166 | |
| 3167 | |
| 3168 | |
| 3169 | |
| 3170 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 3171 | </span> |
| 3172 | <span class="sympad">textStartsWith</span> |
| 3173 | <span class="normal">(String text)</span> |
| 3174 | </h4> |
| 3175 | <div class="api-level"> |
| 3176 | <div></div> |
| 3177 | |
| 3178 | |
| 3179 | |
| 3180 | </div> |
| 3181 | <div class="jd-details-descr"> |
| 3182 | |
| 3183 | |
| 3184 | |
| 3185 | |
| 3186 | <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match visible text in a widget that is |
| 3187 | prefixed by the text parameter. |
| 3188 | |
| 3189 | The matching is case-insensitive.</p></div> |
| 3190 | <div class="jd-tagdata"> |
| 3191 | <h5 class="jd-tagtitle">Parameters</h5> |
| 3192 | <table class="jd-tagtable"> |
| 3193 | <tr> |
| 3194 | <th>text</td> |
| 3195 | <td>Value to match</td> |
| 3196 | </tr> |
| 3197 | </table> |
| 3198 | </div> |
| 3199 | <div class="jd-tagdata"> |
| 3200 | <h5 class="jd-tagtitle">Returns</h5> |
| 3201 | <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul> |
| 3202 | </div> |
| 3203 | |
| 3204 | </div> |
| 3205 | </div> |
| 3206 | |
| 3207 | |
| 3208 | <A NAME="toString()"></A> |
| 3209 | |
| 3210 | <div class="jd-details api apilevel-"> |
| 3211 | <h4 class="jd-details-title"> |
| 3212 | <span class="normal"> |
| 3213 | public |
| 3214 | |
| 3215 | |
| 3216 | |
| 3217 | |
| 3218 | String |
| 3219 | </span> |
| 3220 | <span class="sympad">toString</span> |
| 3221 | <span class="normal">()</span> |
| 3222 | </h4> |
| 3223 | <div class="api-level"> |
| 3224 | <div></div> |
| 3225 | |
| 3226 | |
| 3227 | |
| 3228 | </div> |
| 3229 | <div class="jd-details-descr"> |
| 3230 | |
| 3231 | |
| 3232 | |
| 3233 | |
| 3234 | <div class="jd-tagdata jd-tagdescr"><p></p></div> |
| 3235 | |
| 3236 | </div> |
| 3237 | </div> |
| 3238 | |
| 3239 | |
| 3240 | |
| 3241 | |
| 3242 | |
| 3243 | <!-- ========= METHOD DETAIL ======== --> |
| 3244 | |
| 3245 | <h2>Protected Methods</h2> |
| 3246 | |
| 3247 | |
| 3248 | |
| 3249 | <A NAME="cloneSelector()"></A> |
| 3250 | |
| 3251 | <div class="jd-details api apilevel-"> |
| 3252 | <h4 class="jd-details-title"> |
| 3253 | <span class="normal"> |
| 3254 | protected |
| 3255 | |
| 3256 | |
| 3257 | |
| 3258 | |
| 3259 | <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> |
| 3260 | </span> |
| 3261 | <span class="sympad">cloneSelector</span> |
| 3262 | <span class="normal">()</span> |
| 3263 | </h4> |
| 3264 | <div class="api-level"> |
| 3265 | <div></div> |
| 3266 | |
| 3267 | |
| 3268 | |
| 3269 | </div> |
| 3270 | <div class="jd-details-descr"> |
| 3271 | |
| 3272 | |
| 3273 | |
| 3274 | |
| 3275 | <div class="jd-tagdata jd-tagdescr"><p></p></div> |
| 3276 | |
| 3277 | </div> |
| 3278 | </div> |
| 3279 | |
| 3280 | |
| 3281 | |
| 3282 | |
| 3283 | |
| 3284 | <!-- ========= END OF CLASS DATA ========= --> |
| 3285 | <A NAME="navbar_top"></A> |
| 3286 | |
| 3287 | <div id="footer" class="wrap" > |
| 3288 | |
| 3289 | |
| 3290 | <div id="copyright"> |
| 3291 | |
| 3292 | Except as noted, this content is licensed under <a |
| 3293 | href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. |
| 3294 | For details and restrictions, see the <a href="../../../../../license.html"> |
| 3295 | Content License</a>. |
| 3296 | </div> |
| 3297 | <div id="build_info"> |
| 3298 | |
| 3299 | Android r — |
| 3300 | <script src="../../../../../timestamp.js" type="text/javascript"></script> |
| 3301 | <script>document.write(BUILD_TIMESTAMP)</script> |
| 3302 | |
| 3303 | </div> |
| 3304 | |
| 3305 | |
| 3306 | <div id="footerlinks"> |
| 3307 | |
| 3308 | <p> |
| 3309 | <a href="../../../../../about/index.html">About Android</a> | |
| 3310 | <a href="../../../../../legal.html">Legal</a> | |
| 3311 | <a href="../../../../../support.html">Support</a> |
| 3312 | </p> |
| 3313 | </div> |
| 3314 | |
| 3315 | </div> <!-- end footer --> |
| 3316 | </div> <!-- jd-content --> |
| 3317 | |
| 3318 | </div><!-- end doc-content --> |
| 3319 | |
| 3320 | </div> <!-- end body-content --> |
| 3321 | |
| 3322 | |
| 3323 | |
| 3324 | |
| 3325 | |
| 3326 | |
| 3327 | </body> |
| 3328 | </html> |