Hang off call by power button while screen is on

Enable power button end call and screen is off.  User use power button
to turn on screen will end call.  Should turn on screen and not end call

Change-Id: Idf34f7724dbf1796205332c5c7ef663102f8a30c
Signed-off-by: shower <shower929@gmail.com>
Prevent Lockscreen album art from activating FLAG_KEEP_SCREEN_ON

This is a small fix to the showWallpaper method, in which a power
consumption problem has been introduced. This showWallpaper method
toggles the window flag FLAG_SHOW_WALLPAPER, when album art is being
shown in Lockscreen. It is important to set pixel format to
PixelFormat.OPAQUE if flag FLAG_SHOW_WALLPAPER is not being set.

If not, an application that uses window flag FLAG_KEEP_SCREEN_ON
will prevent the keyguard from going to sleep and drain battery.

Change-Id: I1808be28047977ae5ac4dd1168ea25cac8a55a78
remove unnecessary switchUser call

If userId doesn't change, no need to do switchuser.or it will
introduce some tweak for gps modules in quick off/on because
they need cost time in off/on.

Change-Id: Ie5e408dc8be69c8a63a18bcb2cfe478cef4d70e6
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
Restore pre-KitKat permissions to external sd for all apps

Change-Id: Ib3ff52bcc47fd36e8f3fc5aefeaae4e56180e7c6
Solve three memory leaks related to PatchCache

A Patch can be fairly large, holding bitmap data, but
is also frequently leaked which adds to the severity.
The feature is used in many important processes such
as Home, SystemUI and Chrome.

The following leaks are solved:

1. The Patch itself was not always freed.
PatchCache::removeDeferred() can mark patches to be
cared for by PatchCache::clearGarbage(). But
mCache.remove() would only destroy the container
and the pointer, not the Patch object itself.

2. The vertices stored in the Patch at Patch::createMesh()
would always leak. The empty/default destructor in Patch
would not properly destroy "vertices" since it's just a
pointer.

3. A BufferBlock that's added to the mFreeBlocks
in PatchCache could leak. The leak happened when a
patch later needed the entire free block, because the
object was removed from the list but never deleted
in PatchCache::setupMesh().

Change-Id: I41e60824479230b67426fc546d3dbff294c8891f
Sometimes property service is slow to respond.

Upon boot-up, telephony service will update the system property for
timezone and send out broadcast.The property service won’t handle
the update immediately if the init process was doing something
time-consuming. Meanwhile StatusBar(one broadcast register) may get
the outdated value by reading from system property, because the
update is not handled yet. Then wrong time will be displayed on
status bar.

Change-Id: Ic29b7940b58e01651da4e0bafa7a88b902164bd0
Signed-off-by: Gao,KunX <kunx.gao@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
GlobalActions: Fix Airplane Mode on/off issue

Issue: Unable to turn off Airplane mode from power button
       after phone reboot

Fix: Initialize mHasTelephony before the PhoneStateListener is
     registered to the TelephonyManager so that correct value
     of mHasTelephony is reflected when onServiceStateChanged
     callback is called.

Bug: 13697360
Change-Id: Ide8afd9c16ea90b98b5912dbff440c5fd67b178d
Added italian translations for reboot menù

Change-Id: Ieea8dd07825678e7fc527d2e7ae6da54b4e8d195
Remove Bootloader option in power menu...
Because we don't have bootloader

Change-Id: I589c4a07e42c55fb3955c0e21a6ebbceb5531a2e
Revert " Implement "real" KitKat color scheme.  pt2 (forgotten values)"

This reverts commit 4a3d5e9cc2f30d69ace6016cce17eeba107d3e88.
Revert "Implement "real" KitKat color scheme."

This reverts commit d552d419872b2e8aac0948634463bbce32bc2d45.
fb: global menu follow new 4.4 UI

the sound indicator is still ICS blue...change it to white
In general we should consider to change all tab_selected
files into a Holo.Light switch due it is already defined in styles.xml

but thats work for our themer :p

Change-Id: I02b5331e223319517c5536522cd6bc419745ce3f
fb: update missing google UI changes for 4.4

thanks to kroz other things are now as well consistent to the new
google UI style

Change-Id: I604d29293b04bbcf279efd4d5bf2970ff8ee0c75
fb: change alert dialog to new 4.4 UI guidelines and add

