hf

Change-Id: I1d4078b4d6cf7cd3d7c77634275c47859bcda4e5
Merge branch 'test' into cna-pa-exp

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/NotificationPanel.java

Change-Id: Id5a1dc577eb6513da0eb0e9f22d9e4264fbfbec0
fix power widget layout
* Only do a cancel discovery if the device is discovering.
* explicitly close input and outputstream. This could prevent objects from being cleaned up before
  the next connect attempt.

Change-Id: I43edf58baccf56046abf79202739af31558ac098
LockscreenShortcuts : Fix minor bugs

Fixes :

      - Inability to have contacts/direct dials..etc on lockscreen
(http://goo.gl/BKEJs)
      - Multiple activities of same type on stack.
correct a few images
Remove ugly gradient
Change the thread priority

Change-Id: Ieece4851132ff85e36d10874991793cc4c0714ca
Postpone sending scroll message to webcore thread

Post a message to the UI thread instead, to send the
scroll message later.

Change-Id: Iff94af37e9070e63e0797195c7588343ab077bb3
ActionBar: Compute required items prior to optional items

When computing if a item should be shown in the action bar, required items need to be compute prior
to optional ones. Otherwise, in some cases (when the optional menu goes to the left of required
items then the algorithm could determine that optional has space to be shown and force the show of
required items, causing the required items to not be shown).
A concrete case is in the Email app. In the message_view_fragment_option.xml are defined 5 menus,
that when are all shown (xe: in Exchange mailbox account type) the bar is complete filled. But if
the overflow button is forced to be shown (the device has no permanent menu key) the overflow button
overlaps the older button, because space of 'ifRoom' items are wrong computed.

Discussion Change: http://review.cyanogenmod.com/#/c/22396/

+ aosp change https://android-review.googlesource.com/#/c/34700/
Prevent empty overflow popup when there are no overflow items. (jakewharton@gmail.com)

Change-Id: I6fc8e3e202d76f9704d7ec2383c7ee6f7b05ba76
Move voip/java/com/android/server/sip to framework2.jar

The method cap that neccessitated framework2.jar is getting quite close
to being full again. These classes can be moved safely and relieves some of
the pressure. Found by ninno_mx.
Fixed: Removed undesired changes, sorry.
Change-Id: I91c65d8efbd7fa68b77714f3892c9be184b4f3bf
Accurately display connectivity info in tablet status bar

Currently, if the connected network is something other than a Wi-Fi
network or a mobile network, the status bar popup would display
"No Internet Connection" which is misleading.

Patched wifiLabel (which is only used here anyway) to also allow
other connectivity (bluetooth, ethernet) to display correctly.

Before: http://imgur.com/YMB2C
After: http://imgur.com/kFt3Q

Change-Id: I2ac8d453e001c5ac14c0f2ebd97e1ef73551c37e
NotificationPowerWidget : Snap widgets

Snap widgets in place, rather than allowing partial widgets

Patchset 2 : Register only if necessary
Patchset 3 : New implementation (CustomView)
             Allow free scrolling, snap when stationary

Change-Id: Ie1db349a449a2770e4cfd491a7e7c356130e75a0
Add group mms threading (2/3)

Change-Id: Ia6cd4a395328c56791f10e153aca91976cd36155
NavBar Widgets (1 of 2)
Frameworks side of Widgets

Change-Id: Ib8e9cd526c7ebc5901fe433d7a3cf96fe0251a0d
Signed-off-by: Zaphod <mwilson@acesappraisal.com>

Conflicts:

	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
SystemUI: CustomNav bar for Tablets / TabletUI

Embeds the same NavBar object used for phones into the
Tablet status bar.  This will make it easier to extend functionality
to both types of devices in the future, since using same basic code set.

Patchsets:
1) Initial commit
2) General clean up. I left the stuff I commented out in so Mike
can see what I did so far.
3) Addresses a lot of sizing issues, lightsout/menu functionality, etc.
4) Left menu sizing derp
5) Moar tweaking for tablet menu buttons
6) even Moar tweaking for menu buttons (tablets & phones too)
7) Adds ability to change weights based on # of buttons used,
   useful for phones in "Hybrid" lets not waste space. Also
   adds the ablity to hide the compatablity mode button. (requires
   RC part.)
8) Add per button weight
9) Fix adjust weights on the fly when chagning the number of buttons.
10) Get rid of layout thats not needed and messes with navrings on
xhdpi when in tabletui.
11) adjust weight calculations & make them easier to read & change
12) Tweak the weights a bit
13) adjust NavBarGlow

    set bounds of glow to not overlap other views.
    While the default methodology worked fine for stock
    navbars with only 3 buttons, we now can have anywhere
    from 1 to 7.  In addition we have varying navbar widths
    due to Tablet & phone styles, etc.
    This keeps the glow within our bounds.

Change-Id: I591d3fae925ed5e9d983c98a108ded5aad67355b

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/system_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/system_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Resizable NavBar Widgets [1/2] WIP

Primarily this creates a longpress event on the widget
label to allow dragging up/down to resize the widget.
It also makes a lot of changes on how we store the widget size,
so a ROMControl change is needed as well.

Smooths out the resizing of widgets.
also provides a shortcut that can be used to toggle widgets.
Renamed the 'SystemUI' label to 'AOKP Actions' for shortcut picking

Change-Id: I753e988e86eef3707ab647383f28e880a81607f8
Signed-off-by: Zaphod <mwilson@acesappraisal.com>

Conflicts:

	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/CreateShortcut.java
	packages/SystemUI/src/com/android/systemui/NavbarToggle.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
Fix LTE Toggle Modes (Credit Xoomdev)