از 27 مارس 2025، توصیه می کنیم از android-latest-release
به جای aosp-main
برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
DefaultConnection.ConnectionBuilder
public static class DefaultConnection.ConnectionBuilder
extends Object
java.lang.object |
↳ | com.android.tradefed.device.connection.DefaultConnection.ConnectionBuilder |
سازنده برای توصیف اتصال استفاده میکرد.
خلاصه
سازندگان عمومی
ConnectionBuilder
public ConnectionBuilder (IRunUtil runUtil,
ITestDevice device,
IBuildInfo buildInfo,
ITestLogger logger)
پارامترها |
---|
runUtil | IRunUtil |
device | ITestDevice |
buildInfo | IBuildInfo |
logger | ITestLogger |
روش های عمومی
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# DefaultConnection.ConnectionBuilder\n===================================\n\n\n`\npublic\nstatic\n\n\nclass\nDefaultConnection.ConnectionBuilder\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.device.connection.DefaultConnection.ConnectionBuilder |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nBuilder used to described the connection.\n\nSummary\n-------\n\n| ### Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[ConnectionBuilder](../../../../../../../reference/tradefed/com/android/tradefed/device/connection/DefaultConnection.ConnectionBuilder.html#ConnectionBuilder(com.android.tradefed.util.IRunUtil,%20com.android.tradefed.device.ITestDevice,%20com.android.tradefed.build.IBuildInfo,%20com.android.tradefed.log.ITestLogger))`(`[IRunUtil](../../../../../../../reference/tradefed/com/android/tradefed/util/IRunUtil.html)` runUtil, `[ITestDevice](../../../../../../../reference/tradefed/com/android/tradefed/device/ITestDevice.html)` device, `[IBuildInfo](../../../../../../../reference/tradefed/com/android/tradefed/build/IBuildInfo.html)` buildInfo, `[ITestLogger](../../../../../../../reference/tradefed/com/android/tradefed/log/ITestLogger.html)` logger) ` |\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` `[DefaultConnection.ConnectionBuilder](../../../../../../../reference/tradefed/com/android/tradefed/device/connection/DefaultConnection.ConnectionBuilder.html) | ` `[addAttributes](../../../../../../../reference/tradefed/com/android/tradefed/device/connection/DefaultConnection.ConnectionBuilder.html#addAttributes(com.android.tradefed.util.MultiMap\u003cjava.lang.String,java.lang.String\u003e))`(`[MultiMap](../../../../../../../reference/tradefed/com/android/tradefed/util/MultiMap.html)`\u003cString, String\u003e attributes) ` |\n| ` `[DefaultConnection.ConnectionBuilder](../../../../../../../reference/tradefed/com/android/tradefed/device/connection/DefaultConnection.ConnectionBuilder.html) | ` `[markPreexisting](../../../../../../../reference/tradefed/com/android/tradefed/device/connection/DefaultConnection.ConnectionBuilder.html#markPreexisting())`() ` |\n| ` `[DefaultConnection.ConnectionBuilder](../../../../../../../reference/tradefed/com/android/tradefed/device/connection/DefaultConnection.ConnectionBuilder.html) | ` `[setExistingAvdInfo](../../../../../../../reference/tradefed/com/android/tradefed/device/connection/DefaultConnection.ConnectionBuilder.html#setExistingAvdInfo(com.android.tradefed.device.cloud.GceAvdInfo))`(`[GceAvdInfo](../../../../../../../reference/tradefed/com/android/tradefed/device/cloud/GceAvdInfo.html)` info) ` |\n\nPublic constructors\n-------------------\n\n### ConnectionBuilder\n\n```\npublic ConnectionBuilder (IRunUtil runUtil, \n ITestDevice device, \n IBuildInfo buildInfo, \n ITestLogger logger)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|----------------------|\n| `runUtil` | `IRunUtil` \u003cbr /\u003e |\n| `device` | `ITestDevice` \u003cbr /\u003e |\n| `buildInfo` | `IBuildInfo` \u003cbr /\u003e |\n| `logger` | `ITestLogger` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### addAttributes\n\n```\npublic DefaultConnection.ConnectionBuilder addAttributes (MultiMap\u003cString, String\u003e attributes)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|-------------------|\n| `attributes` | `MultiMap` \u003cbr /\u003e |\n\n| Returns ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [DefaultConnection.ConnectionBuilder](../../../../../../../reference/tradefed/com/android/tradefed/device/connection/DefaultConnection.ConnectionBuilder.html) | \u003cbr /\u003e |\n\n### markPreexisting\n\n```\npublic DefaultConnection.ConnectionBuilder markPreexisting ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [DefaultConnection.ConnectionBuilder](../../../../../../../reference/tradefed/com/android/tradefed/device/connection/DefaultConnection.ConnectionBuilder.html) | \u003cbr /\u003e |\n\n### setExistingAvdInfo\n\n```\npublic DefaultConnection.ConnectionBuilder setExistingAvdInfo (GceAvdInfo info)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|---------------------|\n| `info` | `GceAvdInfo` \u003cbr /\u003e |\n\n| Returns ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [DefaultConnection.ConnectionBuilder](../../../../../../../reference/tradefed/com/android/tradefed/device/connection/DefaultConnection.ConnectionBuilder.html) | \u003cbr /\u003e |"]]