Start an activity cross profile in same task.

Adding new overloaded methods of startMainActivity and startActivity that allow the caller to
specify that the new activity should be added to the current task rather
than creating a new one.
Test: atest android.devicepolicy.cts.CrossProfileAppsTest FrameworksServicesTests:com.android.server.pm.CrossProfileAppsServiceImplTest
Bug: 215425075

Change-Id: I21c258c5962daefb32f65779035f4ba8f0474da7
(cherry picked from commit 96ca7241fff35791fb89d26758544268cdbd7a02)
Merged-In:I21c258c5962daefb32f65779035f4ba8f0474da7
7 files changed