Create Listener + helper APIs to track when projection app is active

This class will be instantiated, started, and stopped by Car/Messenger
and CompanionDeviceSupport each. These APIs will inform them when they
should suppress their notifications due to a projection app being in
active foreground.

Temporarily creating internal SafeLog class until connected-device-lib is
fully unbundled. Currently, connected-device-lib requires priv-app
permissions, which are unnecessary for Messenger. Unbundling will remove
these permissions.

Bug: 138747359
Test: manual
Change-Id: If0b3923d2acc233381fecabe273ecebcfd2d7454
7 files changed