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>
Frameworks: PT-BR Translations

Change-Id: Idd00c8ea03af64b19624bb331987f2ac08c595c8
Frameworks: PT-BR Translations

Change-Id: I56687fb4aa28385eb57908a21c6ac29a48caee33
SystemUI: PT-BR Translations

Change-Id: I401fc15e68ec393be917183dbbb301e179a6daf6
KeyGuard: PT-BR Translations

Change-Id: I0349a0b2500dfa743f0a6c8b1d027655868d6ce7
SystemUI: Add double tap to sleep gesture

Change-Id: I4c54718e8ec8774677d13917b3a7ffa3b4b18cb5
Fix charging indication.

This commit fixes a number of issues in the new battery drawing code:
- Use the BatteryTracker instances consistently
- Don't indicate charging (by displaying the bolt or the circle
  animation) if the device is connected to a charger, but not actually
  charging, e.g. because of the charger not providing a sufficient
  amount of current.
- Fix some style issues (variable naming)

Change-Id: I957c8c525310170a3d4480047fbf6e92533c0296
Navbar: Fix MDPI & HDPI landscape layout

Before: http://i.imgur.com/89SmFbX.png
After: http://i.imgur.com/UbuAggD.png

Change-Id: I6623cb97881313886de39a67baa98f7bd4b0696a
BluetoothManagerService: fix enabling/disabling BT from Quictsettings under second user,

Change-Id: I8173559b2c734968ef4a8d86fddaa3a73d5c2b1e
Frameworks: Update DE translation

Change-Id: Ie3affdef685844aa7132de03fc3b94f8318b7eda
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
Base_SystemUI: CA translations

Change-Id: I9698c88862fe090d8019d8ced8e792e80c1c2205
base: NL translations

Change-Id: I12f577f751c23a9dc1837aa4603c12e58aadc558
Hey, why we need this?

Change-Id: I5f96089a618adc415e14d6c6b22583c6e6300801
Signed-off-by: Kevin Liu <airk908@gmail.com>
Merge "Base_SystemUI: CA translations" into cm-11.0
Core & SystemUI: RU translation

Translations imported from CM10.2 and revised.
Also includes plurals' fix, for a greater justice.

Change-Id: I3d3e52b1bd76b0bb467e6e15b38b5940f6eb6a09
frameworks_base: ES translations

- core
- packages/InputDevices
- packages/SystemUI

Change-Id: I17385b430078571e16aa73a00f01503070ebc419
Merge "base: NL translations" into cm-11.0
Make the lock screen camera widget configurable (1/2)

Change-Id: Ia349c39937a56ee53c2c8ec2441d71ad081572e3
Remove the navigation camera icon in keyguard if disabled by DPM

The logic here is incorrect: the camera shortcut is/should be accessible
even with a secure lock screen. As a result, a device with the lock
screen camera disabled by DPM and an insecure lock screen would still
display the unfunctional shortcut.

Change-Id: If1d172932c6c2af596c38e623521c992fdf95402