Persist app triggers
- Add persist and load from disk for app triggers
- Add tests
- Change queue persist file dir. as queue persist is not released yet, the impact is minimal.
- modify queue persist so that it groups new trigger persist - they will both be persisted at once.
Note: this is the 3rd mostly similar such impl (rate limiter, queue, and now triggers) - refactor to consolidate tracked in b/375658499
Test: run new tests
Bug: 350063680
Flag: android.os.profiling.system_triggered_profiling
Change-Id: I03ec23b168c6984a4493870f2127ee902f6f62c4
3 files changed