summaryrefslogtreecommitdiff
path: root/artd/file_utils_test.cc
AgeCommit message (Collapse)Author
2024-04-30Refactor NewFile::CommitAllOrAbandon. Jiakai Zhang
This refactoring creates a more generic function to back NewFile::CommitAllOrAbandon, which can be used for moving any files. The generic function will be used for moving Pre-reboot Dexopt staged files. Bug: 311377497 Test: m test-art-host-gtest-art_artd_tests Change-Id: If17392557229d857743011942d0a666e925a0448
2022-08-31ART services: optimize package - Add artd methods. Jiakai Zhang
This change adds two artd methods: `getDexoptNeeded` and `dexopt`, which are used for app compilation. Also, this CL replaces all `StringPrintf` with `_format`. Bug: 229268202 Test: m test-art-host-gtest-art_artd_tests Ignore-AOSP-First: ART Services. Change-Id: I51a42816750ff39c768658f739c7e6337cfe3e1c
2022-07-07Add classes and functions for accessing files in artd. Jiakai Zhang
This change includes: - An AIDL representation of Linux filesystem permission and a function to convert it to Linux access mode. - A class that creates a new file for writing and cleans it up unless the file is committed. - A function that opens a file for reading. Bug: 229268202 Test: m test-art-host-gtest-art_artd_tests Ignore-AOSP-First: ART Services Change-Id: I0e24e8fc31eee5e7004a35649df610b7da4d3178