Loading services/inputflinger/InputThread.cpp +2 −7 Original line number Diff line number Diff line Loading @@ -28,13 +28,8 @@ namespace input_flags = com::android::input::flags; namespace { bool applyInputEventProfile() { #if defined(__ANDROID__) return SetTaskProfiles(gettid(), {"InputPolicy"}); #else // Since thread information (gettid()) is not available and there's no benefit of // applying the task profile on host, return directly. return true; #endif static constexpr pid_t CURRENT_THREAD = 0; return SetTaskProfiles(CURRENT_THREAD, {"InputPolicy"}); } class JvmAttacher { Loading Loading
services/inputflinger/InputThread.cpp +2 −7 Original line number Diff line number Diff line Loading @@ -28,13 +28,8 @@ namespace input_flags = com::android::input::flags; namespace { bool applyInputEventProfile() { #if defined(__ANDROID__) return SetTaskProfiles(gettid(), {"InputPolicy"}); #else // Since thread information (gettid()) is not available and there's no benefit of // applying the task profile on host, return directly. return true; #endif static constexpr pid_t CURRENT_THREAD = 0; return SetTaskProfiles(CURRENT_THREAD, {"InputPolicy"}); } class JvmAttacher { Loading