LegacyUSB: Add support for legacy USB implementations

Rebased for JB 4.2

 This is the 2nd commit message:

LegacyUSB: add overlay for UMS lun and use existence of lun to enable legacy USB

Ported to JB 4.2

 This is the 2nd commit message:

UsbService: LegacyUSB initialize mDeviceManager sooner

 This is the 2nd commit message:

LegacyUsb: fix broadcasts

W/ContextImpl(  424): Calling a method in the system process without a qualified user:

Change-Id: Ibe718dd8e1a3064e5fe289ffd2232522245138ac
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
Fixed aapt warnings

Change-Id: I35389697266b3ec59a38b4142a8983d0a8cc31ac
PackageManager: allow forcing pre-dexopt on eng builds

prop: debug.dalvik.force.dexopt=true

Change-Id: I2bdfaa307572b9bd6b2bebc35c18dc30974aa024
Set landscape orientation prop

Set sys.orientation.landscape to 1 when in landscape and to 0 when
in portrait orientation for devices that have rotating capacitive
buttons.

forward ported and adapted from ics, author unknown.

Change-Id: Iada991dec32417e69e331157e52bb77b24cd5662
Add framework definition to include Torch

Change-Id: I21de929089b06e5022f90c1fab6228a543102a19
power: Add CPU boosting interface

 * Boosts CPU using Power HAL for the given duration.
 * Duration is given in microseconds.
 * Power HAL must implement POWER_HINT_CPU_BOOST.

Change-Id: I11711b1fc960654a5d461246a228f3af308a43ab
gps: Add support for Qualcomm GPS hardware

 * This ABI is changed, but we aren't using the new features in MR1.
 * Add a little translation for the changed fields and methods.

Change-Id: Ieecc2235b42f64fc69d4651855f4e9edfe7d738d
lights: Add framework support for additional lights

Change-Id: I4d12ee16e11ab584b102b7114ba3647336efc988
Notification sound-to-vibration conversion toggle

Allows to change the new feature of AOSP 4.2, where all notification are
changed to vibrations on vibrate mode. Instead, allow the old behaviour
to silence sound notifications and to only play vibrations if desired.

Alle credits go to romanbb from AOKP, I just ported it.
Original AOKP-Commit:
https://github.com/AOKP/frameworks_base/commit/c1b2bb9b5d0c33e790973841bb2acaa5ea5d51fe

Adapted to evervolv code by Dorian Snyder

Change-Id: Id27dd2975d3383f6d7395a0ee995d7832e87ca66
Signed-off-by: Dorian Snyder <dastin1015@gmail.com>
Wimax: Squashed commit of the following:

Port WimaxHelper and (the toggle) WimaxButton from CM7.

Both WimaxHelper and WimaxButton are updated to support Samsung's
(crespo4g, epicmtd) Wimax4GManager proprietary class, whose API has been
somewhat-significantly changed in ICS.  Support for HTC's (supersonic,
speedy) WimaxController is retained in WimaxHelper, although untested.

Note that WimaxManagerConstants was previously misdocumented, confabulating
the lookup key EXTRA_4G_STATE ("4g_state") with EXTRA_WIMAX_STATUS
("wimax_status"), which no longer exists.  This is also fixed.

SQN: WiMAX: add support for Sequans WiMAX devices

issue: 4G icon does not display when connected to wimax

Change-Id: If199c9251a7abd679b048b5aba3f601b4bf9047e
Samsung STK support

Change-Id: I08d169bc466df290fca838b09f6b0fbea2ac82a8
core and telephony: Additional HSPAP support

Change-Id: I5e921d2308d873678d6ef67a91cff50d383a176b
add bools to overlay for Samsung CDMA SMS decoding hacks

ported from CM7/9/10

required by : http://review.cyanogenmod.org/#/c/26918/

Change-Id: I28093cdb8770f98b94cedbff63e6121c798cf9af
telephony: set additional audioparameters for incall audio (1/2)

Change-Id: Icbf02a80f170559ad4a5d160ed254cbe81704df6
TelephonyProperties: Alpha ID fix for OPEN_CHANNEL and other p-commands (1/2)

p-cmds that support the below mentioned scenarios:
- SETUP CALL
- OPEN CHANNEL
- SEND DTMF
- SEND SMS
- SEND SS
- SEND USSD
- LAUNCH BROWSER
- PLAY TONE
- SELECT ITEM

Senarios handled :
- NO ALPHA ID : Introduce a new configurable sys prop
  "persist.atel.noalpha.usrcnf".
   --  Allow display of default UI confirmation if prop is set to true
   --  No UI confirmation to be show if prop is set to false
- NULL ALPHA ID (len = 0 ) :
   -- NO UI confirmation to be displayed

Cherry-picked from CAF commit 5ea0d64186ca08abc0857aae1f83de969393be3b
Without this SimToolkit will pop up asking for user response instead
of recieveing response from framework.

Change-Id: I012707285ee3a93119c2e2956ec599d631db10d5
Signed-off-by: dhacker29 <davidhackerdvm@gmail.com>
Phone: Sprint MWI Quirk: Phantom message wait indicator workaround (2/2)
NotificationManagerService: Fix notification led bug (Part 1/2)

We can assume that if the user turned the screen off while there was
still an active notification then they wanted to keep the notification
for later. In this case we shouldn't flash the notification light.

The problem for some special notifications (such as missed calls)
is that the screen is automatically turned on, and then when it is
turned back off the led does not get enabled. For these notifications
we use a flag to force the notification light even if the screen was
turned off.

 This is the 2nd commit message:

fw: hide FLAG_FORCE_LED_SCREEN_OFF

 This is the 3rd commit message:

fw: Fix notification service

Change-Id: I3eeabc3b63b44bc92ae7ce5d6253e312e6510d45
framework: packageinstaller :fix logical error in size calculation

fix logical error in available size calculation.

Change-Id: Ic6ce312cf1c146030a20187fcb27b24fbe4c321a
Telephony: fix typo

Change-Id: Ic13235744fca561cff4d49ae5c799420c30a3840