Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release
вместо aosp-main
для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Базовый эмуляторPreparer
public abstract class BaseEmulatorPreparer
extends BaseTargetPreparer
Известные прямые подклассы |
Общий подготовительный модуль для запуска локального эмулятора.
Управляет вводом и обработкой общих аргументов.
Краткое содержание
Общественные конструкторы
Базовый эмуляторPreparer
public BaseEmulatorPreparer ()
Защищенные методы
buildEmulatorLaunchArgs
protected buildEmulatorLaunchArgs ()
buildRunUtilForEmulatorLaunch
protected RunUtil buildRunUtilForEmulatorLaunch ()
Контент и образцы кода на этой странице предоставлены по лицензиям. Java и OpenJDK – это зарегистрированные товарные знаки корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-29 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-29 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 |"]]