Removed p2p_supplicant service because we use wpa_supplicant
Fix for Location Services

https://gerrit.paranoidandroid.co/#/c/124/
Credit: nbehary@XDA
Avoid duplication of AppWindowToken in created Task

When WindowManagerService creates a new Task, it passes atoken to the
Task constructor. In this case atoken is added to mAppTokens list by
the Task constructor and then it is added manually again by calling
newTask.mAppTokens.add(atoken). As a result, the same atoken is present
in mAppTokens list twice.

When another window token is added to the list, it may be placed in
beetwen duplicated tokens and corresponding window will be hidden from
the screen by corresponding duplicated windows.
From user perspective it means that some windows will not be displayed
on the screen.

The issue is fixed by avoid adding atoken to mAppTokens list manually
when it was added already in Task constructor.

Change-Id: I10628e68186160fffdde07beb7d84ab3cecb7051
Revert some changes of KLP MR2
Remove isAdvertising()
Typo
We have removed isAdvertising() symbol
Revert "We have removed isAdvertising() symbol"

This reverts commit c6860696506720704ce4ca71d70d18924e1168c9.
Revert "Typo"

This reverts commit 947eeb517a8e886d95fe0a4f5438818686eb57a6.
Revert "Remove isAdvertising()"

This reverts commit e8f2f58fef801aebb325b8ee489cd52f113df52d.
Revert "Revert some changes of KLP MR2"

This reverts commit 2760ee05166ee8437094694d4076141db0a4cbc6.
Restored original autobrightness speed
Improved the minimum amount of time that must have elapsed for change the rotation
AudioService: Fix absolute volume for AVRCP

Avrcp.java uses max volume obtained by getStreamMaxVolume() when
converting to AVRCP levels and it returns non-scaled volume index.
For this reason volume index needs to be dispatched to Avrcp before
scaling as otherwise Avrcp will convert volume level incorrectly,
i.e. max volume index for music stream is 15 and any volume index
>1 (>10 after scaling) will result in setting *MAXIMUM* volume level
on headset which is not safe for listener.
https://android-review.googlesource.com/#/c/87670
Cleanup
Fix Bluetooth tethering

https://android-review.googlesource.com/#/c/102882/