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

/frameworks/base/core/java/android/os/
H A DISchedulingPolicyService.aidl28 * Move thread tid into appropriate cgroup and assign it priority prio.
29 * The thread group leader of tid must be pid.
32 int requestPriority(int pid, int tid, int prio);
H A DSchedulingPolicyService.java41 public int requestPriority(int pid, int tid, int prio) { argument
42 //Log.i(TAG, "requestPriority(pid=" + pid + ", tid=" + tid + ", prio=" + prio + ")");
47 // we can't trust the tid. No need to explicitly check for pid == 0 || tid == 0,
50 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) {
55 Process.setThreadGroup(tid, Binder.getCallingPid() == pid ?
58 Process.setThreadScheduler(tid, Process.SCHED_FIFO, prio);
H A DProcess.java686 * @param tid the thread id
688 * This is same as what getpid(2) would return if called by tid.
691 public static final int getThreadGroupLeader(int tid) { argument
695 Process.readProcLines("/proc/" + tid + "/status", procStatusLabels, procStatusValues);
702 * @param tid The identifier of the thread/process to change.
707 * <var>tid</var> does not exist.
712 public static final native void setThreadPriority(int tid, int priority) argument
727 * @param tid The identifier of the thread to change.
731 * <var>tid</var> does not exist.
738 public static final native void setThreadGroup(int tid, in argument
792 getThreadPriority(int tid) argument
810 setThreadScheduler(int tid, int policy, int priority) argument
[all...]
/frameworks/av/services/audioflinger/
H A DSchedulingPolicyService.h22 // Request elevated priority for thread tid, whose thread group leader must be pid.
24 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
45 data.writeInt32(tid);
H A DISchedulingPolicyService.h29 virtual int requestPriority(/*pid_t*/int32_t pid, /*pid_t*/int32_t tid,
H A DAudioFlinger.cpp448 pid_t tid,
503 channelMask, frameCount, sharedBuffer, lSessionId, flags, tid, &lStatus);
850 ALOGV("setParameters(): io %d, keyvalue %s, tid %d, calling pid %d",
933 // ALOGV("getParameters() io %d, keys %s, tid %d, calling pid %d",
1105 ALOGV("removeClient_l() pid %d, tid %d, calling tid %d", pid, gettid(), IPCThreadState::self()->getCallingPid());
1668 pid_t tid,
1689 (tid != -1) &&
1719 "hasFastMixer=%d tid=%d fastTrackAvailMask=%#x",
1722 channelMask, sampleRate, mSampleRate, hasFastMixer(), tid, mFastTrackAvailMas
438 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, IAudioFlinger::track_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, status_t *status) argument
1658 createTrack_l( const sp<AudioFlinger::Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId, IAudioFlinger::track_flags_t flags, pid_t tid, status_t *status) argument
2309 pid_t tid = mFastMixer->getTid(); local
[all...]
H A DAudioFlinger.h99 pid_t tid,
992 pid_t tid,
/frameworks/base/core/jni/
H A Dandroid_server_Watchdog.cpp31 static void dumpOneStack(int tid, int outFd) { argument
34 snprintf(buf, sizeof(buf), "/proc/%d/stack", tid);
51 ALOGE("Unable to open stack of tid %d : %d (%s)", tid, errno, strerror(errno));
83 int tid = atoi(ent->d_name); local
84 if (tid > 0 && tid <= 65535) {
86 dumpOneStack(tid, outFd);
H A Dandroid_util_Process.cpp174 void android_os_Process_setThreadGroup(JNIEnv* env, jobject clazz, int tid, jint grp) argument
176 ALOGV("%s tid=%d grp=%d", __func__, tid, grp);
178 int res = set_sched_policy(tid, sp);
275 ALOGV("Process.setCanSelfBackground(%d) : tid=%d", bgOk, androidGetTid());
289 jint tid, jint policy, jint pri)
294 int rc = sched_setscheduler(tid, policy, &param);
337 jint tid = android_os_Process_myTid(env, clazz); local
338 android_os_Process_setThreadPriority(env, clazz, tid, pri);
288 android_os_Process_setThreadScheduler(JNIEnv* env, jclass clazz, jint tid, jint policy, jint pri) argument
/frameworks/native/include/utils/
H A DAndroidThreads.h81 extern int androidSetThreadPriority(pid_t tid, int prio);
85 extern int androidGetThreadPriority(pid_t tid);
/frameworks/base/tools/preload/
H A DRecord.java72 final int tid; field in class:Record
116 tid = Integer.parseInt(parts[2]);
H A DRoot.java84 o = process.endOperation(record.tid, record.className,
93 process.startOperation(record.tid, loadedClass, record.time,
98 process.startOperation(record.tid, loadedClass, record.time,
/frameworks/native/libs/utils/
H A DThreads.cpp329 int androidSetThreadPriority(pid_t tid, int pri) argument
338 // set_sched_policy does not support tid == 0
340 if (tid == 0) {
343 policy_tid = tid;
347 } else if (getpriority(PRIO_PROCESS, tid) >= ANDROID_PRIORITY_BACKGROUND) {
356 if (setpriority(PRIO_PROCESS, tid, pri) < 0) {
366 int androidGetThreadPriority(pid_t tid) { argument
368 return getpriority(PRIO_PROCESS, tid);
506 //printf("+++ wait: incr waitersCount to %d (tid=%ld)\n",
522 //printf("+++ wait: awake (tid
879 pid_t tid; local
[all...]
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.h63 mutable GLuint tid; member in struct:android::BootAnimation::Animation::Frame
H A DBootAnimation.cpp509 glBindTexture(GL_TEXTURE_2D, frame.tid);
512 glGenTextures(1, &frame.tid);
513 glBindTexture(GL_TEXTURE_2D, frame.tid);
566 glDeleteTextures(1, &frame.tid);
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp307 pid_t tid; local
311 tid = t->getTid(); // pid_t is unknown until run()
312 ALOGV("getTid=%d", tid);
313 if (tid == -1) {
314 tid = 0;
318 tid = 0; // not gettid()
H A DIAudioFlinger.cpp94 pid_t tid,
110 data.writeInt32((int32_t) tid);
706 pid_t tid = (pid_t) data.readInt32(); local
711 channelCount, bufferCount, flags, buffer, output, tid, &sessionId, &status);
84 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, track_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, status_t *status) argument
H A DAudioTrack.cpp865 pid_t tid = -1; local
869 tid = mAudioTrackThread->getTid();
882 tid,
/frameworks/av/include/media/
H A DIAudioFlinger.h68 pid_t tid, // -1 means unused, otherwise must be valid non-0
/frameworks/base/voip/java/com/android/server/sip/
H A DSipHelper.java262 ClientTransaction tid = responseEvent.getClientTransaction();
264 responseEvent.getResponse(), tid, mSipProvider, 5);
/frameworks/av/media/libstagefright/
H A DACodec.cpp2932 pid_t tid = androidGetTid(); local
2933 int prevPriority = androidGetThreadPriority(tid);
2934 androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND);
2936 androidSetThreadPriority(tid, prevPriority);
/frameworks/base/tools/aapt/
H A DResourceTable.cpp3795 int tid = Res_GETTYPE(resID); local
3796 if (tid < 0 || tid >= (int)p->getOrderedTypes().size()) {
3800 sp<Type> t = p->getOrderedTypes()[tid];

Completed in 548 milliseconds