Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release
, bukan aosp-main
, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
BaseEmulatorPreparer
public
abstract
class
BaseEmulatorPreparer
extends BaseTargetPreparer
Subclass langsung yang dikenal
LocalEmulatorLaunch |
TargetPreparer yang meluncurkan emulator secara lokal dari lingkungan build Android.
|
LocalEmulatorSnapshot |
TargetPreparer yang ditujukan untuk membuat snapshot emulator bersih dari lingkungan
build/pengembangan Android
|
|
Persiapan umum untuk meluncurkan emulator lokal.
Menangani input dan pemrosesan argumen umum.
Ringkasan
Konstruktor publik
BaseEmulatorPreparer
public BaseEmulatorPreparer ()
Metode yang dilindungi
buildEmulatorLaunchArgs
protected buildEmulatorLaunchArgs ()
buildRunUtilForEmulatorLaunch
protected RunUtil buildRunUtilForEmulatorLaunch ()
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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 |"]]