Res: ControllerMapper: add switch config_controllerMapper to pass build

We don't have plan to add mapper support for partner branch, but partner
build share the master branch of device repo. So we need to add base res
for device res overlay.

Bug 1415401

Change-Id: Ib78486f84f18e9eae98d71b9b2a62c3fa744e446
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/337622
GVS: Gerrit_Virtual_Submit
Reviewed-by: Peter Zu <pzu@nvidia.com>
frameworks/base: API to disconnect a p2p device

For the handling of multiple p2p devices along with legacy sta.
No api to selectively disconnect a p2p device.
Currently the interface is removed to disconnect a device.

Bug 1407655

Change-Id: I697a4bea768f8e81caa94b0951c47c31d9aebbb8
Reviewed-on: http://git-master/r/340120
(cherry picked from commit fc0adb08b075978c83540c97f2c6ad4313a07cb4)
Reviewed-on: http://git-master/r/344457
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
frameworks/base: API to know if autonomous group is active

Currently the applications know only if the active p2p connection
is a client or group owner. In both the cases the applications
call removeGroup which tear down the group interface. But in cases
for autonomous group owner the applications might want to check
if autonomous group owner is active then call disconnect instead
of tearing down whole interface.

Bug 1407655

Change-Id: I9b85fa89916ce94de46f3946c762efac4911c8b0
Reviewed-on: http://git-master/r/340121
(cherry picked from commit 9b947fadb119c7bb198a93c61b60736ec09f6e76)
Reviewed-on: http://git-master/r/344458
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-by: Peter Zu <pzu@nvidia.com>
frameworks/base: Handle the autonomous group owner

The autonomous group owner case should be handled so that the group
does not get deleted by the application.

Bug 1407655

Change-Id: I7f695806566181b0d34fe0bc0a141ad2296047f5
Reviewed-on: http://git-master/r/340122
(cherry picked from commit 4b03677a5512f0805dbc5a6c507d383d779b4451)
Reviewed-on: http://git-master/r/344459
Reviewed-by: Bibhay Ranjan <bibhayr@nvidia.com>
Tested-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-by: Peter Zu <pzu@nvidia.com>