2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
DeviceBaselineSetter
public
abstract
class
DeviceBaselineSetter
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.suite.checker.baseline.DeviceBaselineSetter
|
デバイスのベースライン設定の作成に使用される抽象クラス。
概要
パブリック コンストラクタ
DeviceBaselineSetter
public DeviceBaselineSetter (JSONObject object,
String name)
パラメータ |
object |
JSONObject |
name |
String |
パブリック メソッド
getMinimalApiLevel
public int getMinimalApiLevel ()
セッターがサポートする最小 API レベルを取得します。
getName
public String getName ()
セッターの一意の名前を取得します。
isExperimental
public boolean isExperimental ()
ベースライン設定が試験運用段階にあるかどうか。これは、新しい設定のロールアウトに使用されます。試験運用版の設定のみを、オプション enable-experimental-device-baseline-setters で有効にできます。試験運用版以外の他の設定は、enable-device-baseline-settings オプションが false に設定されていない限り、強制的に適用されます。
setBaseline
public abstract boolean setBaseline (ITestDevice mDevice)
デバイスのベースライン設定を設定します。
パラメータ |
mDevice |
ITestDevice |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 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-27 UTC。"],[],[],null,["# DeviceBaselineSetter\n====================\n\n\n`\npublic\n\n\nabstract\nclass\nDeviceBaselineSetter\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.suite.checker.baseline.DeviceBaselineSetter |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known direct subclasses [CommandBaselineSetter](../../../../../../../../reference/tradefed/com/android/tradefed/suite/checker/baseline/CommandBaselineSetter.html), [LockSettingsBaselineSetter](../../../../../../../../reference/tradefed/com/android/tradefed/suite/checker/baseline/LockSettingsBaselineSetter.html), [SettingsBaselineSetter](../../../../../../../../reference/tradefed/com/android/tradefed/suite/checker/baseline/SettingsBaselineSetter.html) |------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------| | [CommandBaselineSetter](../../../../../../../../reference/tradefed/com/android/tradefed/suite/checker/baseline/CommandBaselineSetter.html) | A common setter to handle device baseline settings via adb shell commands. | | [LockSettingsBaselineSetter](../../../../../../../../reference/tradefed/com/android/tradefed/suite/checker/baseline/LockSettingsBaselineSetter.html) | A setter to remove screen lock settings. | | [SettingsBaselineSetter](../../../../../../../../reference/tradefed/com/android/tradefed/suite/checker/baseline/SettingsBaselineSetter.html) | A common setter to handle device baseline settings via ITestDevice.setSetting. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAbstract class used to create a device baseline setting.\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[DeviceBaselineSetter](../../../../../../../../reference/tradefed/com/android/tradefed/suite/checker/baseline/DeviceBaselineSetter.html#DeviceBaselineSetter(org.json.JSONObject,%20java.lang.String))`(JSONObject object, String name) ` |\n\n| ### Public methods ||\n|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` int` | ` `[getMinimalApiLevel](../../../../../../../../reference/tradefed/com/android/tradefed/suite/checker/baseline/DeviceBaselineSetter.html#getMinimalApiLevel())`() ` Gets the minimal API level supported by the setter. |\n| ` String` | ` `[getName](../../../../../../../../reference/tradefed/com/android/tradefed/suite/checker/baseline/DeviceBaselineSetter.html#getName())`() ` Gets the unique name of the setter. |\n| ` boolean` | ` `[isExperimental](../../../../../../../../reference/tradefed/com/android/tradefed/suite/checker/baseline/DeviceBaselineSetter.html#isExperimental())`() ` Whether the baseline setting is under experiment stage. |\n| ` abstract boolean` | ` `[setBaseline](../../../../../../../../reference/tradefed/com/android/tradefed/suite/checker/baseline/DeviceBaselineSetter.html#setBaseline(com.android.tradefed.device.ITestDevice))`(`[ITestDevice](../../../../../../../../reference/tradefed/com/android/tradefed/device/ITestDevice.html)` mDevice) ` Sets the baseline setting for the device. |\n\nPublic constructors\n-------------------\n\n### DeviceBaselineSetter\n\n```\npublic DeviceBaselineSetter (JSONObject object, \n String name)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|---------------------|\n| `object` | `JSONObject` \u003cbr /\u003e |\n| `name` | `String` \u003cbr /\u003e |\n\n| Throws ||\n|-----------------|---|\n| `JSONException` | |\n\nPublic methods\n--------------\n\n### getMinimalApiLevel\n\n```\npublic int getMinimalApiLevel ()\n```\n\nGets the minimal API level supported by the setter.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getName\n\n```\npublic String getName ()\n```\n\nGets the unique name of the setter.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### isExperimental\n\n```\npublic boolean isExperimental ()\n```\n\nWhether the baseline setting is under experiment stage. It is used for the rollout of a new\nsetting. Only the settings under experiment can be optionally enabled via the option\nenable-experimental-device-baseline-setters. Other non experimental settings are force\napplied unless the option enable-device-baseline-settings is set to false.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### setBaseline\n\n```\npublic abstract boolean setBaseline (ITestDevice mDevice)\n```\n\nSets the baseline setting for the device.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|----------------------|\n| `mDevice` | `ITestDevice` \u003cbr /\u003e |\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n| Throws ||\n|----------------------------------------------------------------------------------------------------------------------------------------|---|\n| [DeviceNotAvailableException](../../../../../../../../reference/tradefed/com/android/tradefed/device/DeviceNotAvailableException.html) | |"]]