ClientData.HeapData
public
static
class
ClientData.HeapData
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.device.server.ClientData.HeapData |
Heap Information.
The heap is composed of several HeapSegment objects.
A call to isHeapDataComplete() will indicate if the segments (available through
getHeapSegments()) represent the full heap.
Summary
Public constructors | |
|---|---|
HeapData()
|
|
Public methods | |
|---|---|
void
|
addHeapData(ByteBuffer data)
Add raw HPSG chunk data to the list of heap segments. |
void
|
clearHeapData()
Abandon the current list of heap segments. |
|
getHeapSegments()
Get the collected heap data, if sealed. |
byte[]
|
getProcessedHeapData()
Get the processed heap data, if present. |
|
getProcessedHeapMap()
|
boolean
|
isHeapDataComplete()
Returns whether the heap data has been sealed. |
void
|
sealHeapData()
Called when all heap data has arrived. |
void
|
setProcessedHeapData(byte[] heapData)
Sets the processed heap data. |
void
|
setProcessedHeapMap(
|
Public constructors
HeapData
public HeapData ()
Public methods
addHeapData
public void addHeapData (ByteBuffer data)
Add raw HPSG chunk data to the list of heap segments.
| Parameters | |
|---|---|
data |
ByteBuffer: The raw data from an HPSG chunk. |
clearHeapData
public void clearHeapData ()
Abandon the current list of heap segments.
getHeapSegments
publicgetHeapSegments ()
Get the collected heap data, if sealed.
| Returns | |
|---|---|
|
The list of heap segments if the heap data has been sealed, or null if it hasn't. |
getProcessedHeapData
public byte[] getProcessedHeapData ()
Get the processed heap data, if present.
| Returns | |
|---|---|
byte[] |
the processed heap data, or null. |
getProcessedHeapMap
publicgetProcessedHeapMap ()
| Returns | |
|---|---|
|
|
isHeapDataComplete
public boolean isHeapDataComplete ()
Returns whether the heap data has been sealed.
| Returns | |
|---|---|
boolean |
|
sealHeapData
public void sealHeapData ()
Called when all heap data has arrived.
setProcessedHeapData
public void setProcessedHeapData (byte[] heapData)
Sets the processed heap data.
| Parameters | |
|---|---|
heapData |
byte: The new heap data (can be null) |
setProcessedHeapMap
public void setProcessedHeapMap (heapMap)
| Parameters | |
|---|---|
heapMap |
|