از 27 مارس 2025، توصیه می کنیم از android-latest-release
به جای aosp-main
برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
DeviceReset Feature
public class DeviceResetFeature
extends Object
implements IConfigurationReceiver , IRemoteFeature , ITestInformationReceiver
java.lang.object |
↳ | com.android.tradefed.device.internal.DeviceResetFeature |
اجرای بازنشانی دستگاه در سمت سرور.
خلاصه
فیلدها
DEVICE_NAME
public static final String DEVICE_NAME
DEVICE_RESET_FEATURE_NAME
public static final String DEVICE_RESET_FEATURE_NAME
سازندگان عمومی
DeviceReset Feature
public DeviceResetFeature ()
روش های عمومی
اجرا کنند
public FeatureResponse execute (FeatureRequest request)
یک FeatureResponse
بر اساس درخواست برمیگرداند.
پارامترها |
---|
request | FeatureRequest |
برمی گرداند |
---|
FeatureResponse | |
پیکربندی set
public void setConfiguration (IConfiguration configuration)
IConfiguration
در حال استفاده را تزریق می کند.
پارامترها |
---|
configuration | IConfiguration |
public void setTestInformation (TestInformation testInformation)
پارامترها |
---|
testInformation | TestInformation |
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و 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,["# DeviceResetFeature\n==================\n\n\n`\npublic\n\n\nclass\nDeviceResetFeature\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\nimplements\n\n`[IConfigurationReceiver](../../../../../../../reference/tradefed/com/android/tradefed/config/IConfigurationReceiver.html)`,\n\n`[IRemoteFeature](../../../../../../../reference/tradefed/com/android/tradefed/service/IRemoteFeature.html)`,\n\n`[ITestInformationReceiver](../../../../../../../reference/tradefed/com/android/tradefed/testtype/ITestInformationReceiver.html)`\n\n\n`\n\n|---|---------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.device.internal.DeviceResetFeature |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nServer side implementation of device reset.\n\nSummary\n-------\n\n| ### Fields ||\n|-------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` public static final String` | [DEVICE_NAME](../../../../../../../reference/tradefed/com/android/tradefed/device/internal/DeviceResetFeature.html#DEVICE_NAME) |\n| ` public static final String` | [DEVICE_RESET_FEATURE_NAME](../../../../../../../reference/tradefed/com/android/tradefed/device/internal/DeviceResetFeature.html#DEVICE_RESET_FEATURE_NAME) |\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[DeviceResetFeature](../../../../../../../reference/tradefed/com/android/tradefed/device/internal/DeviceResetFeature.html#DeviceResetFeature())`() ` |\n\n| ### Public methods ||\n|-----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` FeatureResponse` | ` `[execute](../../../../../../../reference/tradefed/com/android/tradefed/device/internal/DeviceResetFeature.html#execute(com.proto.tradefed.feature.FeatureRequest))`(FeatureRequest request) ` Returns a [FeatureResponse](../../../../../../../reference/tradefed/com/proto/tradefed/feature/FeatureResponse.html) based on the request. |\n| ` String` | ` `[getName](../../../../../../../reference/tradefed/com/android/tradefed/device/internal/DeviceResetFeature.html#getName())`() ` Name of the feature. |\n| ` `[TestInformation](../../../../../../../reference/tradefed/com/android/tradefed/invoker/TestInformation.html) | ` `[getTestInformation](../../../../../../../reference/tradefed/com/android/tradefed/device/internal/DeviceResetFeature.html#getTestInformation())`() ` |\n| ` void` | ` `[setConfiguration](../../../../../../../reference/tradefed/com/android/tradefed/device/internal/DeviceResetFeature.html#setConfiguration(com.android.tradefed.config.IConfiguration))`(`[IConfiguration](../../../../../../../reference/tradefed/com/android/tradefed/config/IConfiguration.html)` configuration) ` Injects the [IConfiguration](../../../../../../../reference/tradefed/com/android/tradefed/config/IConfiguration.html) in use. |\n| ` void` | ` `[setTestInformation](../../../../../../../reference/tradefed/com/android/tradefed/device/internal/DeviceResetFeature.html#setTestInformation(com.android.tradefed.invoker.TestInformation))`(`[TestInformation](../../../../../../../reference/tradefed/com/android/tradefed/invoker/TestInformation.html)` testInformation) ` |\n\nFields\n------\n\n### DEVICE_NAME\n\n```\npublic static final String DEVICE_NAME\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### DEVICE_RESET_FEATURE_NAME\n\n```\npublic static final String DEVICE_RESET_FEATURE_NAME\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### DeviceResetFeature\n\n```\npublic DeviceResetFeature ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### execute\n\n```\npublic FeatureResponse execute (FeatureRequest request)\n```\n\nReturns a [FeatureResponse](../../../../../../../reference/tradefed/com/proto/tradefed/feature/FeatureResponse.html) based on the request.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-------------------------|\n| `request` | `FeatureRequest` \u003cbr /\u003e |\n\n| Returns ||\n|-------------------|--------|\n| `FeatureResponse` | \u003cbr /\u003e |\n\n### getName\n\n```\npublic String getName ()\n```\n\nName of the feature. Must match [FeatureRequest.getName()](../../../../../../../reference/tradefed/com/proto/tradefed/feature/FeatureRequest.html#getName()).\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getTestInformation\n\n```\npublic TestInformation getTestInformation ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------------------------------------------------------------------------------------------------------|--------|\n| [TestInformation](../../../../../../../reference/tradefed/com/android/tradefed/invoker/TestInformation.html) | \u003cbr /\u003e |\n\n### setConfiguration\n\n```\npublic void setConfiguration (IConfiguration configuration)\n```\n\nInjects the [IConfiguration](../../../../../../../reference/tradefed/com/android/tradefed/config/IConfiguration.html) in use.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------------|-------------------------|\n| `configuration` | `IConfiguration` \u003cbr /\u003e |\n\n### setTestInformation\n\n```\npublic void setTestInformation (TestInformation testInformation)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------------|--------------------------|\n| `testInformation` | `TestInformation` \u003cbr /\u003e |"]]