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>
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
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_frameworks_base into CyanogenMod-cm-11.0

Conflicts:
	services/java/com/android/server/am/ActivityStack.java

	modified:   core/java/com/android/internal/widget/ActionBarView.java
	modified:   core/java/com/android/internal/widget/LockPatternUtils.java
	new file:   core/res/res/values-es-rXA/donottranslate-maps.xml
	modified:   core/res/res/values-it/cm_strings.xml
	new file:   core/res/res/values-lt/cm_strings.xml
	modified:   core/res/res/values-lt/strings.xml
	modified:   media/mca/filterpacks/java/android/filterpacks/imageproc/FisheyeFilter.java
	new file:   packages/InputDevices/res/values-lt/cm_strings.xml
	modified:   packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
	modified:   packages/SystemUI/AndroidManifest.xml
	new file:   packages/SystemUI/res/drawable-hdpi/ic_menu_delete.png
	new file:   packages/SystemUI/res/drawable-hdpi/ic_recents_clear_normal.png
	new file:   packages/SystemUI/res/drawable-hdpi/ic_recents_clear_pressed.png
	new file:   packages/SystemUI/res/drawable-mdpi/ic_menu_delete.png
	new file:   packages/SystemUI/res/drawable-mdpi/ic_recents_clear_normal.png
	new file:   packages/SystemUI/res/drawable-mdpi/ic_recents_clear_pressed.png
	new file:   packages/SystemUI/res/drawable-xhdpi/ic_menu_delete.png
	new file:   packages/SystemUI/res/drawable-xhdpi/ic_recents_clear_normal.png
	new file:   packages/SystemUI/res/drawable-xhdpi/ic_recents_clear_pressed.png
	new file:   packages/SystemUI/res/drawable-xxhdpi/ic_menu_delete.png
	new file:   packages/SystemUI/res/drawable-xxhdpi/ic_recents_clear_normal.png
	new file:   packages/SystemUI/res/drawable-xxhdpi/ic_recents_clear_pressed.png
	new file:   packages/SystemUI/res/drawable/ic_recents_clear.xml
	modified:   packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	modified:   packages/SystemUI/res/layout/status_bar_recent_panel.xml
	modified:   packages/SystemUI/res/values-es/cm_strings.xml
	modified:   packages/SystemUI/res/values-it/cm_strings.xml
	new file:   packages/SystemUI/res/values-lt/cm_strings.xml
	modified:   packages/SystemUI/res/values-nl/cm_strings.xml
	modified:   packages/SystemUI/res/values-pt/cm_strings.xml
	modified:   packages/SystemUI/res/values/cm_strings.xml
	new file:   packages/SystemUI/src/com/android/systemui/screenshot/DeleteScreenshot.java
	modified:   packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarTransitions.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
	modified:   services/java/com/android/server/am/ActivityManagerService.java
	modified:   services/java/com/android/server/am/ActivityStack.java
	modified:   services/java/com/android/server/am/ActivityStackSupervisor.java
	modified:   services/java/com/android/server/net/NetworkPolicyManagerService.java
	modified:   wifi/java/android/net/wifi/WifiStateMachine.java
Merge branch 'cm-11.0' of https://github.com/cr3pt/android_frameworks_base into cm-11.0
Merge "SystemUI: NL translations" into cm-11.0
Merge pull request #13 from CyanogenMod/cm-11.0

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
Merge "SystemUI: Allow theming battery via theme chooser" into cm-11.0
Revert "Fix a bootloop problem when /data/system/usagestats/usage-history.xml is empty. This often occurs after an incomplete reboot/shutdown or battery pull."

This reverts commit e290de5ecdd591d1978af1b0e9b3303696c849ed.

Change-Id: I5c30ef4560bed7c83243517ba8868069f2777613
Fix broken XML parsing idiom.

Code that expected a single top level element in an XML file
was doing something like :

while (type != START_TAG) { next(); }

This would loop forever when the XML being parsed was empty,
where each call to XmlPullParser.next() would return END_DOCUMENT.

bug: https://code.google.com/p/android/issues/detail?id=64173
Change-Id: I7543203e976a8999ae471a6c2d629249a87011bb
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_frameworks_base into CyanogenMod-cm-11.0

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

	modified:   packages/SystemUI/res/values/arrays.xml
	modified:   packages/SystemUI/res/values/colors.xml
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java