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>
LockScreen: allow long-press actions from hardware keys (1/2) - Port from CM

Allow following actions with button long-presses on lockscreen:
* toggle flashlight (if available)
* play/pause/next/previous track selection
* toggle silent mode

Allow customizing of back, menu, and home buttons. Search
button events are completely ignored on the lockscreen.

Auto-detect hardware keys, only show appropriate menu
options based on the actual hardware keys available on the
device (or completely hide if there are no hardware keys).

Based largely on Danny Baumann's work from gingerbread.

Change-Id: I4c4aad62677b610934a0b621b5518f7c57e44a53

Conflicts:

	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/LockScreen.java
Add group mms threading (2/3)

Change-Id: Ia6cd4a395328c56791f10e153aca91976cd36155
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 - AOKP

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

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
WeatherPanel: Add toast and sim lock fix.

Ok I can not test this since I don't own any devices with a sim card
but, it looks like I placed the listener in a very odd place that
only gets called if the sim state is unlocked, this i'm guessing here
since I have no real data or report besides reboot, was causing a
crash since the listener could be found when it came to initialize.

note this is a review site, not a bug tracker, I HIGHLY recommend
you sim card peeps try this and give feed back because this will get merged
quickly since its just a toast message that work as intended and this fix
is just a bonus..

added collapse after click weather refresh.

added weather, calendar, and custom lockscreen background stuffs...
I cant check the layout since I cnt lock my sim, so you guys might have to
play with these to make verything look right.

Change-Id: I487c63a341fb1f121187ef3224b88afabdffba3d
Merge branch 'base-tmpbranch' into jb-aokp-ice
S

Change-Id: Idda19e567426ea75ab16f09c90df930c04fbd55d
Revert "Transparent Lockscreen"

This reverts commit e5e807066f6777ea9ae4a0599e46574e2ba5d90b.
Revert "Adding test cases for getInstalledPackages"

This reverts commit 6302fceb75bc36701c7f0c5c56f1f64c9d89b0c8.
Restore correct volumes when headset is plugged

The correct volume levels for <device>_speaker and
<device>_headset are not restored when a headset device
is plugged in or out
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
Provide haptic feedback on long pressing keys in lockscreen.

Change-Id: I01c759c0944939aded669ac474cea646e1f51408
Merge branch 'tmp' into jb-aokp-ice