Fix dumpPowerState method

dumpPowerState method shows the current power manger service state but,
BUTTON_BRIGHT_BIT is omitted.

Add a routine of checking BUTTON_BRIGHT_BIT
Signed-off-by: jaiyoung.park <jaiyoung.park@lge.com>

Change-Id: I00484fb384963bafdc58ce89b3251a1f5585d992
frameworks/base: release references of UriPermissionOwner

Change-Id: I72e2310458de15f18e6f2c67f383bbb5c8f60ae2
webkit: Multi-context HTML5 video support

- Support multiple concurrent HTML5 video playback in inline mode
- Free HTML5 video media player when loading new page
- Omit seek when resuming playback from paused state
- Enable volume control for HTML5 media elements

Change-Id: Ie6706f4feea8410ec6cd440e146efbcbb0253260

Conflicts:

	core/java/android/webkit/WebView.java
webkit: Support multi-context HTML5 audio

Browser supports pages with multiple HTML5 audio elements but only one
audio source will have audio focus at any given time.

Focus will be given to the most recently started audio. Previously
playing audio will be paused.

Change-Id: I04fad7c919a2e45249d16bc282884a2cf3f375b5
webkit: Show last frame of streaming video when buffering.

HTML5 Video now detects buffering state during streaming
videos and communicate this status to the video player
so that video player can present recent frame of
video during buffering instead of a grey frame.

CRs-fixed: 329061
(cherry picked from commit 9fe3eab1191d9fa97621f2c7cdd28e4954720fcb)

Change-Id: I5a51226bc29ed2a5924d33947ebf558740c41b2c
Webkit: Fix callback notification upon end of video playback

Trigger onEnded callback only upon video playback completion.

CRs-fixed: 333027

(cherry picked from commit 9e603557ea5f0196a4b9633435891de09bb406a2)

Change-Id: Id089075831328296a92e4665583d316cfbbd2cfd
Feature permissions for Proteus device api framework

Change-Id: Id3bb12a1ff8af5df0eb960c780accd8f625d9345

Conflicts:

	core/java/android/webkit/WebViewCore.java
BrowserManagement

Opensource changes corresponding to BrowserManagement feature
Change-Id: Icae49df023c51e9ee8ecc823ffd854dbe2e8edcd
Porting missing changes for Feature permissions for Proteus device api framework

Change-Id: Id3bb12a1ff8af5df0eb960c780accd8f625d9345
webkit: Support playing HTML5 video in fullscreen mode at once

Support entering fullscreen before video has started playing inline.
Support javascript call to play video while in fullscreen mode.

Change-Id: I4d11388790affc555b5420670a6783d8497b895b
CRs-fixed: 328354
BrowserManagement

Change-Id: I21421742d84fda418c18aeb21c29aef6f994c701
BrowserManagement: Unregister BatIntent on webview destroy
(cherry picked from commit eddab22475ce4afb9bb7a36a7f9ed1fef9c5631a)
BrowserManagement

BrowserManagement: Added small enhancements to an existing feature, to cover
more scenarios and some code cleanup for compactness

Change-Id: I631ac7208a5645feb103b73a1136a848a6fbc734
(cherry picked from commit 753e5b3467754ed70588194e1b8353fa89fa3381)
Support for runtime WOFF enablement

Change-Id: Ibedbdcae7bc14d21bdfcec63058525e5d19684bd
Add onVideoSizeChangedListener to HTML5VideoView

onVideoSizeChangedListener handles the corresponding event
to update size/duration of a video if they are unknown.
It is to support Media Player implementations where video
size is not known until playback starts.

Change-Id: I4cf9f8bd07b132a0f1a9039d88385b9b83ffde37
net: customize memory cache size

Introduce system parameters to override default cache size.

Change-Id: I3b4425f46d803ef354c61185fe15b23707e8d3d9
webkit: Avoid calling getDuration() before MediaPlayer is prepared

Avoid calling MediaPlayer::getDuration() before MediaPlayer is
prepared because it may result in mediaplayer going into the error
state. When MediaPlayer is not prepared, set duration to 0
instead.

CRs-fixed: 353093

Change-Id: Ic3d017c368ac5f3cde5f1a3d194016010533283d
[webkit] Runtime enablement of WebGL

Hook up debug setting to enable/disable WebGL.

Change-Id: I48b2ada4926db99c67b39364dd3c2ccd145b7402
[webkit] Runtime check if WebGL is compiled and supported

Need to make sure WebGL has been compiled in before showing runtime
enablement settings in Labs menu. Requesting information from the native
side through JNI.

Change-Id: I19e8bbe971de47e36c49cf473a8cfab8d347905a
DO NOT MERGE Add API for file origin policy.

Bug: 6212665

Add hidden websettings api for configuring file origin policy.

Change-Id: I261ba6369fe606ca76f87c6a00d1168b44bcf1ab
webkit: Show correct HLS video aspect ratio in fullscreen mode

For HTTP live streaming video, video width and height may be unknown
during the time media is prepared resulting in incorrect aspect ratio
being displayed.

Listen for video size changed events and update the view layout when
video width and height become known so that video is displayed in the
correct aspect ratio in fullscreen mode.

CRs-fixed: 353131

Change-Id: Id3f608efb0f3c2d3386f2a8936b637913dbe7a2c