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
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
BrowserManagement

Opensource changes corresponding to BrowserManagement feature
Change-Id: Icae49df023c51e9ee8ecc823ffd854dbe2e8edcd
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)
Browser sets up the min freq while scrolling

CRs-Fixed: 341058
(cherry picked from commit a89eef5f0183821d9730cc9db900b44ec1a8d4a2)

Change-Id: Iee9067113819fe2bfc28740b919f5cd44cc2a5bd
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
Revert "Skia API changes as a result of an update to the Skia library."

This reverts commit 889a3fa6ab9710104af60db5f73d69f253ddf254.
AudioManager: Handle KEYCODE_VOLUME_MUTE [#5]
Avoid divide-by-zero exception when printing process state

Change-Id: Ifa1c64ff6917c3a6f7d72a92862b48eec2540afd
Fix contact lookup with CLIR prefix
frameworks/base/httplive: Update meta data after seek
libstagefright: Support for seek in MPEGTS Extractor
MPEG2TS: Restrict direct access to parser from source
libstagefright: Fixes in MPEG2TSExtractor seek
TS_Seek: Fix hard exit case when bad TS packet is found

- Some TS clips with bad TS packet at end doesn't play at all and
  crash happens in ATS parser.
- There is hard check, which crashes the thread if packet fetch to
  ATS parser is not TS packet.
- Replace hard exit with graceful exit, return with error code
  that is handled (exit or continue) at the extractor level.

CRs-Fixed: 340773
(cherry picked from commit 23779e075831422758295758a51c836e9fe5376b)

Change-Id: Ifa9f1e758c72b72398da4a133aacfc0791463564
net: customize memory cache size

Introduce system parameters to override default cache size.

Change-Id: I3b4425f46d803ef354c61185fe15b23707e8d3d9