More tests for ActiveRestoreSession

Around restoreAll() and restoreSome(). And some small refactorings in
restore code paths.

Test: m -j RunFrameworksServicesRoboTests
Change-Id: I0ff446ef4dcf15eade189c79e90a22c0f2eda0d6
7 files changed