From ec0c8a6eb159b40c40a68b5ce93006e8e5c66d62 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Thu, 11 Jul 2024 22:39:09 +0000 Subject: [PATCH] Fix the comment of AIBinder_setMinSchedulerPolicy. The second parameter is the priority, cannot be 20, which would be lower priority than the lowest priority that can exist. Bugs: me Change-Id: Ic990d0f365fb907fe252944991362e8729664562 Test: N/A --- tests/extension/vibrator/aidl/default/CustomVibrator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/extension/vibrator/aidl/default/CustomVibrator.cpp b/tests/extension/vibrator/aidl/default/CustomVibrator.cpp index 7a7c58bc9d..9c306b56eb 100644 --- a/tests/extension/vibrator/aidl/default/CustomVibrator.cpp +++ b/tests/extension/vibrator/aidl/default/CustomVibrator.cpp @@ -60,7 +60,7 @@ ndk::ScopedAStatus CustomVibrator::perform(VendorEffect effect, ndk::SpAIBinder CustomVibrator::createBinder() { auto binder = BnCustomVibrator::createBinder(); // e.g. AIBinder_setInheritRt(binder.get(), true); - // e.g. AIBinder_setMinSchedulerPolicy(binder.get(), SCHED_NORMAL, 20); + // e.g. AIBinder_setMinSchedulerPolicy(binder.get(), SCHED_NORMAL, -2); // e.g. AIBinder_setRequestingSid(binder.get(), true); return binder; }