اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release بدلاً من aosp-main لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يقيس اختبار وقت استجابة إعادة الصوت "وقت الاستجابة ذهابًا وإيابًا"، بدءًا من
بدء تشغيل الإشارة إلى تلقّي الصوت الذي تم تسجيله. على الرغم من أنّ هذا الاختبار
لا يسمح بفصل قياسات وقت الاستجابة في تشغيل النظام
وتسجيله، إلا أنّه يقدّم مؤشرًا جيدًا لأداء وقت الاستجابة بشكل عام
للنظام على مستوى عدة أزواج من الأجهزة.
يتم قياس وقت استجابة ميزة "التسجيل والتشغيل" من خلال إنشاء إشارة على جهاز إخراج وتسجيل تلك الإشارة على جهاز إدخال مقترن. الإشارة التي يتم إنشاؤها هي مجموعة من
انفجارات الضوضاء التي يمكن للاختبار التعرّف عليها ويتم استخدامها لتحديد بداية الإشارة بدقة.
مسارات وقت الاستجابة
يقيس اختبار وقت استجابة إعادة توجيه الصوت وقت استجابة ثلاثة مسارات، كما هو موضّح في
الشكل 1:
مكبّر الصوت/الميكروفون: يتم التقاط إشارة مكبّر الصوت المدمج باستخدام
الميكروفون المدمج. يجب اختبار هذا المسار على الأجهزة المزوّدة بشاشة لمس، مثل
الهواتف والأجهزة اللوحية، ولا يُشترط اختباره على الأجهزة غير المزوّدة بشاشة لمس، مثل
الساعات وأجهزة التلفزيون والسيارات والثلاجات.
مقبس سماعة الرأس: يتم توجيه الإشارة باستخدام
قابس loopback
من مخرج إلى مدخل مقبس سماعة الرأس التناظرية مقاس 3.5 مم.
USB: يتم توجيه الإشارة من خلال إما
محوِّل سماعات رأس من USB إلى صوت تمثيلي
مزوّد بمقبس إعادة توجيه، أو واجهة صوت USB
مزوّدة بمقابس إخراج متصلة بمقابس إدخال. يكفي الحصول على قيمة مقبولة لأي من مسارَي USB لاجتياز الاختبار. قد لا يتوفّر هذا المسار ل
بعض أجهزة Android، مثل التلفزيون والسيارات.
لوحة الاختبار
تتألف لوحة اختبار وقت استجابة إعادة الصوت من الأقسام التالية، كما هو موضح في الشكل 1.
الشكل 1: لوحة اختبار وقت استجابة إعادة توجيه الصوت
أدوات الدعم
على المستخدم تشغيل الأداتَين التاليتَين قبل بدء الاختبار:
معايرة الصوت: لتحليل الصوت الذي تم تسجيله بفعالية،
من المهم إنشاء إشارة إخراج بمستوى مناسب.
يؤدي النقر على معايرة الصوت إلى عرض
لوحة معايرة ميزة "إرسال الصوت وتسجيله"،
التي تُستخدَم لضمان مستوى إشارة مناسب.
أجهزة الصوت: بدء مربّع حوار يعرض جميع أجهزة الصوت
المتوافقة مع جهاز DUT والمتصلة به يمكنك الاطّلاع على
لوحة "أجهزة الصوت" للحصول على مزيد من
المعلومات.
الشكل 2: أدوات دعم اختبار وقت استجابة إعادة توجيه الصوت
قسم إعداد DUT
يعرض هذا القسم معلومات عن إعدادات
وحدة التحكّم في البيانات كما هو موضّح في الشكل 1. تحدِّد سمات الضبط التالية،
جزئيًا، معايير المرور:
الصوت الاحترافي: يُعلن جهاز DUT عن علامة الصوت الاحترافي التي تحدّد أنّ جهاز DUT
يتوافق مع مستوى احترافي من الأداء الصوتي وميزات مثل
التوافق مع MIDI.
وقت استجابة منخفض: يُعلن جهاز DUT عن علامة وقت استجابة منخفض التي تحدِّد أنّه
يتوافق مع الحد الأقصى المنخفض لوقت استجابة تشغيل الصوت وتسجيله.
MPC: مستوى فئة أداء الوسائط الذي يُعلن عنه جهاز DUT
MMAP: يتيح جهاز DUT تشغيل الصوت في وضع MMAP.
وضع MMAP الحصري: يتيح جهاز DUT تشغيل وضع MMAP الحصري.
ساعة: تم تحديد أنّ جهاز DUT هو ساعة.
تلفزيون: تم تحديد أنّ الجهاز الاختباري هو تلفزيون.
مركبة: تم تحديد أنّ مركبة اختبار الأداء هي مركبة.
جهاز محمول باليد: تم تحديد أنّ جهاز DUT هو جهاز محمول باليد، أي هاتف أو جهاز لوحي.
أقسام الاختبار
بالنسبة إلى كل مسار، يحتوي قسم الاختبار على عنصرَين:
البدء: لتشغيل قسم الاختبار. يتم تفعيل الزر عند تحديد
أنّ جهاز DUT يتيح مسارًا متاحًا معيّنًا.
نص التعليمات/العملية/الحالة: يعرض تعليمات تفعيل
قسم الاختبار وحالة قسم الاختبار أثناء تشغيله و
نتائج قسم الاختبار عند اكتماله.
القسم
الوصف
اختبار مكبّر الصوت والميكروفون
يتم تفعيل التشغيل ما لم يكن جهاز DUT غير متوافق مع مكبّر صوت
أو ميكروفون داخليَين، كما هو الحال في التلفزيون أو جهاز السيارة.
اختبار مقبس سماعة الرأس
يتم تفعيل البدء إذا كان جهاز التحكّم في العينة يتيح مقبس سماعة رأس تمثيلية وموصّل إعادة توجيه الصوت متصلاً بمقبس سماعة رأس تمثيلية مقاس 3.5 مم في جهاز التحكّم في العينة.
اختبار USB
يتم تفعيل البدء إذا كان جهاز DUT يتيح الاتصال بجهاز صوت عبر USB وكان
جهاز الصوت عبر USB متصلاً.
عند اكتمال الاختبار لكل قسم من أقسام الاختبار، يتم تعديل قسم النتائج لعكس حالة الاختبار العامة.
عند اختبار جميع المسارات المطلوبة واستيفاء كل اختبار لمعايير وقت الاستجابة
لمسار معيّن كما هو محدّد في CDD، يتم تفعيل PASS.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Audio loopback latency test\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThe audio loopback latency test measures \"round-trip\" latency, from the\nstart of signal playback to the receipt of the captured audio. While this test\ndoesn't allow for the separation of the latency measurements in the playback and\ncapture of the system, it gives a good indication of overall latency performance\nof the system over several device pairs.\n\nLoopback latency is measured by generating a signal on an output device and\ncapturing that signal on a paired input device. The generated signal is a set of\nnoise bursts that can be recognized by the test and is used to accurately\ndetermine the start of the signal.\n\nLatency paths\n-------------\n\nThe audio loopback latency test measures the latency of three routes, as shown\nin Figure 1:\n\n- **Speaker/Mic:** The built-in speaker signal is captured by the built-in\n microphone. Testing this path is required on handheld devices, such as\n phones and tablets, and isn't required for nonhandheld devices, such as\n watches, TVs, automobiles, and refrigerators.\n\n- **Headset Jack:** The signal is routed with a\n [loopback plug](/docs/compatibility/cts/audio-peripherals#audio-loopback-plug)\n from the output to the input of the 3.5 mm analog headset jack.\n\n| **Note:** This route isn't supported on all Android devices.\n\n- **USB:** The signal is routed through either a [USB-to-analog headset adapter](/docs/compatibility/cts/audio-peripherals#usb-analog-headset-adapter) with a loopback plug, or a [USB audio interface](/docs/compatibility/cts/audio-peripherals#usb-audio-interface) with output jacks connected to input jacks. Obtaining a passing value for either of the USB routes is sufficient to pass. This route might not be available for some Android devices, such as TV and automobile.\n\nTest panel\n----------\n\nThe **Audio Loopback Latency Test** panel consists of the following sections, as\nshown in Figure 1.\n\n**Figure 1.** Audio loopback latency test panel.\n\n### Support utilities\n\nThe user needs to run the following utilities before starting the test:\n\n- **Calibrate Audio:** To effectively analyze the captured audio, it's\n important to generate an output signal at an adequate level.\n **Calibrate Audio** invokes the\n [Audio Loopback Calibration panel](/docs/compatibility/cts/audio-loopback-calib),\n which is used to ensure an appropriate signal level.\n\n- **Audio Devices:** Starts a dialog that displays all of the audio devices\n that are supported by and connected to the DUT. See\n [Audio Devices panel](/docs/compatibility/cts/audio-devices-panel) for more\n information.\n\n**Figure 2.** Audio loopback latency test support utilities.\n\n### DUT configuration section\n\nThis section displays information about the configuration of\nthe DUT as shown in Figure 1. The following configuration attributes determine,\nin part, the pass criteria:\n\n- **Pro Audio:** The DUT declares the *Pro Audio* flag specifying that the DUT\n supports a *Professional* level of audio performance and features such as\n MIDI support.\n\n- **Low Latency:** The DUT declares the *Low Latency* flag specifying that the\n DUT supports a low maximum latency for audio playback and capture.\n\n- **MPC:** The *Media Performance Class* level declared by the DUT.\n\n- **MMAP:** The DUT supports MMAP mode audio playback.\n\n- **MMAP Exclusive:** The DUT supports MMAP exclusive mode playback.\n\n- **Watch:** The DUT has been determined to be a watch.\n\n- **TV:** The DUT has been determined to be a television.\n\n- **Automobile:** The DUT has been determined to be an automobile.\n\n- **Handheld:** The DUT has been determined to be a *handheld* device, that\n is, either a phone or a tablet.\n\n### Test sections\n\nFor each route, the test section contains two elements:\n\n- **Start:** Executes the test section. The button is enabled when it's determined that the DUT supports a given available route.\n- **Instruction/process/status text:** Displays instructions for enabling the test section, the status of the test section while it's running, and the results of a test section when complete.\n\n| **Note:** Each test section supported by the DUT must pass in order for the overall test to pass.\n\n| Section | Description |\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Speaker and mic test | **Start** is enabled unless the DUT doesn't support either an internal speaker or internal microphone, as in a TV or automobile device. |\n| Headset jack test | **Start** is enabled if the DUT supports an analog headset jack AND an [Audio loopback plug](/docs/compatibility/cts/audio-peripherals#audio-loopback-plug) is plugged in to an Analog 3.5 mm headset jack on the DUT. |\n| USB test | **Start** is enabled if the DUT supports a USB audio connection AND a USB audio device is connected. |\n| Results | Displays the results for the overall test. |\n\nTest process\n------------\n\nFor each supported route, do the following:\n\n1. Connect the appropriate loopback peripheral for analog headset and USB tests. For the speaker and Mic test, place the DUT on a flat surface in a quiet room. The required peripherals are listed in [CTS Verifier audio peripherals](/docs/compatibility/cts/audio-peripherals).\n2. Run the [Support utilites](#support-utilities).\n3. Run the [test section](#test) by tapping **Start**.\n\nAs the test for each test section completes, the **Results** section updates to\nreflect the overall test status.\n\nWhen all required routes are tested, and each test meets the latency criteria\nfor that route as specified in [CDD](/docs/compatibility/14/android-14-cdd#56_audio_latency),\n**PASS** is enabled."]]