Add getThemedResourcesForApplicationAsUser()

Change-Id: I90b7cb441e4056f59b7260ffa55e31eba644e25a
Allow specifying a theme when creating a Context

A Context normally loads the resources associated with the given
package that this context is for.  This patch allows us to specify
a theme we want attached to a given context's resources.

Change-Id: I1e619f038566233bd89ee96eb8eb87fa6894e630
Use systemui's applied theme for notifications.

Notifications contain RemoteViews which are inflated using the
application's context for which this notification belongs to.  This
can look out of place if SystemUI is using a different theme than the
rest of the system.

This patch will use SystemUIs theme when inflating the RemoteViews,
giving us a more consistent look in the notification drawer.

Change-Id: I9514ce7fcc4858bad3d3c4190f55c1f5a1441d7c

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Themes: Add icon previews to ThemesContract

Change-Id: Icbfbee3404702a29881ad4933721d8beb39bef30
BaseStatusBar: Dismiss heads up on backpress.

Change-Id: I5b6191657cf0b74d825eb653a6e82c33e0527aad
SystemUI: add left and right virtual buttons while typing

Change-Id: Iea446443d33ff305765e47c86523b619676116ac

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
Add missing mNavigationBarView.updateResources(getNavbarThemedResources()) and re-organize nav bar code

Change-Id: I132561674a9b23687d4ccf4641c40fafb5bce693

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Fix translatability of External media format message

Change-Id: I10c76ff40012f982fd7b75ac383ad29a6e698179

Conflicts:
	core/res/res/values/cm_strings.xml
SystemUI: fix up navigation cursor keyevent flags

Volume cursor controls use slightly different flags to keep the cursor
within the field. Match them in the SystemUI for consistent (and better)
behavior.

Change-Id: I56d597f111ec611b0ca24a10f30575401fa76d18
Signed-off-by: Roman Birg <roman@cyngn.com>
MountService: Check for null pointer when looking for vold code

* There is actually no code path that will set an event into
  NativeDaemonConnectorException, so any reference to the event code
  will result in a null pointer exception, taking down MountService and
  the rest of the system with it.

Change-Id: Id62f724953aacc363b3455584c6a3ad1381c6138
Revert "listview: ensure active views are filled prior than scrap views"

This reverts commit 830a0024f1de9655d50c703ed1d10a81005db40e.

See http://review.cyanogenmod.org/#/c/67348/

Change-Id: I066e6ee8d9dc478c752ecfa161fd638bce7cee40
Do not launch floating window when on default launcher

We only do this when user is on the default launcher
because if the user was on a non-default launcher,
he/she must have been there for some purpose and we
do not want to throw him/her back to the default
launcher incase he/she exits the app with HOME button.
SystemUI: fix up initial cursor down flags on nav bar

We were using the regular flags for the initial ACTION_DOWN event so the
FLAG_KEEP_TOUCH_MODE was not being passed and allowed the cursor to jump
out of bounds slightly.

Change-Id: I5b4d2a5e5e0ce562985fcc3b7b6fac8b4abc49da
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: fix nav bar layout while toggling cursor keys with an IME up

Previously there was no option to have the IME up on that settings
screen so this was not a concern before; however, with the addition of
searchable settings, it seems users are now trying to toggle it with the
IME active, putting the nav bar in a strange state becuase it did not
restore the previous states properly.

Change-Id: Ib03ff3d9ee9679819eaa42644796e8f9eae6e694
Signed-off-by: Roman Birg <roman@cyngn.com>
Fix setting change observing.

The observer doesn't deal with keyguard related options only.

Change-Id: Ib185662f4f8ca7508be3dce10091b5132aa823e1
LN: Some fixes & cleanup

- Fix bug that the notification is launched when a button on it is pressed
- Show new notifications first

Change-Id: I87db92a7ee4eb9329ec1ec69008e612a619d5c91
LN: Fix FC on launching hangouts notification

Change-Id: Idf411bd2b4995f0b53767e99597efd98ce0596b3
LN: beautify

Change-Id: I695846412f2b8c910f8a5cf48da2bf6ac42e124e

Conflicts:
	packages/Keyguard/res/layout-land/keyguard_host_view.xml
	packages/Keyguard/res/layout-port/keyguard_host_view.xml
frameworks/base: Update quick launch shortcut icons/resources

Update the existing icons and add "xxhdpi" versions created
from a vector template. This commit cleans also the resource
files a bit up.

Screenshot: http://goo.gl/6CrMYr

Change-Id: I45abee5cf13cd239eb5b4402019afac28d6d5952

Conflicts:
	core/java/com/android/internal/util/cm/NavigationRingConstants.java
	core/java/com/android/internal/util/cm/NavigationRingHelpers.java
	core/res/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/cm/ActionTarget.java
Allow subclasses to override bindPreferences().

Allows them to modify adapter behaviour.

Change-Id: I6767e3988740b674fbdf40a903cd2ef3949ca7db