Merge tag 'android-4.2.2_r1' into HEAD

Android 4.2.2 release 1

Conflicts:
	core/java/android/os/Trace.java
	core/java/android/widget/Toast.java
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	media/java/android/media/AudioService.java
	packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
	packages/SystemUI/src/com/android/systemui/usb/StorageNotification.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetCarousel.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java
	services/java/com/android/server/NotificationManagerService.java
	tools/aapt/ResourceIdCache.cpp
	tools/aapt/ResourceIdCache.h

Change-Id: I51bd81ff324c692d8c3e463b032270f53fc691f1

Conflicts:
	core/res/res/drawable-xhdpi/dialog_bottom_holo_dark.9.png
	core/res/res/drawable-xhdpi/dialog_bottom_holo_light.9.png
	core/res/res/drawable-xhdpi/dialog_full_holo_dark.9.png
	core/res/res/drawable-xhdpi/dialog_full_holo_light.9.png
	core/res/res/drawable-xhdpi/dialog_middle_holo_dark.9.png
	core/res/res/drawable-xhdpi/dialog_middle_holo_light.9.png
	core/res/res/drawable-xhdpi/dialog_top_holo_dark.9.png
	core/res/res/drawable-xhdpi/dialog_top_holo_light.9.png
	docs/html/develop/index.jd
	media/java/android/media/AudioService.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetCarousel.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java
	services/java/com/android/server/power/DisplayPowerController.java
	services/java/com/android/server/power/ElectronBeam.java
Add method to PowerManager that allows querying the lowest possible
brightness.

Used by the auto-brightness adjustment to adjust the sliders.

Change-Id: Idb58fd86dee1a053fe858291be6c9b3169ac4247
Make system layout fill the window properly on expanded desktop mode

e.g. gap on the bottom of the lock screen
 gap on the right side of status bar on landscape mode

Change-Id: Ic8a6b748f94d7dcc883201579d199898713c90fd

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
No need for this intent

Change-Id: I3bb6b3c6b1c8820b9cb1ac262e9f1877816c0130
Framework:Power Widget Support (1/4) (Phone)

This commit adds the Power widget for phones.  All toggles should work
except for LTE (disabled for now)

Patch set 2  - Fixes Sync toggle
Patch set 3  - Removes WIP
Patch set 4  - Rebase
               Switch to MultiSelectListPreference

Patch set 5 - 16
- some fixes

Patch set 17
- whitespace cleanup
- added some license text
- remove background on toggles for future ports of slim stuff
- some small cosmetic things

Change-Id: I17669420d9db9a347af182fc398c6426e18534f4

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/layout/status_bar_expanded.xml
	packages/SystemUI/res/layout/status_bar_expanded_header.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Change-Id: I104ca847cf004792c4a1b4b0c3b6acace9355fa1

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/symbols.xml
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	telephony/java/com/android/internal/telephony/ITelephony.aidl
	telephony/java/com/android/internal/telephony/RILConstants.java
Fix mobile data power widget button

Completely reworked to track modile data enabling from outside.

Fix long press to mobile data settings

Patch Set2: cleaned pesky white spaces

Patchset 3: rebased

Change-Id: Ie9b2e12d7e2fff9c4b174c07f341fc1eff32d1ed
Frameworks part: Port Reboot button in power widgets

patch set 2: removed permissions specific to Network Type Button

patch set 3: added license text

Change-Id: Idbcebcc176df133e020ff7f10d78fb6111bf38e9
SystemUI: Use Settings.Global.getInt to read global settings

Change-Id: Idd15cf4b02b27da88a5ef77925c7b09206d46bba
SystemUI: Request CHANGE_NETWORK_MODE permission

com.android.phone.CHANGE_NETWORK_MODE permission is required for the
network toggle to function properly

also 4G permissions are required for us

Change-Id: I88a6f6705553fcb08bee5e8308e89395a4749e4f

Conflicts:
	packages/SystemUI/AndroidManifest.xml
Long press notification page switch button to toggle power widgets

Change-Id: I3a100acae96f52f413c3d82270b2598bf3a6d213

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Framework: Add Fast Charge widget - (1/2)

Change-Id: Iac753914624ce82e0ccd2a89dda66870923fa5f4
Update FastCharge widget

Change-Id: Icec19a391c394b6d22ec1e352f731ce2435d13b9
Show all widgets on lockscreen

Change-Id: I1aa21d56e8b4d8cd85f9cc4d45d58bfffc5111f4
Update swipe animation for powerwidget

Change-Id: I49709d3ce7fbacea9abe0123de52dec3f2a2b59d
Fix notification cutoff at slim dpi

Change-Id: I0dc2cc2a7748463c4392ba8d9145e3cc0d95edf2
Reworked Wifi AP Button in powerwidget to be like quick settings

This fixes issue 93 in redmine: WiFi is brought back to its previous
state after disabling WiFi AP.

Change-Id: I22047e17092b8706512ec52128b0405b1a4bf8a7
SystemUI: Added Notification Sound Toggle to PowerWidget (1/2)

The power widget this patch adds effectively toggles ONLY the notification sounds.
Typically when you silence or force-vibrate your phone, it does this to both ringer+notification sounds.
This behaviour is by design in Android since 2.2.

What this toggle does is switch between notification sound volume 0 and whatever you have set,
not "muting" it by Android standards (since you can't w/o also muting ringer), but still silencing it.

For people who want to be able to quickly silence notifications but still hear the ringer.

-
Patchset 2: Added mdhi graphics

Change-Id: I51e4e53ff0592dac5e57a10fc745578e7b69918e
Fix merge derp for powerwidget

Change-Id: Ia48010d0da6ffd0620531cb894a7980dd075cdb3
Revert "SystemUI: add statusbar slider preference"

This reverts commit 43123f6876e3003dde8a59986341bec32867341d.

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: I6122f330cea5cd30611488dcd30b83edbac1aaf6
Revert "re-implement statusbar brightness slider"

This reverts commit ada4f8f1c60b96b20897a8355e1030da887b7137.

Change-Id: I854cd2ef561c537d0bfa0e58ecadfecbbd9fb88d