Improve notification shade collapse code.

- Collapse after dismissing the last notification
- Avoid duplicate code paths for collapsing
- Improve variable naming according to AOSP review suggestions

Change-Id: Ic6f26a61f263c5beebbcc9725fe8914d3858576f

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
add back Fix AMotionEvent_getHistorical* to take const AInputEvent* motion_event

Thanks Winner00...I am an idiot lol merge in native broke it due it got lost

This reverts commit e93b821209613952e34b181b8544ff8304e72e39.

Change-Id: I3e2b6ba209a894f7fd467f682dc0d922f4a661fc
Bring back two-line layout for status bar date.

Change-Id: I4bf7ce61b22da89b3b8c1a3f00e077461061f7b9

Conflicts:
	packages/SystemUI/res/values/donottranslate.xml

Conflicts:
	packages/SystemUI/res/values/donottranslate.xml
Several icon corrections

- qs media play and pause....use own to let them theme and have correct default cccccc color
- power tile change to default color
- widgets navring target corrected to better size

Change-Id: Ia852f8f6369e936983ef22c310ff814072b5d474

Conflicts:
	packages/SystemUI/res/drawable-mdpi/ic_qs_power.png
Fixed a leaked partial wakelock in AbstractThreadedSyncAdapter.

This fix ensures that onFinished() is always called in a syncClient
even if the application lacks the READ_SYNC_SETTINGS permission.

Change-Id: I944717e71ceae06a665f8a3b1199b41d73e12da4

Conflicts:
	core/java/android/content/AbstractThreadedSyncAdapter.java
Remove possible leak when exception occurred.

nameUtf8 is not released after exception.
In addtion, Fix code going down after ThrowException.

Change-Id: Id46e8ed55acd98e982ae532f7da2c0c48847f010
Memory leak in IInputMethodSessionWrapper executeMessage-Henrik Baard
Fix for rare INSTALL_FAILED_INSUFFICIENT_STORAGE bug

This fixes a bug that occurs when one application
update fails to remove the old application package
causing any following update attempt to fail falsely
reporting insufficient storage.

Change-Id: Ib94110bcc82ff092ac630e929fde81136425159e
PreferenceFragment : Set title if specified

Set the title of the preference activity if specified by the
preference screen.

Example of where it is broken :

Settings -> Accessibility
Title says "Accessibility", but preferencescreen's android:title attribute
specified "Accessibility settings"

Change-Id: Icc89cf6bc37e3f6fc98c6bc05a0ef47185daa52c
webkit: Manage video playing state properly when browser goes to background

Issue: Browser App Video streaming not pausing while pressing home Button

Fix : When the Browser goes to the background while the video is playing
      in the fullscreen, the fullscreen mode is exited. While exiting
      the full screen mode the video state is handled properly. So that
      there is no playback in the background.

CRs-Fixed: 509225

Change-Id: I32c306923d2638731d34d216cf006050ce4ad825
Add 2 APIs (suspend and resume) in MediaPlayer

- API:suspend() will just pause the player and release all the decoders
- instead of release the whole player
- API:resume() will just init the decoders again
- Add a check in onVideoEvent()
- to make sure the first seek operation will seek the next i-frame

Change-Id: Ia4716f7fb3a412eb19c6ded9c0f3056d0490546c

Implement the suspend/resume operation in VideoView

- Using the new APIs in Mediaplayer
  to implement the suspend/resume operation in VideoView
- Add a new status "SUSPENDED"

Change-Id: I00f9daa2d34b3b125b8c3b968bc581708ab2cdf4

HTML5 VideoView change to use the new APIs: suspend/resume

- While suspend and resume, using the new APIs in Mediaplayer

Change-Id: I8530b533501607f681145853d7923fdf2009150b
Fix default QS quantitiy behaviour

- fixes the wrong calc of tile per row if the user is on a fresh
intall (happens when flip to landcape and back)
- ignore duplicate tiles per row feature on tablets and all devices
which do not have flipsettings

Change-Id: Ic6aa8e51f50b9abf978a72580ea8c648e43614d4

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Frameworks: TRDS new 4.3 png's

Change-Id: I1aab6a5d0e1c5e5f015a48060ead36a656c50941
Remove redundant click action from date & time container layout

Unlike AOSP, we  provide separate actions for both the clock
and date & time views in the expanded notification area. AOSP has a
single action for both views.

This commit removes the redundant AOSP click action completely. In
addition, the clock and date views are modified to occupy the entire
height of the layout to increase the clickable area.

Change-Id: I78f4353c9ae4646f14124a38ef94e44ab920a067
Frameworks: reenable all keyboard features for 3rd party keyboards

use like quickpeek statusbarservice for it.
Gives us as well for other future features more
flexibility

Change-Id: I1e9e2497212d27eacbbb63f64961361aaed9aee7

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/tv/TvStatusBar.java
Frameworks: do not depend on quick_settings_num_columns value

the overlay handling from google does not really make sense
and brought us already on 4.2 on weird behaviours sometimes.
Due that we have included tiles per row and duplicate feature
it makes sens to only depend on the values which are programmatically
set. As well I did not find one device or theme which manipulates
the mentioned values.

So let us do it all programmatically and the weird behaviours are
a problem of the past

cheers

Change-Id: I4ce7c5e9c30377983e61880315f60bfbd886a8a4
Revert "Add 2 APIs (suspend and resume) in MediaPlayer"

This reverts commit 7e17ffafe4d7b76c1f9361f09f3374675a776ccc.