Settings: add development animation transition mode 0.75

Change-Id: Iaaeb3757ef9b3b97d66d929629e9035ab511f72a

Settings: correct 0.75 animation scale for other lanuages and add 0.25

and a small cleanup for warnings

Change-Id: I07256fadacd0405b5049252b6bc3da9850adc3d1

Conflicts:
	res/values-ar/arrays.xml
	res/values-fa/arrays.xml
	res/values-iw/arrays.xml
appLists: set height and width for app icon

due that the app icons on a lot apps are a mess now and not consistent
due of changes in kitkat let us set them for dialogs to our fixed
36dp value which was a good value in the past for all app icons
in settings

Change-Id: I00cab4aa4ded517ef63a193b58a03138abd355d8
Settings: Bring back app ops

Google didn't expose app ops yet, but we want to.  Places the app ops fragment
under the System header in settings

Thanks @BigBrother1984 for the drawables

ps2: fix indents
ps3: really fix indents

Change-Id: I09ec8c0b6d3b681f6b008d140a93f8112814228a
Signed-off-by: Evan Anderson <evan1124@gmail.com>

Conflicts:
	AndroidManifest.xml
	res/values/pa_strings.xml

Conflicts:
	res/values/psx_strings.xml

Redo app opps

Conflicts:
	res/values/psx_strings.xml

Conflicts:
	res/values/psx_strings.xml
comment out system update settings
Show application's package name in the "App info" screen.

Change-Id: I7dac8ffa0b10abb5ff235750e90a96d801b2f919
Cache preferences and services in status dialog.

Currently, the status dialog fetches the preferences and system
services that it uses to display connectivity information (e.g.,
IP and MAC addresses) only when the dialog is first opened. This
is fine because the connectivity information is only filled in
once and never updated.

In order to have this information update dynamically (like the
rest of the dialog), fetch and cache these objects in onCreate.
The next change will actually make this information update on
network changes.

[Cherry-pick of 6eb6a908217e080aea43406028be491d269bdbb0]

Bug: 10232006
Change-Id: Ib4072674543e517cf6935e3e03f35090e728090a
Dynamically update connectivity and IP address.

The settings status page dynamically updates mobile network
status (in/out of service, signal strength, network type, etc.)
but not IP address and connectivity information. Dynamically
update that information as well, for consistency.

For consistency, also update the advanced wifi settings page.

[Cherry-pick of deb8f08ace7e255939d793c8a5a0006d424734bc]

Bug: 10232006
Change-Id: I3a292d8bd9e36ab16c37e107eefff4b37d884a4c
Use java.util.Objects instead of internal API

Change-Id: Ib0d797b3e7f2e4f831f52832776b64c0973880b3
Fix elapsed time formatting.

We should extend DateUtils to provide this kind of elapsed time
formatting via icu4c, but for now let's at least fix our
arithmetic.

Bug: https://code.google.com/p/android/issues/detail?id=61479
Change-Id: I6c087dbb9fdbff0a21d9243d239126fee180454c
Dont show "Erase SD Card" when there is none

On devices with physcal, external SD Cards, the "Erase SD card"
option in in Settings/Storage is available even when there is
no SD card present, this dont make much sense since you cannot
erase a card that is absent. With this change the erase option
is bound to the mount toggle which leads to the following
consequences:

 Card present and mounted -> Erase enabled
 Card present but unmounted -> Erase enabled
 No card present -> Erase disabled
 Card present and MTP attached -> Erase disabled

Change-Id: I756ae8af3e0565febaf940df5f4991dd89105bd9
Fix null pointer exceptions in NetworkPolicyEditor

This upload fixes a null pointer exception issue.
After this fix the modified methods return
their corresponding default values instead of null.

Change-Id: Idb94f8b808b8dd18be5e3fc92cc5560ce0f81c4f
Settings: Fix the memory leak in Settings

Fixed the memory leak in both InstalledAppDetails

Change-Id: I3520b3c1fe1bf98e3baec2ee989eb215164a7cf2
Signed-off-by: Zhijun Peng <pengzhj@marvell.com>
Fix memory leak in ManageApplication

ApplicationsAdapter new a Session member and make it has a reference to
it self. If we don't release it explicitly, the cross reference will
cause memory leak.

Change-Id: Iecce35ae1d56d98cee6347e84d3a3ff57f3b15a5
wifi: update authentication status

wifi settings doesn't update AP status properly if authentication fails.

Change-Id: I397a32e24d13e5885c10ef7a117336c141eabe18
Bluetooth: Avoid window leak when screen orientation changes

Enable screen orientation change support in Bluetooth Settings app
during any Bluetooth Setting Activity. Otherwise, window leak may
observe while screen orientation changes.

Change-Id: I8868f4c6e96277fd17484f810de6a700198a5287
Settings: SuperSU from Settings

If SuperSU is installed, show an entry in Settings below
"Developer options", which launches SuperSU when tapped.
At boot time SuperSU will detect if com.android.settings
contains the resources from this patch, and if so it
will hide itself from the launcher. This was implemented
in v1.85, so we only show the entry if the installed
SuperSU version is at least that.

PS2: Better Drawables courtesy of Lo

Signed-off-by: ayysir <dresadd09691@gmail.com>
Signed-off-by: houst0nn <houstonn@gmail.com>
Change-Id: I1796d92458587b9e961d5d8e6d58099e8367834d