diff options
| author | 2017-01-24 08:29:09 +0000 | |
|---|---|---|
| committer | 2017-01-24 08:29:11 +0000 | |
| commit | e9fef45736e1a2c90e6caa17a1c3bd910245b972 (patch) | |
| tree | c025496d131aa948255a823cd4c11c71b1883144 /runtime/oat_file_assistant.h | |
| parent | b02ff84b89eac187cb6450e9e1991c9c8ab359a1 (diff) | |
| parent | 402089a27b25a9d1112c49189eb83a567719188f (diff) | |
Merge "OatFileAssistant: look at vdex file for IsDexOptNeeded"
Diffstat (limited to 'runtime/oat_file_assistant.h')
| -rw-r--r-- | runtime/oat_file_assistant.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/oat_file_assistant.h b/runtime/oat_file_assistant.h index 588a698be7..6d47ad2228 100644 --- a/runtime/oat_file_assistant.h +++ b/runtime/oat_file_assistant.h @@ -379,6 +379,16 @@ class OatFileAssistant { // Return info for the best oat file. OatFileInfo& GetBestInfo(); + // Returns true if the dex checksums in the given vdex file are up to date + // with respect to the dex location. If the dex checksums are not up to + // date, error_msg is updated with a message describing the problem. + bool DexChecksumUpToDate(const VdexFile& file, std::string* error_msg); + + // Returns true if the dex checksums in the given oat file are up to date + // with respect to the dex location. If the dex checksums are not up to + // date, error_msg is updated with a message describing the problem. + bool DexChecksumUpToDate(const OatFile& file, std::string* error_msg); + // Return the status for a given opened oat file with respect to the dex // location. OatStatus GivenOatFileStatus(const OatFile& file); |