Searched defs:tid (Results 1 - 17 of 17) sorted by relevance

/frameworks/av/services/audioflinger/
H A DISchedulingPolicyService.cpp40 virtual int requestPriority(int32_t pid, int32_t tid, int32_t prio, bool asynchronous) argument
45 data.writeInt32(tid);
H A DSchedulingPolicyService.cpp31 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool asynchronous) argument
50 ret = sps->requestPriority(pid, tid, prio, asynchronous);
H A DThreads.h83 PrioConfigEvent(pid_t pid, pid_t tid, int32_t prio) : argument
84 ConfigEvent(CFG_EVENT_PRIO), mPid(pid), mTid(tid), mPrio(prio) {}
88 pid_t tid() const { return mTid; } function in class:ThreadBase::PrioConfigEvent
92 snprintf(buffer, size, "Prio event: pid %d, tid %d, prio %d\n", mPid, mTid, mPrio);
142 void sendPrioConfigEvent_l(pid_t pid, pid_t tid, int32_t prio);
426 pid_t tid,
885 pid_t tid,
H A DAudioFlinger.cpp448 pid_t tid,
515 channelMask, frameCount, sharedBuffer, lSessionId, flags, tid, clientUid, &lStatus);
1235 pid_t tid,
1295 flags, tid, &lStatus);
439 createTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, IAudioFlinger::track_flags_t *flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, String8& name, int clientUid, status_t *status) argument
1228 openRecord( audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, IAudioFlinger::track_flags_t *flags, pid_t tid, int *sessionId, status_t *status) argument
H A DThreads.cpp361 void AudioFlinger::ThreadBase::sendPrioConfigEvent_l(pid_t pid, pid_t tid, int32_t prio) argument
363 PrioConfigEvent *prioEvent = new PrioConfigEvent(pid, tid, prio);
365 ALOGV("sendPrioConfigEvent_l() num events %d pid %d, tid %d prio %d",
366 mConfigEvents.size(), pid, tid, prio);
384 int err = requestPriority(prioEvent->pid(), prioEvent->tid(), prioEvent->prio(),
387 ALOGW("Policy SCHED_FIFO priority %d is unavailable for pid %d tid %d; "
389 prioEvent->prio(), prioEvent->pid(), prioEvent->tid(), err);
1189 pid_t tid,
1211 (tid != -1) &&
1241 "hasFastMixer=%d tid
1179 createTrack_l( const sp<AudioFlinger::Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, const sp<IMemory>& sharedBuffer, int sessionId, IAudioFlinger::track_flags_t *flags, pid_t tid, int uid, status_t *status) argument
2559 pid_t tid = mFastMixer->getTid(); local
4663 createRecordTrack_l( const sp<AudioFlinger::Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, int sessionId, int uid, IAudioFlinger::track_flags_t *flags, pid_t tid, status_t *status) argument
[all...]
/frameworks/base/services/java/com/android/server/os/
H A DSchedulingPolicyService.java40 public int requestPriority(int pid, int tid, int prio) { argument
41 //Log.i(TAG, "requestPriority(pid=" + pid + ", tid=" + tid + ", prio=" + prio + ")");
46 // we can't trust the tid. No need to explicitly check for pid == 0 || tid == 0,
49 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) {
54 Process.setThreadGroup(tid, Binder.getCallingPid() == pid ?
57 Process.setThreadScheduler(tid, Process.SCHED_FIFO, prio);
/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.cpp160 void android_os_Process_setThreadGroup(JNIEnv* env, jobject clazz, int tid, jint grp) argument
162 ALOGV("%s tid=%d grp=%d", __func__, tid, grp);
164 int res = set_sched_policy(tid, sp);
270 ALOGV("Process.setCanSelfBackground(%d) : tid=%d", bgOk, androidGetTid());
284 jint tid, jint policy, jint pri)
289 int rc = sched_setscheduler(tid, policy, &param);
283 android_os_Process_setThreadScheduler(JNIEnv* env, jclass clazz, jint tid, jint policy, jint pri) argument
/frameworks/base/tools/preload/
H A DRecord.java86 final int tid; field in class:Record
130 tid = Integer.parseInt(parts[2]);
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.h63 mutable GLuint tid; member in struct:android::BootAnimation::Animation::Frame
/frameworks/av/media/libmedia/
H A DAudioRecord.cpp434 pid_t tid = -1; local
445 tid = mAudioRecordThread->getTid();
471 tid,
H A DAudioTrack.cpp982 pid_t tid = -1; local
986 tid = mAudioTrackThread->getTid();
1004 tid,
H A DIAudioFlinger.cpp96 pid_t tid,
119 data.writeInt32((int32_t) tid);
155 pid_t tid,
169 data.writeInt32((int32_t) tid);
765 pid_t tid = (pid_t) data.readInt32(); local
778 channelMask, frameCount, &flags, buffer, output, tid,
796 pid_t tid = (pid_t) data.readInt32(); local
800 sampleRate, format, channelMask, frameCount, &flags, tid, &sessionId, &status);
87 createTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, track_flags_t *flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t tid, int *sessionId, String8& name, int clientUid, status_t *status) argument
148 openRecord( audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, track_flags_t *flags, pid_t tid, int *sessionId, status_t *status) argument
/frameworks/native/cmds/dumpstate/
H A Dutils.c113 int tid; local
118 if (!(tid = atoi(de->d_name))) {
122 if (tid == pid)
125 sprintf(commpath,"/proc/%d/comm", tid);
139 func(pid, tid, comm);
149 void show_wchan(int pid, int tid, const char *name) { argument
157 sprintf(path, "/proc/%d/wchan", tid);
169 pid == tid ? 0 : 3, "", name);
171 printf("%-7d %-32s %s\n", tid, name_buffer, buffer);
/frameworks/base/core/java/android/os/
H A DProcess.java746 * @param tid the thread id
748 * This is same as what getpid(2) would return if called by tid.
751 public static final int getThreadGroupLeader(int tid) { argument
755 Process.readProcLines("/proc/" + tid + "/status", procStatusLabels, procStatusValues);
762 * @param tid The identifier of the thread/process to change.
767 * <var>tid</var> does not exist.
772 public static final native void setThreadPriority(int tid, int priority) argument
787 * @param tid The identifier of the thread to change.
791 * <var>tid</var> does not exist.
798 public static final native void setThreadGroup(int tid, in argument
860 getThreadPriority(int tid) argument
878 setThreadScheduler(int tid, int policy, int priority) argument
[all...]
/frameworks/av/media/libstagefright/
H A DACodec.cpp3645 pid_t tid = androidGetTid(); local
3646 int prevPriority = androidGetThreadPriority(tid);
3647 androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND);
3649 androidSetThreadPriority(tid, prevPriority);
/frameworks/base/tools/aapt/
H A DResourceTable.cpp3877 int tid = Res_GETTYPE(resID); local
3878 if (tid < 0 || tid >= (int)p->getOrderedTypes().size()) {
3882 sp<Type> t = p->getOrderedTypes()[tid];

Completed in 391 milliseconds