diff options
author | Yasuhiro Matsuda <mazda@google.com> | 2015-07-16 19:00:16 +0900 |
---|---|---|
committer | Yasuhiro Matsuda <mazda@google.com> | 2015-08-07 17:26:41 +0900 |
commit | 48b9a7c70acff8f1469e487d08bbcb7e6a47ad8a (patch) | |
tree | 763612ff034cc40d06f789dfedc909214f4ae04a /libs/hwui/ProgramCache.cpp | |
parent | 23d4f7cf6e43d0b6cd6431245cdc06659928236e (diff) |
Broadcast ACTION_USB_STATE only if necessary.
Modify UsbDeviceManager.updateUsbStateBroadcast to broadcast
ACTION_USB_STATE intent only when any of the USB states have
changed.
By doing this, the processes that receive ACTION_USB_STATE intent
(e.g. android.process.media) are not launched during boot
unnecessarily.
This change reduces boot time by about 200 ms.
BUG: 22163689
Change-Id: I1853a23b0263d9ff608b02d6bc98fe58f584cc19
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions