SystemUI: don't show eq tile while casting

Change-Id: I00ae770b572535be9dca61760ad11e5f84fba63d
Signed-off-by: Roman Birg <roman@cyngn.com>
Use hidden API to validate APK chains

Bug: 13678484
Change-Id: I28dedab74b0e24d47ab9f2190298156c909e9d54
tether: tethering chooses wrong upstream when mobile_dun is required

When mobile_dun is required, the default mobile type will
be deleted from upstream list, this makes wifi become
the highest priority upstream even whne wifi is not available.

Change-Id: I2c12f6cd6d52331220dce900609ad072f9ec3fbc
CRs-fixed: 671675
Themes: Avoid NPE when setting text in TickerView

It is possible, with the right timing, to receive an NPE in TextSwitcher
when a notification comes in during recreation of the status bar because
of a theme change.

Change-Id: Ia35ad0346f232df905ecff69158b71f3bf61a163
SystemUI: enable equalizer for Wifi display

While the EQ doesn't work while using the Chromecast, using Wireless
display (miracast) still allows for control of the EQ since it's
streaming from the device.

Change-Id: I7322429b39438e66c013456b6f8a3242e333d93a
Signed-off-by: Roman Birg <roman@cyngn.com>

Conflicts:

	packages/SystemUI/src/com/android/systemui/quicksettings/EqualizerTile.java
LSN: whitespace

Change-Id: I26df494df9622b3b05115019de58480e5491d808
Automatic translation import

Change-Id: I33ed5e253fd73bba266b20fbd15082c5fba96ae2

Conflicts:

	core/res/res/values-ca/cm_strings.xml
	core/res/res/values-eu/cm_caf.xml
	core/res/res/values-it/cm_caf.xml
	core/res/res/values-ko/cm_caf.xml
	core/res/res/values-ku/cm_strings.xml
	core/res/res/values-sv/cm_strings.xml
	core/res/res/values-zh-rTW/cm_strings.xml
	packages/InputDevices/res/values-af/cm_caf.xml
	packages/InputDevices/res/values-ar/cm_caf.xml
	packages/InputDevices/res/values-ca/cm_caf.xml
	packages/InputDevices/res/values-cs/cm_caf.xml
	packages/InputDevices/res/values-de/cm_caf.xml
	packages/InputDevices/res/values-el/cm_caf.xml
	packages/InputDevices/res/values-es/cm_caf.xml
	packages/InputDevices/res/values-et/cm_caf.xml
	packages/InputDevices/res/values-eu/cm_caf.xml
	packages/InputDevices/res/values-fi/cm_caf.xml
	packages/InputDevices/res/values-fr/cm_caf.xml
	packages/InputDevices/res/values-hr/cm_caf.xml
	packages/InputDevices/res/values-in/cm_caf.xml
	packages/InputDevices/res/values-it/cm_caf.xml
	packages/InputDevices/res/values-iw/cm_caf.xml
	packages/InputDevices/res/values-ja/cm_caf.xml
	packages/InputDevices/res/values-ko/cm_caf.xml
	packages/InputDevices/res/values-ku/cm_caf.xml
	packages/InputDevices/res/values-lt/cm_caf.xml
	packages/InputDevices/res/values-nb/cm_caf.xml
	packages/InputDevices/res/values-nl/cm_caf.xml
	packages/InputDevices/res/values-pt-rBR/cm_caf.xml
	packages/InputDevices/res/values-pt-rPT/cm_caf.xml
	packages/InputDevices/res/values-ro/cm_caf.xml
	packages/InputDevices/res/values-ru/cm_caf.xml
	packages/InputDevices/res/values-si/cm_caf.xml
	packages/InputDevices/res/values-sk/cm_caf.xml
	packages/InputDevices/res/values-sr/cm_caf.xml
	packages/InputDevices/res/values-sv/cm_caf.xml
	packages/InputDevices/res/values-th/cm_caf.xml
	packages/InputDevices/res/values-tr/cm_caf.xml
	packages/InputDevices/res/values-uk/cm_caf.xml
	packages/InputDevices/res/values-zh-rCN/cm_caf.xml
	packages/Keyguard/res/values-eu/cm_caf.xml
	packages/Keyguard/res/values-eu/cm_strings.xml
	packages/Keyguard/res/values-ko/cm_caf.xml
	packages/Keyguard/res/values-sv/cm_caf.xml
	packages/Keyguard/res/values-sv/cm_strings.xml
	packages/SystemUI/res/values-eu/cm_arrays.xml
	packages/SystemUI/res/values-hr/cm_arrays.xml
	packages/SystemUI/res/values-ko/cm_arrays.xml
	packages/SystemUI/res/values-sv/cm_arrays.xml
	packages/SystemUI/res/values-sv/cm_strings.xml
	packages/SystemUI/res/values-uk/cm_arrays.xml
	packages/SystemUI/res/values-zh-rTW/cm_strings.xml
	packages/SystemUI/res/values/pa_dimens.xml
	packages/WallpaperCropper/res/values-eu/strings.xml
	packages/WallpaperCropper/res/values-ku/strings.xml
