Merge "Don't use android::base::StartsWith / EndsWith" into main am: 2a278c3a2e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3319739 Change-Id: I8e82bcbba7c8e3a4f85f75cbc0e24fe8fd98e41e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
ac04448403
1 changed files with 3 additions and 4 deletions
|
|
@ -37,19 +37,18 @@
|
|||
#include <mutex>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <thread>
|
||||
|
||||
#include <android-base/file.h>
|
||||
#include <android-base/logging.h>
|
||||
#include <android-base/properties.h>
|
||||
#include <android-base/stringprintf.h>
|
||||
#include <android-base/strings.h>
|
||||
#include <cutils/android_filesystem_config.h>
|
||||
#include <processgroup/processgroup.h>
|
||||
#include <task_profiles.h>
|
||||
|
||||
using android::base::GetBoolProperty;
|
||||
using android::base::StartsWith;
|
||||
using android::base::StringPrintf;
|
||||
using android::base::WriteStringToFile;
|
||||
|
||||
|
|
@ -255,7 +254,7 @@ static bool RemoveEmptyUidCgroups(const std::string& uid_path) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!StartsWith(dir->d_name, "pid_")) {
|
||||
if (!std::string_view(dir->d_name).starts_with("pid_")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -296,7 +295,7 @@ void removeAllEmptyProcessGroups() {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!StartsWith(dir->d_name, "uid_")) {
|
||||
if (!std::string_view(dir->d_name).starts_with("uid_")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue