BootReceiver: Use correct context for SystemWriteManager
Auto adjust HDMI output to best available on boot

Signed-off-by: Brandon McAnsh <brandonm@matricom.net>

Conflicts:
	packages/SystemUI/src/com/android/systemui/BootReceiver.java
Add HDMIManager APIs

Signed-off-by: Brandon McAnsh <brandonm@matricom.net>
SystemUI: Use HDMIManager APIs now

Signed-off-by: Brandon McAnsh <brandonm@matricom.net>

Conflicts:
	packages/SystemUI/src/com/android/systemui/BootReceiver.java
HdmiManager: Expose getPosition()

Signed-off-by: Brandon McAnsh <brandonm@matricom.net>
HdmiManager: Expose sysfs paths and props

Signed-off-by: Brandon McAnsh <brandonm@matricom.net>
Create Settings.db values for HDMI settings values

Signed-off-by: Brandon McAnsh <brandonm@matricom.net>
HdmiManager: hdmiPlugged() changes

* Introduce Settings.Secure values for user selected resolution and auto adjust of resolution
* If auto adjust is enabled, set output mode with best possible resolution
* If auto adjust is disabled, try to set the user selected resolution from Settings/Wizard and
      fall back to 720p if that fails

Signed-off-by: Brandon McAnsh <brandonm@matricom.net>