OSDN Git Service

Add orientation to configuration for layoutlib.
[android-x86/frameworks-base.git] / docs / html / tools / help / uiautomator / UiSelector.jd
1 page.title=UiSelector
2 parent.title=uiautomator
3 parent.link=index.html
4 @jd:body
5 <style>
6     h4.jd-details-title {background-color: #DEE8F1;}
7 </style>
8
9
10 <h2>Class Overview</h2>
11 <p>This class provides the mechanism for tests to describe the UI elements they
12  intend to target. A UI element has many properties associated with it such as
13  text value, content-description, class name and multiple state information like
14  selected, enabled, checked etc. Additionally UiSelector allows targeting of UI
15  elements within a specific display hierarchies to distinguish similar elements
16  based in the hierarchies they're in.</p>
17
18
19
20
21
22 </div><!-- jd-descr -->
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 <div class="jd-descr">
40
41
42 <h2>Summary</h2>
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
67 <table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr>
68
69
70
71          
72     <tr class="api">
73         <td class="jd-typecol">
74             
75             
76             
77             
78             
79             
80         </td>
81         <td class="jd-linkcol" width="100%">
82         <span class="sympad"><a href="#UiSelector()">UiSelector</a></span>()
83         
84   </td></tr>
85
86
87
88 </table>
89
90
91
92
93
94
95 <!-- ========== METHOD SUMMARY =========== -->
96 <table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
97
98
99
100          
101     <tr class="api">
102         <td class="jd-typecol">
103             
104             
105             
106             
107             
108             <a href="UiSelector.html">UiSelector</a>
109         </td>
110         <td class="jd-linkcol" width="100%">
111         <span class="sympad"><a href="#checked(boolean)">checked</a></span>(boolean val)
112         
113         <div class="jd-descrdiv">Set the search criteria to match widgets that
114  are currently checked (usually for checkboxes).</div>
115   
116   </td></tr>
117
118
119          
120     <tr class="api">
121         <td class="jd-typecol">
122             
123             
124             
125             
126             
127             <a href="UiSelector.html">UiSelector</a>
128         </td>
129         <td class="jd-linkcol" width="100%">
130         <span class="sympad"><a href="#childSelector(com.android.uiautomator.core.UiSelector)">childSelector</a></span>(<a href="UiSelector.html">UiSelector</a> selector)
131         
132         <div class="jd-descrdiv">Adds a child UiSelector criteria to this selector.</div>
133   
134   </td></tr>
135
136
137          
138     <tr class="api">
139         <td class="jd-typecol">
140             
141             
142             
143             
144             
145             <a href="UiSelector.html">UiSelector</a>
146         </td>
147         <td class="jd-linkcol" width="100%">
148         <span class="sympad"><a href="#className(java.lang.String)">className</a></span>(String className)
149         
150         <div class="jd-descrdiv">Set the search criteria to match the class property
151  for a widget (for example, "android.widget.Button").</div>
152   
153   </td></tr>
154
155
156          
157     <tr class="api">
158         <td class="jd-typecol">
159             
160             
161             
162             
163             &lt;T&gt;
164             <a href="UiSelector.html">UiSelector</a>
165         </td>
166         <td class="jd-linkcol" width="100%">
167         <span class="sympad"><a href="#className(java.lang.Class<T>)">className</a></span>(Class&lt;T&gt; type)
168         
169         <div class="jd-descrdiv">Set the search criteria to match the class property
170  for a widget (for example, "android.widget.Button").</div>
171   
172   </td></tr>
173
174
175          
176     <tr class="api">
177         <td class="jd-typecol">
178             
179             
180             
181             
182             
183             <a href="UiSelector.html">UiSelector</a>
184         </td>
185         <td class="jd-linkcol" width="100%">
186         <span class="sympad"><a href="#classNameMatches(java.lang.String)">classNameMatches</a></span>(String regex)
187         
188         <div class="jd-descrdiv">Set the search criteria to match the class property
189  for a widget (for example, "android.widget.Button").</div>
190   
191   </td></tr>
192
193
194          
195     <tr class="api">
196         <td class="jd-typecol">
197             
198             
199             
200             
201             
202             <a href="UiSelector.html">UiSelector</a>
203         </td>
204         <td class="jd-linkcol" width="100%">
205         <span class="sympad"><a href="#clickable(boolean)">clickable</a></span>(boolean val)
206         
207         <div class="jd-descrdiv">Set the search criteria to match widgets that are clickable.</div>
208   
209   </td></tr>
210
211
212          
213     <tr class="api">
214         <td class="jd-typecol">
215             
216             
217             
218             
219             
220             <a href="UiSelector.html">UiSelector</a>
221         </td>
222         <td class="jd-linkcol" width="100%">
223         <span class="sympad"><a href="#description(java.lang.String)">description</a></span>(String desc)
224         
225         <div class="jd-descrdiv">Set the search criteria to match the content-description
226  property for a widget.</div>
227   
228   </td></tr>
229
230
231          
232     <tr class="api">
233         <td class="jd-typecol">
234             
235             
236             
237             
238             
239             <a href="UiSelector.html">UiSelector</a>
240         </td>
241         <td class="jd-linkcol" width="100%">
242         <span class="sympad"><a href="#descriptionContains(java.lang.String)">descriptionContains</a></span>(String desc)
243         
244         <div class="jd-descrdiv">Set the search criteria to match the content-description
245  property for a widget.</div>
246   
247   </td></tr>
248
249
250          
251     <tr class="api">
252         <td class="jd-typecol">
253             
254             
255             
256             
257             
258             <a href="UiSelector.html">UiSelector</a>
259         </td>
260         <td class="jd-linkcol" width="100%">
261         <span class="sympad"><a href="#descriptionMatches(java.lang.String)">descriptionMatches</a></span>(String regex)
262         
263         <div class="jd-descrdiv">Set the search criteria to match the content-description
264  property for a widget.</div>
265   
266   </td></tr>
267
268
269          
270     <tr class="api">
271         <td class="jd-typecol">
272             
273             
274             
275             
276             
277             <a href="UiSelector.html">UiSelector</a>
278         </td>
279         <td class="jd-linkcol" width="100%">
280         <span class="sympad"><a href="#descriptionStartsWith(java.lang.String)">descriptionStartsWith</a></span>(String desc)
281         
282         <div class="jd-descrdiv">Set the search criteria to match the content-description
283  property for a widget.</div>
284   
285   </td></tr>
286
287
288          
289     <tr class="api">
290         <td class="jd-typecol">
291             
292             
293             
294             
295             
296             <a href="UiSelector.html">UiSelector</a>
297         </td>
298         <td class="jd-linkcol" width="100%">
299         <span class="sympad"><a href="#enabled(boolean)">enabled</a></span>(boolean val)
300         
301         <div class="jd-descrdiv">Set the search criteria to match widgets that are enabled.</div>
302   
303   </td></tr>
304
305
306          
307     <tr class="api">
308         <td class="jd-typecol">
309             
310             
311             
312             
313             
314             <a href="UiSelector.html">UiSelector</a>
315         </td>
316         <td class="jd-linkcol" width="100%">
317         <span class="sympad"><a href="#focusable(boolean)">focusable</a></span>(boolean val)
318         
319         <div class="jd-descrdiv">Set the search criteria to match widgets that are focusable.</div>
320   
321   </td></tr>
322
323
324          
325     <tr class="api">
326         <td class="jd-typecol">
327             
328             
329             
330             
331             
332             <a href="UiSelector.html">UiSelector</a>
333         </td>
334         <td class="jd-linkcol" width="100%">
335         <span class="sympad"><a href="#focused(boolean)">focused</a></span>(boolean val)
336         
337         <div class="jd-descrdiv">Set the search criteria to match widgets that have focus.</div>
338   
339   </td></tr>
340
341
342          
343     <tr class="api">
344         <td class="jd-typecol">
345             
346             
347             
348             
349             
350             <a href="UiSelector.html">UiSelector</a>
351         </td>
352         <td class="jd-linkcol" width="100%">
353         <span class="sympad"><a href="#fromParent(com.android.uiautomator.core.UiSelector)">fromParent</a></span>(<a href="UiSelector.html">UiSelector</a> selector)
354         
355         <div class="jd-descrdiv">Adds a child UiSelector criteria to this selector which is used to
356  start search from the parent widget.</div>
357   
358   </td></tr>
359
360
361          
362     <tr class="api">
363         <td class="jd-typecol">
364             
365             
366             
367             
368             
369             <a href="UiSelector.html">UiSelector</a>
370         </td>
371         <td class="jd-linkcol" width="100%">
372         <span class="sympad"><a href="#index(int)">index</a></span>(int index)
373         
374         <div class="jd-descrdiv">Set the search criteria to match the widget by its node
375  index in the layout hierarchy.</div>
376   
377   </td></tr>
378
379
380          
381     <tr class="api">
382         <td class="jd-typecol">
383             
384             
385             
386             
387             
388             <a href="UiSelector.html">UiSelector</a>
389         </td>
390         <td class="jd-linkcol" width="100%">
391         <span class="sympad"><a href="#instance(int)">instance</a></span>(int instance)
392         
393         <div class="jd-descrdiv">Set the search criteria to match the
394  widget by its instance number.</div>
395   
396   </td></tr>
397
398
399          
400     <tr class="api">
401         <td class="jd-typecol">
402             
403             
404             
405             
406             
407             <a href="UiSelector.html">UiSelector</a>
408         </td>
409         <td class="jd-linkcol" width="100%">
410         <span class="sympad"><a href="#longClickable(boolean)">longClickable</a></span>(boolean val)
411         
412         <div class="jd-descrdiv">Set the search criteria to match widgets that are long-clickable.</div>
413   
414   </td></tr>
415
416
417          
418     <tr class="api">
419         <td class="jd-typecol">
420             
421             
422             
423             
424             
425             <a href="UiSelector.html">UiSelector</a>
426         </td>
427         <td class="jd-linkcol" width="100%">
428         <span class="sympad"><a href="#packageName(java.lang.String)">packageName</a></span>(String name)
429         
430         <div class="jd-descrdiv">Set the search criteria to match the package name
431  of the application that contains the widget.</div>
432   
433   </td></tr>
434
435
436          
437     <tr class="api">
438         <td class="jd-typecol">
439             
440             
441             
442             
443             
444             <a href="UiSelector.html">UiSelector</a>
445         </td>
446         <td class="jd-linkcol" width="100%">
447         <span class="sympad"><a href="#packageNameMatches(java.lang.String)">packageNameMatches</a></span>(String regex)
448         
449         <div class="jd-descrdiv">Set the search criteria to match the package name
450  of the application that contains the widget.</div>
451   
452   </td></tr>
453
454
455          
456     <tr class="api">
457         <td class="jd-typecol">
458             
459             
460             
461             
462             
463             <a href="UiSelector.html">UiSelector</a>
464         </td>
465         <td class="jd-linkcol" width="100%">
466         <span class="sympad"><a href="#scrollable(boolean)">scrollable</a></span>(boolean val)
467         
468         <div class="jd-descrdiv">Set the search criteria to match widgets that are scrollable.</div>
469   
470   </td></tr>
471
472
473          
474     <tr class="api">
475         <td class="jd-typecol">
476             
477             
478             
479             
480             
481             <a href="UiSelector.html">UiSelector</a>
482         </td>
483         <td class="jd-linkcol" width="100%">
484         <span class="sympad"><a href="#selected(boolean)">selected</a></span>(boolean val)
485         
486         <div class="jd-descrdiv">Set the search criteria to match widgets that
487  are currently selected.</div>
488   
489   </td></tr>
490
491
492          
493     <tr class="api">
494         <td class="jd-typecol">
495             
496             
497             
498             
499             
500             <a href="UiSelector.html">UiSelector</a>
501         </td>
502         <td class="jd-linkcol" width="100%">
503         <span class="sympad"><a href="#text(java.lang.String)">text</a></span>(String text)
504         
505         <div class="jd-descrdiv">Set the search criteria to match the visible text displayed
506  for a widget (for example, the text label to launch an app).</div>
507   
508   </td></tr>
509
510
511          
512     <tr class="api">
513         <td class="jd-typecol">
514             
515             
516             
517             
518             
519             <a href="UiSelector.html">UiSelector</a>
520         </td>
521         <td class="jd-linkcol" width="100%">
522         <span class="sympad"><a href="#textContains(java.lang.String)">textContains</a></span>(String text)
523         
524         <div class="jd-descrdiv">Set the search criteria to match the visible text displayed
525  for a widget (for example, the text label to launch an app).</div>
526   
527   </td></tr>
528
529
530          
531     <tr class="api">
532         <td class="jd-typecol">
533             
534             
535             
536             
537             
538             <a href="UiSelector.html">UiSelector</a>
539         </td>
540         <td class="jd-linkcol" width="100%">
541         <span class="sympad"><a href="#textMatches(java.lang.String)">textMatches</a></span>(String regex)
542         
543         <div class="jd-descrdiv">Set the search criteria to match the visible text displayed
544  for a widget (for example, the text label to launch an app).</div>
545   
546   </td></tr>
547
548
549          
550     <tr class="api">
551         <td class="jd-typecol">
552             
553             
554             
555             
556             
557             <a href="UiSelector.html">UiSelector</a>
558         </td>
559         <td class="jd-linkcol" width="100%">
560         <span class="sympad"><a href="#textStartsWith(java.lang.String)">textStartsWith</a></span>(String text)
561         
562         <div class="jd-descrdiv">Text property is usually the widget's visible text on the display.</div>
563   
564   </td></tr>
565
566
567          
568     <tr class="api">
569         <td class="jd-typecol">
570             
571             
572             
573             
574             
575             String
576         </td>
577         <td class="jd-linkcol" width="100%">
578         <span class="sympad"><a href="#toString()">toString</a></span>()
579         
580   </td></tr>
581
582
583
584 </table>
585
586
587
588
589
590
591
592 <!-- ========== METHOD SUMMARY =========== -->
593 <table id="inhmethods" class="jd-sumtable"><tr><th>
594   <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
595   <div style="clear:left;">Inherited Methods</div></th></tr>
596
597
598 <tr class="api apilevel-" >
599 <td colspan="12">
600   <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
601           ><img id="inherited-methods-java.lang.Object-trigger"
602           src="../../../../../assets/images/triangle-closed.png"
603           class="jd-expando-trigger-img" /></a>
604 From class
605
606   java.lang.Object
607
608 <div id="inherited-methods-java.lang.Object">
609   <div id="inherited-methods-java.lang.Object-list"
610         class="jd-inheritedlinks">
611   </div>
612   <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
613     <table class="jd-sumtable-expando">
614     
615
616
617          
618     <tr class="api">
619         <td class="jd-typecol">
620             
621             
622             
623             
624             
625             boolean
626         </td>
627         <td class="jd-linkcol" width="100%">
628         <span class="sympad">equals</span>(Object arg0)
629         
630   </td></tr>
631
632
633          
634     <tr class="api">
635         <td class="jd-typecol">
636             
637             
638             final
639             
640             
641             Class&lt;?&gt;
642         </td>
643         <td class="jd-linkcol" width="100%">
644         <span class="sympad">getClass</span>()
645         
646   </td></tr>
647
648
649          
650     <tr class="api">
651         <td class="jd-typecol">
652             
653             
654             
655             
656             
657             int
658         </td>
659         <td class="jd-linkcol" width="100%">
660         <span class="sympad">hashCode</span>()
661         
662   </td></tr>
663
664
665          
666     <tr class="api">
667         <td class="jd-typecol">
668             
669             
670             final
671             
672             
673             void
674         </td>
675         <td class="jd-linkcol" width="100%">
676         <span class="sympad">notify</span>()
677         
678   </td></tr>
679
680
681          
682     <tr class="api">
683         <td class="jd-typecol">
684             
685             
686             final
687             
688             
689             void
690         </td>
691         <td class="jd-linkcol" width="100%">
692         <span class="sympad">notifyAll</span>()
693         
694   </td></tr>
695
696
697          
698     <tr class="api">
699         <td class="jd-typecol">
700             
701             
702             
703             
704             
705             String
706         </td>
707         <td class="jd-linkcol" width="100%">
708         <span class="sympad">toString</span>()
709         
710   </td></tr>
711
712
713          
714     <tr class="api">
715         <td class="jd-typecol">
716             
717             
718             final
719             
720             
721             void
722         </td>
723         <td class="jd-linkcol" width="100%">
724         <span class="sympad">wait</span>()
725         
726   </td></tr>
727
728
729          
730     <tr class="api">
731         <td class="jd-typecol">
732             
733             
734             final
735             
736             
737             void
738         </td>
739         <td class="jd-linkcol" width="100%">
740         <span class="sympad">wait</span>(long arg0, int arg1)
741         
742   </td></tr>
743
744
745          
746     <tr class="api">
747         <td class="jd-typecol">
748             
749             
750             final
751             
752             
753             void
754         </td>
755         <td class="jd-linkcol" width="100%">
756         <span class="sympad">wait</span>(long arg0)
757         
758   </td></tr>
759
760
761 </table>
762   </div>
763 </div>
764 </td></tr>
765
766
767 </table>
768
769
770 </div><!-- jd-descr (summary) -->
771
772 <!-- Details -->
773
774
775
776
777
778
779
780
781 <!-- XML Attributes -->
782
783
784 <!-- Enum Values -->
785
786
787 <!-- Constants -->
788
789
790 <!-- Fields -->
791
792
793 <!-- Public ctors -->
794
795
796 <!-- ========= CONSTRUCTOR DETAIL ======== -->
797 <h2>Public Constructors</h2>
798
799
800
801 <a id="UiSelector()"></a>
802
803 <div class="jd-details api "> 
804     <h4 class="jd-details-title">
805       <span class="normal">
806         public 
807          
808          
809          
810          
811         
812       </span>
813       <span class="sympad">UiSelector</span>
814       <span class="normal">()</span>
815     </h4>
816       <div class="api-level">
817         <div>
818
819 </div>
820         
821   
822
823       </div>
824     <div class="jd-details-descr">
825       
826   <div class="jd-tagdata jd-tagdescr"><p></p></div>
827
828     </div>
829 </div>
830
831
832
833
834
835 <!-- ========= CONSTRUCTOR DETAIL ======== -->
836 <!-- Protected ctors -->
837
838
839
840 <!-- ========= METHOD DETAIL ======== -->
841 <!-- Public methdos -->
842
843 <h2>Public Methods</h2>
844
845
846
847 <a id="checked(boolean)"></a>
848
849 <div class="jd-details api "> 
850     <h4 class="jd-details-title">
851       <span class="normal">
852         public 
853          
854          
855          
856          
857         <a href="UiSelector.html">UiSelector</a>
858       </span>
859       <span class="sympad">checked</span>
860       <span class="normal">(boolean val)</span>
861     </h4>
862       <div class="api-level">
863         <div>
864
865 </div>
866         
867   
868
869       </div>
870     <div class="jd-details-descr">
871       
872   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that
873  are currently checked (usually for checkboxes).
874
875  Typically, using this search criteria alone is not useful.
876  You should also include additional criteria, such as text,
877  content-description, or the class name for a widget.
878
879  If no other search criteria is specified, and there is more
880  than one matching widget, the first widget in the tree
881  is selected.</p></div>
882   <div class="jd-tagdata">
883       <h5 class="jd-tagtitle">Parameters</h5>
884       <table class="jd-tagtable">
885         <tr>
886           <th>val</th>
887           <td>Value to match</td>
888         </tr>
889       </table>
890   </div>
891   <div class="jd-tagdata">
892       <h5 class="jd-tagtitle">Returns</h5>
893       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
894   </div>
895
896     </div>
897 </div>
898
899
900 <a id="childSelector(com.android.uiautomator.core.UiSelector)"></a>
901
902 <div class="jd-details api "> 
903     <h4 class="jd-details-title">
904       <span class="normal">
905         public 
906          
907          
908          
909          
910         <a href="UiSelector.html">UiSelector</a>
911       </span>
912       <span class="sympad">childSelector</span>
913       <span class="normal">(<a href="UiSelector.html">UiSelector</a> selector)</span>
914     </h4>
915       <div class="api-level">
916         <div>
917
918 </div>
919         
920   
921
922       </div>
923     <div class="jd-details-descr">
924       
925   <div class="jd-tagdata jd-tagdescr"><p>Adds a child UiSelector criteria to this selector.
926
927  Use this selector to narrow the search scope to
928  child widgets under a specific parent widget.</p></div>
929   <div class="jd-tagdata">
930       <h5 class="jd-tagtitle">Returns</h5>
931       <ul class="nolist"><li>UiSelector with this added search criterion</li></ul>
932   </div>
933
934     </div>
935 </div>
936
937
938 <a id="className(java.lang.String)"></a>
939
940 <div class="jd-details api "> 
941     <h4 class="jd-details-title">
942       <span class="normal">
943         public 
944          
945          
946          
947          
948         <a href="UiSelector.html">UiSelector</a>
949       </span>
950       <span class="sympad">className</span>
951       <span class="normal">(String className)</span>
952     </h4>
953       <div class="api-level">
954         <div>
955
956 </div>
957         
958   
959
960       </div>
961     <div class="jd-details-descr">
962       
963   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the class property
964  for a widget (for example, "android.widget.Button").</p></div>
965   <div class="jd-tagdata">
966       <h5 class="jd-tagtitle">Parameters</h5>
967       <table class="jd-tagtable">
968         <tr>
969           <th>className</th>
970           <td>Value to match</td>
971         </tr>
972       </table>
973   </div>
974   <div class="jd-tagdata">
975       <h5 class="jd-tagtitle">Returns</h5>
976       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
977   </div>
978
979     </div>
980 </div>
981
982
983 <a id="className(java.lang.Class<T>)"></a>
984
985 <div class="jd-details api "> 
986     <h4 class="jd-details-title">
987       <span class="normal">
988         public 
989          
990          
991          
992          
993         <a href="UiSelector.html">UiSelector</a>
994       </span>
995       <span class="sympad">className</span>
996       <span class="normal">(Class&lt;T&gt; type)</span>
997     </h4>
998       <div class="api-level">
999         <div>
1000
1001 </div>
1002         
1003   
1004
1005       </div>
1006     <div class="jd-details-descr">
1007       
1008   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the class property
1009  for a widget (for example, "android.widget.Button").</p></div>
1010   <div class="jd-tagdata">
1011       <h5 class="jd-tagtitle">Returns</h5>
1012       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1013   </div>
1014   <div class="jd-tagdata">
1015   <h5 class="jd-tagtitle">Since</h5>
1016   <ul class="nolist"><li>Android API Level 17</li></ul>
1017 </div>
1018     </div>
1019 </div>
1020
1021
1022 <a id="classNameMatches(java.lang.String)"></a>
1023
1024 <div class="jd-details api "> 
1025     <h4 class="jd-details-title">
1026       <span class="normal">
1027         public 
1028          
1029          
1030          
1031          
1032         <a href="UiSelector.html">UiSelector</a>
1033       </span>
1034       <span class="sympad">classNameMatches</span>
1035       <span class="normal">(String regex)</span>
1036     </h4>
1037       <div class="api-level">
1038         <div>
1039
1040 </div>
1041         
1042   
1043
1044       </div>
1045     <div class="jd-details-descr">
1046       
1047   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the class property
1048  for a widget (for example, "android.widget.Button").</p></div>
1049   <div class="jd-tagdata">
1050       <h5 class="jd-tagtitle">Returns</h5>
1051       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1052   </div>
1053   <div class="jd-tagdata">
1054   <h5 class="jd-tagtitle">Since</h5>
1055   <ul class="nolist"><li>Android API Level 17</li></ul>
1056 </div>
1057     </div>
1058 </div>
1059
1060
1061 <a id="clickable(boolean)"></a>
1062
1063 <div class="jd-details api "> 
1064     <h4 class="jd-details-title">
1065       <span class="normal">
1066         public 
1067          
1068          
1069          
1070          
1071         <a href="UiSelector.html">UiSelector</a>
1072       </span>
1073       <span class="sympad">clickable</span>
1074       <span class="normal">(boolean val)</span>
1075     </h4>
1076       <div class="api-level">
1077         <div>
1078
1079 </div>
1080         
1081   
1082
1083       </div>
1084     <div class="jd-details-descr">
1085       
1086   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are clickable.
1087
1088  Typically, using this search criteria alone is not useful.
1089  You should also include additional criteria, such as text,
1090  content-description, or the class name for a widget.
1091
1092  If no other search criteria is specified, and there is more
1093  than one matching widget, the first widget in the tree
1094  is selected.</p></div>
1095   <div class="jd-tagdata">
1096       <h5 class="jd-tagtitle">Parameters</h5>
1097       <table class="jd-tagtable">
1098         <tr>
1099           <th>val</th>
1100           <td>Value to match</td>
1101         </tr>
1102       </table>
1103   </div>
1104   <div class="jd-tagdata">
1105       <h5 class="jd-tagtitle">Returns</h5>
1106       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1107   </div>
1108
1109     </div>
1110 </div>
1111
1112
1113 <a id="description(java.lang.String)"></a>
1114
1115 <div class="jd-details api "> 
1116     <h4 class="jd-details-title">
1117       <span class="normal">
1118         public 
1119          
1120          
1121          
1122          
1123         <a href="UiSelector.html">UiSelector</a>
1124       </span>
1125       <span class="sympad">description</span>
1126       <span class="normal">(String desc)</span>
1127     </h4>
1128       <div class="api-level">
1129         <div>
1130
1131 </div>
1132         
1133   
1134
1135       </div>
1136     <div class="jd-details-descr">
1137       
1138   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description
1139  property for a widget.
1140
1141  The content-description is typically used
1142  by the Android Accessibility framework to
1143  provide an audio prompt for the widget when
1144  the widget is selected. The content-description
1145  for the widget must match exactly
1146  with the string in your input argument.
1147
1148  Matching is case-sensitive.</p></div>
1149   <div class="jd-tagdata">
1150       <h5 class="jd-tagtitle">Parameters</h5>
1151       <table class="jd-tagtable">
1152         <tr>
1153           <th>desc</th>
1154           <td>Value to match</td>
1155         </tr>
1156       </table>
1157   </div>
1158   <div class="jd-tagdata">
1159       <h5 class="jd-tagtitle">Returns</h5>
1160       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1161   </div>
1162
1163     </div>
1164 </div>
1165
1166
1167 <a id="descriptionContains(java.lang.String)"></a>
1168
1169 <div class="jd-details api "> 
1170     <h4 class="jd-details-title">
1171       <span class="normal">
1172         public 
1173          
1174          
1175          
1176          
1177         <a href="UiSelector.html">UiSelector</a>
1178       </span>
1179       <span class="sympad">descriptionContains</span>
1180       <span class="normal">(String desc)</span>
1181     </h4>
1182       <div class="api-level">
1183         <div>
1184
1185 </div>
1186         
1187   
1188
1189       </div>
1190     <div class="jd-details-descr">
1191       
1192   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description
1193  property for a widget.
1194
1195  The content-description is typically used
1196  by the Android Accessibility framework to
1197  provide an audio prompt for the widget when
1198  the widget is selected. The content-description
1199  for the widget must contain
1200  the string in your input argument.
1201
1202  Matching is case-insensitive.</p></div>
1203   <div class="jd-tagdata">
1204       <h5 class="jd-tagtitle">Parameters</h5>
1205       <table class="jd-tagtable">
1206         <tr>
1207           <th>desc</th>
1208           <td>Value to match</td>
1209         </tr>
1210       </table>
1211   </div>
1212   <div class="jd-tagdata">
1213       <h5 class="jd-tagtitle">Returns</h5>
1214       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1215   </div>
1216
1217     </div>
1218 </div>
1219
1220
1221 <a id="descriptionMatches(java.lang.String)"></a>
1222
1223 <div class="jd-details api "> 
1224     <h4 class="jd-details-title">
1225       <span class="normal">
1226         public 
1227          
1228          
1229          
1230          
1231         <a href="UiSelector.html">UiSelector</a>
1232       </span>
1233       <span class="sympad">descriptionMatches</span>
1234       <span class="normal">(String regex)</span>
1235     </h4>
1236       <div class="api-level">
1237         <div>
1238
1239 </div>
1240         
1241   
1242
1243       </div>
1244     <div class="jd-details-descr">
1245       
1246   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description
1247  property for a widget.
1248
1249  The content-description is typically used
1250  by the Android Accessibility framework to
1251  provide an audio prompt for the widget when
1252  the widget is selected. The content-description
1253  for the widget must match exactly
1254  with the string in your input argument.</p></div>
1255   <div class="jd-tagdata">
1256       <h5 class="jd-tagtitle">Returns</h5>
1257       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1258   </div>
1259   <div class="jd-tagdata">
1260   <h5 class="jd-tagtitle">Since</h5>
1261   <ul class="nolist"><li>Android API Level 17</li></ul>
1262 </div>
1263     </div>
1264 </div>
1265
1266
1267 <a id="descriptionStartsWith(java.lang.String)"></a>
1268
1269 <div class="jd-details api "> 
1270     <h4 class="jd-details-title">
1271       <span class="normal">
1272         public 
1273          
1274          
1275          
1276          
1277         <a href="UiSelector.html">UiSelector</a>
1278       </span>
1279       <span class="sympad">descriptionStartsWith</span>
1280       <span class="normal">(String desc)</span>
1281     </h4>
1282       <div class="api-level">
1283         <div>
1284
1285 </div>
1286         
1287   
1288
1289       </div>
1290     <div class="jd-details-descr">
1291       
1292   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the content-description
1293  property for a widget.
1294
1295  The content-description is typically used
1296  by the Android Accessibility framework to
1297  provide an audio prompt for the widget when
1298  the widget is selected. The content-description
1299  for the widget must start
1300  with the string in your input argument.
1301
1302  Matching is case-insensitive.</p></div>
1303   <div class="jd-tagdata">
1304       <h5 class="jd-tagtitle">Parameters</h5>
1305       <table class="jd-tagtable">
1306         <tr>
1307           <th>desc</th>
1308           <td>Value to match</td>
1309         </tr>
1310       </table>
1311   </div>
1312   <div class="jd-tagdata">
1313       <h5 class="jd-tagtitle">Returns</h5>
1314       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1315   </div>
1316
1317     </div>
1318 </div>
1319
1320
1321 <a id="enabled(boolean)"></a>
1322
1323 <div class="jd-details api "> 
1324     <h4 class="jd-details-title">
1325       <span class="normal">
1326         public 
1327          
1328          
1329          
1330          
1331         <a href="UiSelector.html">UiSelector</a>
1332       </span>
1333       <span class="sympad">enabled</span>
1334       <span class="normal">(boolean val)</span>
1335     </h4>
1336       <div class="api-level">
1337         <div>
1338
1339 </div>
1340         
1341   
1342
1343       </div>
1344     <div class="jd-details-descr">
1345       
1346   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are enabled.
1347
1348  Typically, using this search criteria alone is not useful.
1349  You should also include additional criteria, such as text,
1350  content-description, or the class name for a widget.
1351
1352  If no other search criteria is specified, and there is more
1353  than one matching widget, the first widget in the tree
1354  is selected.</p></div>
1355   <div class="jd-tagdata">
1356       <h5 class="jd-tagtitle">Parameters</h5>
1357       <table class="jd-tagtable">
1358         <tr>
1359           <th>val</th>
1360           <td>Value to match</td>
1361         </tr>
1362       </table>
1363   </div>
1364   <div class="jd-tagdata">
1365       <h5 class="jd-tagtitle">Returns</h5>
1366       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1367   </div>
1368
1369     </div>
1370 </div>
1371
1372
1373 <a id="focusable(boolean)"></a>
1374
1375 <div class="jd-details api "> 
1376     <h4 class="jd-details-title">
1377       <span class="normal">
1378         public 
1379          
1380          
1381          
1382          
1383         <a href="UiSelector.html">UiSelector</a>
1384       </span>
1385       <span class="sympad">focusable</span>
1386       <span class="normal">(boolean val)</span>
1387     </h4>
1388       <div class="api-level">
1389         <div>
1390
1391 </div>
1392         
1393   
1394
1395       </div>
1396     <div class="jd-details-descr">
1397       
1398   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are focusable.
1399
1400  Typically, using this search criteria alone is not useful.
1401  You should also include additional criteria, such as text,
1402  content-description, or the class name for a widget.
1403
1404  If no other search criteria is specified, and there is more
1405  than one matching widget, the first widget in the tree
1406  is selected.</p></div>
1407   <div class="jd-tagdata">
1408       <h5 class="jd-tagtitle">Parameters</h5>
1409       <table class="jd-tagtable">
1410         <tr>
1411           <th>val</th>
1412           <td>Value to match</td>
1413         </tr>
1414       </table>
1415   </div>
1416   <div class="jd-tagdata">
1417       <h5 class="jd-tagtitle">Returns</h5>
1418       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1419   </div>
1420
1421     </div>
1422 </div>
1423
1424
1425 <a id="focused(boolean)"></a>
1426
1427 <div class="jd-details api "> 
1428     <h4 class="jd-details-title">
1429       <span class="normal">
1430         public 
1431          
1432          
1433          
1434          
1435         <a href="UiSelector.html">UiSelector</a>
1436       </span>
1437       <span class="sympad">focused</span>
1438       <span class="normal">(boolean val)</span>
1439     </h4>
1440       <div class="api-level">
1441         <div>
1442
1443 </div>
1444         
1445   
1446
1447       </div>
1448     <div class="jd-details-descr">
1449       
1450   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that have focus.
1451
1452  Typically, using this search criteria alone is not useful.
1453  You should also include additional criteria, such as text,
1454  content-description, or the class name for a widget.
1455
1456  If no other search criteria is specified, and there is more
1457  than one matching widget, the first widget in the tree
1458  is selected.</p></div>
1459   <div class="jd-tagdata">
1460       <h5 class="jd-tagtitle">Parameters</h5>
1461       <table class="jd-tagtable">
1462         <tr>
1463           <th>val</th>
1464           <td>Value to match</td>
1465         </tr>
1466       </table>
1467   </div>
1468   <div class="jd-tagdata">
1469       <h5 class="jd-tagtitle">Returns</h5>
1470       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1471   </div>
1472
1473     </div>
1474 </div>
1475
1476
1477 <a id="fromParent(com.android.uiautomator.core.UiSelector)"></a>
1478
1479 <div class="jd-details api "> 
1480     <h4 class="jd-details-title">
1481       <span class="normal">
1482         public 
1483          
1484          
1485          
1486          
1487         <a href="UiSelector.html">UiSelector</a>
1488       </span>
1489       <span class="sympad">fromParent</span>
1490       <span class="normal">(<a href="UiSelector.html">UiSelector</a> selector)</span>
1491     </h4>
1492       <div class="api-level">
1493         <div>
1494
1495 </div>
1496         
1497   
1498
1499       </div>
1500     <div class="jd-details-descr">
1501       
1502   <div class="jd-tagdata jd-tagdescr"><p>Adds a child UiSelector criteria to this selector which is used to
1503  start search from the parent widget.
1504
1505  Use this selector to narrow the search scope to
1506  sibling widgets as well all child widgets under a parent.</p></div>
1507   <div class="jd-tagdata">
1508       <h5 class="jd-tagtitle">Returns</h5>
1509       <ul class="nolist"><li>UiSelector with this added search criterion</li></ul>
1510   </div>
1511
1512     </div>
1513 </div>
1514
1515
1516 <a id="index(int)"></a>
1517
1518 <div class="jd-details api "> 
1519     <h4 class="jd-details-title">
1520       <span class="normal">
1521         public 
1522          
1523          
1524          
1525          
1526         <a href="UiSelector.html">UiSelector</a>
1527       </span>
1528       <span class="sympad">index</span>
1529       <span class="normal">(int index)</span>
1530     </h4>
1531       <div class="api-level">
1532         <div>
1533
1534 </div>
1535         
1536   
1537
1538       </div>
1539     <div class="jd-details-descr">
1540       
1541   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the widget by its node
1542  index in the layout hierarchy.
1543
1544  The index value must be 0 or greater.
1545
1546  Using the index can be unreliable and should only
1547  be used as a last resort for matching. Instead,
1548  consider using the <code><a href="#instance(int)">instance(int)</a></code> method.</p></div>
1549   <div class="jd-tagdata">
1550       <h5 class="jd-tagtitle">Parameters</h5>
1551       <table class="jd-tagtable">
1552         <tr>
1553           <th>index</th>
1554           <td>Value to match</td>
1555         </tr>
1556       </table>
1557   </div>
1558   <div class="jd-tagdata">
1559       <h5 class="jd-tagtitle">Returns</h5>
1560       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1561   </div>
1562
1563     </div>
1564 </div>
1565
1566
1567 <a id="instance(int)"></a>
1568
1569 <div class="jd-details api "> 
1570     <h4 class="jd-details-title">
1571       <span class="normal">
1572         public 
1573          
1574          
1575          
1576          
1577         <a href="UiSelector.html">UiSelector</a>
1578       </span>
1579       <span class="sympad">instance</span>
1580       <span class="normal">(int instance)</span>
1581     </h4>
1582       <div class="api-level">
1583         <div>
1584
1585 </div>
1586         
1587   
1588
1589       </div>
1590     <div class="jd-details-descr">
1591       
1592   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the
1593  widget by its instance number.
1594
1595  The instance value must be 0 or greater, where
1596  the first instance is 0.
1597
1598  For example, to simulate a user click on
1599  the third image that is enabled in a UI screen, you
1600  could specify a a search criteria where the instance is
1601  2, the <code><a href="#className(java.lang.String)">className(String)</a></code> matches the image
1602  widget class, and <code><a href="#enabled(boolean)">enabled(boolean)</a></code> is true.
1603  The code would look like this:
1604  <code>
1605  new UiSelector().className("android.widget.ImageView")
1606     .enabled(true).instance(2);
1607  </code></p></div>
1608   <div class="jd-tagdata">
1609       <h5 class="jd-tagtitle">Parameters</h5>
1610       <table class="jd-tagtable">
1611         <tr>
1612           <th>instance</th>
1613           <td>Value to match</td>
1614         </tr>
1615       </table>
1616   </div>
1617   <div class="jd-tagdata">
1618       <h5 class="jd-tagtitle">Returns</h5>
1619       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1620   </div>
1621
1622     </div>
1623 </div>
1624
1625
1626 <a id="longClickable(boolean)"></a>
1627
1628 <div class="jd-details api "> 
1629     <h4 class="jd-details-title">
1630       <span class="normal">
1631         public 
1632          
1633          
1634          
1635          
1636         <a href="UiSelector.html">UiSelector</a>
1637       </span>
1638       <span class="sympad">longClickable</span>
1639       <span class="normal">(boolean val)</span>
1640     </h4>
1641       <div class="api-level">
1642         <div>
1643
1644 </div>
1645         
1646   
1647
1648       </div>
1649     <div class="jd-details-descr">
1650       
1651   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are long-clickable.
1652
1653  Typically, using this search criteria alone is not useful.
1654  You should also include additional criteria, such as text,
1655  content-description, or the class name for a widget.
1656
1657  If no other search criteria is specified, and there is more
1658  than one matching widget, the first widget in the tree
1659  is selected.</p></div>
1660   <div class="jd-tagdata">
1661       <h5 class="jd-tagtitle">Parameters</h5>
1662       <table class="jd-tagtable">
1663         <tr>
1664           <th>val</th>
1665           <td>Value to match</td>
1666         </tr>
1667       </table>
1668   </div>
1669   <div class="jd-tagdata">
1670       <h5 class="jd-tagtitle">Returns</h5>
1671       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1672   </div>
1673   <div class="jd-tagdata">
1674   <h5 class="jd-tagtitle">Since</h5>
1675   <ul class="nolist"><li>Android API Level 17</li></ul>
1676 </div>
1677     </div>
1678 </div>
1679
1680
1681 <a id="packageName(java.lang.String)"></a>
1682
1683 <div class="jd-details api "> 
1684     <h4 class="jd-details-title">
1685       <span class="normal">
1686         public 
1687          
1688          
1689          
1690          
1691         <a href="UiSelector.html">UiSelector</a>
1692       </span>
1693       <span class="sympad">packageName</span>
1694       <span class="normal">(String name)</span>
1695     </h4>
1696       <div class="api-level">
1697         <div>
1698
1699 </div>
1700         
1701   
1702
1703       </div>
1704     <div class="jd-details-descr">
1705       
1706   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the package name
1707  of the application that contains the widget.</p></div>
1708   <div class="jd-tagdata">
1709       <h5 class="jd-tagtitle">Parameters</h5>
1710       <table class="jd-tagtable">
1711         <tr>
1712           <th>name</th>
1713           <td>Value to match</td>
1714         </tr>
1715       </table>
1716   </div>
1717   <div class="jd-tagdata">
1718       <h5 class="jd-tagtitle">Returns</h5>
1719       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1720   </div>
1721
1722     </div>
1723 </div>
1724
1725
1726 <a id="packageNameMatches(java.lang.String)"></a>
1727
1728 <div class="jd-details api "> 
1729     <h4 class="jd-details-title">
1730       <span class="normal">
1731         public 
1732          
1733          
1734          
1735          
1736         <a href="UiSelector.html">UiSelector</a>
1737       </span>
1738       <span class="sympad">packageNameMatches</span>
1739       <span class="normal">(String regex)</span>
1740     </h4>
1741       <div class="api-level">
1742         <div>
1743
1744 </div>
1745         
1746   
1747
1748       </div>
1749     <div class="jd-details-descr">
1750       
1751   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the package name
1752  of the application that contains the widget.</p></div>
1753   <div class="jd-tagdata">
1754       <h5 class="jd-tagtitle">Returns</h5>
1755       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1756   </div>
1757   <div class="jd-tagdata">
1758   <h5 class="jd-tagtitle">Since</h5>
1759   <ul class="nolist"><li>Android API Level 17</li></ul>
1760 </div>
1761     </div>
1762 </div>
1763
1764
1765 <a id="scrollable(boolean)"></a>
1766
1767 <div class="jd-details api "> 
1768     <h4 class="jd-details-title">
1769       <span class="normal">
1770         public 
1771          
1772          
1773          
1774          
1775         <a href="UiSelector.html">UiSelector</a>
1776       </span>
1777       <span class="sympad">scrollable</span>
1778       <span class="normal">(boolean val)</span>
1779     </h4>
1780       <div class="api-level">
1781         <div>
1782
1783 </div>
1784         
1785   
1786
1787       </div>
1788     <div class="jd-details-descr">
1789       
1790   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that are scrollable.
1791
1792  Typically, using this search criteria alone is not useful.
1793  You should also include additional criteria, such as text,
1794  content-description, or the class name for a widget.
1795
1796  If no other search criteria is specified, and there is more
1797  than one matching widget, the first widget in the tree
1798  is selected.</p></div>
1799   <div class="jd-tagdata">
1800       <h5 class="jd-tagtitle">Parameters</h5>
1801       <table class="jd-tagtable">
1802         <tr>
1803           <th>val</th>
1804           <td>Value to match</td>
1805         </tr>
1806       </table>
1807   </div>
1808   <div class="jd-tagdata">
1809       <h5 class="jd-tagtitle">Returns</h5>
1810       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1811   </div>
1812
1813     </div>
1814 </div>
1815
1816
1817 <a id="selected(boolean)"></a>
1818
1819 <div class="jd-details api "> 
1820     <h4 class="jd-details-title">
1821       <span class="normal">
1822         public 
1823          
1824          
1825          
1826          
1827         <a href="UiSelector.html">UiSelector</a>
1828       </span>
1829       <span class="sympad">selected</span>
1830       <span class="normal">(boolean val)</span>
1831     </h4>
1832       <div class="api-level">
1833         <div>
1834
1835 </div>
1836         
1837   
1838
1839       </div>
1840     <div class="jd-details-descr">
1841       
1842   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match widgets that
1843  are currently selected.
1844
1845  Typically, using this search criteria alone is not useful.
1846  You should also include additional criteria, such as text,
1847  content-description, or the class name for a widget.
1848
1849  If no other search criteria is specified, and there is more
1850  than one matching widget, the first widget in the tree
1851  is selected.</p></div>
1852   <div class="jd-tagdata">
1853       <h5 class="jd-tagtitle">Parameters</h5>
1854       <table class="jd-tagtable">
1855         <tr>
1856           <th>val</th>
1857           <td>Value to match</td>
1858         </tr>
1859       </table>
1860   </div>
1861   <div class="jd-tagdata">
1862       <h5 class="jd-tagtitle">Returns</h5>
1863       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1864   </div>
1865
1866     </div>
1867 </div>
1868
1869
1870 <a id="text(java.lang.String)"></a>
1871
1872 <div class="jd-details api "> 
1873     <h4 class="jd-details-title">
1874       <span class="normal">
1875         public 
1876          
1877          
1878          
1879          
1880         <a href="UiSelector.html">UiSelector</a>
1881       </span>
1882       <span class="sympad">text</span>
1883       <span class="normal">(String text)</span>
1884     </h4>
1885       <div class="api-level">
1886         <div>
1887
1888 </div>
1889         
1890   
1891
1892       </div>
1893     <div class="jd-details-descr">
1894       
1895   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the visible text displayed
1896  for a widget (for example, the text label to launch an app).
1897
1898  The text for the widget must match exactly
1899  with the string in your input argument.
1900  Matching is case-sensitive.</p></div>
1901   <div class="jd-tagdata">
1902       <h5 class="jd-tagtitle">Parameters</h5>
1903       <table class="jd-tagtable">
1904         <tr>
1905           <th>text</th>
1906           <td>Value to match</td>
1907         </tr>
1908       </table>
1909   </div>
1910   <div class="jd-tagdata">
1911       <h5 class="jd-tagtitle">Returns</h5>
1912       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1913   </div>
1914
1915     </div>
1916 </div>
1917
1918
1919 <a id="textContains(java.lang.String)"></a>
1920
1921 <div class="jd-details api "> 
1922     <h4 class="jd-details-title">
1923       <span class="normal">
1924         public 
1925          
1926          
1927          
1928          
1929         <a href="UiSelector.html">UiSelector</a>
1930       </span>
1931       <span class="sympad">textContains</span>
1932       <span class="normal">(String text)</span>
1933     </h4>
1934       <div class="api-level">
1935         <div>
1936
1937 </div>
1938         
1939   
1940
1941       </div>
1942     <div class="jd-details-descr">
1943       
1944   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the visible text displayed
1945  for a widget (for example, the text label to launch an app).
1946
1947  The text for the widget must contain the string in
1948  your input argument. Matching is case-sensitive.</p></div>
1949   <div class="jd-tagdata">
1950       <h5 class="jd-tagtitle">Parameters</h5>
1951       <table class="jd-tagtable">
1952         <tr>
1953           <th>text</th>
1954           <td>Value to match</td>
1955         </tr>
1956       </table>
1957   </div>
1958   <div class="jd-tagdata">
1959       <h5 class="jd-tagtitle">Returns</h5>
1960       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
1961   </div>
1962
1963     </div>
1964 </div>
1965
1966
1967 <a id="textMatches(java.lang.String)"></a>
1968
1969 <div class="jd-details api "> 
1970     <h4 class="jd-details-title">
1971       <span class="normal">
1972         public 
1973          
1974          
1975          
1976          
1977         <a href="UiSelector.html">UiSelector</a>
1978       </span>
1979       <span class="sympad">textMatches</span>
1980       <span class="normal">(String regex)</span>
1981     </h4>
1982       <div class="api-level">
1983         <div>
1984
1985 </div>
1986         
1987   
1988
1989       </div>
1990     <div class="jd-details-descr">
1991       
1992   <div class="jd-tagdata jd-tagdescr"><p>Set the search criteria to match the visible text displayed
1993  for a widget (for example, the text label to launch an app).
1994
1995  The text for the widget must match exactly
1996  with the string in your input argument.</p></div>
1997   <div class="jd-tagdata">
1998       <h5 class="jd-tagtitle">Returns</h5>
1999       <ul class="nolist"><li>UiSelector with the specified search criteria</li></ul>
2000   </div>
2001   <div class="jd-tagdata">
2002   <h5 class="jd-tagtitle">Since</h5>
2003   <ul class="nolist"><li>Android API Level 17</li></ul>
2004 </div>
2005     </div>
2006 </div>
2007
2008
2009 <a id="textStartsWith(java.lang.String)"></a>
2010
2011 <div class="jd-details api "> 
2012     <h4 class="jd-details-title">
2013       <span class="normal">
2014         public 
2015          
2016          
2017          
2018          
2019         <a href="UiSelector.html">UiSelector</a>
2020       </span>
2021       <span class="sympad">textStartsWith</span>
2022       <span class="normal">(String text)</span>
2023     </h4>
2024       <div class="api-level">
2025         <div>
2026
2027 </div>
2028         
2029   
2030
2031       </div>
2032     <div class="jd-details-descr">
2033       
2034   <div class="jd-tagdata jd-tagdescr"><p>Text property is usually the widget's visible text on the display.
2035
2036  Adding this to the search criteria indicates that the search performed
2037  should match a widget with text value starting with the text parameter.
2038
2039  The matching will be case-insensitive.</p></div>
2040   <div class="jd-tagdata">
2041       <h5 class="jd-tagtitle">Returns</h5>
2042       <ul class="nolist"><li>UiSelector with this added search criterion</li></ul>
2043   </div>
2044
2045     </div>
2046 </div>
2047
2048
2049 <a id="toString()"></a>
2050
2051 <div class="jd-details api "> 
2052     <h4 class="jd-details-title">
2053       <span class="normal">
2054         public 
2055          
2056          
2057          
2058          
2059         String
2060       </span>
2061       <span class="sympad">toString</span>
2062       <span class="normal">()</span>
2063     </h4>
2064       <div class="api-level">
2065         <div>
2066
2067 </div>
2068         
2069   
2070
2071       </div>
2072     <div class="jd-details-descr">
2073       
2074   <div class="jd-tagdata jd-tagdescr"><p></p></div>
2075
2076     </div>
2077 </div>
2078
2079
2080
2081
2082
2083 <!-- ========= METHOD DETAIL ======== -->
2084
2085
2086
2087 <!-- ========= END OF CLASS DATA ========= -->
2088