Revert "Fix google backup/restore functionality"

This reverts commit dc2b13c3065750988b926270cd9ee8ea3a3207a3.

This actualy break google restore functionality.

Change-Id: I0befd88588176c4387b49e80299a311f3a5cf5aa
Add casual/cursive/sans-serif-smallcaps font families.

Bug: 12384866
Change-Id: I7482d228279a63ea92cb605de314b2f7d0ad483f
[1/2] Base: Clock font style

OmniGears: https://gerrit.omnirom.org/#/c/5761/

Change-Id: Ic1f30c53f861db77e9e01bd9b3806e845f17d0a7

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
Fix calculation of next DateChangedEvent time

Calendar.HOUR indicates the hour of the morning or afternoon. In the
morning this is no problem, but if this method is called after noon, it
will schedule the alarm for 12:00 the next day instead of 00:00.

Change-Id: Ibce239a6c7a41df85cf0c6ca3f45871a581eb7d9
PhoneWindow: circularProgressBar should be used for FEATURE_INDETERMINATE_PROGRESS

Google wrongly used the horizontalProgressBar when window was set with feature
FEATURE_INDETERMINATE which indicates that the current window would like to
draw a indeterminate progress, obviously, horizontalProgressBar shouldn't be
drawed since it indicates a determinate progress. so with this bug, phoneWindow
can not draw indeterminate progress for those windows.

The worse is: For those windows NOT set with feature FEATURE_NO_TITLE, i.e. they
have titles, those window have a default circular progress bar but without
horizontalProgressBar, so with this bug, null pointer access error would jump
out since phonewindow can not find the default horizontalProgressBar. This issue
happened when running Music Monkey test.

Change-Id: I65b9bf270d56d8a3de5af4b851a3e6e21f1533b3
Signed-off-by: gxie <gxie@marvell.com>
Audio: Fixed system/call stream volume can't adjust with HS connected.

Issue Description:
When headset connected, the system/voice call stream volume can't be
adjusted from Volume bar.

Root Cause:
Currently adjustStreamVolume is applied to stream type alias and the
device for the stream alias. So when headset connected and adjust
volume for SYSTEM_STREAM, the operation will be applied to RING_STREAM
(which is aliased by SYSTEM_STREAM) and speaker. As headset is returned
from getDeviceForStream(SYSTEM_STREAM), but speaker for RING_STREAM.

Solution:
Change the adjustStreamVolume to apply volume to the stream alias and
the device for the stream type exactly.

Change-Id: Icd226d9eb197017cd3c186a0096edaed755680ec
Signed-off-by: Guo Xie <gxie@marvell.com>
Audio: Fix DTMF silent issue when adjust volume from 0 to 1

Issue Description:
DTMF is silent when adjust volume from 0 to 1.

Root Cause:
DTMF volume is RING stream's alias, but not in the mask of
mRingerModeAffectedStreams, so when ringer mode changes from
1(vibrate)  to  2(normal),  other  alias  streams' (ring,
notification, enforced, and system stream) volume indexes will
be set to 1(avoid to set to 0)but DTMF volume index will keep 0.

Solution:
When checking whether to avoid silence operation, checking the
stream type by its alias stream type but not itself, this unifies
AudioService's volume index setting behavior for all alias
streams.

Change-Id: I6ba33e2a072d2a388f3d107cb16dffcf5c702fc7
Signed-off-by: Ye Ma <maye@marvell.com>
Audio: Turn on screen when insert headset during screen off

Feature Description:
- Trigger screen power on when insert headset in screen off state
- Also turn on keyboard backlight when this event happen
- WakeLock is held for 5s

Change-Id: I333b68cd849af7c9777e7a8c5c997108d3cced06
Signed-off-by: Yanan Liu <ynliu@marvell.com>
Audio: force make sound when USB connected or option changed

Issue Description:
When connecting USB cable, there is no sound playing for notification.

Solution:
Change the notification parameters to use default notification
sound to play when USB cable connected.

  -- For using default notification sound.
  -> "defaults":  Notification.DEFAULT_SOUND

  -- For allow notification play sound, vibrate, led, etc.
  -> "priority":  Notification.PRIORITY_LOW

  -- For get valid userid in PackageManagerService.
  -> "UserHandle":  CURRENT

Change-Id: I521c92c3c34a8ef7b54b06206973c4b90ff7b3e4
Signed-off-by: Yuan Zhang <yuanz@marvell.com>
Frameworks: Slim recent app screen

