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<html>
97<head>
98
99
100<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
101<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
102<meta content="IE=edge" http-equiv="X-UA-Compatible">
103
104<link rel="shortcut icon" type="image/x-icon" href="../../../../../favicon.ico" />
105<title>UiSelector | Android Developers</title>
106
107<!-- STYLESHEETS -->
108<link rel="stylesheet"
109href="http://fonts.googleapis.com/css?family=Roboto+Condensed">
110<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold"
111  title="roboto">
112
113<link href="../../../../../assets/css/default.css?v=7" rel="stylesheet" type="text/css">
114
115
116<!-- FULLSCREEN STYLESHEET -->
117<link href="../../../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen"
118type="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=5" type="text/javascript"></script>
130
131
132
133<script>
134  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
135  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
136  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
137  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
138
139  ga('create', 'UA-5831155-1', 'android.com');
140  ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'});  // New tracker);
141  ga('send', 'pageview');
142  ga('universal.send', 'pageview'); // Send page view for new tracker.
143</script>
144
145</head>
146
147<body class="gc-documentation
148  develop reference" itemscope itemtype="http://schema.org/Article">
149  <div id="doc-api-level" class="" style="display:none"></div>
150  <a name="top"></a>
151
152<a name="top"></a>
153
154<!-- dialog to prompt lang pref change when loaded from hardcoded URL
155<div id="langMessage" style="display:none">
156  <div>
157    <div class="lang en">
158      <p>You requested a page in English, would you like to proceed with this language setting?</p>
159    </div>
160    <div class="lang es">
161      <p>You requested a page in Spanish (Español), would you like to proceed with this language setting?</p>
162    </div>
163    <div class="lang ja">
164      <p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</p>
165    </div>
166    <div class="lang ko">
167      <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p>
168    </div>
169    <div class="lang ru">
170      <p>You requested a page in Russian (Русский), would you like to proceed with this language setting?</p>
171    </div>
172    <div class="lang zh-cn">
173      <p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language setting?</p>
174    </div>
175    <div class="lang zh-tw">
176      <p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this language setting?</p>
177    </div>
178    <a href="#" class="button yes" onclick="return false;">
179      <span class="lang en">Yes</span>
180      <span class="lang es">Sí</span>
181      <span class="lang ja">Yes</span>
182      <span class="lang ko">Yes</span>
183      <span class="lang ru">Yes</span>
184      <span class="lang zh-cn">是的</span>
185      <span class="lang zh-tw">没有</span>
186    </a>
187    <a href="#" class="button" onclick="$('#langMessage').hide();return false;">
188      <span class="lang en">No</span>
189      <span class="lang es">No</span>
190      <span class="lang ja">No</span>
191      <span class="lang ko">No</span>
192      <span class="lang ru">No</span>
193      <span class="lang zh-cn">没有</span>
194      <span class="lang zh-tw">没有</span>
195    </a>
196  </div>
197</div> -->
198
199
200  <!-- Header -->
201  <div id="header-wrapper">
202    <div class="dac-header" id="header">
203
204
205
206
207      <div class="dac-header-inner">
208        <a class="dac-nav-toggle" data-dac-toggle-nav href="javascript:;" title="Open navigation">
209          <span class="dac-nav-hamburger">
210            <span class="dac-nav-hamburger-top"></span>
211            <span class="dac-nav-hamburger-mid"></span>
212            <span class="dac-nav-hamburger-bot"></span>
213          </span>
214        </a>
215        <a class="dac-header-logo" href="../../../../../index.html">
216          <img class="dac-header-logo-image" src="../../../../../assets/images/android_logo.png"
217              srcset="../../../../../assets/images/android_logo@2x.png 2x"
218              width="32" height="36" alt="Android" /> Developers
219          </a>
220
221        <ul class="dac-header-crumbs">
222
223          <li class="dac-header-crumbs-item"><span class="dac-header-crumbs-link current ">UiSelector</a></li>
224        </ul>
225
226
227
228
229  <div class="dac-header-search" id="search-container">
230    <div class="dac-header-search-inner">
231      <div class="dac-sprite dac-search dac-header-search-btn" id="search-btn"></div>
232      <form class="dac-header-search-form" onsubmit="return submit_search()">
233        <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
234          onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
235          onkeydown="return search_changed(event, true, '../../../../../')"
236          onkeyup="return search_changed(event, false, '../../../../../')"
237          class="dac-header-search-input" placeholder="Search" />
238          <a class="dac-header-search-close hide" id="search-close">close</a>
239      </form>
240    </div><!-- end dac-header-search-inner -->
241  </div><!-- end dac-header-search -->
242
243  <div class="search_filtered_wrapper">
244    <div class="suggest-card reference no-display">
245      <ul class="search_filtered">
246      </ul>
247    </div>
248    <div class="suggest-card develop no-display">
249      <ul class="search_filtered">
250      </ul>
251      <div class="child-card guides no-display">
252      </div>
253      <div class="child-card training no-display">
254      </div>
255      <div class="child-card samples no-display">
256      </div>
257    </div>
258    <div class="suggest-card design no-display">
259      <ul class="search_filtered">
260      </ul>
261    </div>
262    <div class="suggest-card distribute no-display">
263      <ul class="search_filtered">
264      </ul>
265    </div>
266  </div>
267
268
269
270        <a class="dac-header-console-btn" href="https://play.google.com/apps/publish/">
271          <span class="dac-sprite dac-google-play"></span>
272          <span class="dac-visible-desktop-inline">Developer</span>
273          Console
274        </a>
275
276      </div><!-- end header-wrap.wrap -->
277    </div><!-- end header -->
278
279    <div id="searchResults" class="wrap" style="display:none;">
280      <h2 id="searchTitle">Results</h2>
281      <div id="leftSearchControl" class="search-control">Loading...</div>
282    </div>
283  </div> <!--end header-wrapper -->
284
285
286  <!-- Navigation-->
287  <nav class="dac-nav">
288    <div class="dac-nav-dimmer" data-dac-toggle-nav></div>
289
290    <ul class="dac-nav-list" data-dac-nav>
291      <li class="dac-nav-item dac-nav-head">
292        <a class="dac-nav-link dac-nav-logo" data-dac-toggle-nav href="javascript:;" title="Close navigation">
293          <img class="dac-logo-image" src="../../../../../assets/images/android_logo.png"
294               srcset="../../../../../assets/images/android_logo@2x.png 2x"
295               width="32" height="36" alt="Android" /> Developers
296        </a>
297      </li>
298      <li class="dac-nav-item home">
299        <a class="dac-nav-link dac-visible-mobile-block" href="../../../../../index.html">Home</a>
300        <ul class="dac-nav-secondary about">
301          <li class="dac-nav-item about">
302            <a class="dac-nav-link" href="../../../../../about/index.html">Android</a>
303          </li>
304          <li class="dac-nav-item wear">
305            <a class="dac-nav-link" href="../../../../../wear/index.html">Wear</a>
306          </li>
307          <li class="dac-nav-item tv">
308            <a class="dac-nav-link" href="../../../../../tv/index.html">TV</a>
309          </li>
310          <li class="dac-nav-item auto">
311            <a class="dac-nav-link" href="../../../../../auto/index.html">Auto</a>
312          </li>
313        </ul>
314      </li>
315      <li class="dac-nav-item design">
316        <a class="dac-nav-link" href="../../../../../design/index.html"
317           zh-tw-lang="設計"
318           zh-cn-lang="设计"
319           ru-lang="Проектирование"
320           ko-lang="디자인"
321           ja-lang="設計"
322           es-lang="Diseñar">Design</a>
323      </li>
324      <li class="dac-nav-item develop">
325        <a class="dac-nav-link" href="../../../../../develop/index.html"
326           zh-tw-lang="開發"
327           zh-cn-lang="开发"
328           ru-lang="Разработка"
329           ko-lang="개발"
330           ja-lang="開発"
331           es-lang="Desarrollar">Develop</a>
332        <ul class="dac-nav-secondary develop">
333          <li class="dac-nav-item training">
334            <a class="dac-nav-link" href="../../../../../training/index.html"
335               zh-tw-lang="訓練課程"
336               zh-cn-lang="培训"
337               ru-lang="Курсы"
338               ko-lang="교육"
339               ja-lang="トレーニング"
340               es-lang="Capacitación">Training</a>
341          </li>
342          <li class="dac-nav-item guide">
343            <a class="dac-nav-link" href="../../../../../guide/index.html"
344               zh-tw-lang="API 指南"
345               zh-cn-lang="API 指南"
346               ru-lang="Руководства по API"
347               ko-lang="API 가이드"
348               ja-lang="API ガイド"
349               es-lang="Guías de la API">API Guides</a>
350          </li>
351          <li class="dac-nav-item reference">
352            <a class="dac-nav-link" href="../../../../../reference/packages.html"
353               zh-tw-lang="參考資源"
354               zh-cn-lang="参考"
355               ru-lang="Справочник"
356               ko-lang="참조문서"
357               ja-lang="リファレンス"
358               es-lang="Referencia">Reference</a>
359          </li>
360          <li class="dac-nav-item tools">
361            <a class="dac-nav-link" href="../../../../../sdk/index.html"
362               zh-tw-lang="相關工具"
363               zh-cn-lang="工具"
364               ru-lang="Инструменты"
365               ko-lang="도구"
366               ja-lang="ツール"
367               es-lang="Herramientas">Tools</a></li>
368          <li class="dac-nav-item google">
369            <a class="dac-nav-link" href="../../../../../google/index.html">Google Services</a>
370          </li>
371
372          <li class="dac-nav-item preview">
373            <a class="dac-nav-link" href="../../../../../preview/index.html">Preview</a>
374          </li>
375        </ul>
376      </li>
377      <li class="dac-nav-item distribute">
378        <a class="dac-nav-link" href="../../../../../distribute/index.html"
379           zh-tw-lang="發佈"
380           zh-cn-lang="分发"
381           ru-lang="Распространение"
382           ko-lang="배포"
383           ja-lang="配布"
384           es-lang="Distribuir">Distribute</a>
385        <ul class="dac-nav-secondary distribute">
386          <li class="dac-nav-item googleplay">
387            <a class="dac-nav-link" href="../../../../../distribute/googleplay/index.html">Google Play</a></li>
388          <li class="dac-nav-item essentials">
389            <a class="dac-nav-link" href="../../../../../distribute/essentials/index.html">Essentials</a></li>
390          <li class="dac-nav-item users">
391            <a class="dac-nav-link" href="../../../../../distribute/users/index.html">Get Users</a></li>
392          <li class="dac-nav-item engage">
393            <a class="dac-nav-link" href="../../../../../distribute/engage/index.html">Engage &amp; Retain</a></li>
394          <li class="dac-nav-item monetize">
395            <a class="dac-nav-link" href="../../../../../distribute/monetize/index.html">Earn</a>
396          </li>
397          <li class="dac-nav-item analyze">
398            <a class="dac-nav-link" href="../../../../../distribute/analyze/index.html">Analyze</a>
399          </li>
400          <li class="dac-nav-item stories">
401            <a class="dac-nav-link" href="../../../../../distribute/stories/index.html">Stories</a>
402          </li>
403        </ul>
404      </li>
405    </ul>
406  </nav>
407  <!-- end navigation-->
408
409
410
411
412
413
414  <div class="wrap clearfix" id="body-content"><div class="cols">
415    <div class="col-4 dac-hidden-mobile" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
416      <div id="devdoc-nav">
417      <div id="api-nav-header">
418        <div id="api-level-toggle">
419          <label for="apiLevelCheckbox" class="disabled"
420            title="Select your target API level to dim unavailable APIs">API level: </label>
421          <div class="select-wrapper">
422            <select id="apiLevelSelector">
423              <!-- option elements added by buildApiLevelSelector() -->
424            </select>
425          </div>
426        </div><!-- end toggle -->
427        <div id="api-nav-title">Android APIs</div>
428        </div><!-- end nav header -->
429      <script>
430        var SINCE_DATA = [  ];
431        buildApiLevelSelector();
432      </script>
433
434      <div id="swapper">
435        <div id="nav-panels">
436          <div id="resize-packages-nav">
437            <div id="packages-nav" class="scroll-pane">
438
439              <ul>
440
441    <li class="api apilevel-">
442  <a href="../../../../../reference/android/support/test/package-summary.html">android.support.test</a></li>
443    <li class="api apilevel-">
444  <a href="../../../../../reference/android/support/test/annotation/package-summary.html">android.support.test.annotation</a></li>
445    <li class="api apilevel-">
446  <a href="../../../../../reference/android/support/test/espresso/package-summary.html">android.support.test.espresso</a></li>
447    <li class="api apilevel-">
448  <a href="../../../../../reference/android/support/test/espresso/action/package-summary.html">android.support.test.espresso.action</a></li>
449    <li class="api apilevel-">
450  <a href="../../../../../reference/android/support/test/espresso/assertion/package-summary.html">android.support.test.espresso.assertion</a></li>
451    <li class="api apilevel-">
452  <a href="../../../../../reference/android/support/test/espresso/base/package-summary.html">android.support.test.espresso.base</a></li>
453    <li class="api apilevel-">
454  <a href="../../../../../reference/android/support/test/espresso/contrib/package-summary.html">android.support.test.espresso.contrib</a></li>
455    <li class="api apilevel-">
456  <a href="../../../../../reference/android/support/test/espresso/intent/package-summary.html">android.support.test.espresso.intent</a></li>
457    <li class="api apilevel-">
458  <a href="../../../../../reference/android/support/test/espresso/intent/matcher/package-summary.html">android.support.test.espresso.intent.matcher</a></li>
459    <li class="api apilevel-">
460  <a href="../../../../../reference/android/support/test/espresso/intent/rule/package-summary.html">android.support.test.espresso.intent.rule</a></li>
461    <li class="api apilevel-">
462  <a href="../../../../../reference/android/support/test/espresso/matcher/package-summary.html">android.support.test.espresso.matcher</a></li>
463    <li class="api apilevel-">
464  <a href="../../../../../reference/android/support/test/espresso/util/package-summary.html">android.support.test.espresso.util</a></li>
465    <li class="api apilevel-">
466  <a href="../../../../../reference/android/support/test/espresso/web/action/package-summary.html">android.support.test.espresso.web.action</a></li>
467    <li class="api apilevel-">
468  <a href="../../../../../reference/android/support/test/espresso/web/assertion/package-summary.html">android.support.test.espresso.web.assertion</a></li>
469    <li class="api apilevel-">
470  <a href="../../../../../reference/android/support/test/espresso/web/bridge/package-summary.html">android.support.test.espresso.web.bridge</a></li>
471    <li class="api apilevel-">
472  <a href="../../../../../reference/android/support/test/espresso/web/matcher/package-summary.html">android.support.test.espresso.web.matcher</a></li>
473    <li class="api apilevel-">
474  <a href="../../../../../reference/android/support/test/espresso/web/model/package-summary.html">android.support.test.espresso.web.model</a></li>
475    <li class="api apilevel-">
476  <a href="../../../../../reference/android/support/test/espresso/web/sugar/package-summary.html">android.support.test.espresso.web.sugar</a></li>
477    <li class="api apilevel-">
478  <a href="../../../../../reference/android/support/test/espresso/web/webdriver/package-summary.html">android.support.test.espresso.web.webdriver</a></li>
479    <li class="api apilevel-">
480  <a href="../../../../../reference/android/support/test/filters/package-summary.html">android.support.test.filters</a></li>
481    <li class="api apilevel-">
482  <a href="../../../../../reference/android/support/test/rule/package-summary.html">android.support.test.rule</a></li>
483    <li class="api apilevel-">
484  <a href="../../../../../reference/android/support/test/runner/package-summary.html">android.support.test.runner</a></li>
485    <li class="api apilevel-">
486  <a href="../../../../../reference/android/support/test/runner/intent/package-summary.html">android.support.test.runner.intent</a></li>
487    <li class="api apilevel-">
488  <a href="../../../../../reference/android/support/test/runner/lifecycle/package-summary.html">android.support.test.runner.lifecycle</a></li>
489    <li class="selected api apilevel-">
490  <a href="../../../../../reference/android/support/test/uiautomator/package-summary.html">android.support.test.uiautomator</a></li>
491              </ul><br/>
492
493            </div> <!-- end packages-nav -->
494          </div> <!-- end resize-packages -->
495          <div id="classes-nav" class="scroll-pane">
496
497
498
499            <ul>
500
501
502    <li><h2>Interfaces</h2>
503      <ul>
504          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/IAutomationSupport.html">IAutomationSupport</a></li>
505          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiWatcher.html">UiWatcher</a></li>
506      </ul>
507    </li>
508
509    <li><h2>Classes</h2>
510      <ul>
511          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/By.html">By</a></li>
512          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/BySelector.html">BySelector</a></li>
513          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/Configurator.html">Configurator</a></li>
514          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/EventCondition.html">EventCondition</a></li>
515          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></li>
516          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiAutomatorInstrumentationTestRunner.html">UiAutomatorInstrumentationTestRunner</a></li>
517          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiAutomatorTestCase.html">UiAutomatorTestCase</a></li>
518          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiCollection.html">UiCollection</a></li>
519          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiDevice.html">UiDevice</a></li>
520          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObject.html">UiObject</a></li>
521          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></li>
522          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a></li>
523          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a></li>
524          <li class="selected api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></li>
525          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/Until.html">Until</a></li>
526      </ul>
527    </li>
528
529    <li><h2>Enums</h2>
530      <ul>
531          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/Direction.html">Direction</a></li>
532      </ul>
533    </li>
534
535    <li><h2>Exceptions</h2>
536      <ul>
537          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/StaleObjectException.html">StaleObjectException</a></li>
538          <li class="api apilevel-"><a href="../../../../../reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></li>
539      </ul>
540    </li>
541
542            </ul><br/>
543
544
545          </div><!-- end classes -->
546        </div><!-- end nav-panels -->
547        <div id="nav-tree" style="display:none" class="scroll-pane">
548          <div id="tree-list"></div>
549        </div><!-- end nav-tree -->
550      </div><!-- end swapper -->
551      <div id="nav-swap">
552      <a class="fullscreen">fullscreen</a>
553      <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>
554      </div>
555    </div> <!-- end devdoc-nav -->
556    </div> <!-- end side-nav -->
557    <script type="text/javascript">
558      // init fullscreen based on user pref
559      var fullscreen = readCookie("fullscreen");
560      if (fullscreen != 0) {
561        if (fullscreen == "false") {
562          toggleFullscreen(false);
563        } else {
564          toggleFullscreen(true);
565        }
566      }
567      // init nav version for mobile
568      if (isMobile) {
569        swapNav(); // tree view should be used on mobile
570        $('#nav-swap').hide();
571      } else {
572        chooseDefaultNav();
573        if ($("#nav-tree").is(':visible')) {
574          init_default_navtree("../../../../../");
575        }
576      }
577      // scroll the selected page into view
578      $(document).ready(function() {
579        scrollIntoView("packages-nav");
580        scrollIntoView("classes-nav");
581        });
582    </script>
583
584
585
586
587
588<div class="col-12"  id="doc-col">
589
590<div id="api-info-block">
591
592
593
594
595
596
597
598
599
600
601
602<div class="sum-details-links">
603
604Summary:
605
606
607
608
609
610
611
612
613
614  <a href="#pubctors">Ctors</a>
615
616
617
618
619  &#124; <a href="#pubmethods">Methods</a>
620
621
622
623  &#124; <a href="#promethods">Protected Methods</a>
624
625
626
627  &#124; <a href="#inhmethods">Inherited Methods</a>
628
629&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
630
631</div><!-- end sum-details-links -->
632<div class="api-level">
633
634
635
636
637</div>
638</div><!-- end api-info-block -->
639
640
641<!-- ======== START OF CLASS DATA ======== -->
642
643<div id="jd-header">
644    public
645
646
647
648    class
649<h1 itemprop="name">UiSelector</h1>
650
651
652
653
654    extends Object<br/>
655
656
657
658
659
660
661
662
663
664
665
666
667</div><!-- end header -->
668
669<div id="naMessage"></div>
670
671<div id="jd-content" class="api apilevel-">
672<table class="jd-inheritance-table">
673
674
675    <tr>
676
677        <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td>
678    </tr>
679
680
681    <tr>
682
683            <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
684
685        <td colspan="1" class="jd-inheritance-class-cell">android.support.test.uiautomator.UiSelector</td>
686    </tr>
687
688
689</table>
690
691
692
693
694
695
696
697<div class="jd-descr">
698
699
700<h2>Class Overview</h2>
701<p itemprop="articleBody">Specifies the elements in the layout hierarchy for tests to target, filtered
702 by properties such as text value, content-description, class name, and state
703 information. You can also target an element by its location in a layout
704 hierarchy.</p>
705
706
707
708
709
710</div><!-- jd-descr -->
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727<div class="jd-descr">
728
729
730<h2>Summary</h2>
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754<!-- ======== CONSTRUCTOR SUMMARY ======== -->
755<table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr>
756
757
758
759
760    <tr class="alt-color api apilevel-" >
761        <td class="jd-typecol"><nobr>
762
763
764
765
766
767            </nobr>
768        </td>
769        <td class="jd-linkcol" width="100%"><nobr>
770        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#UiSelector()">UiSelector</a></span>()</nobr>
771
772  </td></tr>
773
774
775
776</table>
777
778
779
780
781
782
783<!-- ========== METHOD SUMMARY =========== -->
784<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
785
786
787
788
789    <tr class="alt-color api apilevel-" >
790        <td class="jd-typecol"><nobr>
791
792
793
794
795
796            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
797        </td>
798        <td class="jd-linkcol" width="100%"><nobr>
799        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#checkable(boolean)">checkable</a></span>(boolean val)</nobr>
800
801        <div class="jd-descrdiv">
802          Set the search criteria to match widgets that are checkable.
803
804
805
806        </div>
807
808  </td></tr>
809
810
811
812    <tr class=" api apilevel-" >
813        <td class="jd-typecol"><nobr>
814
815
816
817
818
819            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
820        </td>
821        <td class="jd-linkcol" width="100%"><nobr>
822        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#checked(boolean)">checked</a></span>(boolean val)</nobr>
823
824        <div class="jd-descrdiv">
825          Set the search criteria to match widgets that
826 are currently checked (usually for checkboxes).
827
828
829
830        </div>
831
832  </td></tr>
833
834
835
836    <tr class="alt-color api apilevel-" >
837        <td class="jd-typecol"><nobr>
838
839
840
841
842
843            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
844        </td>
845        <td class="jd-linkcol" width="100%"><nobr>
846        <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>
847
848        <div class="jd-descrdiv">
849          Adds a child UiSelector criteria to this selector.
850
851
852
853        </div>
854
855  </td></tr>
856
857
858
859    <tr class=" api apilevel-" >
860        <td class="jd-typecol"><nobr>
861
862
863
864
865
866            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
867        </td>
868        <td class="jd-linkcol" width="100%"><nobr>
869        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#className(java.lang.String)">className</a></span>(String className)</nobr>
870
871        <div class="jd-descrdiv">
872          Set the search criteria to match the class property
873 for a widget (for example, "android.widget.Button").
874
875
876
877        </div>
878
879  </td></tr>
880
881
882
883    <tr class="alt-color api apilevel-" >
884        <td class="jd-typecol"><nobr>
885
886
887
888
889            &lt;T&gt;
890            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
891        </td>
892        <td class="jd-linkcol" width="100%"><nobr>
893        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#className(java.lang.Class<T>)">className</a></span>(Class&lt;T&gt; type)</nobr>
894
895        <div class="jd-descrdiv">
896          Set the search criteria to match the class property
897 for a widget (for example, "android.widget.Button").
898
899
900
901        </div>
902
903  </td></tr>
904
905
906
907    <tr class=" api apilevel-" >
908        <td class="jd-typecol"><nobr>
909
910
911
912
913
914            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
915        </td>
916        <td class="jd-linkcol" width="100%"><nobr>
917        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#classNameMatches(java.lang.String)">classNameMatches</a></span>(String regex)</nobr>
918
919        <div class="jd-descrdiv">
920          Set the search criteria to match the class property
921 for a widget, using a regular expression.
922
923
924
925        </div>
926
927  </td></tr>
928
929
930
931    <tr class="alt-color api apilevel-" >
932        <td class="jd-typecol"><nobr>
933
934
935
936
937
938            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
939        </td>
940        <td class="jd-linkcol" width="100%"><nobr>
941        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#clickable(boolean)">clickable</a></span>(boolean val)</nobr>
942
943        <div class="jd-descrdiv">
944          Set the search criteria to match widgets that are clickable.
945
946
947
948        </div>
949
950  </td></tr>
951
952
953
954    <tr class=" api apilevel-" >
955        <td class="jd-typecol"><nobr>
956
957
958
959
960
961            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
962        </td>
963        <td class="jd-linkcol" width="100%"><nobr>
964        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#description(java.lang.String)">description</a></span>(String desc)</nobr>
965
966        <div class="jd-descrdiv">
967          Set the search criteria to match the content-description
968 property for a widget.
969
970
971
972        </div>
973
974  </td></tr>
975
976
977
978    <tr class="alt-color api apilevel-" >
979        <td class="jd-typecol"><nobr>
980
981
982
983
984
985            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
986        </td>
987        <td class="jd-linkcol" width="100%"><nobr>
988        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#descriptionContains(java.lang.String)">descriptionContains</a></span>(String desc)</nobr>
989
990        <div class="jd-descrdiv">
991          Set the search criteria to match the content-description
992 property for a widget.
993
994
995
996        </div>
997
998  </td></tr>
999
1000
1001
1002    <tr class=" api apilevel-" >
1003        <td class="jd-typecol"><nobr>
1004
1005
1006
1007
1008
1009            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1010        </td>
1011        <td class="jd-linkcol" width="100%"><nobr>
1012        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#descriptionMatches(java.lang.String)">descriptionMatches</a></span>(String regex)</nobr>
1013
1014        <div class="jd-descrdiv">
1015          Set the search criteria to match the content-description
1016 property for a widget.
1017
1018
1019
1020        </div>
1021
1022  </td></tr>
1023
1024
1025
1026    <tr class="alt-color api apilevel-" >
1027        <td class="jd-typecol"><nobr>
1028
1029
1030
1031
1032
1033            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1034        </td>
1035        <td class="jd-linkcol" width="100%"><nobr>
1036        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#descriptionStartsWith(java.lang.String)">descriptionStartsWith</a></span>(String desc)</nobr>
1037
1038        <div class="jd-descrdiv">
1039          Set the search criteria to match the content-description
1040 property for a widget.
1041
1042
1043
1044        </div>
1045
1046  </td></tr>
1047
1048
1049
1050    <tr class=" api apilevel-" >
1051        <td class="jd-typecol"><nobr>
1052
1053
1054
1055
1056
1057            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1058        </td>
1059        <td class="jd-linkcol" width="100%"><nobr>
1060        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#enabled(boolean)">enabled</a></span>(boolean val)</nobr>
1061
1062        <div class="jd-descrdiv">
1063          Set the search criteria to match widgets that are enabled.
1064
1065
1066
1067        </div>
1068
1069  </td></tr>
1070
1071
1072
1073    <tr class="alt-color api apilevel-" >
1074        <td class="jd-typecol"><nobr>
1075
1076
1077
1078
1079
1080            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1081        </td>
1082        <td class="jd-linkcol" width="100%"><nobr>
1083        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#focusable(boolean)">focusable</a></span>(boolean val)</nobr>
1084
1085        <div class="jd-descrdiv">
1086          Set the search criteria to match widgets that are focusable.
1087
1088
1089
1090        </div>
1091
1092  </td></tr>
1093
1094
1095
1096    <tr class=" api apilevel-" >
1097        <td class="jd-typecol"><nobr>
1098
1099
1100
1101
1102
1103            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1104        </td>
1105        <td class="jd-linkcol" width="100%"><nobr>
1106        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#focused(boolean)">focused</a></span>(boolean val)</nobr>
1107
1108        <div class="jd-descrdiv">
1109          Set the search criteria to match widgets that have focus.
1110
1111
1112
1113        </div>
1114
1115  </td></tr>
1116
1117
1118
1119    <tr class="alt-color api apilevel-" >
1120        <td class="jd-typecol"><nobr>
1121
1122
1123
1124
1125
1126            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1127        </td>
1128        <td class="jd-linkcol" width="100%"><nobr>
1129        <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>
1130
1131        <div class="jd-descrdiv">
1132          Adds a child UiSelector criteria to this selector which is used to
1133 start search from the parent widget.
1134
1135
1136
1137        </div>
1138
1139  </td></tr>
1140
1141
1142
1143    <tr class=" api apilevel-" >
1144        <td class="jd-typecol"><nobr>
1145
1146
1147
1148
1149
1150            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1151        </td>
1152        <td class="jd-linkcol" width="100%"><nobr>
1153        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#index(int)">index</a></span>(int index)</nobr>
1154
1155        <div class="jd-descrdiv">
1156          Set the search criteria to match the widget by its node
1157 index in the layout hierarchy.
1158
1159
1160
1161        </div>
1162
1163  </td></tr>
1164
1165
1166
1167    <tr class="alt-color api apilevel-" >
1168        <td class="jd-typecol"><nobr>
1169
1170
1171
1172
1173
1174            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1175        </td>
1176        <td class="jd-linkcol" width="100%"><nobr>
1177        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#instance(int)">instance</a></span>(int instance)</nobr>
1178
1179        <div class="jd-descrdiv">
1180          Set the search criteria to match the
1181 widget by its instance number.
1182
1183
1184
1185        </div>
1186
1187  </td></tr>
1188
1189
1190
1191    <tr class=" api apilevel-" >
1192        <td class="jd-typecol"><nobr>
1193
1194
1195
1196
1197
1198            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1199        </td>
1200        <td class="jd-linkcol" width="100%"><nobr>
1201        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#longClickable(boolean)">longClickable</a></span>(boolean val)</nobr>
1202
1203        <div class="jd-descrdiv">
1204          Set the search criteria to match widgets that are long-clickable.
1205
1206
1207
1208        </div>
1209
1210  </td></tr>
1211
1212
1213
1214    <tr class="alt-color api apilevel-" >
1215        <td class="jd-typecol"><nobr>
1216
1217
1218
1219
1220
1221            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1222        </td>
1223        <td class="jd-linkcol" width="100%"><nobr>
1224        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#packageName(java.lang.String)">packageName</a></span>(String name)</nobr>
1225
1226        <div class="jd-descrdiv">
1227          Set the search criteria to match the package name
1228 of the application that contains the widget.
1229
1230
1231
1232        </div>
1233
1234  </td></tr>
1235
1236
1237
1238    <tr class=" api apilevel-" >
1239        <td class="jd-typecol"><nobr>
1240
1241
1242
1243
1244
1245            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1246        </td>
1247        <td class="jd-linkcol" width="100%"><nobr>
1248        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#packageNameMatches(java.lang.String)">packageNameMatches</a></span>(String regex)</nobr>
1249
1250        <div class="jd-descrdiv">
1251          Set the search criteria to match the package name
1252 of the application that contains the widget.
1253
1254
1255
1256        </div>
1257
1258  </td></tr>
1259
1260
1261
1262    <tr class="alt-color api apilevel-" >
1263        <td class="jd-typecol"><nobr>
1264
1265
1266
1267
1268
1269            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1270        </td>
1271        <td class="jd-linkcol" width="100%"><nobr>
1272        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#resourceId(java.lang.String)">resourceId</a></span>(String id)</nobr>
1273
1274        <div class="jd-descrdiv">
1275          Set the search criteria to match the given resource ID.
1276
1277
1278
1279        </div>
1280
1281  </td></tr>
1282
1283
1284
1285    <tr class=" api apilevel-" >
1286        <td class="jd-typecol"><nobr>
1287
1288
1289
1290
1291
1292            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1293        </td>
1294        <td class="jd-linkcol" width="100%"><nobr>
1295        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#resourceIdMatches(java.lang.String)">resourceIdMatches</a></span>(String regex)</nobr>
1296
1297        <div class="jd-descrdiv">
1298          Set the search criteria to match the resource ID
1299 of the widget, using a regular expression.
1300
1301
1302
1303        </div>
1304
1305  </td></tr>
1306
1307
1308
1309    <tr class="alt-color api apilevel-" >
1310        <td class="jd-typecol"><nobr>
1311
1312
1313
1314
1315
1316            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1317        </td>
1318        <td class="jd-linkcol" width="100%"><nobr>
1319        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#scrollable(boolean)">scrollable</a></span>(boolean val)</nobr>
1320
1321        <div class="jd-descrdiv">
1322          Set the search criteria to match widgets that are scrollable.
1323
1324
1325
1326        </div>
1327
1328  </td></tr>
1329
1330
1331
1332    <tr class=" api apilevel-" >
1333        <td class="jd-typecol"><nobr>
1334
1335
1336
1337
1338
1339            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1340        </td>
1341        <td class="jd-linkcol" width="100%"><nobr>
1342        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#selected(boolean)">selected</a></span>(boolean val)</nobr>
1343
1344        <div class="jd-descrdiv">
1345          Set the search criteria to match widgets that
1346 are currently selected.
1347
1348
1349
1350        </div>
1351
1352  </td></tr>
1353
1354
1355
1356    <tr class="alt-color api apilevel-" >
1357        <td class="jd-typecol"><nobr>
1358
1359
1360
1361
1362
1363            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1364        </td>
1365        <td class="jd-linkcol" width="100%"><nobr>
1366        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#text(java.lang.String)">text</a></span>(String text)</nobr>
1367
1368        <div class="jd-descrdiv">
1369          Set the search criteria to match the visible text displayed
1370 in a widget (for example, the text label to launch an app).
1371
1372
1373
1374        </div>
1375
1376  </td></tr>
1377
1378
1379
1380    <tr class=" api apilevel-" >
1381        <td class="jd-typecol"><nobr>
1382
1383
1384
1385
1386
1387            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1388        </td>
1389        <td class="jd-linkcol" width="100%"><nobr>
1390        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#textContains(java.lang.String)">textContains</a></span>(String text)</nobr>
1391
1392        <div class="jd-descrdiv">
1393          Set the search criteria to match the visible text in a widget
1394 where the visible text must contain the string in your input argument.
1395
1396
1397
1398        </div>
1399
1400  </td></tr>
1401
1402
1403
1404    <tr class="alt-color api apilevel-" >
1405        <td class="jd-typecol"><nobr>
1406
1407
1408
1409
1410
1411            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1412        </td>
1413        <td class="jd-linkcol" width="100%"><nobr>
1414        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#textMatches(java.lang.String)">textMatches</a></span>(String regex)</nobr>
1415
1416        <div class="jd-descrdiv">
1417          Set the search criteria to match the visible text displayed in a layout
1418 element, using a regular expression.
1419
1420
1421
1422        </div>
1423
1424  </td></tr>
1425
1426
1427
1428    <tr class=" api apilevel-" >
1429        <td class="jd-typecol"><nobr>
1430
1431
1432
1433
1434
1435            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1436        </td>
1437        <td class="jd-linkcol" width="100%"><nobr>
1438        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#textStartsWith(java.lang.String)">textStartsWith</a></span>(String text)</nobr>
1439
1440        <div class="jd-descrdiv">
1441          Set the search criteria to match visible text in a widget that is
1442 prefixed by the text parameter.
1443
1444
1445
1446        </div>
1447
1448  </td></tr>
1449
1450
1451
1452    <tr class="alt-color api apilevel-" >
1453        <td class="jd-typecol"><nobr>
1454
1455
1456
1457
1458
1459            String</nobr>
1460        </td>
1461        <td class="jd-linkcol" width="100%"><nobr>
1462        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#toString()">toString</a></span>()</nobr>
1463
1464  </td></tr>
1465
1466
1467
1468</table>
1469
1470
1471
1472
1473<!-- ========== METHOD SUMMARY =========== -->
1474<table id="promethods" class="jd-sumtable"><tr><th colspan="12">Protected Methods</th></tr>
1475
1476
1477
1478
1479    <tr class="alt-color api apilevel-" >
1480        <td class="jd-typecol"><nobr>
1481
1482
1483
1484
1485
1486            <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></nobr>
1487        </td>
1488        <td class="jd-linkcol" width="100%"><nobr>
1489        <span class="sympad"><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#cloneSelector()">cloneSelector</a></span>()</nobr>
1490
1491  </td></tr>
1492
1493
1494
1495</table>
1496
1497
1498
1499
1500
1501<!-- ========== METHOD SUMMARY =========== -->
1502<table id="inhmethods" class="jd-sumtable"><tr><th>
1503  <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
1504  <div style="clear:left;">Inherited Methods</div></th></tr>
1505
1506
1507<tr class="api apilevel-" >
1508<td colspan="12">
1509  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
1510          ><img id="inherited-methods-java.lang.Object-trigger"
1511          src="../../../../../assets/images/triangle-closed.png"
1512          class="jd-expando-trigger-img" /></a>
1513From class
1514
1515  java.lang.Object
1516
1517<div id="inherited-methods-java.lang.Object">
1518  <div id="inherited-methods-java.lang.Object-list"
1519        class="jd-inheritedlinks">
1520  </div>
1521  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
1522    <table class="jd-sumtable-expando">
1523
1524
1525
1526
1527    <tr class="alt-color api apilevel-" >
1528        <td class="jd-typecol"><nobr>
1529
1530
1531
1532
1533
1534            Object</nobr>
1535        </td>
1536        <td class="jd-linkcol" width="100%"><nobr>
1537        <span class="sympad">clone</span>()</nobr>
1538
1539  </td></tr>
1540
1541
1542
1543    <tr class=" api apilevel-" >
1544        <td class="jd-typecol"><nobr>
1545
1546
1547
1548
1549
1550            boolean</nobr>
1551        </td>
1552        <td class="jd-linkcol" width="100%"><nobr>
1553        <span class="sympad">equals</span>(Object arg0)</nobr>
1554
1555  </td></tr>
1556
1557
1558
1559    <tr class="alt-color api apilevel-" >
1560        <td class="jd-typecol"><nobr>
1561
1562
1563
1564
1565
1566            void</nobr>
1567        </td>
1568        <td class="jd-linkcol" width="100%"><nobr>
1569        <span class="sympad">finalize</span>()</nobr>
1570
1571  </td></tr>
1572
1573
1574
1575    <tr class=" api apilevel-" >
1576        <td class="jd-typecol"><nobr>
1577
1578
1579            final
1580
1581
1582            Class&lt;?&gt;</nobr>
1583        </td>
1584        <td class="jd-linkcol" width="100%"><nobr>
1585        <span class="sympad">getClass</span>()</nobr>
1586
1587  </td></tr>
1588
1589
1590
1591    <tr class="alt-color api apilevel-" >
1592        <td class="jd-typecol"><nobr>
1593
1594
1595
1596
1597
1598            int</nobr>
1599        </td>
1600        <td class="jd-linkcol" width="100%"><nobr>
1601        <span class="sympad">hashCode</span>()</nobr>
1602
1603  </td></tr>
1604
1605
1606
1607    <tr class=" api apilevel-" >
1608        <td class="jd-typecol"><nobr>
1609
1610
1611            final
1612
1613
1614            void</nobr>
1615        </td>
1616        <td class="jd-linkcol" width="100%"><nobr>
1617        <span class="sympad">notify</span>()</nobr>
1618
1619  </td></tr>
1620
1621
1622
1623    <tr class="alt-color 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">notifyAll</span>()</nobr>
1634
1635  </td></tr>
1636
1637
1638
1639    <tr class=" api apilevel-" >
1640        <td class="jd-typecol"><nobr>
1641
1642
1643
1644
1645
1646            String</nobr>
1647        </td>
1648        <td class="jd-linkcol" width="100%"><nobr>
1649        <span class="sympad">toString</span>()</nobr>
1650
1651  </td></tr>
1652
1653
1654
1655    <tr class="alt-color api apilevel-" >
1656        <td class="jd-typecol"><nobr>
1657
1658
1659            final
1660
1661
1662            void</nobr>
1663        </td>
1664        <td class="jd-linkcol" width="100%"><nobr>
1665        <span class="sympad">wait</span>()</nobr>
1666
1667  </td></tr>
1668
1669
1670
1671    <tr class=" 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>(long arg0, int arg1)</nobr>
1682
1683  </td></tr>
1684
1685
1686
1687    <tr class="alt-color 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)</nobr>
1698
1699  </td></tr>
1700
1701
1702</table>
1703  </div>
1704</div>
1705</td></tr>
1706
1707
1708</table>
1709
1710
1711</div><!-- jd-descr (summary) -->
1712
1713<!-- Details -->
1714
1715
1716
1717
1718
1719
1720
1721
1722<!-- XML Attributes -->
1723
1724
1725<!-- Enum Values -->
1726
1727
1728<!-- Constants -->
1729
1730
1731<!-- Fields -->
1732
1733
1734<!-- Public ctors -->
1735
1736
1737<!-- ========= CONSTRUCTOR DETAIL ======== -->
1738<h2>Public Constructors</h2>
1739
1740
1741
1742<A NAME="UiSelector()"></A>
1743
1744<div class="jd-details api apilevel-">
1745    <h4 class="jd-details-title">
1746      <span class="normal">
1747        public
1748
1749
1750
1751
1752
1753      </span>
1754      <span class="sympad">UiSelector</span>
1755      <span class="normal">()</span>
1756    </h4>
1757      <div class="api-level">
1758        <div></div>
1759
1760
1761
1762      </div>
1763    <div class="jd-details-descr">
1764
1765
1766
1767
1768  <div class="jd-tagdata jd-tagdescr"><p></p></div>
1769
1770    </div>
1771</div>
1772
1773
1774
1775
1776
1777<!-- ========= CONSTRUCTOR DETAIL ======== -->
1778<!-- Protected ctors -->
1779
1780
1781
1782<!-- ========= METHOD DETAIL ======== -->
1783<!-- Public methdos -->
1784
1785<h2>Public Methods</h2>
1786
1787
1788
1789<A NAME="checkable(boolean)"></A>
1790
1791<div class="jd-details api apilevel-">
1792    <h4 class="jd-details-title">
1793      <span class="normal">
1794        public
1795
1796
1797
1798
1799        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
1800      </span>
1801      <span class="sympad">checkable</span>
1802      <span class="normal">(boolean val)</span>
1803    </h4>
1804      <div class="api-level">
1805        <div></div>
1806
1807
1808
1809      </div>
1810    <div class="jd-details-descr">
1811
1812
1813
1814
1815  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are checkable.
1816
1817 Typically, using this search criteria alone is not useful.
1818 You should also include additional criteria, such as text,
1819 content-description, or the class name for a widget.
1820
1821 If no other search criteria is specified, and there is more
1822 than one matching widget, the first widget in the tree
1823 is selected.</p></div>
1824  <div class="jd-tagdata">
1825      <h5 class="jd-tagtitle">Parameters</h5>
1826      <table class="jd-tagtable">
1827        <tr>
1828          <th>val</td>
1829          <td>Value to match</td>
1830        </tr>
1831      </table>
1832  </div>
1833  <div class="jd-tagdata">
1834      <h5 class="jd-tagtitle">Returns</h5>
1835      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1836  </div>
1837
1838    </div>
1839</div>
1840
1841
1842<A NAME="checked(boolean)"></A>
1843
1844<div class="jd-details api apilevel-">
1845    <h4 class="jd-details-title">
1846      <span class="normal">
1847        public
1848
1849
1850
1851
1852        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
1853      </span>
1854      <span class="sympad">checked</span>
1855      <span class="normal">(boolean val)</span>
1856    </h4>
1857      <div class="api-level">
1858        <div></div>
1859
1860
1861
1862      </div>
1863    <div class="jd-details-descr">
1864
1865
1866
1867
1868  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that
1869 are currently checked (usually for checkboxes).
1870
1871 Typically, using this search criteria alone is not useful.
1872 You should also include additional criteria, such as text,
1873 content-description, or the class name for a widget.
1874
1875 If no other search criteria is specified, and there is more
1876 than one matching widget, the first widget in the tree
1877 is selected.</p></div>
1878  <div class="jd-tagdata">
1879      <h5 class="jd-tagtitle">Parameters</h5>
1880      <table class="jd-tagtable">
1881        <tr>
1882          <th>val</td>
1883          <td>Value to match</td>
1884        </tr>
1885      </table>
1886  </div>
1887  <div class="jd-tagdata">
1888      <h5 class="jd-tagtitle">Returns</h5>
1889      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1890  </div>
1891
1892    </div>
1893</div>
1894
1895
1896<A NAME="childSelector(android.support.test.uiautomator.UiSelector)"></A>
1897
1898<div class="jd-details api apilevel-">
1899    <h4 class="jd-details-title">
1900      <span class="normal">
1901        public
1902
1903
1904
1905
1906        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
1907      </span>
1908      <span class="sympad">childSelector</span>
1909      <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</span>
1910    </h4>
1911      <div class="api-level">
1912        <div></div>
1913
1914
1915
1916      </div>
1917    <div class="jd-details-descr">
1918
1919
1920
1921
1922  <div class="jd-tagdata jd-tagdescr"><p>Adds a child UiSelector criteria to this selector.
1923
1924 Use this selector to narrow the search scope to
1925 child widgets under a specific parent widget.</p></div>
1926  <div class="jd-tagdata">
1927      <h5 class="jd-tagtitle">Returns</h5>
1928      <ul class="nolist"><li>UiSelector with this added search criterion</li></ul>
1929  </div>
1930
1931    </div>
1932</div>
1933
1934
1935<A NAME="className(java.lang.String)"></A>
1936
1937<div class="jd-details api apilevel-">
1938    <h4 class="jd-details-title">
1939      <span class="normal">
1940        public
1941
1942
1943
1944
1945        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
1946      </span>
1947      <span class="sympad">className</span>
1948      <span class="normal">(String className)</span>
1949    </h4>
1950      <div class="api-level">
1951        <div></div>
1952
1953
1954
1955      </div>
1956    <div class="jd-details-descr">
1957
1958
1959
1960
1961  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the class property
1962 for a widget (for example, "android.widget.Button").</p></div>
1963  <div class="jd-tagdata">
1964      <h5 class="jd-tagtitle">Parameters</h5>
1965      <table class="jd-tagtable">
1966        <tr>
1967          <th>className</td>
1968          <td>Value to match</td>
1969        </tr>
1970      </table>
1971  </div>
1972  <div class="jd-tagdata">
1973      <h5 class="jd-tagtitle">Returns</h5>
1974      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1975  </div>
1976
1977    </div>
1978</div>
1979
1980
1981<A NAME="className(java.lang.Class<T>)"></A>
1982
1983<div class="jd-details api apilevel-">
1984    <h4 class="jd-details-title">
1985      <span class="normal">
1986        public
1987
1988
1989
1990
1991        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
1992      </span>
1993      <span class="sympad">className</span>
1994      <span class="normal">(Class&lt;T&gt; type)</span>
1995    </h4>
1996      <div class="api-level">
1997        <div></div>
1998
1999
2000
2001      </div>
2002    <div class="jd-details-descr">
2003
2004
2005
2006
2007  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the class property
2008 for a widget (for example, "android.widget.Button").</p></div>
2009  <div class="jd-tagdata">
2010      <h5 class="jd-tagtitle">Parameters</h5>
2011      <table class="jd-tagtable">
2012        <tr>
2013          <th>type</td>
2014          <td>type</td>
2015        </tr>
2016      </table>
2017  </div>
2018  <div class="jd-tagdata">
2019      <h5 class="jd-tagtitle">Returns</h5>
2020      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2021  </div>
2022
2023    </div>
2024</div>
2025
2026
2027<A NAME="classNameMatches(java.lang.String)"></A>
2028
2029<div class="jd-details api apilevel-">
2030    <h4 class="jd-details-title">
2031      <span class="normal">
2032        public
2033
2034
2035
2036
2037        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2038      </span>
2039      <span class="sympad">classNameMatches</span>
2040      <span class="normal">(String regex)</span>
2041    </h4>
2042      <div class="api-level">
2043        <div></div>
2044
2045
2046
2047      </div>
2048    <div class="jd-details-descr">
2049
2050
2051
2052
2053  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the class property
2054 for a widget, using a regular expression.</p></div>
2055  <div class="jd-tagdata">
2056      <h5 class="jd-tagtitle">Parameters</h5>
2057      <table class="jd-tagtable">
2058        <tr>
2059          <th>regex</td>
2060          <td>a regular expression</td>
2061        </tr>
2062      </table>
2063  </div>
2064  <div class="jd-tagdata">
2065      <h5 class="jd-tagtitle">Returns</h5>
2066      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2067  </div>
2068
2069    </div>
2070</div>
2071
2072
2073<A NAME="clickable(boolean)"></A>
2074
2075<div class="jd-details api apilevel-">
2076    <h4 class="jd-details-title">
2077      <span class="normal">
2078        public
2079
2080
2081
2082
2083        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2084      </span>
2085      <span class="sympad">clickable</span>
2086      <span class="normal">(boolean val)</span>
2087    </h4>
2088      <div class="api-level">
2089        <div></div>
2090
2091
2092
2093      </div>
2094    <div class="jd-details-descr">
2095
2096
2097
2098
2099  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are clickable.
2100
2101 Typically, using this search criteria alone is not useful.
2102 You should also include additional criteria, such as text,
2103 content-description, or the class name for a widget.
2104
2105 If no other search criteria is specified, and there is more
2106 than one matching widget, the first widget in the tree
2107 is selected.</p></div>
2108  <div class="jd-tagdata">
2109      <h5 class="jd-tagtitle">Parameters</h5>
2110      <table class="jd-tagtable">
2111        <tr>
2112          <th>val</td>
2113          <td>Value to match</td>
2114        </tr>
2115      </table>
2116  </div>
2117  <div class="jd-tagdata">
2118      <h5 class="jd-tagtitle">Returns</h5>
2119      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2120  </div>
2121
2122    </div>
2123</div>
2124
2125
2126<A NAME="description(java.lang.String)"></A>
2127
2128<div class="jd-details api apilevel-">
2129    <h4 class="jd-details-title">
2130      <span class="normal">
2131        public
2132
2133
2134
2135
2136        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2137      </span>
2138      <span class="sympad">description</span>
2139      <span class="normal">(String desc)</span>
2140    </h4>
2141      <div class="api-level">
2142        <div></div>
2143
2144
2145
2146      </div>
2147    <div class="jd-details-descr">
2148
2149
2150
2151
2152  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description
2153 property for a widget.
2154
2155 The content-description is typically used
2156 by the Android Accessibility framework to
2157 provide an audio prompt for the widget when
2158 the widget is selected. The content-description
2159 for the widget must match exactly
2160 with the string in your input argument.
2161
2162 Matching is case-sensitive.</p></div>
2163  <div class="jd-tagdata">
2164      <h5 class="jd-tagtitle">Parameters</h5>
2165      <table class="jd-tagtable">
2166        <tr>
2167          <th>desc</td>
2168          <td>Value to match</td>
2169        </tr>
2170      </table>
2171  </div>
2172  <div class="jd-tagdata">
2173      <h5 class="jd-tagtitle">Returns</h5>
2174      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2175  </div>
2176
2177    </div>
2178</div>
2179
2180
2181<A NAME="descriptionContains(java.lang.String)"></A>
2182
2183<div class="jd-details api apilevel-">
2184    <h4 class="jd-details-title">
2185      <span class="normal">
2186        public
2187
2188
2189
2190
2191        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2192      </span>
2193      <span class="sympad">descriptionContains</span>
2194      <span class="normal">(String desc)</span>
2195    </h4>
2196      <div class="api-level">
2197        <div></div>
2198
2199
2200
2201      </div>
2202    <div class="jd-details-descr">
2203
2204
2205
2206
2207  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description
2208 property for a widget.
2209
2210 The content-description is typically used
2211 by the Android Accessibility framework to
2212 provide an audio prompt for the widget when
2213 the widget is selected. The content-description
2214 for the widget must contain
2215 the string in your input argument.
2216
2217 Matching is case-insensitive.</p></div>
2218  <div class="jd-tagdata">
2219      <h5 class="jd-tagtitle">Parameters</h5>
2220      <table class="jd-tagtable">
2221        <tr>
2222          <th>desc</td>
2223          <td>Value to match</td>
2224        </tr>
2225      </table>
2226  </div>
2227  <div class="jd-tagdata">
2228      <h5 class="jd-tagtitle">Returns</h5>
2229      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2230  </div>
2231
2232    </div>
2233</div>
2234
2235
2236<A NAME="descriptionMatches(java.lang.String)"></A>
2237
2238<div class="jd-details api apilevel-">
2239    <h4 class="jd-details-title">
2240      <span class="normal">
2241        public
2242
2243
2244
2245
2246        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2247      </span>
2248      <span class="sympad">descriptionMatches</span>
2249      <span class="normal">(String regex)</span>
2250    </h4>
2251      <div class="api-level">
2252        <div></div>
2253
2254
2255
2256      </div>
2257    <div class="jd-details-descr">
2258
2259
2260
2261
2262  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description
2263 property for a widget.
2264
2265 The content-description is typically used
2266 by the Android Accessibility framework to
2267 provide an audio prompt for the widget when
2268 the widget is selected. The content-description
2269 for the widget must match exactly
2270 with the string in your input argument.</p></div>
2271  <div class="jd-tagdata">
2272      <h5 class="jd-tagtitle">Parameters</h5>
2273      <table class="jd-tagtable">
2274        <tr>
2275          <th>regex</td>
2276          <td>a regular expression</td>
2277        </tr>
2278      </table>
2279  </div>
2280  <div class="jd-tagdata">
2281      <h5 class="jd-tagtitle">Returns</h5>
2282      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2283  </div>
2284
2285    </div>
2286</div>
2287
2288
2289<A NAME="descriptionStartsWith(java.lang.String)"></A>
2290
2291<div class="jd-details api apilevel-">
2292    <h4 class="jd-details-title">
2293      <span class="normal">
2294        public
2295
2296
2297
2298
2299        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2300      </span>
2301      <span class="sympad">descriptionStartsWith</span>
2302      <span class="normal">(String desc)</span>
2303    </h4>
2304      <div class="api-level">
2305        <div></div>
2306
2307
2308
2309      </div>
2310    <div class="jd-details-descr">
2311
2312
2313
2314
2315  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description
2316 property for a widget.
2317
2318 The content-description is typically used
2319 by the Android Accessibility framework to
2320 provide an audio prompt for the widget when
2321 the widget is selected. The content-description
2322 for the widget must start
2323 with the string in your input argument.
2324
2325 Matching is case-insensitive.</p></div>
2326  <div class="jd-tagdata">
2327      <h5 class="jd-tagtitle">Parameters</h5>
2328      <table class="jd-tagtable">
2329        <tr>
2330          <th>desc</td>
2331          <td>Value to match</td>
2332        </tr>
2333      </table>
2334  </div>
2335  <div class="jd-tagdata">
2336      <h5 class="jd-tagtitle">Returns</h5>
2337      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2338  </div>
2339
2340    </div>
2341</div>
2342
2343
2344<A NAME="enabled(boolean)"></A>
2345
2346<div class="jd-details api apilevel-">
2347    <h4 class="jd-details-title">
2348      <span class="normal">
2349        public
2350
2351
2352
2353
2354        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2355      </span>
2356      <span class="sympad">enabled</span>
2357      <span class="normal">(boolean val)</span>
2358    </h4>
2359      <div class="api-level">
2360        <div></div>
2361
2362
2363
2364      </div>
2365    <div class="jd-details-descr">
2366
2367
2368
2369
2370  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are enabled.
2371
2372 Typically, using this search criteria alone is not useful.
2373 You should also include additional criteria, such as text,
2374 content-description, or the class name for a widget.
2375
2376 If no other search criteria is specified, and there is more
2377 than one matching widget, the first widget in the tree
2378 is selected.</p></div>
2379  <div class="jd-tagdata">
2380      <h5 class="jd-tagtitle">Parameters</h5>
2381      <table class="jd-tagtable">
2382        <tr>
2383          <th>val</td>
2384          <td>Value to match</td>
2385        </tr>
2386      </table>
2387  </div>
2388  <div class="jd-tagdata">
2389      <h5 class="jd-tagtitle">Returns</h5>
2390      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2391  </div>
2392
2393    </div>
2394</div>
2395
2396
2397<A NAME="focusable(boolean)"></A>
2398
2399<div class="jd-details api apilevel-">
2400    <h4 class="jd-details-title">
2401      <span class="normal">
2402        public
2403
2404
2405
2406
2407        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2408      </span>
2409      <span class="sympad">focusable</span>
2410      <span class="normal">(boolean val)</span>
2411    </h4>
2412      <div class="api-level">
2413        <div></div>
2414
2415
2416
2417      </div>
2418    <div class="jd-details-descr">
2419
2420
2421
2422
2423  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are focusable.
2424
2425 Typically, using this search criteria alone is not useful.
2426 You should also include additional criteria, such as text,
2427 content-description, or the class name for a widget.
2428
2429 If no other search criteria is specified, and there is more
2430 than one matching widget, the first widget in the tree
2431 is selected.</p></div>
2432  <div class="jd-tagdata">
2433      <h5 class="jd-tagtitle">Parameters</h5>
2434      <table class="jd-tagtable">
2435        <tr>
2436          <th>val</td>
2437          <td>Value to match</td>
2438        </tr>
2439      </table>
2440  </div>
2441  <div class="jd-tagdata">
2442      <h5 class="jd-tagtitle">Returns</h5>
2443      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2444  </div>
2445
2446    </div>
2447</div>
2448
2449
2450<A NAME="focused(boolean)"></A>
2451
2452<div class="jd-details api apilevel-">
2453    <h4 class="jd-details-title">
2454      <span class="normal">
2455        public
2456
2457
2458
2459
2460        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2461      </span>
2462      <span class="sympad">focused</span>
2463      <span class="normal">(boolean val)</span>
2464    </h4>
2465      <div class="api-level">
2466        <div></div>
2467
2468
2469
2470      </div>
2471    <div class="jd-details-descr">
2472
2473
2474
2475
2476  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that have focus.
2477
2478 Typically, using this search criteria alone is not useful.
2479 You should also include additional criteria, such as text,
2480 content-description, or the class name for a widget.
2481
2482 If no other search criteria is specified, and there is more
2483 than one matching widget, the first widget in the tree
2484 is selected.</p></div>
2485  <div class="jd-tagdata">
2486      <h5 class="jd-tagtitle">Parameters</h5>
2487      <table class="jd-tagtable">
2488        <tr>
2489          <th>val</td>
2490          <td>Value to match</td>
2491        </tr>
2492      </table>
2493  </div>
2494  <div class="jd-tagdata">
2495      <h5 class="jd-tagtitle">Returns</h5>
2496      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2497  </div>
2498
2499    </div>
2500</div>
2501
2502
2503<A NAME="fromParent(android.support.test.uiautomator.UiSelector)"></A>
2504
2505<div class="jd-details api apilevel-">
2506    <h4 class="jd-details-title">
2507      <span class="normal">
2508        public
2509
2510
2511
2512
2513        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2514      </span>
2515      <span class="sympad">fromParent</span>
2516      <span class="normal">(<a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a> selector)</span>
2517    </h4>
2518      <div class="api-level">
2519        <div></div>
2520
2521
2522
2523      </div>
2524    <div class="jd-details-descr">
2525
2526
2527
2528
2529  <div class="jd-tagdata jd-tagdescr"><p>Adds a child UiSelector criteria to this selector which is used to
2530 start search from the parent widget.
2531
2532 Use this selector to narrow the search scope to
2533 sibling widgets as well all child widgets under a parent.</p></div>
2534  <div class="jd-tagdata">
2535      <h5 class="jd-tagtitle">Returns</h5>
2536      <ul class="nolist"><li>UiSelector with this added search criterion</li></ul>
2537  </div>
2538
2539    </div>
2540</div>
2541
2542
2543<A NAME="index(int)"></A>
2544
2545<div class="jd-details api apilevel-">
2546    <h4 class="jd-details-title">
2547      <span class="normal">
2548        public
2549
2550
2551
2552
2553        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2554      </span>
2555      <span class="sympad">index</span>
2556      <span class="normal">(int index)</span>
2557    </h4>
2558      <div class="api-level">
2559        <div></div>
2560
2561
2562
2563      </div>
2564    <div class="jd-details-descr">
2565
2566
2567
2568
2569  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the widget by its node
2570 index in the layout hierarchy.
2571
2572 The index value must be 0 or greater.
2573
2574 Using the index can be unreliable and should only
2575 be used as a last resort for matching. Instead,
2576 consider using the <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#instance(int)">instance(int)</a></code> method.</p></div>
2577  <div class="jd-tagdata">
2578      <h5 class="jd-tagtitle">Parameters</h5>
2579      <table class="jd-tagtable">
2580        <tr>
2581          <th>index</td>
2582          <td>Value to match</td>
2583        </tr>
2584      </table>
2585  </div>
2586  <div class="jd-tagdata">
2587      <h5 class="jd-tagtitle">Returns</h5>
2588      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2589  </div>
2590
2591    </div>
2592</div>
2593
2594
2595<A NAME="instance(int)"></A>
2596
2597<div class="jd-details api apilevel-">
2598    <h4 class="jd-details-title">
2599      <span class="normal">
2600        public
2601
2602
2603
2604
2605        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2606      </span>
2607      <span class="sympad">instance</span>
2608      <span class="normal">(int instance)</span>
2609    </h4>
2610      <div class="api-level">
2611        <div></div>
2612
2613
2614
2615      </div>
2616    <div class="jd-details-descr">
2617
2618
2619
2620
2621  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the
2622 widget by its instance number.
2623
2624 The instance value must be 0 or greater, where
2625 the first instance is 0.
2626
2627 For example, to simulate a user click on
2628 the third image that is enabled in a UI screen, you
2629 could specify a a search criteria where the instance is
2630 2, the <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#className(java.lang.String)">className(String)</a></code> matches the image
2631 widget class, and <code><a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html#enabled(boolean)">enabled(boolean)</a></code> is true.
2632 The code would look like this:
2633 <code>
2634 new UiSelector().className("android.widget.ImageView")
2635    .enabled(true).instance(2);
2636 </code></p></div>
2637  <div class="jd-tagdata">
2638      <h5 class="jd-tagtitle">Parameters</h5>
2639      <table class="jd-tagtable">
2640        <tr>
2641          <th>instance</td>
2642          <td>Value to match</td>
2643        </tr>
2644      </table>
2645  </div>
2646  <div class="jd-tagdata">
2647      <h5 class="jd-tagtitle">Returns</h5>
2648      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2649  </div>
2650
2651    </div>
2652</div>
2653
2654
2655<A NAME="longClickable(boolean)"></A>
2656
2657<div class="jd-details api apilevel-">
2658    <h4 class="jd-details-title">
2659      <span class="normal">
2660        public
2661
2662
2663
2664
2665        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2666      </span>
2667      <span class="sympad">longClickable</span>
2668      <span class="normal">(boolean val)</span>
2669    </h4>
2670      <div class="api-level">
2671        <div></div>
2672
2673
2674
2675      </div>
2676    <div class="jd-details-descr">
2677
2678
2679
2680
2681  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are long-clickable.
2682
2683 Typically, using this search criteria alone is not useful.
2684 You should also include additional criteria, such as text,
2685 content-description, or the class name for a widget.
2686
2687 If no other search criteria is specified, and there is more
2688 than one matching widget, the first widget in the tree
2689 is selected.</p></div>
2690  <div class="jd-tagdata">
2691      <h5 class="jd-tagtitle">Parameters</h5>
2692      <table class="jd-tagtable">
2693        <tr>
2694          <th>val</td>
2695          <td>Value to match</td>
2696        </tr>
2697      </table>
2698  </div>
2699  <div class="jd-tagdata">
2700      <h5 class="jd-tagtitle">Returns</h5>
2701      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2702  </div>
2703
2704    </div>
2705</div>
2706
2707
2708<A NAME="packageName(java.lang.String)"></A>
2709
2710<div class="jd-details api apilevel-">
2711    <h4 class="jd-details-title">
2712      <span class="normal">
2713        public
2714
2715
2716
2717
2718        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2719      </span>
2720      <span class="sympad">packageName</span>
2721      <span class="normal">(String name)</span>
2722    </h4>
2723      <div class="api-level">
2724        <div></div>
2725
2726
2727
2728      </div>
2729    <div class="jd-details-descr">
2730
2731
2732
2733
2734  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the package name
2735 of the application that contains the widget.</p></div>
2736  <div class="jd-tagdata">
2737      <h5 class="jd-tagtitle">Parameters</h5>
2738      <table class="jd-tagtable">
2739        <tr>
2740          <th>name</td>
2741          <td>Value to match</td>
2742        </tr>
2743      </table>
2744  </div>
2745  <div class="jd-tagdata">
2746      <h5 class="jd-tagtitle">Returns</h5>
2747      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2748  </div>
2749
2750    </div>
2751</div>
2752
2753
2754<A NAME="packageNameMatches(java.lang.String)"></A>
2755
2756<div class="jd-details api apilevel-">
2757    <h4 class="jd-details-title">
2758      <span class="normal">
2759        public
2760
2761
2762
2763
2764        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2765      </span>
2766      <span class="sympad">packageNameMatches</span>
2767      <span class="normal">(String regex)</span>
2768    </h4>
2769      <div class="api-level">
2770        <div></div>
2771
2772
2773
2774      </div>
2775    <div class="jd-details-descr">
2776
2777
2778
2779
2780  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the package name
2781 of the application that contains the widget.</p></div>
2782  <div class="jd-tagdata">
2783      <h5 class="jd-tagtitle">Parameters</h5>
2784      <table class="jd-tagtable">
2785        <tr>
2786          <th>regex</td>
2787          <td>a regular expression</td>
2788        </tr>
2789      </table>
2790  </div>
2791  <div class="jd-tagdata">
2792      <h5 class="jd-tagtitle">Returns</h5>
2793      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2794  </div>
2795
2796    </div>
2797</div>
2798
2799
2800<A NAME="resourceId(java.lang.String)"></A>
2801
2802<div class="jd-details api apilevel-">
2803    <h4 class="jd-details-title">
2804      <span class="normal">
2805        public
2806
2807
2808
2809
2810        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2811      </span>
2812      <span class="sympad">resourceId</span>
2813      <span class="normal">(String id)</span>
2814    </h4>
2815      <div class="api-level">
2816        <div></div>
2817
2818
2819
2820      </div>
2821    <div class="jd-details-descr">
2822
2823
2824
2825
2826  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the given resource ID.</p></div>
2827  <div class="jd-tagdata">
2828      <h5 class="jd-tagtitle">Parameters</h5>
2829      <table class="jd-tagtable">
2830        <tr>
2831          <th>id</td>
2832          <td>Value to match</td>
2833        </tr>
2834      </table>
2835  </div>
2836  <div class="jd-tagdata">
2837      <h5 class="jd-tagtitle">Returns</h5>
2838      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2839  </div>
2840
2841    </div>
2842</div>
2843
2844
2845<A NAME="resourceIdMatches(java.lang.String)"></A>
2846
2847<div class="jd-details api apilevel-">
2848    <h4 class="jd-details-title">
2849      <span class="normal">
2850        public
2851
2852
2853
2854
2855        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2856      </span>
2857      <span class="sympad">resourceIdMatches</span>
2858      <span class="normal">(String regex)</span>
2859    </h4>
2860      <div class="api-level">
2861        <div></div>
2862
2863
2864
2865      </div>
2866    <div class="jd-details-descr">
2867
2868
2869
2870
2871  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the resource ID
2872 of the widget, using a regular expression.</p></div>
2873  <div class="jd-tagdata">
2874      <h5 class="jd-tagtitle">Parameters</h5>
2875      <table class="jd-tagtable">
2876        <tr>
2877          <th>regex</td>
2878          <td>a regular expression</td>
2879        </tr>
2880      </table>
2881  </div>
2882  <div class="jd-tagdata">
2883      <h5 class="jd-tagtitle">Returns</h5>
2884      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2885  </div>
2886
2887    </div>
2888</div>
2889
2890
2891<A NAME="scrollable(boolean)"></A>
2892
2893<div class="jd-details api apilevel-">
2894    <h4 class="jd-details-title">
2895      <span class="normal">
2896        public
2897
2898
2899
2900
2901        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2902      </span>
2903      <span class="sympad">scrollable</span>
2904      <span class="normal">(boolean val)</span>
2905    </h4>
2906      <div class="api-level">
2907        <div></div>
2908
2909
2910
2911      </div>
2912    <div class="jd-details-descr">
2913
2914
2915
2916
2917  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are scrollable.
2918
2919 Typically, using this search criteria alone is not useful.
2920 You should also include additional criteria, such as text,
2921 content-description, or the class name for a widget.
2922
2923 If no other search criteria is specified, and there is more
2924 than one matching widget, the first widget in the tree
2925 is selected.</p></div>
2926  <div class="jd-tagdata">
2927      <h5 class="jd-tagtitle">Parameters</h5>
2928      <table class="jd-tagtable">
2929        <tr>
2930          <th>val</td>
2931          <td>Value to match</td>
2932        </tr>
2933      </table>
2934  </div>
2935  <div class="jd-tagdata">
2936      <h5 class="jd-tagtitle">Returns</h5>
2937      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2938  </div>
2939
2940    </div>
2941</div>
2942
2943
2944<A NAME="selected(boolean)"></A>
2945
2946<div class="jd-details api apilevel-">
2947    <h4 class="jd-details-title">
2948      <span class="normal">
2949        public
2950
2951
2952
2953
2954        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
2955      </span>
2956      <span class="sympad">selected</span>
2957      <span class="normal">(boolean val)</span>
2958    </h4>
2959      <div class="api-level">
2960        <div></div>
2961
2962
2963
2964      </div>
2965    <div class="jd-details-descr">
2966
2967
2968
2969
2970  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that
2971 are currently selected.
2972
2973 Typically, using this search criteria alone is not useful.
2974 You should also include additional criteria, such as text,
2975 content-description, or the class name for a widget.
2976
2977 If no other search criteria is specified, and there is more
2978 than one matching widget, the first widget in the tree
2979 is selected.</p></div>
2980  <div class="jd-tagdata">
2981      <h5 class="jd-tagtitle">Parameters</h5>
2982      <table class="jd-tagtable">
2983        <tr>
2984          <th>val</td>
2985          <td>Value to match</td>
2986        </tr>
2987      </table>
2988  </div>
2989  <div class="jd-tagdata">
2990      <h5 class="jd-tagtitle">Returns</h5>
2991      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2992  </div>
2993
2994    </div>
2995</div>
2996
2997
2998<A NAME="text(java.lang.String)"></A>
2999
3000<div class="jd-details api apilevel-">
3001    <h4 class="jd-details-title">
3002      <span class="normal">
3003        public
3004
3005
3006
3007
3008        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
3009      </span>
3010      <span class="sympad">text</span>
3011      <span class="normal">(String text)</span>
3012    </h4>
3013      <div class="api-level">
3014        <div></div>
3015
3016
3017
3018      </div>
3019    <div class="jd-details-descr">
3020
3021
3022
3023
3024  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the visible text displayed
3025 in a widget (for example, the text label to launch an app).
3026
3027 The text for the element must match exactly with the string in your input
3028 argument. Matching is case-sensitive.</p></div>
3029  <div class="jd-tagdata">
3030      <h5 class="jd-tagtitle">Parameters</h5>
3031      <table class="jd-tagtable">
3032        <tr>
3033          <th>text</td>
3034          <td>Value to match</td>
3035        </tr>
3036      </table>
3037  </div>
3038  <div class="jd-tagdata">
3039      <h5 class="jd-tagtitle">Returns</h5>
3040      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
3041  </div>
3042
3043    </div>
3044</div>
3045
3046
3047<A NAME="textContains(java.lang.String)"></A>
3048
3049<div class="jd-details api apilevel-">
3050    <h4 class="jd-details-title">
3051      <span class="normal">
3052        public
3053
3054
3055
3056
3057        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
3058      </span>
3059      <span class="sympad">textContains</span>
3060      <span class="normal">(String text)</span>
3061    </h4>
3062      <div class="api-level">
3063        <div></div>
3064
3065
3066
3067      </div>
3068    <div class="jd-details-descr">
3069
3070
3071
3072
3073  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the visible text in a widget
3074 where the visible text must contain the string in your input argument.
3075
3076 The matching is case-sensitive.</p></div>
3077  <div class="jd-tagdata">
3078      <h5 class="jd-tagtitle">Parameters</h5>
3079      <table class="jd-tagtable">
3080        <tr>
3081          <th>text</td>
3082          <td>Value to match</td>
3083        </tr>
3084      </table>
3085  </div>
3086  <div class="jd-tagdata">
3087      <h5 class="jd-tagtitle">Returns</h5>
3088      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
3089  </div>
3090
3091    </div>
3092</div>
3093
3094
3095<A NAME="textMatches(java.lang.String)"></A>
3096
3097<div class="jd-details api apilevel-">
3098    <h4 class="jd-details-title">
3099      <span class="normal">
3100        public
3101
3102
3103
3104
3105        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
3106      </span>
3107      <span class="sympad">textMatches</span>
3108      <span class="normal">(String regex)</span>
3109    </h4>
3110      <div class="api-level">
3111        <div></div>
3112
3113
3114
3115      </div>
3116    <div class="jd-details-descr">
3117
3118
3119
3120
3121  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the visible text displayed in a layout
3122 element, using a regular expression.
3123
3124 The text in the widget must match exactly with the string in your
3125 input argument.</p></div>
3126  <div class="jd-tagdata">
3127      <h5 class="jd-tagtitle">Parameters</h5>
3128      <table class="jd-tagtable">
3129        <tr>
3130          <th>regex</td>
3131          <td>a regular expression</td>
3132        </tr>
3133      </table>
3134  </div>
3135  <div class="jd-tagdata">
3136      <h5 class="jd-tagtitle">Returns</h5>
3137      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
3138  </div>
3139
3140    </div>
3141</div>
3142
3143
3144<A NAME="textStartsWith(java.lang.String)"></A>
3145
3146<div class="jd-details api apilevel-">
3147    <h4 class="jd-details-title">
3148      <span class="normal">
3149        public
3150
3151
3152
3153
3154        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
3155      </span>
3156      <span class="sympad">textStartsWith</span>
3157      <span class="normal">(String text)</span>
3158    </h4>
3159      <div class="api-level">
3160        <div></div>
3161
3162
3163
3164      </div>
3165    <div class="jd-details-descr">
3166
3167
3168
3169
3170  <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match visible text in a widget that is
3171 prefixed by the text parameter.
3172
3173 The matching is case-insensitive.</p></div>
3174  <div class="jd-tagdata">
3175      <h5 class="jd-tagtitle">Parameters</h5>
3176      <table class="jd-tagtable">
3177        <tr>
3178          <th>text</td>
3179          <td>Value to match</td>
3180        </tr>
3181      </table>
3182  </div>
3183  <div class="jd-tagdata">
3184      <h5 class="jd-tagtitle">Returns</h5>
3185      <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
3186  </div>
3187
3188    </div>
3189</div>
3190
3191
3192<A NAME="toString()"></A>
3193
3194<div class="jd-details api apilevel-">
3195    <h4 class="jd-details-title">
3196      <span class="normal">
3197        public
3198
3199
3200
3201
3202        String
3203      </span>
3204      <span class="sympad">toString</span>
3205      <span class="normal">()</span>
3206    </h4>
3207      <div class="api-level">
3208        <div></div>
3209
3210
3211
3212      </div>
3213    <div class="jd-details-descr">
3214
3215
3216
3217
3218  <div class="jd-tagdata jd-tagdescr"><p></p></div>
3219
3220    </div>
3221</div>
3222
3223
3224
3225
3226
3227<!-- ========= METHOD DETAIL ======== -->
3228
3229<h2>Protected Methods</h2>
3230
3231
3232
3233<A NAME="cloneSelector()"></A>
3234
3235<div class="jd-details api apilevel-">
3236    <h4 class="jd-details-title">
3237      <span class="normal">
3238        protected
3239
3240
3241
3242
3243        <a href="../../../../../reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a>
3244      </span>
3245      <span class="sympad">cloneSelector</span>
3246      <span class="normal">()</span>
3247    </h4>
3248      <div class="api-level">
3249        <div></div>
3250
3251
3252
3253      </div>
3254    <div class="jd-details-descr">
3255
3256
3257
3258
3259  <div class="jd-tagdata jd-tagdescr"><p></p></div>
3260
3261    </div>
3262</div>
3263
3264
3265
3266
3267
3268<!-- ========= END OF CLASS DATA ========= -->
3269<A NAME="navbar_top"></A>
3270</div> <!-- jd-content -->
3271
3272<div class="wrap">
3273  <div class="dac-footer">
3274    <div class="cols dac-footer-main">
3275      <div class="col-1of2">
3276        <a class="dac-footer-getnews" data-modal-toggle="newsletter" href="javascript:;">Get news &amp; tips <span
3277          class="dac-fab dac-primary"><i class="dac-sprite dac-mail"></i></span></a>
3278      </div>
3279      <div class="col-1of2 dac-footer-reachout">
3280        <div class="dac-footer-contact">
3281          <a class="dac-footer-contact-link" href="http://android-developers.blogspot.com/">Blog</a>
3282          <a class="dac-footer-contact-link" href="/support.html">Support</a>
3283        </div>
3284        <div class="dac-footer-social">
3285          <a class="dac-fab dac-footer-social-link" href="https://www.youtube.com/user/androiddevelopers"><i class="dac-sprite dac-youtube"></i></a>
3286          <a class="dac-fab dac-footer-social-link" href="https://plus.google.com/+AndroidDevelopers"><i class="dac-sprite dac-gplus"></i></a>
3287          <a class="dac-fab dac-footer-social-link" href="https://twitter.com/AndroidDev"><i class="dac-sprite dac-twitter"></i></a>
3288        </div>
3289      </div>
3290    </div>
3291
3292    <hr class="dac-footer-separator"/>
3293
3294
3295      <p class="dac-footer-copyright">
3296
3297  Except as noted, this content is licensed under <a
3298  href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
3299  For details and restrictions, see the <a href="../../../../../license.html">
3300  Content License</a>.
3301      </p>
3302      <p class="dac-footer-build">
3303
3304    Android &nbsp;r &mdash;
3305<script src="../../../../../timestamp.js" type="text/javascript"></script>
3306<script>document.write(BUILD_TIMESTAMP)</script>
3307
3308      </p>
3309
3310
3311    <p class="dac-footer-links">
3312      <a href="/about/index.html">About Android</a>
3313      <a href="/auto/index.html">Auto</a>
3314      <a href="/tv/index.html">TV</a>
3315      <a href="/wear/index.html">Wear</a>
3316      <a href="/legal.html">Legal</a>
3317
3318      <span id="language" class="locales">
3319        <select name="language" onchange="changeLangPref(this.value, true)">
3320          <option value="en" selected="selected">English</option>
3321          <option value="es">Español</option>
3322          <option value="ja">日本語</option>
3323          <option value="ko">한국어</option>
3324          <option value="ru">Русский</option>
3325          <option value="zh-cn">中文(简体)</option>
3326          <option value="zh-tw">中文(繁體)</option>
3327        </select>
3328      </span>
3329    </p>
3330  </div>
3331</div> <!-- end footer -->
3332
3333<div data-modal="newsletter" data-newsletter data-swap class="dac-modal newsletter">
3334  <div class="dac-modal-container">
3335    <div class="dac-modal-window">
3336      <header class="dac-modal-header">
3337        <button class="dac-modal-header-close" data-modal-toggle><i class="dac-sprite dac-close"></i></button>
3338        <div class="dac-swap" data-swap-container>
3339          <section class="dac-swap-section dac-active dac-down">
3340            <h2 class="norule dac-modal-header-title">Get the latest Android developer news and tips that will help you find success on Google Play.</h2>
3341            <p class="dac-modal-header-subtitle">&#42; Required Fields</p>
3342          </section>
3343          <section class="dac-swap-section dac-up">
3344            <h2 class="norule dac-modal-header-title">Hooray!</h2>
3345          </section>
3346        </div>
3347      </header>
3348      <div class="dac-swap" data-swap-container>
3349        <section class="dac-swap-section dac-active dac-left">
3350          <form action="https://docs.google.com/forms/d/1QgnkzbEJIDu9lMEea0mxqWrXUJu0oBCLD7ar23V0Yys/formResponse" class="dac-form" method="post" target="dac-newsletter-iframe">
3351            <section class="dac-modal-content">
3352              <fieldset class="dac-form-fieldset">
3353                <div class="cols">
3354                  <div class="col-1of2 newsletter-leftCol">
3355                    <div class="dac-form-input-group">
3356                      <label for="newsletter-full-name" class="dac-form-floatlabel">Full name</label>
3357                      <input type="text" class="dac-form-input" name="entry.1357890476" id="newsletter-full-name" required>
3358                      <span class="dac-form-required">*</span>
3359                    </div>
3360                    <div class="dac-form-input-group">
3361                      <label for="newsletter-email" class="dac-form-floatlabel">Email address</label>
3362                      <input type="email" class="dac-form-input" name="entry.472100832" id="newsletter-email" required>
3363                      <span class="dac-form-required">*</span>
3364                    </div>
3365                  </div>
3366                  <div class="col-1of2 newsletter-rightCol">
3367                    <div class="dac-form-input-group">
3368                      <label for="newsletter-company" class="dac-form-floatlabel">Company / developer name</label>
3369                      <input type="text" class="dac-form-input" name="entry.1664780309" id="newsletter-company">
3370                    </div>
3371                    <div class="dac-form-input-group">
3372                      <label for="newsletter-play-store" class="dac-form-floatlabel">One of your Play Store app URLs</label>
3373                      <input type="url" class="dac-form-input" name="entry.47013838" id="newsletter-play-store" required>
3374                      <span class="dac-form-required">*</span>
3375                    </div>
3376                  </div>
3377                </div>
3378              </fieldset>
3379              <fieldset class="dac-form-fieldset">
3380                <div class="cols">
3381                  <div class="col-1of2 newsletter-leftCol">
3382                    <legend class="dac-form-legend">Which best describes your business:<span class="dac-form-required">*</span>
3383                    </legend>
3384                    <div class="dac-form-radio-group">
3385                      <input type="radio" value="Apps" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-app" required>
3386                      <label for="newsletter-business-type-app" class="dac-form-radio-button"></label>
3387                      <label for="newsletter-business-type-app" class="dac-form-label">Apps</label>
3388                    </div>
3389                    <div class="dac-form-radio-group">
3390                      <input type="radio" value="Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-games" required>
3391                      <label for="newsletter-business-type-games" class="dac-form-radio-button"></label>
3392                      <label for="newsletter-business-type-games" class="dac-form-label">Games</label>
3393                    </div>
3394                    <div class="dac-form-radio-group">
3395                      <input type="radio" value="Apps and Games" class="dac-form-radio" name="entry.1796324055" id="newsletter-business-type-appsgames" required>
3396                      <label for="newsletter-business-type-appsgames" class="dac-form-radio-button"></label>
3397                      <label for="newsletter-business-type-appsgames" class="dac-form-label">Apps &amp; Games</label>
3398                    </div>
3399                  </div>
3400                  <div class="col-1of2 newsletter-rightCol newsletter-checkboxes">
3401                    <div class="dac-form-radio-group">
3402                      <div class="dac-media">
3403                        <div class="dac-media-figure">
3404                          <input type="checkbox" class="dac-form-checkbox" name="entry.732309842" id="newsletter-add" required value="Add me to the mailing list for the monthly newsletter and occasional emails about development and Google Play opportunities.">
3405                          <label for="newsletter-add" class="dac-form-checkbox-button"></label>
3406                        </div>
3407                        <div class="dac-media-body">
3408                          <label for="newsletter-add" class="dac-form-label dac-form-aside">Add me to the mailing list for the monthly newsletter and occasional emails about development and Google Play opportunities.<span class="dac-form-required">*</span></label>
3409                        </div>
3410                      </div>
3411                    </div>
3412                    <div class="dac-form-radio-group">
3413                      <div class="dac-media">
3414                        <div class="dac-media-figure">
3415                          <input type="checkbox" class="dac-form-checkbox" name="entry.2045036090" id="newsletter-terms" required value="I acknowledge that the information provided in this form will be subject to Google's privacy policy (https://www.google.com/policies/privacy/).">
3416                          <label for="newsletter-terms" class="dac-form-checkbox-button"></label>
3417                        </div>
3418                        <div class="dac-media-body">
3419                          <label for="newsletter-terms" class="dac-form-label dac-form-aside">I acknowledge that the information provided in this form will be subject to <a href="https://www.google.com/policies/privacy/">Google's privacy policy</a>.<span class="dac-form-required">*</span></label>
3420                        </div>
3421                      </div>
3422                    </div>
3423                  </div>
3424                </div>
3425              </fieldset>
3426            </section>
3427            <footer class="dac-modal-footer">
3428              <div class="cols">
3429                <div class="col-2of5">
3430                </div>
3431              </div>
3432              <button type="submit" value="Submit" class="dac-fab dac-primary dac-large dac-modal-action"><i class="dac-sprite dac-arrow-right"></i></button>
3433            </footer>
3434          </form>
3435        </section>
3436        <section class="dac-swap-section dac-right">
3437          <div class="dac-modal-content">
3438            <p class="newsletter-success-message">
3439              You have successfully signed up for the latest Android developer news and tips.
3440            </p>
3441          </div>
3442        </section>
3443      </div>
3444    </div>
3445  </div>
3446</div> <!-- end footer -->
3447
3448</div><!-- end doc-content -->
3449
3450</div> <!-- end .cols -->
3451</div> <!-- end body-content -->
3452
3453
3454
3455
3456
3457
3458</body>
3459</html>
3460