platform_system_core/libprocessgroup
Jiyong Park ab8a7d2a03 Cgroup APIs are guarded
The following API was added for the API level 30 and beyond. Currently,
its existence is tested using the null check which is done regardless of
the min sdk version of the compilation unit. (which in turn required us
to mark the API symbol weak regardless of the min sdk version.)

* AGroupController_getFlags

Now, we have a better way of testing the API availability;
__builtin_available. The null check is replaced with the call to the
compiler-provided macro which determines if the code is running in a
version of OS where the API is known to exist.

Bug: 150860940
Bug: 134795810
Test: m

Change-Id: I5d17fc877c553c402a62485b61af574a54658a76
2021-01-12 20:50:27 +09:00
..
cgrouprc Remove __ANDROID_API__ guards 2021-01-12 20:50:27 +09:00
cgrouprc_format Make libraries {vendor_,}ramdisk_available. 2020-10-28 10:57:51 -07:00
include/processgroup Add system-background cpu group 2020-12-01 19:46:02 -08:00
profiles Merge "Revert "libprocessgroup: move freezer to uid/pid hierarchy"" 2021-01-05 23:33:12 +00:00
setup libprocessgroup: Change per-API level task profiles to override the diffs 2020-12-03 19:39:31 +00:00
Android.bp Add product_available to product available modules 2020-12-04 09:59:20 +09:00
cgroup_map.cpp Cgroup APIs are guarded 2021-01-12 20:50:27 +09:00
cgroup_map.h Fix IsUsable to check for each controller separately 2019-06-26 11:35:11 -07:00
OWNERS Add new owners to various sub-projects. 2020-12-11 12:45:45 -08:00
processgroup.cpp Revert "libprocessgroup: uid/pid hierarchy for cgroup v2" 2020-12-04 03:12:59 +00:00
sched_policy.cpp Add system-background cpu group 2020-12-01 19:46:02 -08:00
task_profiles.cpp libprocessgroup: Change per-API level task profiles to override the diffs 2020-12-03 19:39:31 +00:00
task_profiles.h libprocessgroup: Support write to file feature 2020-11-03 20:56:48 +08:00