Fix brightness dialog layout.

This reverts part of change I83e8f7eae65d5f40dd7aeb2b663bc1fc3d5324d2.

Change-Id: I1f685357776dcac9c93e592e274acdf0497f4161
SystemUI: Fix NPE on recent panel

Change-Id: I40bbbfc825aebcb601fc80d1e27c346285ebcdf6
Fix deadlock of WebViewCoreThread

There was a deadlock in destroy process.
Investigation showed that WebViewCoreThread is waiting some
callbacks but in this case WebViewCoreThread can not resume
itself not to call notify method.

Flow:
1. CallbackProxy.sendMessageToUiThreadSync
2. WebViewClassic.destroy()
3. CallbackProxy.blockMessages()
4. CallbackProxy.handleMessage is called via MainThread
5. The WebViewCoreThread deadlock is occured.

The cases we have to call notify method are followings.
OVERRIDE_URL
CREATE_WINDOW
SAVE_PASSWORD
NOTIFY
OPEN_FILE_CHOOSER
JS_ALERT
JS_CONFIRM
JS_PROMPT
JS_UNLOAD
JS_TIMEOUT

Change-Id: I9d95ae500bf6338d77b32b5fa15de7cff5720d0f
platform: Remove mapping of android.permission.CAMERA to camera group

This mapping introduces security risk where any app with android.
permission.CAMERA can open camera driver directly without going
through mediaserver.

CRs-Fixed: 448868
Change-Id: Ic16880cfac0bc85a3e753ccd3261bfc455b02d1a
Reimplement AOSP's home-key behavior configuration

Add support for resource-based long-press and double-tap behaviors,
bringing back the functionality introduced by Google at change
I4564d9e4d127f782ed5bd8eb613ef8f2255176cc on top of our own
hardware key rebinding code

commit caca88150cc22a9324b6fed89ecdf394e68cf6f8
Author: Jeff Brown <jeffbrown@google.com>
Date:   Thu May 9 13:34:33 2013 -0700

    Support double-tap home to go to recents.

    Add config resources to enable the following behavior for
    certain devices:

    * press home - go home
    * long-press home - launch assist intent
    * double-tap home - open recents

    Bug: 8891502
    Change-Id: I4564d9e4d127f782ed5bd8eb613ef8f2255176cc
    (cherry picked from commit b7805698035622a633b2d76f7ca60169aaa9f0ca)

Change-Id: I578700abf8c51e613a4227cdf9f6c3bff90feec9
Fix mismerge of implement 1% battery on select devices

Change-Id: I2dcafba2c39f50cf435b90ca261b325c10fd5b6b