2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
オーディオ デバイス パネル
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
CTS 検証ツールによる多くのオーディオ テストでは、さまざまなオーディオ ハードウェア デバイスを対象に機能を検証できます。[Audio Devices] パネルには、DUT が対応しているオーディオ デバイスと、利用できるデバイスが表示されます。
[Supported Devices] リストには、DUT で使用できるオーディオ デバイスが表示されますが、それらは接続されているとは限らないため、テスト時に利用できない場合もあります。SDK 35 で追加された AudioManager.getSupportedDeviceTypes()
は、対応しているデバイスのタイプを返します。
次の図を見ると、この DUT は内蔵デバイス(マイク、スピーカー、受話口など)、アナログ オーディオ周辺機器、Bluetooth オーディオ周辺機器、USB オーディオ周辺機器に対応していることがわかります。
図 1. 対応デバイスが表示されている [Audio Devices] パネル
[Available Devices] リストには、DUT に内蔵されているか(内蔵スピーカーやマイクなど)、接続されている(アナログ ヘッドセットや USB オーディオ周辺機器など)ためにテスト時に利用できるオーディオ デバイスが表示されます。
次の図は、内蔵デバイスのみが利用可能で、DUT に接続されている外部オーディオ周辺機器がない状態です。
図 2. 利用可能なデバイスが表示される [Audio Devices] パネル
対応デバイスのリストが、デバイス内のハードウェア(Inputs)と一致しない場合は、HAL によって提供されるオーディオ ポリシーの構成に問題があることが考えられます。利用可能なデバイスが接続されているデバイス(Outputs)と一致しない場合は、基盤となるオーディオ ソフトウェア レイヤに問題があることが考えられます。
オーディオ周辺機器が DUT に接続されている場合は、利用可能なデバイスのリストが更新され、その構成が反映されます。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-05-08 UTC。
[[["わかりやすい","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-05-08 UTC。"],[],[],null,["# Audio Devices panel\n\n\u003cbr /\u003e\n\nMany CTS Verifier audio tests validate capabilities over a variety of audio\nhardware devices. The **Audio Devices** panel indicates which audio devices are\nsupported by the DUT and which are available for use.\n\nThe **Supported Devices** list shows audio devices that the DUT can use, but\naren't necessarily connected and hence aren't available at testing time.\n[`AudioManager.getSupportedDeviceTypes()`](https://developer.android.com/reference/android/media/AudioManager#getSupportedDeviceTypes(int)),\nadded in SDK 35, returns supported device types.\n\nThe following figure shows that the DUT supports the built-in\ndevices (such as microphone, speaker, and earpiece), analog audio peripherals,\nBluetooth audio peripherals, and USB audio peripherals:\n\n**Figure 1.** Audio Devices panel showing supported devices.\n\nThe **Available Devices** list shows audio devices that can be used at testing\ntime, either because they're built in to the DUT (such as the internal speaker\nand microphone), or are connected (such as an analog headset or USB audio\nperipheral).\n\nThe following figure shows that only the built-in devices are available for use,\nthat is, there are no external audio peripherals connected to the DUT:\n\n**Figure 2.** Audio Devices panel showing available devices.\n\nIf the list of supported devices doesn't match the hardware that is in\nthe device (**Inputs** ), there might be a problem in the audio policy\nconfiguration provided by the HAL. If the available devices don't match what is\nconnected to the device (**Outputs**), there might be a problem with the\nunderlying audio software layer.\n\nWhen audio peripherals are connected to the DUT, the list of available devices\nis updated to reflect the configuration."]]