ตั้งแต่ปี 2026 เป็นต้นไป เราจะเผยแพร่ซอร์สโค้ดไปยัง AOSP ในไตรมาสที่ 2 และ 4 เพื่อให้สอดคล้องกับโมเดลการพัฒนาที่เสถียรของ Trunk และรับประกันความเสถียรของแพลตฟอร์มสำหรับระบบนิเวศ เราขอแนะนำให้ใช้ android-latest-release แทน aosp-main ในการสร้างและมีส่วนร่วมใน AOSP android-latest-release สาขาไฟล์ Manifest จะอ้างอิงถึงรุ่นล่าสุดที่พุชไปยัง AOSP เสมอ ดูข้อมูลเพิ่มเติมได้ที่การเปลี่ยนแปลงใน AOSP
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
AllocationInfo
public
class
AllocationInfo
extends Object
implements
IStackTraceInfo
| java.lang.Object
|
| ↳ |
com.android.tradefed.device.server.AllocationInfo
|
มีข้อมูลการจัดสรร
สรุป
เมธอดสาธารณะ
allocatedClassMatches
public boolean allocatedClassMatches (String pattern,
Locale locale)
| พารามิเตอร์ |
pattern |
String |
locale |
Locale |
compareTo
public int compareTo (AllocationInfo otherAlloc)
| พารามิเตอร์ |
otherAlloc |
AllocationInfo |
ตัวกรอง
public boolean filter (String filter,
boolean fullTrace,
Locale locale)
แสดงผลเป็นจริงหากตัวกรองที่ระบุตรงกันโดยไม่คำนึงถึงตัวพิมพ์เล็กและตัวพิมพ์ใหญ่ (ตามภาษาที่ระบุ)
ข้อมูลการจัดสรรนี้
| พารามิเตอร์ |
filter |
String |
fullTrace |
boolean |
locale |
Locale |
getAllocNumber
public int getAllocNumber ()
แสดงผลหมายเลขการจัดสรร การจัดสรรจะมีหมายเลขตามลำดับ โดยการจัดสรรล่าสุดจะมีหมายเลขสูงสุด
getAllocatedClass
public String getAllocatedClass ()
แสดงผลชื่อของคลาสที่จัดสรร
getAllocationSite
public String getAllocationSite ()
getFirstTraceClassName
public String getFirstTraceClassName ()
getFirstTraceMethodName
public String getFirstTraceMethodName ()
getMatchingStackFrames
public getMatchingStackFrames (String filter,
boolean fullTrace,
Locale locale)
| พารามิเตอร์ |
filter |
String |
fullTrace |
boolean |
locale |
Locale |
getSize
public int getSize ()
แสดงผลขนาดของการจัดสรร
getStackTrace
public StackTraceElement[] getStackTrace ()
แสดงผลสแต็กเทรซ ซึ่งอาจเป็นnull
| คิกรีเทิร์น |
StackTraceElement[] |
|
getThreadId
public short getThreadId ()
แสดงผลรหัสของเธรดที่ทำการจัดสรร
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-12-04 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-12-04 UTC"],[],[]]