server: Treat non-default route as host route

When constructing ip route command in addRouteWithMetric,
we used to check whether the given route is a host route.
In some cases, the isHostRoute() check can return false for
non-default routes. To make this check more foolproof,
check whether a route is non-default in order to treat it
as a host route.

Change-Id: I5e396e67e1c82bbe22600c47f1e52cc7c750cdc6
Bluetooth: Fix to avoid framework reboot during monkey.

A case where monkey is running & sometimes framework is
disconnected due to unhandled java Exception during the
unbinding of HID device service on unsuccessful unbinding.
Handling java Illegal Argument exception while unbinding
HID device service solves this issue.

Change-Id: I61a5620e756119d25f2a235e67d6404b216f4cbf
CRs-Fixed: 601533
ProcessCpuTracker: Fix ArrayIndexOutofBoundsException in tempSpeeds

If time_in_state file is not available mCpuSpeeds is created with size 0
and subsequent call if the file becomes available there is an
ArrayIndexOutofBoundsException.
This change avoids the crash by breaking out of the loop, also adds error
logging

CRs-Fixed: 553569
Change-Id: Id5e219ca1cd3f058f714aecd5902ec2f6c11ae03
Frameworks: return config values back to defaults
Frameworks: fix adb notify option default
Revert "Adapt BatteryService patches to Android 4.4"

This reverts commit abf80c7ac70a889490cbafc406d70227914c7fa6.
Revert "frameworks: Report 100% battery level"

This reverts commit e3f50c9a19c19118b40d5f94f016aa219915f2af.
Revert "fb: TRDS change auto detect light conditions method"

This reverts commit d5a1517d0ac3e49be32bf9cebe108b1470749a7e.
fb: TRDS change auto detect light conditions method

Currently on critical light conditions it still switches to often between
on and off which results in bad UX and in worse cases to unusable phone
due that it is permanently switching. To prevend that slacken the light mode
level detection and set it when it goes to dark mode way more higher (LIGHT_CONDITION)
and when into light mode back to lower level (DARK_CONDITION)

PS
- 25 looks good

Change-Id: I665f3141fe31f26ca371d10593ff95174d68fc9e
Revert "power: Add CPU boosting interface"

This reverts commit 637384991e710fe9258266d75d10f77e7cbaad3d.

Conflicts:
	core/java/android/os/IPowerManager.aidl
	services/java/com/android/server/power/PowerManagerService.java
	tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
Revert "IntentService: Fix to run with a lower priority flag."

This reverts commit 0394d269b7edab6564b786ced5354743025c7630.
Revert "ActivityManager: memorize for performance"

This reverts commit 1fec9af3cfebdab43576ada6d827b5363e8a1be1.
Revert "AppOps: track op persistence by name instead of id"

This reverts commit d1248eb66255f5339b3f09eb24739e4bb23f5aeb.
Frameworks: fix navigation hints to match aosp
Revert "ActivityManagerService: stay away from zombie content providers"

This reverts commit a26c925df924b340f99d3729ab2273cf98e1cfbc.
Revert "Revert behavior of DateUtils.formatElapsedTime"

This reverts commit caa874d06333e18a0208f427ac2dc6b8693741f5.
Revert "Frameworks: Listanimation views and interpolator (1/2)"

This reverts commit 898ff785794f317ba0dcea343f583674b0bea32e.

Conflicts:
	core/java/android/provider/Settings.java
Return: Listanimation Views and Interpolator [1/2]

PatchSet:
    - optimize more:
    - call provider values only when needed and do not fire them permanently.
      so just do it if scroll state changed.
    - as well go out of the setAnimation method as soon as possible. We
      handle here methods which get called 10000 times during scrolling
      so we need to be as fast as possible.

PS:
- initialize the animation modes default to off just to be sure

PS:
- move state change out of OnScrollListener
- reduce the provider value call to only one call

Change-Id: I5e49d858318420e76101fa6334ff766bd9496c83

Conflicts:
	core/java/android/provider/Settings.java
Use the correct framework textfield images

Credit: kroz
fix search textfield

Change-Id: I1255434e1e42973afd8d9907459dcd8795e96c4b