Kill duplicate SYSTEM_NOTIFICATION_LISTENER in core/res/AndroidManifest.xml

Change-Id: I026c2c3a65850a13e8332384cb2e2899f0102392
Revert "readd a permission that got stomped"

The strings aren't translated, and nothing uses it. Get your head out...

This reverts commit 11eb4ba5be6d86e0aa30540865cfbcc7629f3a1f.
Kill a redundant android.permission.REVOKE_PERMISSIONS from the ActiveDisplay clusterf#@&

Change-Id: I343ac1e1b7090000a5c42ed857da37b2256cb350
ACCESS_THEME_SERVICE is dead. Long live ACCESS_THEME_MANAGER. (also from the mess that is AD/LSN)

Change-Id: I3c53556deaa02e4111303c751e431231bae67f74
AN/LSN: if (whoWritesCodeLikeThis?("if (A) { //nothing } else { something(); }") != Authors.ME) fixit();

Change-Id: I02343dd381d03cbebed4858806eace8730148496
Fix AN/LSN QuietHours logic and variable scope

Change-Id: I9de338603da9294252d889f6c037d09f40221ec4
Fix lock screen notifications proximity sensors
Fixes pocket mode and wake on notification options

Thanks Steve Spencer :)

Change-Id: I3e7ee05be12c86ce31c2db4d8150c0f5b3c3dadc
AN: Crap polishing

-kill 2 private functions with 1 line in them... WHY?!
-use the final ints defined for the superfluous POCKET_MODE enumeration
-take a stab at preventing screen wake in pockets with AN enabld and pocket mode set to show notifications (LSN does this fine)

TODO(@Dave):
- INHERITANCE -- these 2 features are way too large and similar for this volume of copy/pasta... furthermore, their conflicting auto-wakeup behaviors should be controlled centrally, because this mess is a mess.

Change-Id: I38a89d25232c66b08d95566d283556bdafe0533d
AN/LSN: De Morgan's Law. Learn it.

Change-Id: I5529ced8ec7d3768820f2af8e71c3d7686a48806
Move idmap to frameworks/base [2/2]

idmap depends on libandroidfw, so it should go in frameworks/base.
This follows AOSP which moved idmap to frameworks/base back in
February of 2014.

Change-Id: Ice308a5299a69fd1fbc084a7c76a317c7dec3689
Keyguard: add smart cover support

Change-Id: I436eba7678b923a9f293e15d786447214bc9bdcb
Signed-off-by: Roman Birg <roman@cyngn.com>

Conflicts:

	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
policy: respect FLAG_TURN_SCREEN_ON flag with device flip covers

If an application uses WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON
and the device supports covers and the cover is closed, then after the
screen would turn on due to this flag, it would immediately be turned off
because PhoneWindowManager thinks the cover is closed, so it puts the device to
sleep.

Respect this flag and do nothing if it is detected.

Change-Id: I7eb36ce676730e47c551518e214b08561c401ea5
Signed-off-by: Roman Birg <roman@cyngn.com>
derp

Change-Id: I11abaac091a282cde4383bcc2a25924d119f0813