ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ClusterDeviceInfo
public
class
ClusterDeviceInfo
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.cluster.ClusterDeviceInfo
|
คลาสสำหรับรวมข้อมูลอุปกรณ์คลัสเตอร์ที่จะอัปโหลด
สรุป
เมธอดสาธารณะ
getGroupName
public String getGroupName ()
getRunTarget
public String getRunTarget ()
toJSON
public JSONObject toJSON ()
สร้างออบเจ็กต์ JSON สําหรับข้อมูลอุปกรณ์นี้
คิกรีเทิร์น |
JSONObject |
JSONObject ที่เทียบเท่าข้อมูลอุปกรณ์นี้ |
การโยน |
|
org.json.JSONException |
JSONException |
|
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา 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,["# ClusterDeviceInfo\n=================\n\n\n`\npublic\n\n\nclass\nClusterDeviceInfo\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.cluster.ClusterDeviceInfo |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA class to encapsulate cluster device info to be uploaded.\n\nSummary\n-------\n\n| ### Nested classes ||\n|----------|-------------------------------------------------------------------------------------------------------------------------------|\n| ` class` | [ClusterDeviceInfo.Builder](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.Builder.html) |\n\n| ### Public methods ||\n|-----------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` `[DeviceDescriptor](../../../../../../reference/tradefed/com/android/tradefed/command/remote/DeviceDescriptor.html) | ` `[getDeviceDescriptor](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.html#getDeviceDescriptor())`() ` |\n| ` ` | ` `[getExtraInfo](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.html#getExtraInfo())`() ` |\n| ` String` | ` `[getGroupName](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.html#getGroupName())`() ` |\n| ` String` | ` `[getRunTarget](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.html#getRunTarget())`() ` |\n| ` JSONObject` | ` `[toJSON](../../../../../../reference/tradefed/com/android/tradefed/cluster/ClusterDeviceInfo.html#toJSON())`() ` Generates the JSON Object for this device info. |\n\nPublic methods\n--------------\n\n### getDeviceDescriptor\n\n```\npublic DeviceDescriptor getDeviceDescriptor ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------------------------------------------------------------------------------------------------------------|--------|\n| [DeviceDescriptor](../../../../../../reference/tradefed/com/android/tradefed/command/remote/DeviceDescriptor.html) | \u003cbr /\u003e |\n\n### getExtraInfo\n\n```\npublic getExtraInfo ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n### getGroupName\n\n```\npublic String getGroupName ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getRunTarget\n\n```\npublic String getRunTarget ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### toJSON\n\n```\npublic JSONObject toJSON ()\n```\n\nGenerates the JSON Object for this device info.\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------|---------------------------------------------------|\n| `JSONObject` | JSONObject equivalent of this device info. \u003cbr /\u003e |\n\n| Throws ||\n|-----------------|------------------------|\n| | org.json.JSONException |\n| `JSONException` | |"]]