libprocessgroup: Remove unused includes; add missing ones
No functional changes. Bug: 346584259 Test: m Change-Id: I68fa51f86b6baaa34fb2cdfdc16a4d1ff61e1e5f
This commit is contained in:
parent
10826481ba
commit
54bfde03e1
8 changed files with 13 additions and 21 deletions
|
@ -18,33 +18,19 @@
|
|||
#define LOG_TAG "libprocessgroup"
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <grp.h>
|
||||
#include <pwd.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <regex>
|
||||
|
||||
#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 <android-base/unique_fd.h>
|
||||
#include <cgroup_map.h>
|
||||
#include <json/reader.h>
|
||||
#include <json/value.h>
|
||||
#include <processgroup/processgroup.h>
|
||||
|
||||
using android::base::GetBoolProperty;
|
||||
using android::base::StartsWith;
|
||||
using android::base::StringPrintf;
|
||||
using android::base::unique_fd;
|
||||
using android::base::WriteStringToFile;
|
||||
|
||||
static constexpr const char* CGROUP_PROCS_FILE = "/cgroup.procs";
|
||||
|
|
|
@ -16,14 +16,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <android/cgrouprc.h>
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include <processgroup/format/cgroup_controller.h>
|
||||
|
||||
namespace android {
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#define LOG_TAG "SchedPolicy"
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <android-base/logging.h>
|
||||
|
|
|
@ -16,6 +16,11 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <processgroup/format/cgroup_controller.h>
|
||||
|
||||
namespace android {
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
//#define LOG_NDEBUG 0
|
||||
#define LOG_TAG "libprocessgroup"
|
||||
|
||||
#include <dirent.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <task_profiles.h>
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/types.h>
|
||||
#include <functional>
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <span>
|
||||
#include <string>
|
||||
|
|
Loading…
Reference in a new issue