Service: Keep services needing restart.

Services needing restart after crash include:
1) service with 'persistent == true'
2) service explicitly reuqired restart by returning START_STICKY
   or START_REDELIVER_INTENT from onStartCommand

Change-Id: Icda43d349faf344a8d022fc4ec5e928ec3399036
take account of RotationVector's new extra parameter

Rotation vector has a new 5th parameter introduced in API 18. But the code classified the 5 parameter the same as it would be 3 and overriden the 4th parameter which is unnecessary and also caused an unexpected behavior.

Issue #63268:
https://code.google.com/p/android/issues/detail?id=63268
Signed-off-by: Balint Ureczky <ubalint@gmail.com>

Change-Id: I6f9a5fc401da655695ab03694b4a74dc5be936ed
Round off when calculate next step in Seekbar

When the positions for the new step is calculated in
a Seekbar, a rounding error can appear.
This is fixed by round off before casting.

Change-Id: Ie2cf201ef670ccc2297e9bc4c7f415a826e44a41
Base: Check ProcessesReady before broadcast

Most of the time testIsSystemReady is used to know if we are allowed to broadcast intents.
But in broadcast intent method we check mProcessesReady flag (not mSystemReady).
If we broadcast after systemReady flag but before ProcessesReady flag, system will crash

Adding condition to check if system & processes are ready fix that race condition
Signed-off-by: Fabien DUVOUX <fabien.duvoux@gmail.com>

Change-Id: I2eec1c4f280daf29f4741919a7636b02da341e32
Base: Add a shortcut in detecting if a window that contains the wallpaper is null or not

originally, a null window would be detected in WindowManagerService,
   an exception would be thrown, and then that would be caught in Session

Change-Id: I6681c81bafe8c1d8021959da7412fa308015b9dd
Fix ellipsizing of emoji symbols in StatisLayout.

Change-Id: Ia057053a7dd6e5a256499f6bded99872581de18e
base: added national roaming for Aircel in India

Users of Aircel (Tamil Nadu) MCC 404-MNC 42 can roam on Aircel (Chennai)
MCC404-MNC41

Change-Id: Iaef2b8d634c13395c7328ba5a86b21ed9f39bfb9
base: added national roaming for telnet in belgium

http://jira.omnirom.org/browse/OMNI-682

Users of telnet (MCC 206 MNC 05) can roam in mobistar (MNC 10)

Change-Id: I8d2de1de0a9ba1ff792c3c28805aec078782c91e
NsdService does not clean up after exiting clients

When a client of the NsdService exits, NsdService should
clean up the requests it has sent to the mDNS daemon:
cancel any pending resource-discovery and resource-resolution
queries, and remove any services registered by this client.

If this isn't done, several bad things happen. The daemon will
continue to run unnecessarily, will report service discoveries
that can't be forwarded on to the client, and will continue to
advertise service ports for an application which is no longer
running until the device is rebooted (mDNS pollution).

Bug: 9801184
Change-Id: I0aa7311480322aefcff16f902fbbf34f50985d38
[1/2] Base: Lockscreen blur enhancements

Changed base for lockscreen blur to AOSPAL

Thanks to Kyrylo Mikos <kiril.mik.os@gmail.com>
for smooth background change patch

Change-Id: I9bf0f37b99d2277f1e62c3a108ad51c5e340b711

Fix possible NPE
Navbar Custom Glow Time (1/2)

Fix
[1/2] framework: custom brightness support

    Adds separate handling of button brightness for devices
    that supports it. Enabled with config_button_brightness_support
    else the behaviour will be the same as before

    Also if enabled but no custom values are set will fallback
    to the previous behaviour

    This also needs support of setting button brightness separately
    in liblights code of the device.

    Options:
    -brightness spline for buttons in automatic mode
    -custom brightness value for buttons in manual mode
    -options to competely disable buttons in both modes
    -option to always fallback to same value as screen brightness

    This also brings in:
    -support for custom responsivness value for automatic mode
    -custom twilight support enablement

Change-Id: I79cc8cf3a9b488b857929f327cb67a770ec81916

Conflicts:
	services/java/com/android/server/power/DisplayPowerController.java

Fix?
base: fixed offscreen volume key handling

http://jira.omnirom.org/browse/OMNI-757

Dont handle up and down

Change-Id: I2b073aa2aef2fa671071257521b906dd6fddfb3c
SystemUI: Set Status bar opaque during drawer pulldown on tablets only

The status bar only needs to be set as opaque when the notification
drawer is pulled down on 600dp and 720dp devices. On phones, this
is unnecessary as the top header of the drawer covers the status
bar on the phone UI. This change makes a huge difference in
reponsiveness on devices that run the phone UI as there is no
longer a delay before the drawer appears when interacting with it
on an activity with transclucent window decor.

Patch Set 3: Fix formatting, adjust comment
Patch Set 5: Delete file derp

Change-Id: I932bb92a5245f0323d3317776efbdc9151db449d