Searched refs:prio (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/core/java/android/os/
H A DISchedulingPolicyService.aidl28 * Move thread tid into appropriate cgroup and assign it priority prio.
32 int requestPriority(int pid, int tid, int prio);
H A DSchedulingPolicyService.java34 // Minimum and maximum values allowed for requestPriority parameter prio
41 public int requestPriority(int pid, int tid, int prio) { argument
42 //Log.i(TAG, "requestPriority(pid=" + pid + ", tid=" + tid + ", prio=" + prio + ")");
49 if (Binder.getCallingUid() != Process.MEDIA_UID || prio < PRIORITY_MIN ||
50 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) {
58 Process.setThreadScheduler(tid, Process.SCHED_FIFO, prio);
/frameworks/av/services/audioflinger/
H A DSchedulingPolicyService.h24 int requestPriority(pid_t pid, pid_t tid, int32_t prio);
H A DSchedulingPolicyService.cpp28 int requestPriority(pid_t pid, pid_t tid, int32_t prio) argument
49 return sps->requestPriority(pid, tid, prio);
H A DISchedulingPolicyService.cpp40 virtual int requestPriority(int32_t pid, int32_t tid, int32_t prio) argument
46 data.writeInt32(prio);
H A DISchedulingPolicyService.h30 int32_t prio) = 0;
H A DAudioFlinger.h515 PrioConfigEvent(pid_t pid, pid_t tid, int32_t prio) : argument
516 ConfigEvent(CFG_EVENT_PRIO), mPid(pid), mTid(tid), mPrio(prio) {}
521 int32_t prio() const { return mPrio; } function in class:android::AudioFlinger::ThreadBase::PrioConfigEvent
524 snprintf(buffer, size, "Prio event: pid %d, tid %d, prio %d\n", mPid, mTid, mPrio);
575 void sendPrioConfigEvent_l(pid_t pid, pid_t tid, int32_t prio);
H A DAudioFlinger.cpp1223 void AudioFlinger::ThreadBase::sendPrioConfigEvent_l(pid_t pid, pid_t tid, int32_t prio) argument
1225 PrioConfigEvent *prioEvent = new PrioConfigEvent(pid, tid, prio);
1227 ALOGV("sendPrioConfigEvent_l() num events %d pid %d, tid %d prio %d",
1228 mConfigEvents.size(), pid, tid, prio);
1245 int err = requestPriority(prioEvent->pid(), prioEvent->tid(), prioEvent->prio());
1248 prioEvent->prio(), prioEvent->pid(), prioEvent->tid(), err);
/frameworks/base/core/tests/coretests/src/android/os/
H A DBinderThreadPriorityTest.java111 public static String expectedSchedulerGroup(int prio) { argument
112 return prio < Process.THREAD_PRIORITY_BACKGROUND ? "/" : "/bg_non_interactive";
116 for (int prio = 19; prio >= -20; prio--) {
117 Process.setThreadPriority(prio);
120 assertEquals(prio, Process.getThreadPriority(Process.myTid()));
121 assertEquals(expectedSchedulerGroup(prio), getSchedulerGroup());
124 assertEquals(prio, mService.getThreadPriority());
125 assertEquals(expectedSchedulerGroup(prio), mServic
[all...]
/frameworks/base/services/common_time/
H A Dutils.h54 void log(int prio, const char* tag, const char* fmt, ...);
78 void internalLog(int prio, const char* tag, const char* fmt, va_list va);
H A Dutils.cpp67 void LogRing::log(int prio, const char* tag, const char* fmt, ...) { argument
70 internalLog(prio, tag, fmt, argp);
81 void LogRing::internalLog(int prio, argument
110 LOG_PRI_VA(prio, tag, fmt, argp);
H A Dcommon_time_server_packets.cpp65 inline uint64_t packDeviceID(uint64_t devID, uint8_t prio) { argument
67 (static_cast<uint64_t>(prio) << kDevicePriorityShift);
/frameworks/native/include/utils/
H A DAndroidThreads.h81 extern int androidSetThreadPriority(pid_t tid, int prio);
/frameworks/base/core/java/android/text/
H A DSpannableStringInternal.java247 int prio = data[i * COLUMNS + FLAGS] & Spanned.SPAN_PRIORITY;
248 if (prio != 0) {
254 if (prio > p) {
H A DSpannableStringBuilder.java823 int prio = flags[i] & SPAN_PRIORITY;
824 if (prio != 0) {
830 if (prio > p) {
/frameworks/native/libs/utils/
H A DThreads.cpp96 int prio = t->priority; local
99 setpriority(PRIO_PROCESS, 0, prio);
102 if (prio >= ANDROID_PRIORITY_BACKGROUND) {
104 } else if (prio > ANDROID_PRIORITY_AUDIO) {

Completed in 186 milliseconds