frameworks/base: support devices with SoftAp that don't require firmware reload

Partial forward port from ICS.
Original Change-Id: If2db6e8ce675c3214ce645231c7a354f41ea0cc6

Change-Id: Iacb2498ec0f567a0a7c4e0dbf9127b70f09223bd

Conflicts:

	core/res/res/values/public.xml
	services/java/com/android/server/NetworkManagementService.java
SystemUI: Avoid "phantom" status bar collapsing

There is one specific case where the status bar may collapse
for no aparent reason: When the last notification is removed.

If Quick Settings panel is showing while such a notification
is removed, the status bar WILL collapse -- and the user may
be left wondering why, because the notification that was just
removed isn't visible in that case.

A way to reproduce this behaviour follows:
  1) Settings -> System -> Quick Settings Panel -> uncheck
     "Auto close panel"
  2) Dismiss all notifications, even the sticky ones.
  3) Open the Quick Settings Panel and tap the apropriate
     tile to light the Torch
  4) Tap the tile again, to extinguish the Torch.

As you can see, the Quick Settings Panel collapses. This
happens because Torch puts up a notification, when lit and
removes it, just after it's turned off.

This will happen to whatever notification that hides itself,
e.g. a GMail notification, which vanishes when you read the
e-mail on another device. This too will trigger this issue.

-----

This patch prevents the bar from collapsing, as consequence
of removing the last notification, when Quick Settings is
showing.

Change-Id: I8c7c015c836810a465268b25b90c9166c4485a9f
Bugfix : Quick pulldown sometimes flips when it should not

When your Quick Settings Panel is set to

Quick pulldown : right

Sometimes (very intermittently) the tray flips (to Quick Settings) as you pull it down from the right side.

This is happening because the pull down happened so fast you can see the top 0-10 pixels of the tray,
and because it was showing the notifications, not the Quick Settiings

However the user expects the tray not to flip, but to just be on the Quck Settings.

The new code simply checks to see that the Event was a pull down event and that the event started in the top status bar.
If this is the case, then the quick panel is swapped to (without flip)

Special Thanks to my daughter Jenny fo painstakingly reproducing this bug.

Change-Id: I8fdbedb1aa6d4fd672bd4cb58b7c99557469ab62

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
hardware rendering for statusbarmanager and pie

Change-Id: I81dc4def0dffd9b494c52bb3dbc43f400d441f94
PIE: option for Pie to maintain its position, disregarding orientation changes (useful for gaming)

Change-Id: I2bde8ee6f6fdff602a1241d4da7fd88ed3216477

Conflicts:

	core/java/android/provider/Settings.java
allow widgets to minimize in extended desktop

Change-Id: I666f61644386ff10631185324f445a750571b104
derp

Change-Id: I83441eb7dbd8daedde5bdf4247d4b5445a8886c0
PIE: narrow down inner arcs for even gaps

Change-Id: I92122efa1e2571b5f4efc84bbb9833987846dbd0

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/view/PieMenu.java
Revert "Bugfix : Quick pulldown sometimes flips when it should not"

This reverts commit c5e8dca7f11d3c085dd1e98692fcc21f1bcc0f6f.
Derp
another one
Revert "SystemUI: Avoid "phantom" status bar collapsing"

This reverts commit efa6540cd34b963e1c76d7cbd03daf3537acb794.
Profiles: add PROFILES_STATE_CHANGED_ACTION broadcast intent
Make the colors themable instead of hard-coded (Seems broken too)

One reason that we don't have Per-App-Color, so we used our theme chooser colors. Someone will work it out to work as a customizable color later, as it's not gonna be me as i'm busy.

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/view/PieMenu.java
	packages/SystemUI/src/com/android/systemui/statusbar/view/PieStatusPanel.java
The gay way to make Pie themeable via Theme Chooser

- Bring a simple way to get colors off ColorPickerPreference?

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/view/PieMenu.java
Big Pie update. Added PIE Colors, new dynamics and chevron! (1/2)

Added in combo with the previous commit
SystemUI: transparency control overhaul

Allow more customization. TransparencyManager's responsibility
is to apply the values it is being fed from Settings.System set by
ROMControl.

Tablets do not use transparency currently, but it shouldn't throw
any errors.

Change-Id: I11c1578938e337285d99e9fa1fbbd537a4ee43ec
Signed-off-by: Roman Birg <romanbirg@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
Revert "SystemUI: transparency control overhaul"

This reverts commit 28b7b8b5310f766b5e9cd0b2638ac7d4541ee088.
transparent statusbar

Currently just uses the same logic/values as the nav bar. We may want to separate those out

  Patch Set 9: Fix whitespace before merge

Change-Id: I6188ebd98684c8775b0447b4e6a1f09ec1a78887
Signed-off-by: Roman Birg <romanbirg@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Revert "transparent statusbar"

This reverts commit 31ba4cffd371540b287a6732c903db0ca383e890.