AllocationInfo

public class AllocationInfo
extends Object implements IStackTraceInfo

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


割り当て情報を保持します。

概要

ネストされたクラス

class AllocationInfo.AllocationSorter

 

パブリック メソッド

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()

割り当てを実行したスレッドの ID を返します。

パブリック メソッド

allocatedClassMatches

public boolean allocatedClassMatches (String pattern, 
                Locale locale)

パラメータ
pattern String

locale Locale

戻り値
boolean

compareTo

public int compareTo (AllocationInfo otherAlloc)

パラメータ
otherAlloc AllocationInfo

戻り値
int

filter

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 ()

割り当てを実行したスレッドの ID を返します。

戻り値
short