1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119<!DOCTYPE html> 120<html devsite> 121<head> 122 123 124 <meta name="top_category" value="develop" /> 125 126 <meta name="subcategory" value="reference" /> 127 128 129 <meta name="book_path" value="/reference/android/support/test/_book.yaml" /> 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145<title>RequiresDevice</title> 146 147 148</head> 149 150<body class="gc-documentation develop reference api apilevel-"> 151<div id="doc-api-level" class="" style="display:none"></div> 152 153 154 155 156<div id="naMessage"></div> 157 158<div id="api-info-block"> 159<div class="api-level"> 160 161 162 163 164</div> 165 166 167 168 169 170 171 172 173 174 175 176<div class="sum-details-links"> 177 178Summary: 179 180 181 182 183 184 185 186 187 188 189 190 191 192 <a href="#inhmethods">Inherited Methods</a> 193 194| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 195 196</div><!-- end sum-details-links --> 197</div><!-- end api-info-block --> 198 199<div class="api apilevel-" id="jd-content"> 200 201<!-- ======== START OF CLASS DATA ======== --> 202 203<h1 class="api-title">RequiresDevice</h1> 204<p> 205<code class="api-signature"> 206 public 207 208 209 abstract 210 @interface 211 RequiresDevice 212</code> 213<br> 214 215 216<code class="api-signature"> 217 218 219 implements 220 221 Annotation 222 223 224 225</code> 226 227</p><table class="jd-inheritance-table"> 228 229 230 <tr> 231 232 <td colspan="1" class="jd-inheritance-class-cell">android.support.test.filters.RequiresDevice 233 </td> 234 </tr> 235 236 237</table> 238 239 240 241 242<br><hr> 243 244 245 <p>Indicates that a specific test should not be run on emulator. 246 <p/> 247 It will be executed only if the test is running on the physical android device. 248</p> 249 250 251 252 253 254 255 256<h2 class="api-section">Summary</h2> 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289<!-- ========== METHOD SUMMARY =========== --> 290<table id="inhmethods" class="methods inhtable"> 291<tr><th><h3>Inherited methods</h3></th></tr> 292 293 294<tr class="api apilevel-" > 295<td colspan="2"> 296 297 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.annotation.Annotation" class="jd-expando-trigger closed" 298 ><img height="34" id="inherited-methods-java.lang.annotation.Annotation-trigger" 299 src="/assets/images/styles/disclosure_down.png" 300 class="jd-expando-trigger-img" /></a>From 301interface 302<code> 303 304 java.lang.annotation.Annotation 305 306</code> 307<div id="inherited-methods-java.lang.annotation.Annotation"> 308 <div id="inherited-methods-java.lang.annotation.Annotation-list" 309 class="jd-inheritedlinks"> 310 </div> 311 <div id="inherited-methods-java.lang.annotation.Annotation-summary" style="display: none;"> 312 <table class="jd-sumtable-expando responsive"> 313 314 315 316 317 <tr class="api apilevel-" > 318 319 320 <td><code> 321 abstract 322 323 324 325 326 Class<? extends Annotation></code> 327 </td> 328 329 <td width="100%"> 330 <code> 331 annotationType() 332 </code> 333 334 </td> 335 </tr> 336 337 338 339 <tr class="api apilevel-" > 340 341 342 <td><code> 343 abstract 344 345 346 347 348 boolean</code> 349 </td> 350 351 <td width="100%"> 352 <code> 353 equals(Object arg0) 354 </code> 355 356 </td> 357 </tr> 358 359 360 361 <tr class="api apilevel-" > 362 363 364 <td><code> 365 abstract 366 367 368 369 370 int</code> 371 </td> 372 373 <td width="100%"> 374 <code> 375 hashCode() 376 </code> 377 378 </td> 379 </tr> 380 381 382 383 <tr class="api apilevel-" > 384 385 386 <td><code> 387 abstract 388 389 390 391 392 String</code> 393 </td> 394 395 <td width="100%"> 396 <code> 397 toString() 398 </code> 399 400 </td> 401 </tr> 402 403 404 405 </table> 406 </div> 407</div> 408</td></tr> 409 410 411</table> 412 413 414 415<!-- XML Attributes --> 416 417 418<!-- Enum Values --> 419 420 421<!-- Constants --> 422 423 424<!-- Fields --> 425 426 427<!-- Public ctors --> 428 429 430 431<!-- ========= CONSTRUCTOR DETAIL ======== --> 432<!-- Protected ctors --> 433 434 435 436<!-- ========= METHOD DETAIL ======== --> 437<!-- Public methdos --> 438 439 440 441<!-- ========= METHOD DETAIL ======== --> 442 443 444 445<!-- ========= END OF CLASS DATA ========= --> 446 447</div><!-- end jd-content --> 448 449 450 451<div class="data-reference-resources-wrapper"> 452 453 <ul data-reference-resources> 454 455 <li><h2>Annotations</h2> 456 <ul> 457 <li class="api apilevel-"><a href="/reference/android/support/test/filters/FlakyTest.html">FlakyTest</a></li> 458 <li class="api apilevel-"><a href="/reference/android/support/test/filters/LargeTest.html">LargeTest</a></li> 459 <li class="api apilevel-"><a href="/reference/android/support/test/filters/MediumTest.html">MediumTest</a></li> 460 <li class="selected api apilevel-"><a href="/reference/android/support/test/filters/RequiresDevice.html">RequiresDevice</a></li> 461 <li class="api apilevel-"><a href="/reference/android/support/test/filters/SdkSuppress.html">SdkSuppress</a></li> 462 <li class="api apilevel-"><a href="/reference/android/support/test/filters/SmallTest.html">SmallTest</a></li> 463 <li class="api apilevel-"><a href="/reference/android/support/test/filters/Suppress.html">Suppress</a></li> 464 </ul> 465 </li> 466 467 468 469 470 471 </ul> 472 473</div> 474 475 476 477</body> 478</html> 479