HDMI: changes to notify audio on hdmi connect.

- When DVI monitor is connected, audio service should not be notified
- remove the redundant changes to check HDCP during boot up
- On connect, check for HDCP/DVI mode and handle audio accordingly

Change-Id: I2af352570eddd4820a9d5ee232f4e2f351c0c524
CRs-fixed: 324931

Update HDMI Notification mechanism and minor cleanup

-- Update HDMI notification mechanism to be based on switch
node, /devices/virtual/switch/hdmi
-- Remove unused SurfaceComposerClient object.
-- Use path /sys/devices/virtual/graphics instead of symlink
/sys/class/graphics
-- Remove support for intents HDMI_CABLE_CONNECTED,
HDMI_CABLE_DISCONNECTED, HDMI_CONNECTED, HDMI_DISCONNECTED.
-- Add support in AudioPolicyManager to handle non HDMI modes.

CRs-fixed: 325697
(cherry picked from commit dd1ef209a42794415b1a06ff947028b26f028fa9)

Change-Id: I07dc58c700b8a2f4c7e086c688e277ce66b3e4c3

HDMIService: Minor fixes in the HDMI Service

- When the cable is connected, set the best mode for HDMI,
  no need to store the current best mode, as this can cause
  issues when a different TV is connected.
- start the HDMIDaemon from the Service, this will help ensure
  HDMI Mirroring works after framework reboot

CRs-fixed: 333941 333497
(cherry picked from commit eb4ade6e6908c49a2e624a71ff1265e14c0b4ec7)

Conflicts:

	services/java/com/android/server/HDMIService.java

Change-Id: Ic87d1703065a284878e7e9c8adac3afb6def56ec

HDMIService: getModeOrder to return order based on resolution

- getModeOrder function used to return order based on the resolution,
  modified that to be based on the best resolution
  This fixes the problem where the HDMI TV used to support 1080p@30Hz
  but still it was picking 1080p@24Hz
- mCurrentMode stores the current display mode on HDMI, reset it when
  the cable is disconnected

(cherry picked from commit 91cb5160ca2b4aaee7cc8c01f6d7162e9c55d67a)

Change-Id: I3efbe385603560330600eab3adeb0da1f1e102aa
input: Add option to toggle pointer icon when using stylus

 * The visible pointer icon when hovering or drawing with the stylus is
   quite annoying when trying to actually draw with it. Turn it off by
   default and add an option to turn it on.

Change-Id: I98b6e1ea929019ef12dbd4b2991c6c96c52cef5c
WeatherInfo : Catch NumberFormatException

Catch the exceptions incase of empty/invalid data.

Change-Id: I243a14ccbee53034dd39a1d79a6ab79eff4bd263
Merge "input: Add option to toggle pointer icon when using stylus" into ics
Merge "HDMI: changes to notify audio on hdmi connect." into ics
Add an option to change the device hostname (1/2).

This adds an option to modify the device hostname used
in ip resolution. This is useful when connecting to the
android device in a dynamic dhcp environment.

Change-Id: I44e4771f4415a32fe66867d4dd90f1ad138341e1
Merge "WeatherInfo : Catch NumberFormatException" into ics
QualcommSharedRIL: Fix signalstrength on pre-ICS radio libraries

Change-Id: Id59e04a36a892657deb2dd76d8455a7bad8956fe
Long-press menu key to search, configurable per device

Patch Set 3: Changed config value on which this depends to store the presence
             of all hardware 'face' keys on a device as a bit field.

Change-Id: I3a24b148e21197cfbc46683557291956e44b5feb
Allwinner A10 platform support

Change-Id: I1dd46afb02f8fecca113237033b8ba6d0a2012a6
add more hdmi stuff

Change-Id: I2d12084ba1d5b00445700a16469fba4112008da1
fix html5 video
Add safety check

Change-Id: I5e8c9546d43527c9bfe11114902b6c4a3c4e3e02