Sensor: Enable the motion accelerometer for screen orientation change

The screen orientation can be detected by the motion accelerometer
instead of generic accelerometer to save power.

Change-Id: Iaeb3e5958d2ef7cc33080d7091ed8a5462695c67

Conflicts:
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
Fixed a possible infinite loop in JsonReader#skipValue()

Bug: https://code.google.com/p/android/issues/detail?id=65846

Change-Id: Idaa0e75fc5612550c4b9ccb9afa5535ea5b189df
Live Volume Steps [1/2]

-Created by me(@Meticulus) for the almighty BeanStalk ROM!

-Volume steps changes are instant, no need to reboot!

PS2: Clean up
PS3: Rebase
PS4: include lvs: transitioned volume steps volume normalization from Commit 5331
PS5: Nope, we don't squash commits for no reason.
PS6: Rebase and correct whitespace

Change-Id: Ia821c7326f6ba8c9e35b4c0b4caa9c9fb5e060f2

Conflicts:
	media/java/android/media/AudioService.java
lvs: transitioned volume steps volume normalization.

-This calculates an equivalent volume ratio for the new
volume steps.

-example: Volume steps are set at 60. Volume is set at 5. That is
very low volume. Then volume steps are switched to 5. Now you
are instantly in a state were your volume steps are 5 and your
volume is 5. That's full volume! This fixes that issue.

-So it basically keeps the volume from jumping around while your
changing volume steps. It may be a little lower but should be
very close.

PS5: Back to single commit mode, no unneeded squashes here.
PS6: Fix tab
PS7: Rebase and whitespace

Change-Id: I5151938997cde9932ee492615dc9bf68c80ca895
Frameworks: fix volume steps commit

Change-Id: Id48fb8531d478b80bcddbc823850d64677d24ab3
Fixed retrieving non-initialized wallpaper information

When an attempt is made to retrieve wallpaper information such
as getWidthHint during user switching, the wallpaper may be
uninitialized and therefore throw NullPointerException.

Resolved by initializing wallpaper for current active user
if not yet initialized or returning null if applicable.

Change-Id: I1d3931379cbf4ea82cd25bc813898bbe4fb65a67
[1/2] Speed up booting on multicore devices.

1. Add multithreading support to Installer/installd.
2. Parallelize package scanning.
3. Parallelize boot dexopt.

Change-Id: Id42b2bf4a737f93f9ecd9b5819344adbb735f0fb

Conflicts:
	services/java/com/android/server/pm/PackageManagerService.java
Revert "BootMessage: show more info in boot dialog"

This reverts commit b3ed254bbea91d4b021e27671edf7f6827fd667e.

Conflicts:
	services/java/com/android/server/pm/PackageManagerService.java

Change-Id: I9a80e4311115b276d34dfe78dccbaf352526ca30
fix reboot on screenshot share

catch the thrown exception when an unassociated thread is used

Change-Id: Id93ce46524d0ca4df2c0ed20987f321d83cda8e1