Add VolatileDropboxEntryStates for timely header state collection
- Add `VolatileDropboxEntryStates` class in `ActivityManagerService` to capture certain header values as early as possible.
- Refactor `addErrorToDropBox` and related methods to accept `VolatileDropboxEntryStates`.
- Use prefetched headers in `ProcessErrorStateRecord` for ANR reporting to capture the 'Frozen' header value early, allowing for more accurate value by getting it before running dumpStackTraces.
- Adjust method calls throughout the system to align with the new method signatures.
Bug: 296063593
Test: atest and manual testing
Change-Id: I7ca5cfdd93f457bb74dfd67361d3f69b310660ef
5 files changed