Enforce onActivityReparentedToTask

1. Only allow when the activity is trusted embedded, because sharing
   ComponentName of untrusted embedded is not safe.
2. Trim the activity Intent to those that are needed and safe for
   Activity Filter.

Bug: 255701223
Test: atest WmTests:TaskFragmentOrganizerControllerTest
Change-Id: I0c03b95a2b7a9c91315d09a77dc4b855e464a2f5
2 files changed