AllocationInfo

public class AllocationInfo
extends Object implements IStackTraceInfo

java.lang.Object
   ↳ com.android.tradefed.device.server.AllocationInfo


מכיל פרטי הקצאה.

סיכום

כיתות במבנה היררכי

class AllocationInfo.AllocationSorter

 

‫methods ציבוריים

boolean allocatedClassMatches(String pattern, Locale locale)
int compareTo(AllocationInfo otherAlloc)
boolean filter(String filter, boolean fullTrace, Locale locale)

הפונקציה מחזירה true אם המסנן שצוין תואם לפרטי ההקצאה האלה, ללא הבחנה בין אותיות רישיות לאותיות קטנות (בהתאם ללוקאל שצוין).

int getAllocNumber()

הפונקציה מחזירה את מספר ההקצאה.

String getAllocatedClass()

הפונקציה מחזירה את השם של הכיתה שהוקצתה.

String getAllocationSite()
String getFirstTraceClassName()
String getFirstTraceMethodName()
getMatchingStackFrames(String filter, boolean fullTrace, Locale locale)
int getSize()

הפונקציה מחזירה את גודל ההקצאה.

StackTraceElement[] getStackTrace()

מחזירה את דוח הקריסות.

short getThreadId()

הפונקציה מחזירה את המזהה של השרשור שביצע את ההקצאה.

‫methods ציבוריים

allocatedClassMatches

public boolean allocatedClassMatches (String pattern, 
                Locale locale)

פרמטרים
pattern String

locale Locale

החזרות
boolean

compareTo

public int compareTo (AllocationInfo otherAlloc)

פרמטרים
otherAlloc AllocationInfo

החזרות
int

סינון

public boolean filter (String filter, 
                boolean fullTrace, 
                Locale locale)

הפונקציה מחזירה true אם המסנן שצוין תואם לפרטי ההקצאה האלה (בהתאם ללוקאל שצוין), ללא הבחנה בין אותיות רישיות לאותיות קטנות.

פרמטרים
filter String

fullTrace boolean

locale Locale

החזרות
boolean

getAllocNumber

public int getAllocNumber ()

הפונקציה מחזירה את מספר ההקצאה. ההקצאות ממוספרות לפי הסדר שבו הן מתרחשות, וההקצאה האחרונה מקבלת את המספר הכי גבוה.

החזרות
int

getAllocatedClass

public String getAllocatedClass ()

הפונקציה מחזירה את השם של הכיתה שהוקצתה.

החזרות
String

getAllocationSite

public String getAllocationSite ()

החזרות
String

getFirstTraceClassName

public String getFirstTraceClassName ()

החזרות
String

getFirstTraceMethodName

public String getFirstTraceMethodName ()

החזרות
String

getMatchingStackFrames

public  getMatchingStackFrames (String filter, 
                boolean fullTrace, 
                Locale locale)

פרמטרים
filter String

fullTrace boolean

locale Locale

החזרות

getSize

public int getSize ()

הפונקציה מחזירה את גודל ההקצאה.

החזרות
int

getStackTrace

public StackTraceElement[] getStackTrace ()

מחזירה את דוח הקריסות. הערך יכול להיות null.

החזרות
StackTraceElement[]

getThreadId

public short getThreadId ()

מחזירה את המזהה של השרשור שביצע את ההקצאה.

החזרות
short