/frameworks/av/services/audioflinger/ |
H A D | SchedulingPolicyService.cpp | 28 int requestPriority(pid_t pid, pid_t tid, int32_t prio) argument 49 return sps->requestPriority(pid, tid, prio);
|
H A D | ISchedulingPolicyService.cpp | 40 virtual int requestPriority(int32_t pid, int32_t tid, int32_t prio) argument 45 data.writeInt32(tid);
|
H A D | AudioFlinger.h | 99 pid_t tid, 111 pid_t tid, 515 PrioConfigEvent(pid_t pid, pid_t tid, int32_t prio) : argument 516 ConfigEvent(CFG_EVENT_PRIO), mPid(pid), mTid(tid), mPrio(prio) {} 520 pid_t tid() const { return mTid; } 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); 1085 pid_t tid, 1505 pid_t tid,
|
H A D | AudioFlinger.cpp | 451 pid_t tid, 506 channelMask, frameCount, sharedBuffer, lSessionId, flags, tid, &lStatus); 859 ALOGV("setParameters(): io %d, keyvalue %s, tid %d, calling pid %d", 944 // ALOGV("getParameters() io %d, keys %s, tid %d, calling pid %d", 1115 ALOGV("removeClient_l() pid %d, tid %d, calling tid %d", pid, gettid(), IPCThreadState::self()->getCallingPid()); 1223 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, pri 441 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_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 1709 createTrack_l( const sp<AudioFlinger::Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId, IAudioFlinger::track_flags_t flags, pid_t tid, status_t *status) argument 2359 pid_t tid = mFastMixer->getTid(); local 5878 openRecord( pid_t pid, audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, IAudioFlinger::track_flags_t flags, pid_t tid, int *sessionId, status_t *status) argument 6241 createRecordTrack_l( const sp<AudioFlinger::Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, int sessionId, IAudioFlinger::track_flags_t flags, pid_t tid, status_t *status) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | SchedulingPolicyService.java | 41 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 D | Process.java | 734 * @param tid the thread id 736 * This is same as what getpid(2) would return if called by tid. 739 public static final int getThreadGroupLeader(int tid) { argument 743 Process.readProcLines("/proc/" + tid + "/status", procStatusLabels, procStatusValues); 750 * @param tid The identifier of the thread/process to change. 755 * <var>tid</var> does not exist. 760 public static final native void setThreadPriority(int tid, int priority) argument 775 * @param tid The identifier of the thread to change. 779 * <var>tid</var> does not exist. 786 public static final native void setThreadGroup(int tid, in argument 840 getThreadPriority(int tid) argument 858 setThreadScheduler(int tid, int policy, int priority) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_server_Watchdog.cpp | 31 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 D | android_util_Process.cpp | 174 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, ¶m); 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/base/tools/preload/ |
H A D | Record.java | 76 final int tid; field in class:Record 120 tid = Integer.parseInt(parts[2]);
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.h | 63 mutable GLuint tid; member in struct:android::BootAnimation::Animation::Frame
|
/frameworks/native/libs/utils/ |
H A D | Threads.cpp | 329 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/av/media/libmedia/ |
H A D | AudioRecord.cpp | 438 pid_t tid = -1; local 447 tid,
|
H A D | AudioTrack.cpp | 871 pid_t tid = -1; local 875 tid = mAudioTrackThread->getTid(); 888 tid,
|
H A D | IAudioFlinger.cpp | 96 pid_t tid, 112 data.writeInt32((int32_t) tid); 143 pid_t tid, 157 data.writeInt32((int32_t) tid); 730 pid_t tid = (pid_t) data.readInt32(); local 735 channelMask, bufferCount, flags, buffer, output, tid, &sessionId, &status); 750 pid_t tid = (pid_t) data.readInt32(); local 754 sampleRate, format, channelMask, bufferCount, flags, tid, &sessionId, &status); 86 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_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 135 openRecord( pid_t pid, audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, int frameCount, track_flags_t flags, pid_t tid, int *sessionId, status_t *status) argument
|
/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 3116 pid_t tid = androidGetTid(); local 3117 int prevPriority = androidGetThreadPriority(tid); 3118 androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND); 3120 androidSetThreadPriority(tid, prevPriority);
|
/frameworks/base/tools/aapt/ |
H A D | ResourceTable.cpp | 3816 int tid = Res_GETTYPE(resID); local 3817 if (tid < 0 || tid >= (int)p->getOrderedTypes().size()) { 3821 sp<Type> t = p->getOrderedTypes()[tid];
|