Implements the API to opt-in to auto-save embedding state

Bug: 373415282
Bug: 289875940
Test: verified on demo app
Flag: com.android.window.flags.ae_back_stack_restore
Change-Id: Ie553f1545dc091aee5f32e66aff3da280f054567
4 files changed