base: Check for homeAsUp status when collapse actionbar widget

mHomeLayout should be visible if one of DISPLAY_SHOW_HOME or DISPLAY_HOME_AS_UP are set.
collapseItemActionView only checks for DISPLAY_SHOW_HOME, so applications that only uses
DISPLAY_HOME_AS_UP and uses an expandable/collapsible widget (like SearchView) doesn't
properly restore the home layout.
One sample of this behaviour is the DeskClock app. The CitiesActivity doesn't show the homeasup
indicator after collapse the searchview.

aosp change-id: https://android-review.googlesource.com/#/c/71093/

Change-Id: I2f225138771da6bd6b2a468ad616b90c2c0a9d35
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
p2p: Display P2P peer MAC address if device name is empty.

Display MAC address of a P2P peer in an invitation prompt
message on receiving invitation request from the P2P peer
with empty device name.

Change-Id: Icabeb91d666437746eb5a733ec582849eb7295a5
CRs-Fixed: 506109
Make the lock screen camera widget configurable (1/2)

Change-Id: Ia349c39937a56ee53c2c8ec2441d71ad081572e3
Show confirmation for deleted screenshot.

Change-Id: I4a36cf06bf252e5e15fe08fbd054dc64a0a507ae
SystemUI: NL translations

Change-Id: I04681c3b81fcd866e9ddeade4ef0be0d12c90495
privacyguard: Share privacy package name between activity stacks

AOSP 4.4 now has a stack supervisor with differents activity stacks for home and focus activities.
Every ActivityStack instance has a ref to this supervisor. Just share the privacy guard package name
throught the supervisor.

Patchset 2: Fix formatting

Change-Id: I5dd75cfa7f5e8b568a4302fce98809ae307c6d52
JIRA: CYAN-2874
Issue: https://jira.cyanogenmod.org/browse/CYAN-2874
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Revert "Fix for Concurrency issue reported in  525529"

This reverts commit 7eb1fcb76989f11aaa9ca0a78e0361239ff5317d.

Change-Id: I37815b93bf2b25caff171888dc13788479a9c8c4
CRs-Fixed: 585504
Use highp precision for scaled coordination

If scaled coordination is closer to zero than what
the medium precision can store, distance becomes
zero and it causes divided by zero.

Change-Id: I8ee921dd1f57564a442e685266b12d95fc08e165
NetworkPolicy: Validate policy templates before updating

Ensure all the policies to be added are validated, otherwise
this service will throw IllegalArgumentException and cause
system crash when updating network template after receiving
ACTION_NETWORK_STATS_UPDATED.

Change-Id: I3faef0ac2a2fcea64ba5dde9c9256f6714280e2e
CRs-Fixed: 561490
WifiState: Don't aquire transitionwakelock in airplane mode

NetworkTransitionWakelock is for transition from Wifi to mobile.
It will cause device no sleep for 60s. There is no need to acquire
it in airplane mode.

Change-Id: I1487dc4787948d09e482f22e88d01768b54964da
Core/SystemUI: PL translations

Port from cm-10.2 + add missing translations

PS2: Fix whitespace

PS3: Ciche godziny -> Godziny ciszy

PS4(Core): Redesign and clean (it looks like default one now), translate missing strings

PS5: Fixing (thanks Piotr)

PS6: Buttons name will be in uppercase like in cm-10.2: https://github.com/CyanogenMod/android_frameworks_base/blob/cm-10.2/packages/SystemUI/res/values-pl/cm_strings.xml#L55

Change-Id: Idcebd37553014fa619daf6c50e46ad770864402c
Signed-off-by: jereksel <jereksel@gmail.com>
Merge "Make the lock screen camera widget configurable (1/2)" into cm-11.0
Merge "privacyguard: Share privacy package name between activity stacks" into cm-11.0
Merge "base: Check for homeAsUp status when collapse actionbar widget" into cm-11.0
FW_SystemUi: HU translation

Change-Id: Icb9aa20a8f06b7ac229ed1c977a802482bdfdfbb
FW_Core: HU translation

PS2: Correccting

Change-Id: I66c3de7cab88d6899189bf7781de2f61bc6f1940
Merge "SystemUI: NL translations" into cm-11.0
SystemUI: Allow theming battery via theme chooser

Change-Id: Iebea2dab0ed89baa14c0f18a4c8f487cdb8313a6
Forward port Status Bar interface (1/2)

Signal / Clock / Notification Count
Change-Id: Iecd4bb06b95b14888916331f5d36327f3206aeef

Port "Fix display of mobile status bar icon when using airplane mode"
Change-Id: Icb5b33008f97eaefd67bb4e5acd1e38bcf2dcb70

Forward port from cm-10.2, adjusted for 4.4

Change-Id: Iecd4bb06b95b14888916331f5d36327f3206aeef
Signed-off-by: Arnav Gosain <nolinuxnoparty@gmail.com>
Fix multi-user issues.

Change-Id: I44d190f60e87326ab3282c898d94ecc88778f2ab