MAP: Fix MAP disconnect

Use case:
1) connect to remote
2) uncheck MAP from the settings app.

Expected result:
Profile should initiate a disconnect.

Observed Result:
Profile not initiated disconnect.

Root cause:
setConnectionPolicy of MAP service only
updating device profile connection policy.

Fix:
Add extra check with connection policy to initiate
disconnect if received connection policy is FORBIDDEN.

Bug: 158546058
Test: performed above use case, issue not seen.
Change-Id: I173de5bc5ecd3379b526bd642d9e2cfaacf7cf65
1 file changed
tree: e9d166a92a22013e3132bbfe056247bb67c34b77
  1. android/