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: I56687fb4aa28385eb57908a21c6ac29a48caee33
Make the lock screen camera widget configurable (1/2)

Change-Id: Ia349c39937a56ee53c2c8ec2441d71ad081572e3
Add touch feedback to the clear all recents button

5 minutes of Photoshop™.

Change-Id: Idf8c97cf08a192605208cbee6f2ae41e0798e8d1
Fix touch feedback and areas for status bar date & time actions

Occupy the entire height for 48dp touch targets and better touch
background appearance. Remove the redundant background and click action
from the containing layout.

Change-Id: If343e6eb429a7fef38a23c1c9a46c75a95e50ed6
SystemUI: NL translations

Change-Id: I850e4d41c1d671bbdbbabadc90a5f4ed53fefdda
framework/base: IT translations

Change-Id: I26ab7f41d8458e3caab9f8b823a9fb7df709be22
Frameworks: PT-BR Translations

Change-Id: Idd00c8ea03af64b19624bb331987f2ac08c595c8
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
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
Core: RU: revert some strings.xml changes

Apparently I'm an idiot.
Replacing "Yes/No" strings looked like a good idea,
but instead they started to pop in completely unrelated
places. Rather than fixing all AlertDialog parameters,
I think it's better to revert my changes there.
Also reverted some strings with replaced quotation marks.
I never saw these strings used in the UI, so this helps
keep the file "cleaner".

Change-Id: I7c4329298ed6c212d96efdd1c50dd176b492e4f3
Limit QC camera features to post-ICS HALs

ICS blobs don't support longshot, and have a different API/method enum
for histograms

Change-Id: I6704b9302344ae2ae6386312b68de669bb5c11f2
frameworks/base: TRDS 3.0 and new theme engine preparation (1/3)

For the one who do not know this feature see as reference
the first two versions here:

SlimRoms/frameworks_base@b330fde

SlimRoms/frameworks_base@3194015

we got now over a year now a lot experience how to handle the qualifier
fallback
as well how to theme it and how to handle other apps. Based on this
knowledge we
redid some parts of TRDS engine with following new features/additions
and fixes
to have now a final perfect working TRDS

- compared to the old versions where it was needed on some apps to
restart them
in background this is not needed any more. All is handled about the
internal
AOSP resource handling and on qualifier change the caches are cleared
and the apps get an onconfigurationchanged to restart the activity
like it is doing on orientation change eg
- inverted folder is now depreciated and the new folders are holodark
and hololight which allows on the one hand a dark theme (at least
how TRDS started) and a light based theme hololight
- This name change is mainly because of the new theme engine which
will come which uses this as base to add 2 external themes at the same
time and give the user the ability to switch between them. But this is
still in early stages and this commit is just the preparation for it
- Two new automodes are now integrated. User can enable the twilight
modus
which enables/disables holodark/hololight depending on the
daytime...means
on the evening it switches to holodark on normal day it is hololight.
The other automode is based on light conditions....means that if it is
dark outside it switches to holodark....if we have bright light
conditions
it switches immediatelly to hololight. Due of the resource cache
handling now
this happens immediatelly for the user and feels completly system
integrated
and happens without delay. A bit comparable to some navigation tool for
cars
which can switch automatically from dark to light and back
- currently the auto modes as well the manual mode switches between
holodark
and hololight. Due that we do not have currently anything hololight
themed
in the source hololight = stock theme. We will give the user the ability
later when done to choose between which modes the user want to switch
(stock/holodark/hololight). But this does not make sense at the moment.
As soon as we have done the light theme or theme engine (lets see what
comes first) we will open the ability to choose it. This is only a small
code change
- a lot small tweaks and fixes went as well into the new version

Whatever this commit as usual adds the support for it. The themeing is
done in the
other commits by kroz which is as well way more extended then on the
older versions

cheers

PatchSets:
- minor code cleanup

PatchSet5:
- use one value for auto modes

PatchSet6:
- kill resource caches on configuration change

PatchSet7:
- register settings observer lol

PatchSet8:
- fix not assigment of config mode change (typo lol)

PatchsSet 9 -11:
- playing around aosp qualifier is not that flexible then I thought
whatever back in most parts to original implementation handling

PatchSet 12:
- now no restarts of any application needed any more like it was on
4.3...yeaaah
- fix wrong shifting in native adapter
- fix wrong call of twilightmode
- disable debug
- cleanup

PatchSet 13:
- fix lightsensor

Patchset 14:
- no need currently to recreate the navbar we can do if a theme needs it

Patchset 16:
- synchronize on sending config change
- only send if system is ready
- fire first update when system is ready

-rebase
Align code
res/drawable: update drawable
Fix miss code
Fix  systemui bug