blob: ab776eb5ca7ff937601f452392fd15d4c911d961 [file] [log] [blame]
Quddus Chong489218c2015-02-26 16:38:46 -08001<!DOCTYPE html>
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
Quddus Chong900831f2015-04-17 15:01:16 -070098
Quddus Chong489218c2015-02-26 16:38:46 -080099<html>
100<head>
101
102
103<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
104<meta name="viewport" content="width=device-width" />
105
106<link rel="shortcut icon" type="image/x-icon" href="../../../../../../favicon.ico" />
107<title>CountingIdlingResource | Android Developers</title>
108
109<!-- STYLESHEETS -->
110<link rel="stylesheet"
111href="http://fonts.googleapis.com/css?family=Roboto+Condensed">
112<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold"
113 title="roboto">
Quddus Chong900831f2015-04-17 15:01:16 -0700114<link href="../../../../../../assets/css/default.css?v=5" rel="stylesheet" type="text/css">
Quddus Chong489218c2015-02-26 16:38:46 -0800115
116
117<!-- FULLSCREEN STYLESHEET -->
118<link href="../../../../../../assets/css/fullscreen.css" rel="stylesheet" class="fullscreen"
119type="text/css">
120
121
122<!-- JAVASCRIPT -->
123<script src="http://www.google.com/jsapi" type="text/javascript"></script>
124<script src="../../../../../../assets/js/android_3p-bundle.js" type="text/javascript"></script>
125<script type="text/javascript">
126 var toRoot = "../../../../../../";
127 var metaTags = [];
128 var devsite = false;
129</script>
Quddus Chong900831f2015-04-17 15:01:16 -0700130<script src="../../../../../../assets/js/docs.js?v=3" type="text/javascript"></script>
131
132
Quddus Chong489218c2015-02-26 16:38:46 -0800133
134<script>
135 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
136 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
137 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
138 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
139
140 ga('create', 'UA-5831155-1', 'android.com');
141 ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker);
142 ga('send', 'pageview');
143 ga('universal.send', 'pageview'); // Send page view for new tracker.
144</script>
145
146</head>
147
148<body class="gc-documentation
149 develop reference" itemscope itemtype="http://schema.org/Article">
150 <div id="doc-api-level" class="" style="display:none"></div>
151 <a name="top"></a>
152
153
154<a name="top"></a>
155
Quddus Chong900831f2015-04-17 15:01:16 -0700156<!-- dialog to prompt lang pref change when loaded from hardcoded URL
157<div id="langMessage" style="display:none">
158 <div>
159 <div class="lang en">
160 <p>You requested a page in English, would you like to proceed with this language setting?</p>
161 </div>
162 <div class="lang es">
163 <p>You requested a page in Spanish (Español), would you like to proceed with this language setting?</p>
164 </div>
165 <div class="lang ja">
166 <p>You requested a page in Japanese (日本語), would you like to proceed with this language setting?</p>
167 </div>
168 <div class="lang ko">
169 <p>You requested a page in Korean (한국어), would you like to proceed with this language setting?</p>
170 </div>
171 <div class="lang ru">
172 <p>You requested a page in Russian (Русский), would you like to proceed with this language setting?</p>
173 </div>
174 <div class="lang zh-cn">
175 <p>You requested a page in Simplified Chinese (简体中文), would you like to proceed with this language setting?</p>
176 </div>
177 <div class="lang zh-tw">
178 <p>You requested a page in Traditional Chinese (繁體中文), would you like to proceed with this language setting?</p>
179 </div>
180 <a href="#" class="button yes" onclick="return false;">
181 <span class="lang en">Yes</span>
182 <span class="lang es">Sí</span>
183 <span class="lang ja">Yes</span>
184 <span class="lang ko">Yes</span>
185 <span class="lang ru">Yes</span>
186 <span class="lang zh-cn">是的</span>
187 <span class="lang zh-tw">没有</span>
188 </a>
189 <a href="#" class="button" onclick="$('#langMessage').hide();return false;">
190 <span class="lang en">No</span>
191 <span class="lang es">No</span>
192 <span class="lang ja">No</span>
193 <span class="lang ko">No</span>
194 <span class="lang ru">No</span>
195 <span class="lang zh-cn">没有</span>
196 <span class="lang zh-tw">没有</span>
197 </a>
198 </div>
199</div> -->
200
201
Quddus Chong489218c2015-02-26 16:38:46 -0800202 <!-- Header -->
203 <div id="header-wrapper">
204 <div id="header">
205
206
207
208
209 <div class="wrap" id="header-wrap">
210 <div class="col-3 logo">
211 <a href="../../../../../../index.html">
212 <img src="../../../../../../assets/images/dac_logo.png"
213 srcset="../../../../../../assets/images/dac_logo@2x.png 2x"
214 width="123" height="25" alt="Android Developers" />
215 </a>
216 <div class="btn-quicknav" id="btn-quicknav">
217 <a href="#" class="arrow-inactive">Quicknav</a>
218 <a href="#" class="arrow-active">Quicknav</a>
219 </div>
220 </div>
221 <ul class="nav-x col-9">
222 <li class="design">
223 <a href="../../../../../../design/index.html"
224 zh-tw-lang="設計"
225 zh-cn-lang="设计"
226 ru-lang="Проектирование"
227 ko-lang="디자인"
228 ja-lang="設計"
229 es-lang="Diseñar"
230 >Design</a></li>
231 <li class="develop"><a href="../../../../../../develop/index.html"
232 zh-tw-lang="開發"
233 zh-cn-lang="开发"
234 ru-lang="Разработка"
235 ko-lang="개발"
236 ja-lang="開発"
237 es-lang="Desarrollar"
238 >Develop</a></li>
239 <li class="distribute last"><a href="../../../../../../distribute/index.html"
240 zh-tw-lang="發佈"
241 zh-cn-lang="分发"
242 ru-lang="Распространение"
243 ko-lang="배포"
244 ja-lang="配布"
245 es-lang="Distribuir"
246 >Distribute</a></li>
247 </ul>
248
249
250
251
252<div class="menu-container">
253 <div class="moremenu">
254 <div id="more-btn"></div>
255 </div>
256 <div class="morehover" id="moremenu">
257 <div class="top"></div>
258 <div class="mid">
259 <div class="header">Links</div>
260 <ul>
261 <li><a href="https://play.google.com/apps/publish/" target="_googleplay">Google Play Developer Console</a></li>
262 <li><a href="http://android-developers.blogspot.com/">Android Developers Blog</a></li>
263 <li><a href="../../../../../../about/index.html">About Android</a></li>
264 </ul>
265 <div class="header">Android Sites</div>
266 <ul>
267 <li><a href="http://www.android.com">Android.com</a></li>
268 <li class="active"><a>Android Developers</a></li>
269 <li><a href="http://source.android.com">Android Open Source Project</a></li>
270 </ul>
271
272
273
274
275 <br class="clearfix" />
276 </div><!-- end 'mid' -->
277 <div class="bottom"></div>
278 </div><!-- end 'moremenu' -->
279
280 <div class="search" id="search-container">
281 <div class="search-inner">
282 <div id="search-btn"></div>
283 <div class="left"></div>
284 <form onsubmit="return submit_search()">
285 <input id="search_autocomplete" type="text" value="" autocomplete="off" name="q"
286 onfocus="search_focus_changed(this, true)" onblur="search_focus_changed(this, false)"
287 onkeydown="return search_changed(event, true, '../../../../../../')"
288 onkeyup="return search_changed(event, false, '../../../../../../')" />
289 </form>
290 <div class="right"></div>
291 <a class="close hide">close</a>
292 <div class="left"></div>
293 <div class="right"></div>
294 </div><!-- end search-inner -->
295 </div><!-- end search-container -->
296
297 <div class="search_filtered_wrapper reference">
298 <div class="suggest-card reference no-display">
299 <ul class="search_filtered">
300 </ul>
301 </div>
302 </div>
303
304 <div class="search_filtered_wrapper docs">
305 <div class="suggest-card dummy no-display">&nbsp;</div>
306 <div class="suggest-card develop no-display">
307 <ul class="search_filtered">
308 </ul>
309 <div class="child-card guides no-display">
310 </div>
311 <div class="child-card training no-display">
312 </div>
313 <div class="child-card samples no-display">
314 </div>
315 </div>
316 <div class="suggest-card design no-display">
317 <ul class="search_filtered">
318 </ul>
319 </div>
320 <div class="suggest-card distribute no-display">
321 <ul class="search_filtered">
322 </ul>
323 </div>
324 </div>
325</div><!-- end menu-container (search and menu widget) -->
326
327
328
329 <!-- Expanded quicknav -->
330 <div id="quicknav" class="col-13">
331 <ul>
332 <li class="about">
333 <ul>
334 <li><a href="../../../../../../about/index.html">About</a></li>
335 <li><a href="../../../../../../wear/index.html">Wear</a></li>
336 <li><a href="../../../../../../tv/index.html">TV</a></li>
337 <li><a href="../../../../../../auto/index.html">Auto</a></li>
338 </ul>
339 </li>
340 <li class="design">
341 <ul>
342 <li><a href="../../../../../../design/index.html">Get Started</a></li>
343 <li><a href="../../../../../../design/devices.html">Devices</a></li>
344 <li><a href="../../../../../../design/style/index.html">Style</a></li>
345 <li><a href="../../../../../../design/patterns/index.html">Patterns</a></li>
346 <li><a href="../../../../../../design/building-blocks/index.html">Building Blocks</a></li>
347 <li><a href="../../../../../../design/downloads/index.html">Downloads</a></li>
348 <li><a href="../../../../../../design/videos/index.html">Videos</a></li>
349 </ul>
350 </li>
351 <li class="develop">
352 <ul>
353 <li><a href="../../../../../../training/index.html"
354 zh-tw-lang="訓練課程"
355 zh-cn-lang="培训"
356 ru-lang="Курсы"
357 ko-lang="교육"
358 ja-lang="トレーニング"
359 es-lang="Capacitación"
360 >Training</a></li>
361 <li><a href="../../../../../../guide/index.html"
362 zh-tw-lang="API 指南"
363 zh-cn-lang="API 指南"
364 ru-lang="Руководства по API"
365 ko-lang="API 가이드"
366 ja-lang="API ガイド"
367 es-lang="Guías de la API"
368 >API Guides</a></li>
369 <li><a href="../../../../../../reference/packages.html"
370 zh-tw-lang="參考資源"
371 zh-cn-lang="参考"
372 ru-lang="Справочник"
373 ko-lang="참조문서"
374 ja-lang="リファレンス"
375 es-lang="Referencia"
376 >Reference</a></li>
377 <li><a href="../../../../../../sdk/index.html"
378 zh-tw-lang="相關工具"
379 zh-cn-lang="工具"
380 ru-lang="Инструменты"
381 ko-lang="도구"
382 ja-lang="ツール"
383 es-lang="Herramientas"
384 >Tools</a>
385 </li>
386 <li><a href="../../../../../../google/index.html">Google Services</a>
387 </li>
388
389 </ul>
390 </li>
391 <li class="distribute last">
392 <ul>
393 <li><a href="../../../../../../distribute/googleplay/index.html">Google Play</a></li>
394 <li><a href="../../../../../../distribute/essentials/index.html">Essentials</a></li>
395 <li><a href="../../../../../../distribute/users/index.html">Get Users</a></li>
396 <li><a href="../../../../../../distribute/engage/index.html">Engage &amp; Retain</a></li>
397 <li><a href="../../../../../../distribute/monetize/index.html">Monetize</a></li>
Quddus Chong900831f2015-04-17 15:01:16 -0700398 <li><a href="../../../../../../distribute/analyze/index.html">Analyze</a></li>
Quddus Chong489218c2015-02-26 16:38:46 -0800399 <li><a href="../../../../../../distribute/tools/index.html">Tools &amp; Reference</a></li>
400 <li><a href="../../../../../../distribute/stories/index.html">Developer Stories</a></li>
401 </ul>
402 </li>
403 </ul>
404 </div><!-- /Expanded quicknav -->
405 </div><!-- end header-wrap.wrap -->
406 </div><!-- end header -->
407
408
409 <!-- Secondary x-nav -->
410 <div id="nav-x">
411 <div class="wrap" style="position:relative;z-index:1">
412
413
Quddus Chong489218c2015-02-26 16:38:46 -0800414
Quddus Chong489218c2015-02-26 16:38:46 -0800415
416
417 <ul class="nav-x col-9 develop" style="width:100%">
418 <li class="training"><a href="../../../../../../training/index.html"
419 zh-tw-lang="訓練課程"
420 zh-cn-lang="培训"
421 ru-lang="Курсы"
422 ko-lang="교육"
423 ja-lang="トレーニング"
424 es-lang="Capacitación"
425 >Training</a></li>
426 <li class="guide"><a href="../../../../../../guide/index.html"
427 zh-tw-lang="API 指南"
428 zh-cn-lang="API 指南"
429 ru-lang="Руководства по API"
430 ko-lang="API 가이드"
431 ja-lang="API ガイド"
432 es-lang="Guías de la API"
433 >API Guides</a></li>
434 <li class="reference"><a href="../../../../../../reference/packages.html"
435 zh-tw-lang="參考資源"
436 zh-cn-lang="参考"
437 ru-lang="Справочник"
438 ko-lang="참조문서"
439 ja-lang="リファレンス"
440 es-lang="Referencia"
441 >Reference</a></li>
442 <li class="tools"><a href="../../../../../../sdk/index.html"
443 zh-tw-lang="相關工具"
444 zh-cn-lang="工具"
445 ru-lang="Инструменты"
446 ko-lang="도구"
447 ja-lang="ツール"
448 es-lang="Herramientas"
449 >Tools</a></li>
450 <li class="google"><a href="../../../../../../google/index.html"
451 >Google Services</a>
452 </li>
453
454 </ul>
455 </div>
456 </div>
457 <!-- /Sendondary x-nav DEVELOP -->
458
459
460
461 <div id="searchResults" class="wrap" style="display:none;">
462 <h2 id="searchTitle">Results</h2>
463 <div id="leftSearchControl" class="search-control">Loading...</div>
464 </div>
465 </div> <!--end header-wrapper -->
466
467 <div id="sticky-header">
468 <div>
469 <a class="logo" href="#top"></a>
470 <a class="top" href="#top"></a>
471 <ul class="breadcrumb">
472
473 <li class="current">CountingIdlingResource</li>
474 </ul>
475 </div>
476 </div>
477
478
479
480
481
482 <div class="wrap clearfix" id="body-content">
483 <div class="col-4" id="side-nav" itemscope itemtype="http://schema.org/SiteNavigationElement">
484 <div id="devdoc-nav">
485 <div id="api-nav-header">
486 <div id="api-level-toggle">
487 <label for="apiLevelCheckbox" class="disabled"
488 title="Select your target API level to dim unavailable APIs">API level: </label>
489 <div class="select-wrapper">
490 <select id="apiLevelSelector">
491 <!-- option elements added by buildApiLevelSelector() -->
492 </select>
493 </div>
494 </div><!-- end toggle -->
495 <div id="api-nav-title">Android APIs</div>
496 </div><!-- end nav header -->
497 <script>
498 var SINCE_DATA = [ ];
499 buildApiLevelSelector();
500 </script>
501
502 <div id="swapper">
503 <div id="nav-panels">
504 <div id="resize-packages-nav">
505 <div id="packages-nav" class="scroll-pane">
506
507 <ul>
508
509 <li class="api apilevel-">
510 <a href="../../../../../../reference/android/support/test/package-summary.html">android.support.test</a></li>
511 <li class="api apilevel-">
Quddus Chong900831f2015-04-17 15:01:16 -0700512 <a href="../../../../../../reference/android/support/test/annotation/package-summary.html">android.support.test.annotation</a></li>
513 <li class="api apilevel-">
Quddus Chong489218c2015-02-26 16:38:46 -0800514 <a href="../../../../../../reference/android/support/test/espresso/package-summary.html">android.support.test.espresso</a></li>
515 <li class="api apilevel-">
516 <a href="../../../../../../reference/android/support/test/espresso/action/package-summary.html">android.support.test.espresso.action</a></li>
517 <li class="api apilevel-">
518 <a href="../../../../../../reference/android/support/test/espresso/assertion/package-summary.html">android.support.test.espresso.assertion</a></li>
519 <li class="api apilevel-">
520 <a href="../../../../../../reference/android/support/test/espresso/base/package-summary.html">android.support.test.espresso.base</a></li>
521 <li class="selected api apilevel-">
522 <a href="../../../../../../reference/android/support/test/espresso/contrib/package-summary.html">android.support.test.espresso.contrib</a></li>
523 <li class="api apilevel-">
Quddus Chong900831f2015-04-17 15:01:16 -0700524 <a href="../../../../../../reference/android/support/test/espresso/intent/package-summary.html">android.support.test.espresso.intent</a></li>
525 <li class="api apilevel-">
526 <a href="../../../../../../reference/android/support/test/espresso/intent/matcher/package-summary.html">android.support.test.espresso.intent.matcher</a></li>
527 <li class="api apilevel-">
528 <a href="../../../../../../reference/android/support/test/espresso/intent/rule/package-summary.html">android.support.test.espresso.intent.rule</a></li>
529 <li class="api apilevel-">
Quddus Chong489218c2015-02-26 16:38:46 -0800530 <a href="../../../../../../reference/android/support/test/espresso/matcher/package-summary.html">android.support.test.espresso.matcher</a></li>
531 <li class="api apilevel-">
532 <a href="../../../../../../reference/android/support/test/espresso/util/package-summary.html">android.support.test.espresso.util</a></li>
533 <li class="api apilevel-">
534 <a href="../../../../../../reference/android/support/test/filters/package-summary.html">android.support.test.filters</a></li>
535 <li class="api apilevel-">
Quddus Chong900831f2015-04-17 15:01:16 -0700536 <a href="../../../../../../reference/android/support/test/rule/package-summary.html">android.support.test.rule</a></li>
537 <li class="api apilevel-">
Quddus Chong489218c2015-02-26 16:38:46 -0800538 <a href="../../../../../../reference/android/support/test/runner/package-summary.html">android.support.test.runner</a></li>
539 <li class="api apilevel-">
Quddus Chong900831f2015-04-17 15:01:16 -0700540 <a href="../../../../../../reference/android/support/test/runner/intent/package-summary.html">android.support.test.runner.intent</a></li>
541 <li class="api apilevel-">
Quddus Chong489218c2015-02-26 16:38:46 -0800542 <a href="../../../../../../reference/android/support/test/runner/lifecycle/package-summary.html">android.support.test.runner.lifecycle</a></li>
543 <li class="api apilevel-">
544 <a href="../../../../../../reference/android/support/test/uiautomator/package-summary.html">android.support.test.uiautomator</a></li>
545 </ul><br/>
546
547 </div> <!-- end packages-nav -->
548 </div> <!-- end resize-packages -->
549 <div id="classes-nav" class="scroll-pane">
550
551
552
553 <ul>
554
555
556 <li><h2>Interfaces</h2>
557 <ul>
558 <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/RecyclerViewActions.PositionableRecyclerViewAction.html">RecyclerViewActions.PositionableRecyclerViewAction</a></li>
559 </ul>
560 </li>
561
562 <li><h2>Classes</h2>
563 <ul>
564 <li class="selected api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/CountingIdlingResource.html">CountingIdlingResource</a></li>
565 <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/DrawerActions.html">DrawerActions</a></li>
566 <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/DrawerMatchers.html">DrawerMatchers</a></li>
567 <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/PickerActions.html">PickerActions</a></li>
568 <li class="api apilevel-"><a href="../../../../../../reference/android/support/test/espresso/contrib/RecyclerViewActions.html">RecyclerViewActions</a></li>
569 </ul>
570 </li>
571
572
573
574 </ul><br/>
575
576
577 </div><!-- end classes -->
578 </div><!-- end nav-panels -->
579 <div id="nav-tree" style="display:none" class="scroll-pane">
580 <div id="tree-list"></div>
581 </div><!-- end nav-tree -->
582 </div><!-- end swapper -->
583 <div id="nav-swap">
584 <a class="fullscreen">fullscreen</a>
585 <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>
586 </div>
587 </div> <!-- end devdoc-nav -->
588 </div> <!-- end side-nav -->
589 <script type="text/javascript">
590 // init fullscreen based on user pref
591 var fullscreen = readCookie("fullscreen");
592 if (fullscreen != 0) {
593 if (fullscreen == "false") {
594 toggleFullscreen(false);
595 } else {
596 toggleFullscreen(true);
597 }
598 }
599 // init nav version for mobile
600 if (isMobile) {
601 swapNav(); // tree view should be used on mobile
602 $('#nav-swap').hide();
603 } else {
604 chooseDefaultNav();
605 if ($("#nav-tree").is(':visible')) {
606 init_default_navtree("../../../../../../");
607 }
608 }
609 // scroll the selected page into view
610 $(document).ready(function() {
611 scrollIntoView("packages-nav");
612 scrollIntoView("classes-nav");
613 });
614 </script>
615
616
617
618
619
620<div class="col-12" id="doc-col">
621
622<div id="api-info-block">
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641<div class="sum-details-links">
642
643Summary:
644
645
646
647
648
649
650
651
652
653 <a href="#pubctors">Ctors</a>
654
655
656
657
658 &#124; <a href="#pubmethods">Methods</a>
659
660
661
662
663 &#124; <a href="#inhmethods">Inherited Methods</a>
664
665&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
666
667</div><!-- end sum-details-links -->
668<div class="api-level">
669
670
671
672
673</div>
674</div><!-- end api-info-block -->
675
676
677<!-- ======== START OF CLASS DATA ======== -->
678
679<div id="jd-header">
680 public
681
682 final
683
684 class
685<h1 itemprop="name">CountingIdlingResource</h1>
686
687
688
689
690 extends Object<br/>
691
692
693
694
695
696
697 implements
698
699 <a href="../../../../../../reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a>
700
701
702
703
704
705
706
707
708</div><!-- end header -->
709
710<div id="naMessage"></div>
711
712<div id="jd-content" class="api apilevel-">
713<table class="jd-inheritance-table">
714
715
716 <tr>
717
718 <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object</td>
719 </tr>
720
721
722 <tr>
723
724 <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
725
726 <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.contrib.CountingIdlingResource</td>
727 </tr>
728
729
730</table>
731
732
733
734
735
736
737
738<div class="jd-descr">
739
740
741<h2>Class Overview</h2>
742<p itemprop="articleBody">An implementation of <code><a href="../../../../../../reference/android/support/test/espresso/IdlingResource.html">IdlingResource</a></code> that determines idleness by maintaining an internal
743 counter. When the counter is 0 - it is considered to be idle, when it is non-zero it is not
744 idle. This is very similar to the way a <code><a href="../../../../../../reference/java/util/concurrent/Semaphore.html">Semaphore</a></code> behaves.
745 <p>
746 The counter may be incremented or decremented from any thread. If it reaches an illogical state
747 (like counter less than zero) it will throw an IllegalStateException.
748 </p>
749 <p>
750 This class can then be used to wrap up operations that while in progress should block tests from
751 accessing the UI.
752 </p>
753
754 <pre>
755 <code>public interface FooServer {
756 public Foo newFoo();
757 public void updateFoo(Foo foo);
758 </code>
759
760 public DecoratedFooServer implements FooServer {
761 private final FooServer realFooServer;
762 private final CountingIdlingResource fooServerIdlingResource;
763
764 public DecoratedFooServer(FooServer realFooServer,
765 CountingIdlingResource fooServerIdlingResource) {
766 this.realFooServer = checkNotNull(realFooServer);
767 this.fooServerIdlingResource = checkNotNull(fooServerIdlingResource);
768 }
769
770 public Foo newFoo() {
771 fooServerIdlingResource.increment();
772 try {
773 return realFooServer.newFoo();
774 } finally {
775 fooServerIdlingResource.decrement();
776 }
777 }
778
779 public void updateFoo(Foo foo) {
780 fooServerIdlingResource.increment();
781 try {
782 realFooServer.updateFoo(foo);
783 } finally {
784 fooServerIdlingResource.decrement();
785 }
786 }
787 }
788 }
789 </pre>
790
791 Then in your test setup:
792 <pre>
793 <code>public void setUp() throws Exception {
794 super.setUp();
795 FooServer realServer = FooApplication.getFooServer();
796 CountingIdlingResource countingResource = new CountingIdlingResource("FooServerCalls");
797 FooApplication.setFooServer(new DecoratedFooServer(realServer, countingResource));
798 Espresso.registerIdlingResource(countingResource);
799 </code>
800 }
801 </pre>
802
803</p>
804
805
806
807
808
809</div><!-- jd-descr -->
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826<div class="jd-descr">
827
828
829<h2>Summary</h2>
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853<!-- ======== CONSTRUCTOR SUMMARY ======== -->
854<table id="pubctors" class="jd-sumtable"><tr><th colspan="12">Public Constructors</th></tr>
855
856
857
858
859 <tr class="alt-color api apilevel-" >
860 <td class="jd-typecol"><nobr>
861
862
863
864
865
866 </nobr>
867 </td>
868 <td class="jd-linkcol" width="100%"><nobr>
869 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/contrib/CountingIdlingResource.html#CountingIdlingResource(java.lang.String)">CountingIdlingResource</a></span>(String resourceName)</nobr>
870
871 <div class="jd-descrdiv">
872 Creates a CountingIdlingResource without debug tracing.
873
874
875
876 </div>
877
878 </td></tr>
879
880
881
882 <tr class=" api apilevel-" >
883 <td class="jd-typecol"><nobr>
884
885
886
887
888
889 </nobr>
890 </td>
891 <td class="jd-linkcol" width="100%"><nobr>
892 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/contrib/CountingIdlingResource.html#CountingIdlingResource(java.lang.String, boolean)">CountingIdlingResource</a></span>(String resourceName, boolean debugCounting)</nobr>
893
894 <div class="jd-descrdiv">
895 Creates a CountingIdlingResource.
896
897
898
899 </div>
900
901 </td></tr>
902
903
904
905</table>
906
907
908
909
910
911
912<!-- ========== METHOD SUMMARY =========== -->
913<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>
914
915
916
917
918 <tr class="alt-color api apilevel-" >
919 <td class="jd-typecol"><nobr>
920
921
922
923
924
925 void</nobr>
926 </td>
927 <td class="jd-linkcol" width="100%"><nobr>
928 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/contrib/CountingIdlingResource.html#decrement()">decrement</a></span>()</nobr>
929
930 <div class="jd-descrdiv">
931 Decrements the count of in-flight transactions to the resource being monitored.
932
933
934
935 </div>
936
937 </td></tr>
938
939
940
941 <tr class=" api apilevel-" >
942 <td class="jd-typecol"><nobr>
943
944
945
946
947
948 void</nobr>
949 </td>
950 <td class="jd-linkcol" width="100%"><nobr>
951 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/contrib/CountingIdlingResource.html#dumpStateToLogs()">dumpStateToLogs</a></span>()</nobr>
952
953 <div class="jd-descrdiv">
954 Prints the current state of this resource to the logcat at info level.
955
956
957
958 </div>
959
960 </td></tr>
961
962
963
964 <tr class="alt-color api apilevel-" >
965 <td class="jd-typecol"><nobr>
966
967
968
969
970
971 String</nobr>
972 </td>
973 <td class="jd-linkcol" width="100%"><nobr>
974 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/contrib/CountingIdlingResource.html#getName()">getName</a></span>()</nobr>
975
976 <div class="jd-descrdiv">
977 Returns the name of the resources (used for logging and idempotency of registration).
978
979
980
981 </div>
982
983 </td></tr>
984
985
986
987 <tr class=" api apilevel-" >
988 <td class="jd-typecol"><nobr>
989
990
991
992
993
994 void</nobr>
995 </td>
996 <td class="jd-linkcol" width="100%"><nobr>
997 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/contrib/CountingIdlingResource.html#increment()">increment</a></span>()</nobr>
998
999 <div class="jd-descrdiv">
1000 Increments the count of in-flight transactions to the resource being monitored.
1001
1002
1003
1004 </div>
1005
1006 </td></tr>
1007
1008
1009
1010 <tr class="alt-color api apilevel-" >
1011 <td class="jd-typecol"><nobr>
1012
1013
1014
1015
1016
1017 boolean</nobr>
1018 </td>
1019 <td class="jd-linkcol" width="100%"><nobr>
1020 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/contrib/CountingIdlingResource.html#isIdleNow()">isIdleNow</a></span>()</nobr>
1021
1022 <div class="jd-descrdiv">
1023 Returns <code>true</code> if resource is currently idle.
1024
1025
1026
1027 </div>
1028
1029 </td></tr>
1030
1031
1032
1033 <tr class=" api apilevel-" >
1034 <td class="jd-typecol"><nobr>
1035
1036
1037
1038
1039
1040 void</nobr>
1041 </td>
1042 <td class="jd-linkcol" width="100%"><nobr>
1043 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/contrib/CountingIdlingResource.html#registerIdleTransitionCallback(android.support.test.espresso.IdlingResource.ResourceCallback)">registerIdleTransitionCallback</a></span>(<a href="../../../../../../reference/android/support/test/espresso/IdlingResource.ResourceCallback.html">IdlingResource.ResourceCallback</a> resourceCallback)</nobr>
1044
1045 <div class="jd-descrdiv">
1046 Registers the given <code><a href="../../../../../../reference/android/support/test/espresso/IdlingResource.ResourceCallback.html">IdlingResource.ResourceCallback</a></code> with the resource.
1047
1048
1049
1050 </div>
1051
1052 </td></tr>
1053
1054
1055
1056</table>
1057
1058
1059
1060
1061
1062
1063
1064<!-- ========== METHOD SUMMARY =========== -->
1065<table id="inhmethods" class="jd-sumtable"><tr><th>
1066 <a href="#" class="toggle-all" onclick="return toggleAllInherited(this, null)">[Expand]</a>
1067 <div style="clear:left;">Inherited Methods</div></th></tr>
1068
1069
1070<tr class="api apilevel-" >
1071<td colspan="12">
1072 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
1073 ><img id="inherited-methods-java.lang.Object-trigger"
1074 src="../../../../../../assets/images/triangle-closed.png"
1075 class="jd-expando-trigger-img" /></a>
1076From class
1077
1078 java.lang.Object
1079
1080<div id="inherited-methods-java.lang.Object">
1081 <div id="inherited-methods-java.lang.Object-list"
1082 class="jd-inheritedlinks">
1083 </div>
1084 <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
1085 <table class="jd-sumtable-expando">
1086
1087
1088
1089
1090 <tr class="alt-color api apilevel-" >
1091 <td class="jd-typecol"><nobr>
1092
1093
1094
1095
1096
1097 Object</nobr>
1098 </td>
1099 <td class="jd-linkcol" width="100%"><nobr>
1100 <span class="sympad">clone</span>()</nobr>
1101
1102 </td></tr>
1103
1104
1105
1106 <tr class=" api apilevel-" >
1107 <td class="jd-typecol"><nobr>
1108
1109
1110
1111
1112
1113 boolean</nobr>
1114 </td>
1115 <td class="jd-linkcol" width="100%"><nobr>
1116 <span class="sympad">equals</span>(Object arg0)</nobr>
1117
1118 </td></tr>
1119
1120
1121
1122 <tr class="alt-color api apilevel-" >
1123 <td class="jd-typecol"><nobr>
1124
1125
1126
1127
1128
1129 void</nobr>
1130 </td>
1131 <td class="jd-linkcol" width="100%"><nobr>
1132 <span class="sympad">finalize</span>()</nobr>
1133
1134 </td></tr>
1135
1136
1137
1138 <tr class=" api apilevel-" >
1139 <td class="jd-typecol"><nobr>
1140
1141
1142 final
1143
1144
1145 Class&lt;?&gt;</nobr>
1146 </td>
1147 <td class="jd-linkcol" width="100%"><nobr>
1148 <span class="sympad">getClass</span>()</nobr>
1149
1150 </td></tr>
1151
1152
1153
1154 <tr class="alt-color api apilevel-" >
1155 <td class="jd-typecol"><nobr>
1156
1157
1158
1159
1160
1161 int</nobr>
1162 </td>
1163 <td class="jd-linkcol" width="100%"><nobr>
1164 <span class="sympad">hashCode</span>()</nobr>
1165
1166 </td></tr>
1167
1168
1169
1170 <tr class=" api apilevel-" >
1171 <td class="jd-typecol"><nobr>
1172
1173
1174 final
1175
1176
1177 void</nobr>
1178 </td>
1179 <td class="jd-linkcol" width="100%"><nobr>
1180 <span class="sympad">notify</span>()</nobr>
1181
1182 </td></tr>
1183
1184
1185
1186 <tr class="alt-color api apilevel-" >
1187 <td class="jd-typecol"><nobr>
1188
1189
1190 final
1191
1192
1193 void</nobr>
1194 </td>
1195 <td class="jd-linkcol" width="100%"><nobr>
1196 <span class="sympad">notifyAll</span>()</nobr>
1197
1198 </td></tr>
1199
1200
1201
1202 <tr class=" api apilevel-" >
1203 <td class="jd-typecol"><nobr>
1204
1205
1206
1207
1208
1209 String</nobr>
1210 </td>
1211 <td class="jd-linkcol" width="100%"><nobr>
1212 <span class="sympad">toString</span>()</nobr>
1213
1214 </td></tr>
1215
1216
1217
1218 <tr class="alt-color api apilevel-" >
1219 <td class="jd-typecol"><nobr>
1220
1221
1222 final
1223
1224
1225 void</nobr>
1226 </td>
1227 <td class="jd-linkcol" width="100%"><nobr>
1228 <span class="sympad">wait</span>()</nobr>
1229
1230 </td></tr>
1231
1232
1233
1234 <tr class=" api apilevel-" >
1235 <td class="jd-typecol"><nobr>
1236
1237
1238 final
1239
1240
1241 void</nobr>
1242 </td>
1243 <td class="jd-linkcol" width="100%"><nobr>
1244 <span class="sympad">wait</span>(long arg0, int arg1)</nobr>
1245
1246 </td></tr>
1247
1248
1249
1250 <tr class="alt-color api apilevel-" >
1251 <td class="jd-typecol"><nobr>
1252
1253
1254 final
1255
1256
1257 void</nobr>
1258 </td>
1259 <td class="jd-linkcol" width="100%"><nobr>
1260 <span class="sympad">wait</span>(long arg0)</nobr>
1261
1262 </td></tr>
1263
1264
1265</table>
1266 </div>
1267</div>
1268</td></tr>
1269
1270
1271
1272<tr class="api apilevel-" >
1273<td colspan="12">
1274 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.support.test.espresso.IdlingResource" class="jd-expando-trigger closed"
1275 ><img id="inherited-methods-android.support.test.espresso.IdlingResource-trigger"
1276 src="../../../../../../assets/images/triangle-closed.png"
1277 class="jd-expando-trigger-img" /></a>
1278From interface
1279
1280 <a href="../../../../../../reference/android/support/test/espresso/IdlingResource.html">android.support.test.espresso.IdlingResource</a>
1281
1282<div id="inherited-methods-android.support.test.espresso.IdlingResource">
1283 <div id="inherited-methods-android.support.test.espresso.IdlingResource-list"
1284 class="jd-inheritedlinks">
1285 </div>
1286 <div id="inherited-methods-android.support.test.espresso.IdlingResource-summary" style="display: none;">
1287 <table class="jd-sumtable-expando">
1288
1289
1290
1291
1292 <tr class="alt-color api apilevel-" >
1293 <td class="jd-typecol"><nobr>
1294 abstract
1295
1296
1297
1298
1299 String</nobr>
1300 </td>
1301 <td class="jd-linkcol" width="100%"><nobr>
1302 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/IdlingResource.html#getName()">getName</a></span>()</nobr>
1303
1304 <div class="jd-descrdiv">
1305 Returns the name of the resources (used for logging and idempotency of registration).
1306
1307
1308
1309 </div>
1310
1311 </td></tr>
1312
1313
1314
1315 <tr class=" api apilevel-" >
1316 <td class="jd-typecol"><nobr>
1317 abstract
1318
1319
1320
1321
1322 boolean</nobr>
1323 </td>
1324 <td class="jd-linkcol" width="100%"><nobr>
1325 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/IdlingResource.html#isIdleNow()">isIdleNow</a></span>()</nobr>
1326
1327 <div class="jd-descrdiv">
1328 Returns <code>true</code> if resource is currently idle.
1329
1330
1331
1332 </div>
1333
1334 </td></tr>
1335
1336
1337
1338 <tr class="alt-color api apilevel-" >
1339 <td class="jd-typecol"><nobr>
1340 abstract
1341
1342
1343
1344
1345 void</nobr>
1346 </td>
1347 <td class="jd-linkcol" width="100%"><nobr>
1348 <span class="sympad"><a href="../../../../../../reference/android/support/test/espresso/IdlingResource.html#registerIdleTransitionCallback(android.support.test.espresso.IdlingResource.ResourceCallback)">registerIdleTransitionCallback</a></span>(<a href="../../../../../../reference/android/support/test/espresso/IdlingResource.ResourceCallback.html">IdlingResource.ResourceCallback</a> callback)</nobr>
1349
1350 <div class="jd-descrdiv">
1351 Registers the given <code><a href="../../../../../../reference/android/support/test/espresso/IdlingResource.ResourceCallback.html">IdlingResource.ResourceCallback</a></code> with the resource.
1352
1353
1354
1355 </div>
1356
1357 </td></tr>
1358
1359
1360</table>
1361 </div>
1362</div>
1363</td></tr>
1364
1365
1366</table>
1367
1368
1369</div><!-- jd-descr (summary) -->
1370
1371<!-- Details -->
1372
1373
1374
1375
1376
1377
1378
1379
1380<!-- XML Attributes -->
1381
1382
1383<!-- Enum Values -->
1384
1385
1386<!-- Constants -->
1387
1388
1389<!-- Fields -->
1390
1391
1392<!-- Public ctors -->
1393
1394
1395<!-- ========= CONSTRUCTOR DETAIL ======== -->
1396<h2>Public Constructors</h2>
1397
1398
1399
1400<A NAME="CountingIdlingResource(java.lang.String)"></A>
1401
1402<div class="jd-details api apilevel-">
1403 <h4 class="jd-details-title">
1404 <span class="normal">
1405 public
1406
1407
1408
1409
1410
1411 </span>
1412 <span class="sympad">CountingIdlingResource</span>
1413 <span class="normal">(String resourceName)</span>
1414 </h4>
1415 <div class="api-level">
1416 <div></div>
1417
1418
1419
1420 </div>
1421 <div class="jd-details-descr">
1422
1423
1424
1425
1426 <div class="jd-tagdata jd-tagdescr"><p>Creates a CountingIdlingResource without debug tracing.</p></div>
1427 <div class="jd-tagdata">
1428 <h5 class="jd-tagtitle">Parameters</h5>
1429 <table class="jd-tagtable">
1430 <tr>
1431 <th>resourceName</td>
1432 <td>the resource name this resource should report to Espresso.
1433</td>
1434 </tr>
1435 </table>
1436 </div>
1437
1438 </div>
1439</div>
1440
1441
1442<A NAME="CountingIdlingResource(java.lang.String, boolean)"></A>
1443
1444<div class="jd-details api apilevel-">
1445 <h4 class="jd-details-title">
1446 <span class="normal">
1447 public
1448
1449
1450
1451
1452
1453 </span>
1454 <span class="sympad">CountingIdlingResource</span>
1455 <span class="normal">(String resourceName, boolean debugCounting)</span>
1456 </h4>
1457 <div class="api-level">
1458 <div></div>
1459
1460
1461
1462 </div>
1463 <div class="jd-details-descr">
1464
1465
1466
1467
1468 <div class="jd-tagdata jd-tagdescr"><p>Creates a CountingIdlingResource.</p></div>
1469 <div class="jd-tagdata">
1470 <h5 class="jd-tagtitle">Parameters</h5>
1471 <table class="jd-tagtable">
1472 <tr>
1473 <th>resourceName</td>
1474 <td>the resource name this resource should report to Espresso.</td>
1475 </tr>
1476 <tr>
1477 <th>debugCounting</td>
1478 <td>if true increment & decrement calls will print trace information to logs.
1479</td>
1480 </tr>
1481 </table>
1482 </div>
1483
1484 </div>
1485</div>
1486
1487
1488
1489
1490
1491<!-- ========= CONSTRUCTOR DETAIL ======== -->
1492<!-- Protected ctors -->
1493
1494
1495
1496<!-- ========= METHOD DETAIL ======== -->
1497<!-- Public methdos -->
1498
1499<h2>Public Methods</h2>
1500
1501
1502
1503<A NAME="decrement()"></A>
1504
1505<div class="jd-details api apilevel-">
1506 <h4 class="jd-details-title">
1507 <span class="normal">
1508 public
1509
1510
1511
1512
1513 void
1514 </span>
1515 <span class="sympad">decrement</span>
1516 <span class="normal">()</span>
1517 </h4>
1518 <div class="api-level">
1519 <div></div>
1520
1521
1522
1523 </div>
1524 <div class="jd-details-descr">
1525
1526
1527
1528
1529 <div class="jd-tagdata jd-tagdescr"><p>Decrements the count of in-flight transactions to the resource being monitored.
1530
1531 If this operation results in the counter falling below 0 - an exception is raised.</p></div>
1532 <div class="jd-tagdata">
1533 <h5 class="jd-tagtitle">Throws</h5>
1534 <table class="jd-tagtable">
1535 <tr>
1536 <th>IllegalStateException</td>
1537 <td>if the counter is below 0.
1538</td>
1539 </tr>
1540 </table>
1541 </div>
1542
1543 </div>
1544</div>
1545
1546
1547<A NAME="dumpStateToLogs()"></A>
1548
1549<div class="jd-details api apilevel-">
1550 <h4 class="jd-details-title">
1551 <span class="normal">
1552 public
1553
1554
1555
1556
1557 void
1558 </span>
1559 <span class="sympad">dumpStateToLogs</span>
1560 <span class="normal">()</span>
1561 </h4>
1562 <div class="api-level">
1563 <div></div>
1564
1565
1566
1567 </div>
1568 <div class="jd-details-descr">
1569
1570
1571
1572
1573 <div class="jd-tagdata jd-tagdescr"><p>Prints the current state of this resource to the logcat at info level.
1574</p></div>
1575
1576 </div>
1577</div>
1578
1579
1580<A NAME="getName()"></A>
1581
1582<div class="jd-details api apilevel-">
1583 <h4 class="jd-details-title">
1584 <span class="normal">
1585 public
1586
1587
1588
1589
1590 String
1591 </span>
1592 <span class="sympad">getName</span>
1593 <span class="normal">()</span>
1594 </h4>
1595 <div class="api-level">
1596 <div></div>
1597
1598
1599
1600 </div>
1601 <div class="jd-details-descr">
1602
1603
1604
1605
1606 <div class="jd-tagdata jd-tagdescr"><p>Returns the name of the resources (used for logging and idempotency of registration).
1607</p></div>
1608
1609 </div>
1610</div>
1611
1612
1613<A NAME="increment()"></A>
1614
1615<div class="jd-details api apilevel-">
1616 <h4 class="jd-details-title">
1617 <span class="normal">
1618 public
1619
1620
1621
1622
1623 void
1624 </span>
1625 <span class="sympad">increment</span>
1626 <span class="normal">()</span>
1627 </h4>
1628 <div class="api-level">
1629 <div></div>
1630
1631
1632
1633 </div>
1634 <div class="jd-details-descr">
1635
1636
1637
1638
1639 <div class="jd-tagdata jd-tagdescr"><p>Increments the count of in-flight transactions to the resource being monitored.
1640
1641 This method can be called from any thread.
1642</p></div>
1643
1644 </div>
1645</div>
1646
1647
1648<A NAME="isIdleNow()"></A>
1649
1650<div class="jd-details api apilevel-">
1651 <h4 class="jd-details-title">
1652 <span class="normal">
1653 public
1654
1655
1656
1657
1658 boolean
1659 </span>
1660 <span class="sympad">isIdleNow</span>
1661 <span class="normal">()</span>
1662 </h4>
1663 <div class="api-level">
1664 <div></div>
1665
1666
1667
1668 </div>
1669 <div class="jd-details-descr">
1670
1671
1672
1673
1674 <div class="jd-tagdata jd-tagdescr"><p>Returns <code>true</code> if resource is currently idle. Espresso will <b>always</b> call this
1675 method from the main thread, therefore it should be non-blocking and return immediately.
1676</p></div>
1677
1678 </div>
1679</div>
1680
1681
1682<A NAME="registerIdleTransitionCallback(android.support.test.espresso.IdlingResource.ResourceCallback)"></A>
1683
1684<div class="jd-details api apilevel-">
1685 <h4 class="jd-details-title">
1686 <span class="normal">
1687 public
1688
1689
1690
1691
1692 void
1693 </span>
1694 <span class="sympad">registerIdleTransitionCallback</span>
1695 <span class="normal">(<a href="../../../../../../reference/android/support/test/espresso/IdlingResource.ResourceCallback.html">IdlingResource.ResourceCallback</a> resourceCallback)</span>
1696 </h4>
1697 <div class="api-level">
1698 <div></div>
1699
1700
1701
1702 </div>
1703 <div class="jd-details-descr">
1704
1705
1706
1707
1708 <div class="jd-tagdata jd-tagdescr"><p>Registers the given <code><a href="../../../../../../reference/android/support/test/espresso/IdlingResource.ResourceCallback.html">IdlingResource.ResourceCallback</a></code> with the resource. Espresso will call this method:
1709 <ul>
1710 <li>with its implementation of <code><a href="../../../../../../reference/android/support/test/espresso/IdlingResource.ResourceCallback.html">IdlingResource.ResourceCallback</a></code> so it can be notified asynchronously
1711 that your resource is idle
1712 <li>from the main thread, but you are free to execute the callback's onTransitionToIdle from
1713 any thread
1714 <li>once (when it is initially given a reference to your IdlingResource)
1715 </ul>
1716 <br>
1717 You only need to call this upon transition from busy to idle - if the resource is already idle
1718 when the method is called invoking the call back is optional and has no significant impact.
1719</p></div>
1720
1721 </div>
1722</div>
1723
1724
1725
1726
1727
1728<!-- ========= METHOD DETAIL ======== -->
1729
1730
1731
1732<!-- ========= END OF CLASS DATA ========= -->
1733<A NAME="navbar_top"></A>
1734
1735<div id="footer" class="wrap" >
1736
1737
1738 <div id="copyright">
1739
1740 Except as noted, this content is licensed under <a
1741 href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>.
1742 For details and restrictions, see the <a href="../../../../../../license.html">
1743 Content License</a>.
1744 </div>
1745 <div id="build_info">
1746
1747 Android &nbsp;r &mdash;
1748<script src="../../../../../../timestamp.js" type="text/javascript"></script>
1749<script>document.write(BUILD_TIMESTAMP)</script>
1750
1751 </div>
1752
1753
1754 <div id="footerlinks">
1755
1756 <p>
1757 <a href="../../../../../../about/index.html">About Android</a>&nbsp;&nbsp;|&nbsp;
1758 <a href="../../../../../../legal.html">Legal</a>&nbsp;&nbsp;|&nbsp;
1759 <a href="../../../../../../support.html">Support</a>
1760 </p>
1761 </div>
1762
1763</div> <!-- end footer -->
1764</div> <!-- jd-content -->
1765
1766</div><!-- end doc-content -->
1767
1768</div> <!-- end body-content -->
1769
1770
1771
1772
1773
1774
1775</body>
1776</html>