diff options
author | 2025-03-14 16:54:03 +0000 | |
---|---|---|
committer | 2025-03-21 09:37:10 -0700 | |
commit | 0f7d94bd99bb554d663a4a527155eee6192780ee (patch) | |
tree | 4c3a8211872d9a0ed91cebe00136b07c3ca877e4 /libartbase/base/file_utils.cc | |
parent | 0e235bd9b79c82e3962792eecb17ceb4bbc24089 (diff) |
Count SDM files into TYPE_DEXOPT_ARTIFACT in ART-managed file stats.
SDM files contain ODEX and ART files, which are dexopt artifacts.
We don't need to count the DM files containing VDEX files because the
storage manager counts them itself.
This CL implements the extension to getUsableArtifacts to achieve this,
which is also necessary for the file GC in the next CL.
Also:
- Fix a bug that the runtime images were not counted if the artifact
location is ArtifactsLocation.DM.
- Replace @AutoValue classes with records, to simplify the code.
Bug: 377474232
Test: atest ArtServiceTests
Test: atest art_standalone_artd_tests
Change-Id: If1d05d69051d09ebd7f10e6f487cd7892590921c
Diffstat (limited to 'libartbase/base/file_utils.cc')
0 files changed, 0 insertions, 0 deletions