اعتبارًا من عام 2026، ولضمان توافقنا مع نموذج التطوير الثابت الرئيسي وضمان استقرار المنصة في المنظومة المتكاملة، سننشر الرمز المصدري في "مشروع Android مفتوح المصدر" (AOSP) في الربع الثاني والربع الرابع. لإنشاء AOSP والمساهمة فيه، ننصحك باستخدام android-latest-release بدلاً من aosp-main. سيشير فرع البيان android-latest-release دائمًا إلى أحدث إصدار تم إرساله إلى AOSP. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في مشروع Android المفتوح المصدر (AOSP).
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
HandleViewDebug
public
final
class
HandleViewDebug
extends ChunkHandler
ملخّص
الطُرق العامة |
static
void
|
captureLayers(ClientImpl client, String viewRoot, DebugViewDumpHandler handler)
|
static
void
|
captureView(Client client, String viewRoot, String view, DebugViewDumpHandler handler)
|
void
|
clientDisconnected(ClientImpl client)
لم يعُد العميل متاحًا.
|
void
|
clientReady(ClientImpl client)
العميل جاهز.
|
static
void
|
dumpDisplayList(Client client, String viewRoot, String view)
|
static
void
|
dumpTheme(ClientImpl client, String viewRoot, DebugViewDumpHandler handler)
|
static
void
|
dumpViewHierarchy(Client client, String viewRoot, boolean skipChildren, boolean includeProperties, boolean useV2, DebugViewDumpHandler handler)
|
void
|
handleChunk(ClientImpl client, int type, ByteBuffer data, boolean isReply, int msgId)
التعامل مع جزء وارد
|
static
void
|
invalidateView(ClientImpl client, String viewRoot, String view)
|
static
void
|
invokeMethod(ClientImpl client, String viewRoot, String view, String method, Object... args)
|
static
void
|
listViewRoots(Client client, DebugViewDumpHandler replyHandler)
|
static
void
|
profileView(ClientImpl client, String viewRoot, String view, DebugViewDumpHandler handler)
|
static
void
|
register(MonitorThread mt)
|
static
void
|
requestLayout(ClientImpl client, String viewRoot, String view)
|
static
void
|
sendStartGlTracing(ClientImpl client)
|
static
void
|
sendStopGlTracing(ClientImpl client)
|
static
void
|
setLayoutParameter(ClientImpl client, String viewRoot, String view, String parameter, int value)
|
الطُرق العامة
captureLayers
public static void captureLayers (ClientImpl client,
String viewRoot,
DebugViewDumpHandler handler)
| المعلمات |
client |
ClientImpl |
viewRoot |
String |
handler |
DebugViewDumpHandler |
captureView
public static void captureView (Client client,
String viewRoot,
String view,
DebugViewDumpHandler handler)
| المعلمات |
client |
Client |
viewRoot |
String |
view |
String |
handler |
DebugViewDumpHandler |
clientDisconnected
public void clientDisconnected (ClientImpl client)
تم إغلاق التطبيق. يمكن استخدامها لتنظيف أي موارد مرتبطة باتصال العميل هذا.
| المعلمات |
client |
ClientImpl |
clientReady
public void clientReady (ClientImpl client)
العميل جاهز. تستدعي سلسلة التعليمات البرمجية الخاصة بالمراقبة هذه الطريقة في جميع المعالِجات عندما يتم تحديد أنّ العميل متوافق مع DDM (عادةً بعد تلقّي رد HELO).
يمكن أن يستفيد المعالج من هذه الفرصة لإعداد النشاط من جهة العميل. بما أنّه من المحتمل أن نريد إرسال رسالة إلى العميل، يمكن أن تؤدي هذه الطريقة إلى ظهور IOException.
| المعلمات |
client |
ClientImpl |
dumpDisplayList
public static void dumpDisplayList (Client client,
String viewRoot,
String view)
| المعلمات |
client |
Client |
viewRoot |
String |
view |
String |
dumpTheme
public static void dumpTheme (ClientImpl client,
String viewRoot,
DebugViewDumpHandler handler)
| المعلمات |
client |
ClientImpl |
viewRoot |
String |
handler |
DebugViewDumpHandler |
dumpViewHierarchy
public static void dumpViewHierarchy (Client client,
String viewRoot,
boolean skipChildren,
boolean includeProperties,
boolean useV2,
DebugViewDumpHandler handler)
| المعلمات |
client |
Client |
viewRoot |
String |
skipChildren |
boolean |
includeProperties |
boolean |
useV2 |
boolean |
handler |
DebugViewDumpHandler |
handleChunk
public void handleChunk (ClientImpl client,
int type,
ByteBuffer data,
boolean isReply,
int msgId)
التعامل مع جزء وارد تبدأ البيانات، من نوع الجزء "type"، في بداية "data" وتستمر حتى data.limit().
في حال ضبط "isReply"، سيكون "msgId" هو معرّف الطلب الذي أرسلناه إلى العميل.
بخلاف ذلك، يكون المعرّف الذي أنشأه العميل لهذا الحدث. يُرجى العِلم أنّه من المحتمل تلقّي أجزاء في حِزم الردود لم يتم تسجيلنا فيها.
لا يجوز للمعالج تعديل محتوى "البيانات".
| المعلمات |
client |
ClientImpl |
type |
int |
data |
ByteBuffer |
isReply |
boolean |
msgId |
int |
invalidateView
public static void invalidateView (ClientImpl client,
String viewRoot,
String view)
| المعلمات |
client |
ClientImpl |
viewRoot |
String |
view |
String |
invokeMethod
public static void invokeMethod (ClientImpl client,
String viewRoot,
String view,
String method,
Object... args)
| المعلمات |
client |
ClientImpl |
viewRoot |
String |
view |
String |
method |
String |
args |
Object |
listViewRoots
public static void listViewRoots (Client client,
DebugViewDumpHandler replyHandler)
| المعلمات |
client |
Client |
replyHandler |
DebugViewDumpHandler |
profileView
public static void profileView (ClientImpl client,
String viewRoot,
String view,
DebugViewDumpHandler handler)
| المعلمات |
client |
ClientImpl |
viewRoot |
String |
view |
String |
handler |
DebugViewDumpHandler |
تسجيل
public static void register (MonitorThread mt)
| المعلمات |
mt |
MonitorThread |
requestLayout
public static void requestLayout (ClientImpl client,
String viewRoot,
String view)
| المعلمات |
client |
ClientImpl |
viewRoot |
String |
view |
String |
sendStartGlTracing
public static void sendStartGlTracing (ClientImpl client)
| المعلمات |
client |
ClientImpl |
sendStopGlTracing
public static void sendStopGlTracing (ClientImpl client)
| المعلمات |
client |
ClientImpl |
setLayoutParameter
public static void setLayoutParameter (ClientImpl client,
String viewRoot,
String view,
String parameter,
int value)
| المعلمات |
client |
ClientImpl |
viewRoot |
String |
view |
String |
parameter |
String |
value |
int |
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-12-04 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-12-04 (حسب التوقيت العالمي المتفَّق عليه)"],[],[]]