Holo / Holo.Light switch to reflect it proper on the
different app styles

Change-Id: I0fb7cd06d19a8eef66551e9f0281d60f33b2efe6
Change "No recent apps" color to white instead of holo blue to follow new UI colors.

Thanks @rascarlo

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
change-Id: Ied4730e321021445baf1191e167d645f39f4c92f
fb: follow on seekbars new UI guideline for 4.4

google forgot some things.....seekbar is one example

Change-Id: I996062a978322c93694e360dff1e4f42dc589062
fix number picker blue line and highlight

Change-Id: I473c855a0e2cd068e62cd2ec4b807c04215b1c81

Conflicts:
	core/res/res/values/colors.xml
fix search textfield

Change-Id: I1255434e1e42973afd8d9907459dcd8795e96c4b

Conflicts:
	core/res/res/drawable-hdpi/textfield_search_right_selected_holo_dark.9.png
	core/res/res/drawable-hdpi/textfield_search_right_selected_holo_light.9.png
	core/res/res/drawable-hdpi/textfield_search_selected_holo_dark.9.png
	core/res/res/drawable-hdpi/textfield_search_selected_holo_light.9.png
	core/res/res/drawable-mdpi/textfield_search_right_selected_holo_dark.9.png
	core/res/res/drawable-mdpi/textfield_search_right_selected_holo_light.9.png
	core/res/res/drawable-mdpi/textfield_search_selected_holo_dark.9.png
	core/res/res/drawable-mdpi/textfield_search_selected_holo_light.9.png
	core/res/res/drawable-xhdpi/textfield_search_right_selected_holo_dark.9.png
	core/res/res/drawable-xhdpi/textfield_search_right_selected_holo_light.9.png
	core/res/res/drawable-xhdpi/textfield_search_selected_holo_dark.9.png
	core/res/res/drawable-xhdpi/textfield_search_selected_holo_light.9.png
	core/res/res/drawable-xxhdpi/textfield_search_right_selected_holo_dark.9.png
	core/res/res/drawable-xxhdpi/textfield_search_right_selected_holo_light.9.png
	core/res/res/drawable-xxhdpi/textfield_search_selected_holo_dark.9.png
	core/res/res/drawable-xxhdpi/textfield_search_selected_holo_light.9.png
fb: changed all open forgoten UI from google into new UI

thanks kroz

Change-Id: Ibc32ad8e73617dd74c8cd313dc2e071962eec966

Conflicts:
	core/res/res/drawable-hdpi/textfield_search_right_selected_holo_dark.9.png
	core/res/res/drawable-hdpi/textfield_search_right_selected_holo_light.9.png
	core/res/res/drawable-hdpi/textfield_search_selected_holo_dark.9.png
	core/res/res/drawable-hdpi/textfield_search_selected_holo_light.9.png
	core/res/res/drawable-mdpi/textfield_search_right_selected_holo_dark.9.png
	core/res/res/drawable-mdpi/textfield_search_right_selected_holo_light.9.png
	core/res/res/drawable-mdpi/textfield_search_selected_holo_dark.9.png
	core/res/res/drawable-mdpi/textfield_search_selected_holo_light.9.png
	core/res/res/drawable-xhdpi/textfield_search_right_selected_holo_dark.9.png
	core/res/res/drawable-xhdpi/textfield_search_right_selected_holo_light.9.png
	core/res/res/drawable-xhdpi/textfield_search_selected_holo_dark.9.png
	core/res/res/drawable-xhdpi/textfield_search_selected_holo_light.9.png
	core/res/res/drawable-xxhdpi/textfield_search_right_selected_holo_dark.9.png
	core/res/res/drawable-xxhdpi/textfield_search_right_selected_holo_light.9.png
	core/res/res/drawable-xxhdpi/textfield_search_selected_holo_dark.9.png
	core/res/res/drawable-xxhdpi/textfield_search_selected_holo_light.9.png
geofence: Low power geofence HW implementation

HW implemntation overwrites the SW implementation

Change-Id: Id738f2808691c35e5507e1d557bc5351456953ad
(cherry picked from commit 8bf22473ed32b2b54698ed7f5ab57c32402cb0f1)
(cherry picked from commit 9f8539ff017acce6de46923377730e8475452aa8)
(cherry picked from commit 335ee83dd9651f9fd8a0d32a78b08890da77ebb6)