A partir de 27 de março de 2025, recomendamos usar android-latest-release
em vez de aosp-main
para criar e contribuir com o AOSP. Para mais informações, consulte Mudanças no AOSP.
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
BaseEmulatorPreparer
public
abstract
class
BaseEmulatorPreparer
extends BaseTargetPreparer
Subclasses diretas conhecidas
LocalEmulatorLaunch |
Um TargetPreparer que inicia um emulador localmente em um ambiente de build do Android.
|
LocalEmulatorSnapshot |
Um TargetPreparer destinado a gerar um snapshot limpo do emulador em um ambiente de build/desenvolvimento do Android
|
|
Preparador comum para iniciar um emulador local.
Processa a entrada e o processamento de argumentos comuns.
Resumo
Construtores públicos
BaseEmulatorPreparer
public BaseEmulatorPreparer ()
Métodos protegidos
buildEmulatorLaunchArgs
protected buildEmulatorLaunchArgs ()
buildRunUtilForEmulatorLaunch
protected RunUtil buildRunUtilForEmulatorLaunch ()
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-07-27 UTC.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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 |"]]