sensors: Add dummy light sensor

Some devices have a sysfs toggle for the lightsensor instead of
passing the LUX values for userspace processing; for those,
use BOARD_SYSFS_LIGHT_SENSOR:=<sysfs path>

This is necessary for the rest of userspace to recognize its existence
and toggle it for auto-brightness. It doesn't generate actual light
values, though; all backlight adjustments are made in-kernel.

Change-Id: I0e546b4740720bd34d1e1d85a96b295fcc697106
Merge "sensors: Add dummy light sensor" into jellybean
Triggering EarlySuspend based on BackLight brightness

EarlySuspend is triggered currently based on just timeout. Due to this,
backlight brightness is not coming down to zero.

Change-Id: If89ec6650308109630dbb7ee1be0b96df4ed3534
CRs-Fixed: 381087

Allowing display turning off animation before Early suspend.

This change passes display turning off information to
animation call so that display off animation can be played
before early suspend call.
Reverted two and three changes in the below list with this patch.
Changes introduced in previous patch were:
1.Send early suspend call after display baclklight off
2.All animations off once display goes to dim.
3.Removed duration to turn off screen as i don't see this in ICS.

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

Hook up debug setting to enable/disable WebGL.

Change-Id: I46790e61471a76eb5a8d8ff552022e12c3782204
net: customize memory cache size

Change-Id: I2b7cc83707a567676550be2639095c5bb28dc6dc
webkit: Multimedia feature port from ICS

- Multi-context HTML5 video support
- Smooth inline to fullscreen video transition
- Support for autoplay, muted, loop, preload attributes
- Support for web pages with more than one audio element
- Support for HTTP live streaming

Change-Id: I82b01295da4663437d5c35eb45d145b243ecc9f1

webkit: HTML5 video user experience and stability fixes

- Fix HTML5 video unable to resume from navigation history
- Fix occasional crash when reloading page from history
- Show last decoded frame of streaming video when buffering
- Fix incorrect fullscreen video position during orientation change
- Replace HTML5VideoView resetted state with released state
- Remove unneeded videoLayerId in HTML5VideoView
- Resume from last played position after video suspend
- Call MediaController::show() during HTML5VideoView play and pause
  to update fullscreen MediaController state

Change-Id: I82f1255225b2ee6cc95f70e40017d562e5e635c6

webkit: Fix black screen shown during webkit exitFullscreen

Notify WebChromeClient to hide custom view during exit fullscreen.

CRs-fixed: 387484

Change-Id: If67cc000991d9fa0696692ce3982e0a04499e343
Merge remote-tracking branch 'cm/jellybean' into jb-dev
Support GSM AT commands for SMS over bluetooth (1/2)

Modifications required to support the older GSM "AT+" commands for SMS over
the bluetooth transport for use with car radios, etc. This must piggy back
on the existing handsfree code as the spec uses that channel for the commands.
(2 parts: frameworks/base and packages/apps/Phone)

frameworks/base:
Additions to JNI and supporting framework code to allow sending of individual
characters and to receive the PDU stream - neither of which are CR terminated.

IccSmsInterfaceManager.java requires a reversion in sendText() to use
enforceCallingOrSelfPermission() instead of enforceCallingPermission().  This
is apparently the only way Phone.apk can actually send an SMS.  (ICS used the
OrSelf variation while JB changed to use the stricter version.)

Change-Id: Icff0d2c55170e9c47302b21ce3f15ce863c8c756
Signed-off-by: Gary Dezern <garyd9@gmail.com>
frameworks/base: IPV6 tethering support

Added two APIs addUpstreamV6Interface and removeUpstreamV6Interface, required
to pass the interfaces to use to the Router Advertisement Proxy

Change-Id: I28985de9339f79984bad0e2d91112199f64c6dc0
Adds ability to answer call with hardware HOME button (preparation to winter time)

Change-Id: I5d10da25360067dd443ffc83ec408e0b3001ad6b
LockscreenShortcuts : Minor code cleanup

- Reuse pre-existing launchActivity()
  - Now uses correct start flags
- Add check for secure lockscreen and act accordingly.

Change-Id: I6c2c3e1c87239267601d78eb38778d0388f4a41c
NavigationBar : Customization

Allows user to customize navigation bar.

Features :
 - Choose from 1-6 # of buttons
 - Re-arrange / assign buttons

Patchset 1  : Initial commit (No support for Nexus 7)
Patchset 2  : Same as patchset 1
Patchset 3  : Update recentPanel on configurationChange
Patchset 4  : Rebase
Patchset 5  : Add n7 support
Patchset 6  : Fix n7 layout issues
Patchset 7  : Theme change fixes (Update referenced resources on demand)
              Update a few deprecated api calls
Patchset 8  : Disable google now ring in edit mode
Patchset 9  : Fix n7 lowLight alignment issues
Patchset 10 : Fix ordering/button disappearing issues
Patchset 11 : Rework orientation logic (Fixes the small back button issue)
Patch Set 12: Rebase

Change-Id: Idc9f5f401f15d207504e49de47666bb5510a06ca
Navigation Bar: Ability to enable on every device 1/2

This adds a new Menu item Settings -> System -> Navigation Bar

Patch Set 5 : Just a rebase
Patch Set 6: Rebase
Patch Set 8: Rebase

Change-Id: I23a508fa3268e63fbbc9a8305d011db3ca7722a0
Framework: Option to toggle locking automatically when a call ends (1/2)

When a call ends while the screen is off the phone is automatically locked. This commit adds an option to disable this behavior.

Navigate to Settings->Lock Screen->Screen Security and untick the option Lock when call ends under the additional options section.

Commit includes option in english and translation to portuguese.

Change-Id: I94aa4a5c286d8a2bead5a7c225798d4a2c3e3ef9
SystemUI: Clock - right/center/off (Part 1 of 2)

Allow for clock to be placed to the right/centered/off

Ported from AOKP clock mod by Adam Fisch
http://gerrit.sudoservers.com/#/c/1963/

Change-Id: Ia06708f4ba7629d76d6625b87b22cca999d01e1b
Signed-off-by: Desterly <d3s7royer@gmail.com>
Implement resolving of icon attributes to resIds in AlertController

Platform code using AlertController directly currently has
no way to set the correct theme-specific dialog icon in a
generic way. This adds code to handle such usage.

Change-Id: I48beafa1183e4edf6d5378b3985a7f9be5fcda8b
services: Fix tethering (softap) startup

The interface must be started after firmware reload. If it's not
started, the driver is unable to configure it.

Change-Id: I18b255caf961d23c0f7d4d29dfef040761536c2e
Lockscreen: Move weather request into thread

Change-Id: I938d2d734f7e584af42f5b71c68771305ba7006a
Lockscreen: Add clock alignment (1/2)

Screenshots:
- Left: https://dl.dropbox.com/u/4806199/Screenshot_2012-09-08-20-24-30.png
- Center: https://dl.dropbox.com/u/4806199/Screenshot_2012-09-08-20-24-15.png
- Right: https://dl.dropbox.com/u/4806199/Screenshot_2012-09-08-20-24-23.png

* Portrait only!

Patch-set 2:
    * Fixed boot loop when using security settings
    * Support for sw600dp

Patch-set 3:
    * Update sw600dp

Change-Id: I41aeea50e95b0655c2bc90b56ee506e7baa470e2