A partir del 27 de marzo de 2025, te recomendamos que uses android-latest-release
en lugar de aosp-main
para compilar y contribuir a AOSP. Para obtener más información, consulta Cambios en AOSP.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
NullDevice
public
class
NullDevice
extends StubDevice
Un marcador de posición IDevice
que usa DeviceManager
para asignar cuando IDeviceSelection.nullDeviceRequested()
es true
Resumen
Campos |
public
static
final
String |
TEMP_NULL_DEVICE_PREFIX
Patrón de nombres para dispositivos nulos creados automáticamente
|
Métodos públicos |
final
boolean
|
isTemporary()
Devuelve el valor true si el dispositivo se creó temporalmente para la invocación y se debe borrar después.
|
Campos
TEMP_NULL_DEVICE_PREFIX
public static final String TEMP_NULL_DEVICE_PREFIX
Patrón de nombres para dispositivos nulos creados automáticamente
Constructores públicos
NullDevice
public NullDevice (String serial)
NullDevice
public NullDevice (String serial,
boolean isTemporary)
Parámetros |
serial |
String |
isTemporary |
boolean |
Métodos públicos
isTemporary
public final boolean isTemporary ()
Devuelve el valor true si el dispositivo se creó temporalmente para la invocación y se debe borrar después.
El contenido y las muestras de código que aparecen en esta página están sujetas a las licencias que se describen en la Licencia de Contenido. Java y OpenJDK son marcas registradas de Oracle o sus afiliados.
Última actualización: 2025-07-27 (UTC)
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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 |"]]