commit | 48b9a7c70acff8f1469e487d08bbcb7e6a47ad8a | [log] [tgz] |
---|---|---|
author | Yasuhiro Matsuda <mazda@google.com> | Thu Jul 16 19:00:16 2015 +0900 |
committer | Yasuhiro Matsuda <mazda@google.com> | Fri Aug 07 17:26:41 2015 +0900 |
tree | 763612ff034cc40d06f789dfedc909214f4ae04a | |
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