One of the parts on AOSP google missed to update/improve in the last
couple of releases is the recent app screen to allow better and faster
multitasking. I had always a special vision how it could/should look
and gives the user a faster workflow.

This commit is now our new recent screen. It is a complete new implementation
and replaces googles AOSP recent app screen. The code changes in the base itself
are quiet miniml to call the new recent screen.

Some notes:

1. This patch needs a new repo: frameworks_opt_cards which is a central repo
   to get any kind of googles cards style. Thanks Gabrielle Mariotti a ton who
   made the base for this library and hellped a lot out.  We just fixed together with him some parts
   and mad it useable as AOSP central library. So we can use it later for other
   changes as well

2. Preload needs to work 100%. So it is needed to check that the calling parts
   (like hw key rebinding, pie, navigation bar) do a proper preload. If they do not
   recent screen will just not show up. To follow what they are doing you can enable
   debug in RecentController.java which exactly shows what was called.

Some notes to the patch itself:

- Recent app  screen slides from the right edge into the screen

- Show recent apps in new google card style. Most recent apps show
  expanded with the app screenshot. Other are collapsed. Of course
  the user can change expanded/collapse of each app during the session where the state
  will be restored on next access.

- Compared to AOSP recents we do a 3 stage loading
  1. step: preload the task list and build or update the cards (does not load any content at this point)
  2. step: User actually toggled the recent screen....icons, text and screenshot thumbnail which will get visible are loaded now
  3. step: Recent screen is fully animated in. All other non visible content at this time are loaded now.
  This allows a smooth experience for the user and a minimal load on the first 2 steps. Especially important due that we handle
  a lot animations which are very picky when it comes to background loads. last 2 steps are async multithreaded loading tasks.

- We are using for the app icons and thumbnails a bitmap LRU cache controller to have fast access to the bitmaps we need. This improves especially
  the scrolling and as well the loading time due that allready loaded app icons are holded in the LRU cache.

- Theme support is included as well for all items the recent screen has

- Most important point: Way faster workflow now. The recent screen neither freezes the underlaying app nor it does interrupt the current process the
  user is in. It just slides over the current app about 40% of the screen. Back button as well just an outside touch (which will be passed trough to the app)
  allows to immediatelly go ahead in your workflow.

- Normal click opens an app, longpress opens app detail screen (note: we have only one hidden action on our current recents. If we later decide there could be
  other actions as well...showing a google card menu button on the top right is a very easy task and allready provided from the frameworks_opt_cards lib)
  swipe left or right removes the app from the current tasks

- Pinch to zoom out gesture provides the ability to remove all tasks with a big red warning!!

- All above mentioned actions are animated.

- As usual it is multiDpi compatible

- A lot work went into the optimizing especially for low end non gfx devices where animations
  as well listview scrolling is not that easy. We got the maximum out of optimization here which
  gives acceptable results on low end devices and amazing one on the gfx capable devices.

- A small side note this patch contains as well a fix on navigation bar preload.

Thats the short description.....user need to see it to get the real benefits of this new way.

cheers

kufi

Change-Id: I1925cd9ea37f2239585445142bd37370f137eabd

Conflicts:
	core/res/res/values/symbols.xml
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/cm_colors.xml
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/res/values/styles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
delete action icons

Add option to delete screenshot from notification

Change-Id: I0f153bc3c72b902163b4ae75e220ddb09e3fcb11

Conflicts:
	packages/SystemUI/res/values/cm_strings.xml
	packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
SystemUI: Fix missing top task in recent panel.

If preloadRecentTasksList was not called or was called too
late and RecentsActivty already started and last top activity has
excludeFromRecents flag setted it might be missing
from recent application list.

Change-Id: Idf7153824805ceea9fcaf04ac645b73a5e93a4d9
Merge branch 'kitkat' into HEAD
remove unused extra line from slim

Change-Id: Ie888ec02e8321aba9fe0f12bbc37345240b84c77
SlimRecent: Make it optional [1/2]

PS1: add toggle button between AOSB && Slim Recent
PS2: don't run slim controller if not enabled
PS3: check for correct home listener button

TODO:
Disable Home Longpress
ShutDown Default recent service if slim enabled

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Change-Id: I470f2cfc9111b712f3739b4f252bb8dbdacdb510