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)

अगर दिया गया फ़िल्टर, केस-इनसेंसिटिव तरीके से (दी गई स्थान-भाषा के हिसाब से) इस बंटवारे की जानकारी से मेल खाता है, तो यह फ़ंक्शन 'सही' दिखाता है.

int getAllocNumber()

यह फ़ंक्शन, असाइनमेंट नंबर दिखाता है.

String getAllocatedClass()

यह फ़ंक्शन, असाइन की गई क्लास का नाम दिखाता है.

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

यह फ़ंक्शन, असाइन की गई मेमोरी का साइज़ दिखाता है.

StackTraceElement[] getStackTrace()

यह स्टैक ट्रेस दिखाता है.

short getThreadId()

यह उस थ्रेड का आईडी दिखाता है जिसने मेमोरी को बांटा है.

पब्लिक मेथड

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)

अगर दिया गया फ़िल्टर, केस-इनसेंसिटिव तरीके से (दी गई स्थान-भाषा के हिसाब से) इस असाइनमेंट की जानकारी से मेल खाता है, तो यह फ़ंक्शन 'सही' दिखाता है.

पैरामीटर
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 List<String> getMatchingStackFrames (String filter, 
                boolean fullTrace, 
                Locale locale)

पैरामीटर
filter String

fullTrace boolean

locale Locale

रिटर्न
List<String>

getSize

public int getSize ()

यह फ़ंक्शन, असाइन की गई मेमोरी का साइज़ दिखाता है.

रिटर्न
int

getStackTrace

public StackTraceElement[] getStackTrace ()

यह स्टैक ट्रेस दिखाता है. यह null हो सकता है.

रिटर्न
StackTraceElement[]

getThreadId

public short getThreadId ()

यह उस थ्रेड का आईडी दिखाता है जिसने मेमोरी को बांटा है.

रिटर्न
short