diff options
author | 2024-06-12 09:30:37 +0000 | |
---|---|---|
committer | 2024-06-14 10:14:50 +0000 | |
commit | 2b4eb676348f122ab0a21e19d7a3c57bd9898c6c (patch) | |
tree | 281ceaa54365c8c38ca94ea484c831aeb1951bf8 /runtime/oat/oat_file_manager.cc | |
parent | 9132d9056cc1d4eb342d1a2b0315fc1f054ca2f8 (diff) |
Use C++20 `string{,_view}::{starts,ends}_with()`, part 2.
Replace uses of `android::base::{Starts,Ends}With()`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I80a0ca93f433464270989d248dd999e9366a1c17
Diffstat (limited to 'runtime/oat/oat_file_manager.cc')
-rw-r--r-- | runtime/oat/oat_file_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/oat/oat_file_manager.cc b/runtime/oat/oat_file_manager.cc index fea361b8ee..c32125cf75 100644 --- a/runtime/oat/oat_file_manager.cc +++ b/runtime/oat/oat_file_manager.cc @@ -829,7 +829,7 @@ void OatFileManager::RunBackgroundVerification(const std::vector<const DexFile*> std::string dex_location = dex_files[0]->GetLocation(); const std::string& data_dir = Runtime::Current()->GetProcessDataDirectory(); - if (!android::base::StartsWith(dex_location, data_dir)) { + if (!dex_location.starts_with(data_dir)) { // For now, we only run background verification for secondary dex files. // Running it for primary or split APKs could have some undesirable // side-effects, like overloading the device on app startup. |