27 Mart 2025'ten itibaren AOSP'yi derlemek ve AOSP'ye katkıda bulunmak için aosp-main
yerine android-latest-release
kullanmanızı öneririz. Daha fazla bilgi için AOSP'de yapılan değişiklikler başlıklı makaleyi inceleyin.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
DeviceBaselineSetter
public
abstract
class
DeviceBaselineSetter
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.suite.checker.baseline.DeviceBaselineSetter
|
Bilinen doğrudan alt sınıflar
|
Cihaz taban çizgisi ayarı oluşturmak için kullanılan soyut sınıf.
Özet
Herkese açık yöntemler |
int
|
getMinimalApiLevel()
Ayarlayıcı tarafından desteklenen minimum API düzeyini alır.
|
String
|
getName()
Ayarlayıcının benzersiz adını alır.
|
boolean
|
isExperimental()
Temel çizgi ayarının deneme aşamasında olup olmadığı.
|
abstract
boolean
|
setBaseline(ITestDevice mDevice)
Cihaz için temel ayarını belirler.
|
Herkese açık kurucular
DeviceBaselineSetter
public DeviceBaselineSetter (JSONObject object,
String name)
Parametreler |
object |
JSONObject |
name |
String |
Herkese açık yöntemler
getMinimalApiLevel
public int getMinimalApiLevel ()
Ayarlayıcı tarafından desteklenen minimum API düzeyini alır.
getName
public String getName ()
Ayarlayıcının benzersiz adını alır.
isExperimental
public boolean isExperimental ()
Temel çizgi ayarının deneme aşamasında olup olmadığı. Yeni bir ayarın kullanıma sunulması için kullanılır. Yalnızca deneme kapsamındaki ayarlar, enable-experimental-device-baseline-setters seçeneği aracılığıyla isteğe bağlı olarak etkinleştirilebilir. enable-device-baseline-settings seçeneği false olarak ayarlanmazsa deneysel olmayan diğer ayarlar zorunlu olarak uygulanır.
setBaseline
public abstract boolean setBaseline (ITestDevice mDevice)
Cihaz için temel ayarını belirler.
Parametreler |
mDevice |
ITestDevice |
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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) | |"]]