2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
よくある質問
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Android 10 はディスプレイごとの VSYNC に対応していますか?
いいえ、現時点では対応していません。Android 10 では、デフォルト ディスプレイの VSYNC によってすべてのディスプレイが駆動されます。
個別にディスプレイのオンとオフを切り替えることはできますか?
Android 10 では、デバイスの電源状態の実装は主にグローバルで、デフォルト ディスプレイの電源状態によって決まります。仮想ディスプレイのみ、サーフェスを null
に設定することでオンとオフを個別に切り替えられます。ActivityManager または WindowManager は、この状態の変化に対応します。
Android 10 には、入力とデバイスの関連付けを動的に構成する方法は用意されていませんが、ほとんどの場合はいくつかの解決策を適用できます。詳しくは、入力ルーティングをご覧ください。
ディスプレイでシステム デコレーションを有効にするにはどうすればよいですか?
テスト環境での最も簡単な方法は、[デスクトップ モードに強制的に切り替え] 開発者向けオプションを使用して、すべてのセカンダリ ディスプレイでシステム デコレーションと IME サポートを有効にすることです。これは、物理パネルやシミュレーション ディスプレイなどのシステム所有ディスプレイでは機能しますが、アプリが所有する仮想ディスプレイでは制限される可能性があります。
本番環境の場合は、デフォルトの構成ファイルを指定します。詳しくは以下のページをご覧ください:
LaunchParamsController
を使用してすべてのアクティビティの起動を阻止し、起動に使用されるパラメータをシステム コンポーネントが変更できるようにします。現在は system_server
内で利用できます。
セカンダリ画面からデバイスのロックを解除できますか?
Android 10 では、ロック画面のデフォルトの実装はインタラクティブではなく、ロック解除も行えません。OEM は、基本的なセキュリティ要件を満たせば独自のロック画面を実装できます。
- デバイスのロック状態はグローバルです。
- すべてのディスプレイに適用されます。
IME をターゲットとは別のディスプレイに表示するにはどうすればよいですか?
IME は、DisplayWindowSettings
に設定したディスプレイにのみ表示できます。入力が要求されているディスプレイに対して設定が有効になっていない場合、IME はデフォルトのディスプレイに表示されます。
キーイベントを常に特定のディスプレイに送信するにはどうすればよいですか?
キーボードはターゲット以外の入力ソースと見なされるため、入力はフォーカスがある最上部のウィンドウに移動します。ターゲットとなるキー入力の例については、PhoneWindowManager クラスの戻るボタンとホームボタンの実装をご覧ください。これらのキーはディスプレイのみをターゲットとしますが、Android 10 で表示されます。
音声はどのように処理されますか?
Android 10 では音声に関して大きな改善は行われていません。Auto 向けのマルチゾーン オーディオのサポートが Android 10 で追加されましたが、対象となる個別のオーディオ ストリームを処理する汎用ソリューションはまだ追加されていません。
同じアプリを複数のディスプレイに表示することはできますか?
アプリが対応していれば、アクティビティの複数のインスタンスを作成できます。デフォルトでは、それぞれが同じプロセスで実行されます。該当するアプリに Chrome があります。これをテストするには、対象アクティビティの起動と新しいインスタンスのリクエストが可能なランチャー サンプルを使用すると便利です。
複数の画面やユーザー用に、同じアプリのインスタンスを複数作成することはできますか?
AOSP では、同一ユーザー用に同じアプリの個別のサンドボックスとプロセスを複数作成することはできません。このリクエストに関連するユースケースでは、アプリレベルで分割せずに同時に複数のユーザーをサポートする必要があります。
複数のユーザーが同じアプリを使用する場合は、各自のプロフィールでログインする必要があります。アプリレベルで分割するには、セッションごとにアプリにログインする必要があります。セッションごとにログインしないと、他のユーザーのデータが引き続き表示される場合があります。
Android 10 は複数のユーザーに対応していますか?
いいえ、Android 10 でサポートされるログイン ユーザー数は 1 人です。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-03-26 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-03-26 UTC。"],[],[],null,["# Frequently asked questions\n\nDoes Android 10 support per-display VSync?\n------------------------------------------\n\nNot yet. The VSync of the default display in Android 10\ndrives all displays.\n\nCan displays be individually turned ON or OFF?\n----------------------------------------------\n\nIn Android 10, the implementation of the device power\nstate is primarily global and determined by the power state of the default display.\nOnly virtual displays can be turned ON or OFF individually, by setting the surface to\n`null`. The activity or WindowManager responds to this state change.\n\nHow do I dynamically configure input-display association?\n---------------------------------------------------------\n\nThere's no built-in way to dynamically configure the association between an\ninput and a device in Android 10, but some workarounds can\nbe applied in most cases. See\n[Input routing](/docs/core/display/multi_display/input-routing) for details.\n\nHow do I enable system decorations on a display?\n------------------------------------------------\n\nFor testing, the most straightforward method is to use the Force Desktop Mode developer\noption, which enables system decorations and IME support on all secondary displays. This\nworks for system-owned displays, such as physical panels or a simulated display, but\nmay be restricted for virtual displays owned by apps.\n\nFor production, provide the default configuration file. For details, see:\n\n- [Configuring\n display windowing settings and system decorations](/docs/core/display/multi_display/recommended-practices#windowing)\n- [System decorations](/docs/core/display/multi_display/system-decorations#decorations)\n\nHow do I configure activities for specific displays?\n----------------------------------------------------\n\nUse `LaunchParamsController`, which intercepts all activity\nlaunches and lets a system component modify the parameters used for launch.\nIt's available within `system_server`.\n\nCan a device be unlocked from a secondary screen?\n-------------------------------------------------\n\nThe default implementation of the lock screen in Android 10\nisn't interactive and doesn't allow for unlocking. An OEM can implement their own lock\nscreen provided the fundamental security requirement is maintained.\n\nThe device lock state is global and it applies to all displays.\n\nHow do I display an IME on a different display than its target?\n---------------------------------------------------------------\n\nAn IME can only appear on a display configured in\n`DisplayWindowSettings`. If the config isn't enabled for a display\nwhere input is requested, the IME appears on the default display.\n\nHow do I always send key events to a specific display?\n------------------------------------------------------\n\nA keyboard is considered to be a non-targeted input source, so the input goes\nto the topmost focused window in the system. For an example of targeted key\ninput see the Back or Home button implementation in the `PhoneWindowManager` class. These\nkeys only target the display whereas they are displayed in Android 10.\n\nHow is audio handled?\n---------------------\n\nAndroid 10 contains no major improvements in this area.\n[Multi-zone audio](/docs/core/display/multi_display/multi-zone-audio)\nsupport for Auto has been added in Android 10, but a generic solution to\nhandle separate targeted audio streams remains pending.\n\nCan the same app be shown on several displays?\n----------------------------------------------\n\nIf the app supports it, then multiple instances of the app's activities can\nbe created. By default, each runs under the same process. Chrome is an example of such an\napp. It's convenient to test this using a\n[Launcher](/docs/core/display/multi_display/system-decorations#launcher) sample, which\nallows for a targeted activity launch and a request for a new instance.\n\nCan multiple instances of the same app be created for different screens/users?\n------------------------------------------------------------------------------\n\nAOSP doesn't let you create multiple separate sandboxes and processes of the\nsame app for the same user. Use cases associated with this request require concurrent\nmulti-user support instead of app-level separation.\n\nIf different users want to use the same app, they should log in with their\nprofiles. App-level separation requires logging in to the app for each session.\nOtherwise, other user's data may still be present.\n\nDoes Android 10 support multiple users?\n---------------------------------------\n\nNo. Android 10 supports a single logged-in user."]]