HandleHeap
public
final
class
HandleHeap
extends ChunkHandler
| java.lang.Object | |||
| ↳ | com.android.tradefed.device.server.jdwp.JdwpInterceptor | ||
| ↳ | com.android.tradefed.device.server.jdwp.chunkhandler.ChunkHandler | ||
| ↳ | com.android.tradefed.device.server.jdwp.chunkhandler.HandleHeap | ||
التعامل مع تعديلات حالة الذاكرة المؤقتة
ملخّص
الثوابت | |
|---|---|
int |
HPIF_WHEN_EVERY_GC
|
int |
HPIF_WHEN_NEVER
|
int |
HPIF_WHEN_NEXT_GC
|
int |
HPIF_WHEN_NOW
|
int |
WHAT_MERGE
|
int |
WHAT_OBJ
|
int |
WHEN_DISABLE
|
int |
WHEN_GC
|
الحقول | |
|---|---|
public
static
final
int |
CHUNK_HPDS
|
public
static
final
int |
CHUNK_HPDU
|
public
static
final
int |
CHUNK_HPEN
|
public
static
final
int |
CHUNK_HPGC
|
public
static
final
int |
CHUNK_HPIF
|
public
static
final
int |
CHUNK_HPSG
|
public
static
final
int |
CHUNK_HPST
|
public
static
final
int |
CHUNK_REAE
|
public
static
final
int |
CHUNK_REAL
|
public
static
final
int |
CHUNK_REAQ
|
الطُرق العامة | |
|---|---|
void
|
clientDisconnected(ClientImpl client)
تم إغلاق التطبيق. |
void
|
clientReady(ClientImpl client)
العميل جاهز. |
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
نقطة دخول معالج الأجزاء |
static
void
|
register(MonitorThread mt)
تسجيل الحِزم التي نتوقّع تلقّيها من العميل |
static
void
|
sendHPDS(ClientImpl client)
يرسل طلب HPDS إلى العميل. |
static
void
|
sendHPDU(ClientImpl client, String fileName)
يرسل طلب HPDU إلى العميل. |
static
void
|
sendHPGC(ClientImpl client)
يرسل طلب HPGC إلى العميل. |
static
void
|
sendHPIF(ClientImpl client, int when)
أرسِل طلب HPIF (HeaP InFo) إلى العميل. |
static
void
|
sendHPSG(ClientImpl client, int when, int what)
يرسل طلب HPSG (HeaP SeGment) إلى العميل. |
static
void
|
sendREAE(ClientImpl client, boolean enable)
يرسِل طلب REAE (تفعيل التخصيص الأخير) إلى العميل. |
static
void
|
sendREAL(ClientImpl client)
يرسل طلب REAL (REcent ALlocation) إلى العميل. |
static
void
|
sendREAQ(ClientImpl client)
يرسل طلب REAQ (طلب تخصيص حديث) إلى العميل. |
الثوابت
HPIF_WHEN_EVERY_GC
public static final int HPIF_WHEN_EVERY_GC
Constant Value: 3 (0x00000003)
HPIF_WHEN_NEVER
public static final int HPIF_WHEN_NEVER
Constant Value: 0 (0x00000000)
HPIF_WHEN_NEXT_GC
public static final int HPIF_WHEN_NEXT_GC
Constant Value: 2 (0x00000002)
HPIF_WHEN_NOW
public static final int HPIF_WHEN_NOW
القيمة الثابتة: 1 (0x00000001)
WHAT_MERGE
public static final int WHAT_MERGE
Constant Value: 0 (0x00000000)
WHAT_OBJ
public static final int WHAT_OBJ
القيمة الثابتة: 1 (0x00000001)
WHEN_DISABLE
public static final int WHEN_DISABLE
Constant Value: 0 (0x00000000)
WHEN_GC
public static final int WHEN_GC
القيمة الثابتة: 1 (0x00000001)
الحقول
CHUNK_HPDS
public static final int CHUNK_HPDS
CHUNK_HPDU
public static final int CHUNK_HPDU
CHUNK_HPEN
public static final int CHUNK_HPEN
CHUNK_HPGC
public static final int CHUNK_HPGC
CHUNK_HPIF
public static final int CHUNK_HPIF
CHUNK_HPSG
public static final int CHUNK_HPSG
CHUNK_HPST
public static final int CHUNK_HPST
CHUNK_REAE
public static final int CHUNK_REAE
CHUNK_REAL
public static final int CHUNK_REAL
CHUNK_REAQ
public static final int CHUNK_REAQ
الطُرق العامة
clientDisconnected
public void clientDisconnected (ClientImpl client)
تم إغلاق التطبيق.
| المعلمات | |
|---|---|
client |
ClientImpl |
handleChunk
public void handleChunk (ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
نقطة دخول معالج الأجزاء
| المعلمات | |
|---|---|
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
تسجيل
public static void register (MonitorThread mt)
تسجيل الحِزم التي نتوقّع تلقّيها من العميل
| المعلمات | |
|---|---|
mt |
MonitorThread |
sendHPDS
public static void sendHPDS (ClientImpl client)
يرسل طلب HPDS إلى العميل.
سنتلقّى ردًا من HPDS عند اكتمال عملية تفريغ الذاكرة المؤقتة. في حال حدوث خطأ، نتلقّى استجابة عامة تشير إلى حدوث خطأ.
ويكون ذلك أكثر تكلفة بالنسبة إلى الجهاز من HPDU، لأنّه يتم الاحتفاظ بتفريغ الذاكرة المؤقتة بالكامل في ذاكرة الوصول العشوائي (RAM) بدلاً من تخزينه في ملف مؤقت. من ناحية أخرى، لا يلزم الحصول على إذن بالكتابة إلى /sdcard.
| المعلمات | |
|---|---|
client |
ClientImpl |
sendHPDU
public static void sendHPDU (ClientImpl client, String fileName)
يرسل طلب HPDU إلى العميل.
سنتلقّى ردًا من HPDU عند اكتمال عملية تفريغ الذاكرة المؤقتة. في حال حدوث خطأ، نتلقّى استجابة عامة تشير إلى حدوث خطأ.
| المعلمات | |
|---|---|
client |
ClientImpl |
fileName |
String: اسم ملف الإخراج (على الجهاز) |
sendHPGC
public static void sendHPGC (ClientImpl client)
يرسل طلب HPGC إلى العميل.
| المعلمات | |
|---|---|
client |
ClientImpl |
sendHPIF
public static void sendHPIF (ClientImpl client, int when)
أرسِل طلب HPIF (HeaP InFo) إلى العميل.
| المعلمات | |
|---|---|
client |
ClientImpl |
when |
int |
sendHPSG
public static void sendHPSG (ClientImpl client, int when, int what)
يرسل طلب HPSG (HeaP SeGment) إلى العميل.
| المعلمات | |
|---|---|
client |
ClientImpl |
when |
int |
what |
int |
sendREAE
public static void sendREAE (ClientImpl client, boolean enable)
يرسِل طلب REAE (تفعيل التخصيص الأخير) إلى العميل.
| المعلمات | |
|---|---|
client |
ClientImpl |
enable |
boolean |
sendREAL
public static void sendREAL (ClientImpl client)
يرسل طلب REAL (REcent ALlocation) إلى العميل.
| المعلمات | |
|---|---|
client |
ClientImpl |
sendREAQ
public static void sendREAQ (ClientImpl client)
يرسل طلب REAQ (طلب تخصيص حديث) إلى العميل.
| المعلمات | |
|---|---|
client |
ClientImpl |