Add group mms threading (2/3)

Change-Id: Ia6cd4a395328c56791f10e153aca91976cd36155
SystemUI: Fix NavRing inflate

NavRing is set to inflate on Home/Back/recents buttons by
default, since this is stock layout.
With custom Navbar, different button layouts can present conditions
where the NavRing either only inflates in limited areas (swipes) or not
at all (if no home/recents/back button was used.  This little
patch sets the entire NavBar as the delegate area so that  regardless
of the the buttons assigned, NavRing will still respond

Change-Id: I67e22bf6c02264d87a1b95cf3b51a8eee4c72453
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
SystemUI - fix Kill App

In rare circumstances, the kill App code of extensible key button
could kill the last app on the stack (the launcher) and cause a hot
reboot.  This keeps the default launcher from being killed and thus
preventing the reboot.

I used some of the code found in our commit here:
http://gerrit.sudoservers.com:8080/#/c/3090/6

Change-Id: I78adebe3147324333191790b91c703ff20c6f05d
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Weather panel actions and clock/date derp

Clock and date short actions were depended on longclick nothing
fixed that...

Current set up is lockscreen weather can only update weather

Moved actions to phonestatusbar so we can apply new actions to the whole
panel and not just the conditions view.

3 options for both long click and short click
1) nothing
2) update weather
3) Custom app

Still need to clean up the old weather panel

Would like to maybe add vibrate or a toast to let user know the
panel is updating.

Change-Id: Ic33df820a74ee2cec54b67ba407f6b5d62020fd0
WeatherPanel: Add options to hide weather panel

3 options
1) always on
2) Hide with toggles
3) always opposite toggles

animations are fun. :-)

PS2: weathergoneonboot should be 2.

PS3: put panel check back in update settings in case user turns panel off.

PS4: rebased off the new weather panel actions.

PS5: missing bracket

Change-Id: I9c1a88a7ebc5a05a5baa927576d3b74f8e1d23c1
Merge "Weather panel actions and clock/date derp" into jb
Merge "WeatherPanel: Add options to hide weather panel" into jb
Notification: add option to show connected wifi network (1/2)

This will add an option to RC to show the current network name
beside the carrier.

PS2: fix layout
PS3: add TextChangedListener to correctly show/hide the wifi label
PS4: use custom carrier for wifi only if we don't show the wifi label

Change-Id: Ic77104a04b9db882a12177d42ed72b707ef2fd91
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Merge "Add group mms threading (2/3)" into jb
Possible NPE in ChooseAccountTypeActivity

Change-Id: I8d36717cc9b74f62ac90eae22225424f57fb9d05
Possible NPE in ActivityManagerService

Change-Id: Ib3effa9b2dc371b0678b9cf645d4c927684c01d1
Possible NPE in RuimRecords

Change-Id: I3ac7754ce18b540325e09e0bdcfff926239c8240
Copy-Paste bug in IconUtilities

Change-Id: I9c48d9e4682e1322d22b13be02d9214755685274
Merge remote-tracking branch 'aokp/jb' into aokpcm10

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Suppress String resources build warnings

warnings suppressed are:
aapt: warning: **** string '%s' has no default or required localization for
aapt: warning: string '%s' has no default translation in

Patch Set 2: move ifdef and only suppress warnings for packages that
             define NO_DEFAULT_TRANSLATION_WARNINGS and/or
             NO_LOCALIZATION_WARNING

Patch Set 3: by default do not show warnings unless
             SHOW_DEFAULT_TRANSLATION_WARNINGS and/or
             SHOW_LOCALIZATION_WARNINGS

Change-Id: I50ef2a623959a1cc53053b446328df8e34cc99e8
Merge "Notification: add option to show connected wifi network (1/2)" into jb
Merge "Suppress String resources build warnings" into jb
Framework: Fixes mms automatic retrieval (2/2)

Currently, in the framework, mobile data connections using APN's can only be
made when the user has explicitly switched on mobile data connections.
This patch allows to automatically open connections to APN_TYPE_MMS mobile
networks. It only opens connections in roaming if the user has selected the
option in Settings.

This allows for the automatically download of mms.

Part 1 in Ibfcbcec8

Patchset 1: Initial patch
Patchset 2: Moved logic to a canSetupData(ApnContext) method
Patchset 3: Checks for system-wide properties if can retrieve mms automatically

Change-Id: I824c7b48d8d534f372e9eccb05fd7e4db226be92
DevicePolicy: Fix lockNow() failing to turn off screen

Pawit Pornkitprasan's patch from ICS.  This issue affects JB as it did ICS.
Original patch: http://review.cyanogenmod.com/#/c/14845/

---
A fix introduced in 93c518e4f8abd98f87cda1712b30a5a86cfa60dd
causes lockNow() to sometimes (most of the time) fail to turn
off the screen. The screen will turn off, but then immediately turn
on showing the lock screen.

This is caused by getWindowManager().lockNow() call which calls the
method to lock the screen, which the PowerManager service also
call in parallel, leading to a race condition.

The fix is to only call getWindowManager().lockNow() if the screen
is not on.
Default device volumes not initialised

After fresh rom install default device volumes are not initialised
and therefore muted.

Only after manually changing a device volume it can be used.
IMHO the check for AudioSystem.DEVICE_OUT_DEFAULT here is not correct
since it will not init mIndex and mLastAudibleIndex collections.

Maybe there is a better way to fix this