summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2012-04-30 11:15:03 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2012-04-30 17:46:19 -0700
commitc68022258ebd3dd97a5079ba99f4f3cd12b223b0 (patch)
tree231a215ad8b0f72a41cc78bda847a24150ef79a2 /docs
parentd6be37d4d9d8427ed0eccf2a333e5589b88b0cf8 (diff)
downloadframeworks_base-c68022258ebd3dd97a5079ba99f4f3cd12b223b0.zip
frameworks_base-c68022258ebd3dd97a5079ba99f4f3cd12b223b0.tar.gz
frameworks_base-c68022258ebd3dd97a5079ba99f4f3cd12b223b0.tar.bz2
Optimize how AudioService receives media button events
AudioService maintains a stack of registered media button event receivers. This change modifies the broadcasters of ACTION_MEDIA_BUTTON intents let AudioService directly handle the corresponding key event instead of trapping the intent sent by PhoneWindowManager, KeyguardViewBase and PhoneFallbackEventHandler. Because the key event may be sent through a PendingIntent, AudioService now also implements the OnFinished interface to be notified when the event was consumed so it can release the wake lock held if it was held when the key event needed to be sent (see where PassHeadsetKey was instanciated in PhoneWindowManager). Change-Id: I2e8614df94af9d54edbf714ef443cc372d21827a
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions