2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
NullDevice
public
class
NullDevice
extends StubDevice
IDeviceSelection.nullDeviceRequested()
이 true
일 때 DeviceManager
에서 할당하는 데 사용하는 자리표시자 IDevice
입니다.
요약
공개 메서드 |
final
boolean
|
isTemporary()
호출을 위해 기기가 일시적으로 생성되었으며 나중에 삭제해야 하는 경우 true를 반환합니다.
|
필드
TEMP_NULL_DEVICE_PREFIX
public static final String TEMP_NULL_DEVICE_PREFIX
자동으로 생성된 null 기기의 이름 지정 패턴
공개 생성자
NullDevice
public NullDevice (String serial)
NullDevice
public NullDevice (String serial,
boolean isTemporary)
매개변수 |
serial |
String |
isTemporary |
boolean |
공개 메서드
isTemporary
public final boolean isTemporary ()
호출을 위해 기기가 일시적으로 생성되었으며 나중에 삭제해야 하는 경우 true를 반환합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# NullDevice\n==========\n\n\n`\npublic\n\n\nclass\nNullDevice\n`\n\n\n`\n\n\n`\n\n`\n\nextends `[StubDevice](../../../../../../reference/tradefed/com/android/tradefed/device/StubDevice.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|---|----------------------------------------|\n| java.lang.Object |||\n| ↳ | [com.android.tradefed.device.StubDevice](../../../../../../reference/tradefed/com/android/tradefed/device/StubDevice.html) ||\n| | ↳ | com.android.tradefed.device.NullDevice |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA placeholder [IDevice](../../../../../../reference/tradefed/com/android/ddmlib/IDevice.html) used by [DeviceManager](../../../../../../reference/tradefed/com/android/tradefed/device/DeviceManager.html) to allocate when\n[IDeviceSelection.nullDeviceRequested()](../../../../../../reference/tradefed/com/android/tradefed/device/IDeviceSelection.html#nullDeviceRequested()) is `true`\n\nSummary\n-------\n\n| ### Fields ||\n|-------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` public static final String` | [TEMP_NULL_DEVICE_PREFIX](../../../../../../reference/tradefed/com/android/tradefed/device/NullDevice.html#TEMP_NULL_DEVICE_PREFIX) Naming pattern for auto-created null devices |\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[NullDevice](../../../../../../reference/tradefed/com/android/tradefed/device/NullDevice.html#NullDevice(java.lang.String))`(String serial) ` |\n| ` `[NullDevice](../../../../../../reference/tradefed/com/android/tradefed/device/NullDevice.html#NullDevice(java.lang.String,%20boolean))`(String serial, boolean isTemporary) ` |\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` final boolean` | ` `[isTemporary](../../../../../../reference/tradefed/com/android/tradefed/device/NullDevice.html#isTemporary())`() ` Returns true if the device was created temporarily for the invocation and should be deleted afterward. |\n\nFields\n------\n\n### TEMP_NULL_DEVICE_PREFIX\n\n```\npublic static final String TEMP_NULL_DEVICE_PREFIX\n```\n\nNaming pattern for auto-created null devices\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### NullDevice\n\n```\npublic NullDevice (String serial)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|-----------------|\n| `serial` | `String` \u003cbr /\u003e |\n\n### NullDevice\n\n```\npublic NullDevice (String serial, \n boolean isTemporary)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|------------------|\n| `serial` | `String` \u003cbr /\u003e |\n| `isTemporary` | `boolean` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### isTemporary\n\n```\npublic final boolean isTemporary ()\n```\n\nReturns true if the device was created temporarily for the invocation and should be deleted\nafterward.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |"]]