Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/jni/
Dandroid_server_Watchdog.cpp31 static void dumpOneStack(int tid, int outFd) { in dumpOneStack() argument
34 snprintf(buf, sizeof(buf), "/proc/%d/stack", tid); in dumpOneStack()
51 ALOGE("Unable to open stack of tid %d : %d (%s)", tid, errno, strerror(errno)); in dumpOneStack()
83 int tid = atoi(ent->d_name); in dumpKernelStacks() local
84 if (tid > 0 && tid <= 65535) { in dumpKernelStacks()
86 dumpOneStack(tid, outFd); in dumpKernelStacks()
Dandroid_util_Process.cpp174 void android_os_Process_setThreadGroup(JNIEnv* env, jobject clazz, int tid, jint grp) in android_os_Process_setThreadGroup() argument
176 ALOGV("%s tid=%d grp=%d", __func__, tid, grp); in android_os_Process_setThreadGroup()
178 int res = set_sched_policy(tid, sp); in android_os_Process_setThreadGroup()
289 jint tid, jint policy, jint pri) in android_os_Process_setThreadScheduler() argument
294 int rc = sched_setscheduler(tid, policy, &param); in android_os_Process_setThreadScheduler()
337 jint tid = android_os_Process_myTid(env, clazz); in android_os_Process_setCallingThreadPriority() local
338 android_os_Process_setThreadPriority(env, clazz, tid, pri); in android_os_Process_setCallingThreadPriority()
/frameworks/base/core/java/android/os/
DSchedulingPolicyService.java41 public int requestPriority(int pid, int tid, int prio) { in requestPriority() argument
50 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) { in requestPriority()
55 Process.setThreadGroup(tid, Binder.getCallingPid() == pid ? in requestPriority()
58 Process.setThreadScheduler(tid, Process.SCHED_FIFO, prio); in requestPriority()
DProcess.java739 public static final int getThreadGroupLeader(int tid) { in getThreadGroupLeader() argument
743 Process.readProcLines("/proc/" + tid + "/status", procStatusLabels, procStatusValues); in getThreadGroupLeader()
760 public static final native void setThreadPriority(int tid, int priority) in setThreadPriority() argument
786 public static final native void setThreadGroup(int tid, int group) in setThreadGroup() argument
840 public static final native int getThreadPriority(int tid) in getThreadPriority() argument
858 public static final native void setThreadScheduler(int tid, int policy, int priority) in setThreadScheduler() argument
DISchedulingPolicyService.aidl32 int requestPriority(int pid, int tid, int prio); in requestPriority() argument
/frameworks/native/libs/utils/
DThreads.cpp329 int androidSetThreadPriority(pid_t tid, int pri) in androidSetThreadPriority() argument
340 if (tid == 0) { in androidSetThreadPriority()
343 policy_tid = tid; in androidSetThreadPriority()
347 } else if (getpriority(PRIO_PROCESS, tid) >= ANDROID_PRIORITY_BACKGROUND) { in androidSetThreadPriority()
356 if (setpriority(PRIO_PROCESS, tid, pri) < 0) { in androidSetThreadPriority()
366 int androidGetThreadPriority(pid_t tid) { in androidGetThreadPriority() argument
368 return getpriority(PRIO_PROCESS, tid); in androidGetThreadPriority()
879 pid_t tid; in getTid() local
882 tid = __pthread_gettid(pthread); in getTid()
885 tid = -1; in getTid()
[all …]
/frameworks/av/services/audioflinger/
DSchedulingPolicyService.cpp28 int requestPriority(pid_t pid, pid_t tid, int32_t prio) in requestPriority() argument
49 return sps->requestPriority(pid, tid, prio); in requestPriority()
DISchedulingPolicyService.cpp40 virtual int requestPriority(int32_t pid, int32_t tid, int32_t prio) in requestPriority() argument
45 data.writeInt32(tid); in requestPriority()
DSchedulingPolicyService.h24 int requestPriority(pid_t pid, pid_t tid, int32_t prio);
DISchedulingPolicyService.h29 virtual int requestPriority(/*pid_t*/int32_t pid, /*pid_t*/int32_t tid,
DAudioFlinger.h99 pid_t tid,
111 pid_t tid,
515 PrioConfigEvent(pid_t pid, pid_t tid, int32_t prio) : in PrioConfigEvent() argument
516 ConfigEvent(CFG_EVENT_PRIO), mPid(pid), mTid(tid), mPrio(prio) {} in PrioConfigEvent()
520 pid_t tid() const { return mTid; } in tid() function
575 void sendPrioConfigEvent_l(pid_t pid, pid_t tid, int32_t prio);
1085 pid_t tid,
1505 pid_t tid,
DAudioFlinger.cpp451 pid_t tid, in createTrack() argument
506 channelMask, frameCount, sharedBuffer, lSessionId, flags, tid, &lStatus); in createTrack()
1223 void AudioFlinger::ThreadBase::sendPrioConfigEvent_l(pid_t pid, pid_t tid, int32_t prio) in sendPrioConfigEvent_l() argument
1225 PrioConfigEvent *prioEvent = new PrioConfigEvent(pid, tid, prio); in sendPrioConfigEvent_l()
1228 mConfigEvents.size(), pid, tid, prio); in sendPrioConfigEvent_l()
1245 int err = requestPriority(prioEvent->pid(), prioEvent->tid(), prioEvent->prio()); in processConfigEvents()
1248 prioEvent->prio(), prioEvent->pid(), prioEvent->tid(), err); in processConfigEvents()
1719 pid_t tid, in createTrack_l() argument
1740 (tid != -1) && in createTrack_l()
1773 channelMask, sampleRate, mSampleRate, hasFastMixer(), tid, mFastTrackAvailMask); in createTrack_l()
[all …]
/frameworks/native/include/utils/
DAndroidThreads.h81 extern int androidSetThreadPriority(pid_t tid, int prio);
85 extern int androidGetThreadPriority(pid_t tid);
/frameworks/base/tools/preload/
DRoot.java84 o = process.endOperation(record.tid, record.className, in indexClassOperation()
93 process.startOperation(record.tid, loadedClass, record.time, in indexClassOperation()
98 process.startOperation(record.tid, loadedClass, record.time, in indexClassOperation()
DRecord.java76 final int tid; field in Record
120 tid = Integer.parseInt(parts[2]); in Record()
/frameworks/av/include/media/
DIAudioFlinger.h68 pid_t tid, // -1 means unused, otherwise must be valid non-0
80 pid_t tid, // -1 means unused, otherwise must be valid non-0
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp512 glBindTexture(GL_TEXTURE_2D, frame.tid); in movie()
515 glGenTextures(1, &frame.tid); in movie()
516 glBindTexture(GL_TEXTURE_2D, frame.tid); in movie()
569 glDeleteTextures(1, &frame.tid); in movie()
DBootAnimation.h63 mutable GLuint tid; member
/frameworks/av/media/libmedia/
DIAudioFlinger.cpp96 pid_t tid, in createTrack() argument
112 data.writeInt32((int32_t) tid); in createTrack()
143 pid_t tid, in openRecord() argument
157 data.writeInt32((int32_t) tid); in openRecord()
730 pid_t tid = (pid_t) data.readInt32(); in onTransact() local
735 channelMask, bufferCount, flags, buffer, output, tid, &sessionId, &status); in onTransact()
750 pid_t tid = (pid_t) data.readInt32(); in onTransact() local
754 sampleRate, format, channelMask, bufferCount, flags, tid, &sessionId, &status); in onTransact()
DAudioRecord.cpp438 pid_t tid = -1; in openRecord_l() local
447 tid, in openRecord_l()
DAudioTrack.cpp871 pid_t tid = -1; in createTrack_l() local
875 tid = mAudioTrackThread->getTid(); in createTrack_l()
888 tid, in createTrack_l()
/frameworks/base/voip/java/com/android/server/sip/
DSipHelper.java262 ClientTransaction tid = responseEvent.getClientTransaction(); in handleChallenge() local
264 responseEvent.getResponse(), tid, mSipProvider, 5); in handleChallenge()
/frameworks/av/media/libstagefright/
DACodec.cpp3116 pid_t tid = androidGetTid(); in onAllocateComponent() local
3117 int prevPriority = androidGetThreadPriority(tid); in onAllocateComponent()
3118 androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND); in onAllocateComponent()
3120 androidSetThreadPriority(tid, prevPriority); in onAllocateComponent()
/frameworks/base/tools/aapt/
DResourceTable.cpp3816 int tid = Res_GETTYPE(resID); in getEntry() local
3817 if (tid < 0 || tid >= (int)p->getOrderedTypes().size()) { in getEntry()
3821 sp<Type> t = p->getOrderedTypes()[tid]; in getEntry()