[model] Kiran
[binary_type] PDA
[customer] OPEN
[issue#] P141014-01590, P141023-01622
[problem] Touch sound is not proper for options for keyboard settings delay
[cause] The priority of IME process is higher than pulseaudio
[solution] The priority of IME process has been adjusted.
[team] Input Framework
[request] N/A
[horizontal_expansion] N/A
Change-Id: I22882ba9092fb58783bd08c1cbe3edaa06138f7c
#include <signal.h>
#include <string.h>
#include <privilege-control.h>
+#include <sys/resource.h>
+#include <sched.h>
#define WAIT_WM
#define ISF_SYSTEM_WM_READY_FILE "/tmp/.wm_ready"
std::vector<String>::iterator it;
+ struct sched_param param;
+ param.sched_priority = 0;
+
+ sched_setscheduler(0, SCHED_OTHER, ¶m);
+ setpriority (PRIO_PROCESS, getpid (), -11);
+
String def_frontend ("socket");
String def_config ("simple");