OSDN Git Service

Increase priority for broadcast intent triggered by HW key
authorHidenari Koshimae <hidenari.koshimae@sonymobile.com>
Fri, 5 Feb 2016 09:13:17 +0000 (18:13 +0900)
committerMichael Wright <michaelwr@google.com>
Mon, 26 Sep 2016 17:29:06 +0000 (18:29 +0100)
commit469e65e37f04fa3aa46e5116b6028cd7113308b3
treeea4fc2e1d9d993c26af98b6b87bf905be4e9879e
parentc3fddb984c9bca51c0df3a528764cbb817627850
Increase priority for broadcast intent triggered by HW key

Add the FLAG_RECEIVER_FOREGROUND flag to the broadcast intent
triggered by hardware key.
This prevents the framework from delaying the delivery of the
intent to its recipients, and improves the response for hardware
key event under heavy load on the system.

Bug: 28735973
Change-Id: Ib7f219845be34794f4c7545927e53cc6c2b504a3
core/java/com/android/internal/policy/PhoneFallbackEventHandler.java