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

/frameworks/av/include/media/
H A 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/av/media/libmedia/
H A DAudioRecord.cpp438 pid_t tid = -1; local
447 tid,
H A DAudioTrack.cpp871 pid_t tid = -1; local
875 tid = mAudioTrackThread->getTid();
888 tid,
H A DIAudioFlinger.cpp96 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 DACodec.cpp3063 pid_t tid = androidGetTid(); local
3064 int prevPriority = androidGetThreadPriority(tid);
3065 androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND);
3067 androidSetThreadPriority(tid, prevPriority);
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp451 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...]
H A DAudioFlinger.h99 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 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 DSchedulingPolicyService.cpp28 int requestPriority(pid_t pid, pid_t tid, int32_t prio) argument
49 return sps->requestPriority(pid, tid, prio);
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);
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp512 glBindTexture(GL_TEXTURE_2D, frame.tid);
515 glGenTextures(1, &frame.tid);
516 glBindTexture(GL_TEXTURE_2D, frame.tid);
569 glDeleteTextures(1, &frame.tid);
H A DBootAnimation.h63 mutable GLuint tid; member in struct:android::BootAnimation::Animation::Frame
/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 DProcess.java734 * @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...]
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);
/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/base/tools/aapt/
H A DResourceTable.cpp3811 int tid = Res_GETTYPE(resID); local
3812 if (tid < 0 || tid >= (int)p->getOrderedTypes().size()) {
3816 sp<Type> t = p->getOrderedTypes()[tid];
/frameworks/base/tools/preload/
H A DRecord.java76 final int tid; field in class:Record
120 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/base/voip/java/com/android/server/sip/
H A DSipHelper.java262 ClientTransaction tid = responseEvent.getClientTransaction();
264 responseEvent.getResponse(), tid, mSipProvider, 5);
/frameworks/native/include/utils/
H A DAndroidThreads.h81 extern int androidSetThreadPriority(pid_t tid, int prio);
85 extern int androidGetThreadPriority(pid_t tid);
/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...]

Completed in 241 milliseconds