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.
BaseEmulatorPreparer
public
abstract
class
BaseEmulatorPreparer
extends BaseTargetPreparer
Subclases directas conocidas
LocalEmulatorLaunch |
Un TargetPreparer que inicia un emulador de forma local desde un entorno de compilación de Android.
|
LocalEmulatorSnapshot |
Un TargetPreparer diseñado para generar una instantánea del emulador limpia desde un entorno de compilación o desarrollo de Android
|
|
Preparador común para iniciar un emulador local.
Controla la entrada y el procesamiento de argumentos comunes.
Resumen
Constructores públicos
BaseEmulatorPreparer
public BaseEmulatorPreparer ()
Métodos protegidos
buildEmulatorLaunchArgs
protected buildEmulatorLaunchArgs ()
buildRunUtilForEmulatorLaunch
protected RunUtil buildRunUtilForEmulatorLaunch ()
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,["# BaseEmulatorPreparer\n====================\n\n\n`\npublic\n\n\nabstract\nclass\nBaseEmulatorPreparer\n`\n\n\n`\n\n\n`\n\n`\n\nextends `[BaseTargetPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BaseTargetPreparer.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|---|------------------------------------------------------|\n| java.lang.Object |||\n| ↳ | [com.android.tradefed.targetprep.BaseTargetPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BaseTargetPreparer.html) ||\n| | ↳ | com.android.tradefed.targetprep.BaseEmulatorPreparer |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known direct subclasses [LocalEmulatorLaunch](../../../../../../reference/tradefed/com/android/tradefed/targetprep/LocalEmulatorLaunch.html), [LocalEmulatorSnapshot](../../../../../../reference/tradefed/com/android/tradefed/targetprep/LocalEmulatorSnapshot.html) |--------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------| | [LocalEmulatorLaunch](../../../../../../reference/tradefed/com/android/tradefed/targetprep/LocalEmulatorLaunch.html) | A TargetPreparer that launches an emulator locally from an android build environment. | | [LocalEmulatorSnapshot](../../../../../../reference/tradefed/com/android/tradefed/targetprep/LocalEmulatorSnapshot.html) | A TargetPreparer intended for generating a clean emulator snapshot from a android build/development environment | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCommon preparer for launching a local emulator.\n\nHandles input and processing of common arguments.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[BaseEmulatorPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BaseEmulatorPreparer.html#BaseEmulatorPreparer())`() ` |\n\n| ### Protected methods ||\n|-------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` ` | ` `[buildEmulatorLaunchArgs](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BaseEmulatorPreparer.html#buildEmulatorLaunchArgs())`() ` |\n| ` `[RunUtil](../../../../../../reference/tradefed/com/android/tradefed/util/RunUtil.html) | ` `[buildRunUtilForEmulatorLaunch](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BaseEmulatorPreparer.html#buildRunUtilForEmulatorLaunch())`() ` |\n\nPublic constructors\n-------------------\n\n### BaseEmulatorPreparer\n\n```\npublic BaseEmulatorPreparer ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nProtected methods\n-----------------\n\n### buildEmulatorLaunchArgs\n\n```\nprotected buildEmulatorLaunchArgs ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n### buildRunUtilForEmulatorLaunch\n\n```\nprotected RunUtil buildRunUtilForEmulatorLaunch ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------------------------------------------------------------------------------------|--------|\n| [RunUtil](../../../../../../reference/tradefed/com/android/tradefed/util/RunUtil.html) | \u003cbr /\u003e |"]]