Parse installed pkgs for Distraction Optimization.

1. Check the configurable whitelist for apps and activities that can run
during DO.
2. If not in whitelist, check if the apps have tagged their activities
to be DO and add them to the allowable list.

Bug: 68717481
Test: Whitelisted and DO tagged apps can run while restrictions are in
place.

Change-Id: Ic46b95dd9e4e4194c8753d26250f0dc123163908
4 files changed