自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
近超声测试
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Near ultrasound tests\n\nThis page contains steps for conducting near ultrasound (formerly known\nas hifi ultrasound) microphone and speaker tests. See the [Audio](/docs/core/audio) section for general audio\nimplementation instructions.\n\nNear ultrasound microphone tests\n--------------------------------\n\nPrerequisites: Prepare two devices, one as the test device, one as the reference\ndevice. The reference can be any device that is known to produce near ultrasound sound.\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------|\n| Step 1: Open Near Ultrasound Microphone Tests on both devices | |\n| Test device | Reference device |\n| Step 2: After opening the test, press RECORD on the test device, then quickly press PLAY on the reference device. | |\n| Test device | Reference device |\n| Step 3: Wait for the test to finish. While waiting, the devices should look like the following screenshots. Do nothing until you see the screens shown in Step 4. | |\n| Test device | Reference device |\n| Step 4a: On the test device, if text PASS is shown, report passed by pressing the green button. | |\n| Test device | Reference device |\n| Step 4b: On the test device, if text FAIL is shown, report failed by pressing the red button. Afterward you can repeat from step 1 to repeat the test if desired. | |\n| Test device | Reference device |\n| Extra step: This step isn't required. You can plot the calculated response using the PLOT button on the test device. | |\n| Test device | Reference device N/A |\n\nNear ultrasound speaker tests\n-----------------------------\n\nPrerequisites: Prepare two devices, one as the test device, one as the reference\ndevice. The reference can be any device that is known to record near ultrasound sound.\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------|\n| Step 1: Open Near Ultrasound Speaker Tests on both devices | |\n| Test device | Reference device |\n| Step 2: After opening the test, press RECORD on the reference device, then quickly press PLAY on the test device. | |\n| Test device | Reference device |\n| Step 3: Wait for the test to finish. While waiting, the devices should look like the following screenshots. Do nothing until you see the screens shown in Step 4. | |\n| Test device | Reference device |\n| Step 4: When you see the popup on the reference device, press OK on the test device. | |\n| Test device | Reference device |\n| Step 5a: On the reference device, if text PASS is shown, report passed by pressing the green button on the test device. | |\n| Test device | Reference device |\n| Step 5b: On the reference device, if text FAIL is shown, report failed by pressing the red button on the test device. Afterward you can repeat from step 1 to repeat the test if desired. | |\n| Test device | Reference device |\n| Extra step: This step isn't required. You can plot the calculated response using the PLOT button on the reference device. See the instructions in [Near Ultrasound Microphone Test](#ultrasound_microphone_tests). | |"]]