Add options to register lifecycle callbacks on a ProtoLogDataSource

Since we want to re-use the same datasource in a single process we need mechanism for different classes to listen in on the different lifecycle events of the same datasource object.

Flag: android.tracing.perfetto_protolog_tracing
Bug: 369560789
Test: atest TracingTests
Change-Id: I897c3273ee01abf93aa5801015bec8aa7cb8e5c9
1 file changed