summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2018-04-25 16:52:50 -0500
committerElliott Hughes2018-04-25 16:55:48 -0500
commit9f49508f368204657414ec0f2852f2a7abb5b4c5 (patch)
treeacc3a55ec97c42678f59cb0568b5d1cfad3664af /libcutils/Android.bp
parent419ba9e2aadbfed3862d95265ce141d016c7ca69 (diff)
downloadplatform-system-core-9f49508f368204657414ec0f2852f2a7abb5b4c5.tar.gz
platform-system-core-9f49508f368204657414ec0f2852f2a7abb5b4c5.tar.xz
platform-system-core-9f49508f368204657414ec0f2852f2a7abb5b4c5.zip
Rewrite get_sched_policy_name for safety.
This way you'll get a build time error if you make the usual mistake of adding to the enum but not adding an entry to the array. Also improve the unit tests, and fix get_sched_policy_name's incorrect behavior on invalid inputs. Bug: N/A Test: ran tests Change-Id: Iefcb1ec9ef66267837da7a576c8be3d0cfb16cd0
Diffstat (limited to 'libcutils/Android.bp')
-rw-r--r--libcutils/Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcutils/Android.bp b/libcutils/Android.bp
index 6d00dc6ee..dd46750fc 100644
--- a/libcutils/Android.bp
+++ b/libcutils/Android.bp
@@ -164,6 +164,7 @@ cc_library {
164 164
165 shared_libs: ["liblog"], 165 shared_libs: ["liblog"],
166 header_libs: [ 166 header_libs: [
167 "libbase_headers",
167 "libcutils_headers", 168 "libcutils_headers",
168 "libutils_headers", 169 "libutils_headers",
169 ], 170 ],