AppWindow: performance and memory improvements

- create views when showing the AppWindow and mNeedsUpdate is true
- don't recreate views with each app install/update/removal
- remove all views before creating a new instance

Change-Id: Iedf573b77787bacf88d6d0a4a2ff09568dfb43f0
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
NetStats: Don't update stats when screen is off

Also moved registering of broadcast receiver and settings
observer to onAttachedToWindow() and unregistering to
onDetachedFromWindow() to avoid these being leaked.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkStatsView.java

Change-Id: I077515a0550a8268b2ec4ed09b5bf0f42315733d
Merge "NetStats: Don't update stats when screen is off" into jb-mr2
Network stats: use number formating based on android code

Uses logic from Formatter.formatFileSize

Change-Id: I9008df0e90fbaf8d733cfd853dc1ef6160cf67f5
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Active Display: Add always show pocket mode. [1/2]

Currently pocket mode is either on or off and when no
notifications are available it doesn't turn on.  This
adds an option to allow active display to come on even
when no notifications are available, showing the time
and allowing the user to unlock the device.

PS2:
Add unlock icon to center of the ring.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java

Change-Id: I14043256e0202b497c0e9f3c64aa796c1b2becac
Fix build

This fixes building SystemUI after merging this: http://gerrit.aokp.co/#/c/13236/

Change-Id: I52ee26c09ff0fd8d6dab88dfb436794e9319d13d
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Volume toggle

Simple tile for volume.

Change-Id: Ia362ee9fe789862da4b57f2a4ab56bcd3a0c1c7d
Signed-off-by: kecinzer <kecinzer@gmail.com>
Updated simplified Chinese translations.

Change-Id: Ie7e8c8bf919a8030fe7584e8a2c30209581026d0
Merge "AppWindow: performance and memory improvements" into jb-mr2
PhoneStatusBar: fix alt signal

Change-Id: I41ea0456e21910de7820547375df5c08e2d5819f
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Merge "Updated simplified Chinese translations." into jb-mr2
Merge remote-tracking branch 'upstream/jb-mr2' into jb-mr2

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkStatsView.java
Fix merge for build
CM profiles (1/2) - credits to CM team and aicp
Remove whitespace
NetStats: Don't update stats when screen is off

Also moved registering of broadcast receiver and settings
observer to onAttachedToWindow() and unregistering to
onDetachedFromWindow() to avoid these being leaked.

Change-Id: Ia131a0db65c4c762b7f28493e812f9fb21358a27

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkStatsView.java
Merge branch 'jb-mr2' of https://github.com/IOKP/frameworks_base into jb-mr2

Conflicts:
	Android.mk
	core/res/res/values/strings.xml
Halo, Pie, Gestures, Identicons...
--- HALO 2 --- (1/2)

HALO is Androids one and only multitasking solution.
Halo was ported from drcmda <drcmda@gmail.com>
Features:
- Apps open up in floating state, apps underneath do not pause
- complete SystemUI & Core integration, making HALO feel like a native feature, source/SDK and UI/UX
- HALO has white and blacklists, which for now allow fine control for apps pinging through HALO
- multiple gestures to navigate HALO:
  - double-tap-move: move
  - tap-drag-left/right: task through notifications, finger up launches
  - tap-drag-up: dismiss notification
  - tap-drag-down: put HALO into semi-hidden state
  - swipe while HALO is hidden wakes it up
  - drag-to-X to remove HALO altogether
- comes with as few settings as possible, everything should be self explanatory and intutive,
  users must be informed about the double-tap gestures which is the only catch.