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

/frameworks/av/media/utils/
H A DSchedulingPolicyService.cpp31 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool isForApp, bool asynchronous) argument
50 ret = sps->requestPriority(pid, tid, prio, isForApp, asynchronous);
H A DISchedulingPolicyService.cpp40 virtual int requestPriority(int32_t pid, int32_t tid, argument
46 data.writeInt32(tid);
/frameworks/base/services/core/java/com/android/server/os/
H A DSchedulingPolicyService.java43 public int requestPriority(int pid, int tid, int prio, boolean isForApp) { argument
44 //Log.i(TAG, "requestPriority(pid=" + pid + ", tid=" + tid + ", prio=" + prio + ")");
50 // we can't trust the tid. No need to explicitly check for pid == 0 || tid == 0,
53 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) {
59 Process.setThreadGroup(tid, !isForApp ?
68 Process.setThreadScheduler(tid, Process.SCHED_FIFO | Process.SCHED_RESET_ON_FORK,
/frameworks/native/services/schedulerservice/
H A DSchedulingPolicyService.cpp35 Return<bool> SchedulingPolicyService::requestPriority(int32_t pid, int32_t tid, int32_t priority) { argument
47 int value = ::android::requestPriority(pid, tid, priority, false /* isForApp */);
/frameworks/av/media/libaaudio/src/binding/
H A DIAAudioService.cpp244 pid_t tid; local
330 data.readInt32(&tid);
332 result = registerAudioThread(stream, pid, tid, nanoseconds);
342 data.readInt32(&tid);
343 result = unregisterAudioThread(stream, pid, 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.cpp60 static void signalExceptionForError(JNIEnv* env, int err, int tid) { argument
64 "Invalid argument: %d", tid);
68 "Given thread %d does not exist", tid);
72 "No permission to modify given thread %d", tid);
80 static void signalExceptionForPriorityError(JNIEnv* env, int err, int tid) { argument
84 "No permission to set the priority of %d", tid);
87 signalExceptionForError(env, err, tid);
93 static void signalExceptionForGroupError(JNIEnv* env, int err, int tid) { argument
97 "No permission to set the group of %d", tid);
100 signalExceptionForError(env, err, tid);
169 android_os_Process_setThreadGroup(JNIEnv* env, jobject clazz, int tid, jint grp) argument
179 android_os_Process_setThreadGroupAndCpuset(JNIEnv* env, jobject clazz, int tid, jint grp) argument
458 android_os_Process_getThreadScheduler(JNIEnv* env, jclass clazz, jint tid) argument
475 android_os_Process_setThreadScheduler(JNIEnv* env, jclass clazz, jint tid, jint policy, jint pri) argument
[all...]
/frameworks/minikin/tests/stresstest/
H A DMultithreadTest.cpp61 static void thread_main(int tid) { argument
68 std::mt19937 mt(tid);
/frameworks/base/tools/preload/
H A DRecord.java86 final int tid; field in class:Record
130 tid = Integer.parseInt(parts[2]);
/frameworks/base/libs/usb/tests/accessorytest/
H A Daudio.c189 pthread_t tid; local
216 pthread_create(&tid, NULL, capture_thread, NULL);
217 pthread_create(&tid, NULL, play_thread, pcm);
/frameworks/base/services/core/java/com/android/server/am/
H A DVrController.java194 * @param tid the tid of the thread to set, or 0 to unset the current thread.
198 public void setVrThreadLocked(int tid, int pid, ProcessRecord proc) { argument
207 if (tid != 0) {
208 enforceThreadInProcess(tid, pid);
213 setVrRenderThreadLocked(tid, proc.curSchedGroup, false);
215 proc.vrThreadTid = (tid > 0) ? tid : 0;
228 * @param tid the tid o
232 setPersistentVrThreadLocked(int tid, int pid, ProcessRecord proc) argument
392 enforceThreadInProcess(int tid, int pid) argument
[all...]
H A DActivityManagerService.java6596 // Reset render thread tid if it was already set, so new process can set it again.
13344 public void setVrThread(int tid) { argument
13350 mVrController.setVrThreadLocked(tid, pid, proc);
13356 public void setPersistentVrThread(int tid) { argument
13370 mVrController.setPersistentVrThreadLocked(tid, pid, proc);
13378 * @param newTid the tid of the thread to adjust the scheduling of.
13383 static boolean scheduleAsRegularPriority(int tid, boolean suppressLogs) { argument
13385 Process.setThreadScheduler(tid, Process.SCHED_OTHER, 0);
13398 * @param newTid the tid of the thread to adjust the scheduling of.
13403 static boolean scheduleAsFifoPriority(int tid, boolea argument
13426 setRenderThread(int tid) argument
13473 demoteSystemServerRenderThread(int tid) argument
[all...]
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.h101 mutable GLuint tid; member in struct:android::BootAnimation::Animation::Frame
/frameworks/av/media/libaudioclient/
H A DAudioRecord.cpp613 pid_t tid = -1; local
616 tid = mAudioRecordThread->getTid();
634 tid,
H A DAudioTrack.cpp1417 pid_t tid = -1; local
1420 tid = mAudioTrackThread->getTid();
1436 tid,
H A DIAudioFlinger.cpp108 pid_t tid,
134 data.writeInt32((int32_t) tid);
187 pid_t tid,
209 data.writeInt32((int32_t) tid);
986 pid_t tid = (pid_t) data.readInt32(); local
999 channelMask, &frameCount, &flags, buffer, output, pid, tid,
1020 pid_t tid = (pid_t) data.readInt32(); local
1030 pid, tid, clientUid, &sessionId, &notificationFrames, cblk, buffers,
98 createTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *pFrameCount, audio_output_flags_t *flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t pid, pid_t tid, audio_session_t *sessionId, int clientUid, status_t *status, audio_port_handle_t portId) argument
178 openRecord( audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t *pFrameCount, audio_input_flags_t *flags, pid_t pid, pid_t tid, int clientUid, audio_session_t *sessionId, size_t *notificationFrames, sp<IMemory>& cblk, sp<IMemory>& buffers, status_t *status, audio_port_handle_t portId) argument
/frameworks/av/services/audioflinger/
H A DThreads.h131 PrioConfigEventData(pid_t pid, pid_t tid, int32_t prio, bool forApp) : argument
132 mPid(pid), mTid(tid), mPrio(prio), mForApp(forApp) {}
135 snprintf(buffer, size, "Prio event: pid %d, tid %d, prio %d, for app? %d\n",
147 PrioConfigEvent(pid_t pid, pid_t tid, int32_t prio, bool forApp) : argument
149 mData = new PrioConfigEventData(pid, tid, prio, forApp);
274 void sendPrioConfigEvent(pid_t pid, pid_t tid, int32_t prio, bool forApp);
275 void sendPrioConfigEvent_l(pid_t pid, pid_t tid, int32_t prio, bool forApp);
713 pid_t tid,
1332 pid_t tid,
H A DAudioFlinger.cpp649 pid_t tid,
746 channelMask, frameCount, sharedBuffer, lSessionId, flags, tid,
1587 pid_t tid,
1623 if (!recordingAllowed(opPackageName, tid, clientUid)) {
1678 clientUid, flags, tid, &lStatus, portId);
639 createTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *frameCount, audio_output_flags_t *flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t pid, pid_t tid, audio_session_t *sessionId, int clientUid, status_t *status, audio_port_handle_t portId) argument
1578 openRecord( audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t *frameCount, audio_input_flags_t *flags, pid_t pid, pid_t tid, int clientUid, audio_session_t *sessionId, size_t *notificationFrames, sp<IMemory>& cblk, sp<IMemory>& buffers, status_t *status, audio_port_handle_t portId) argument
H A DThreads.cpp538 ALOGI("AudioFlinger's thread %p tid=%d ready to run", this, getTid());
619 void AudioFlinger::ThreadBase::sendPrioConfigEvent(pid_t pid, pid_t tid, int32_t prio, bool forApp) argument
622 sendPrioConfigEvent_l(pid, tid, prio, forApp);
627 pid_t pid, pid_t tid, int32_t prio, bool forApp)
629 sp<ConfigEvent> configEvent = (ConfigEvent *)new PrioConfigEvent(pid, tid, prio, forApp);
692 ALOGW("Policy SCHED_FIFO priority %d is unavailable for pid %d tid %d; error %d",
814 dprintf(fd, "\n%s thread %p, name %s, tid %d, type %d (%s):\n", isOutput() ? "Output" : "Input",
1841 pid_t tid,
1919 "hasFastMixer=%d tid=%d fastTrackAvailMask=%#x",
1922 channelMask, sampleRate, mSampleRate, hasFastMixer(), tid, mFastTrackAvailMas
626 sendPrioConfigEvent_l( pid_t pid, pid_t tid, int32_t prio, bool forApp) argument
1831 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 *pFrameCount, const sp<IMemory>& sharedBuffer, audio_session_t sessionId, audio_output_flags_t *flags, pid_t tid, uid_t uid, status_t *status, audio_port_handle_t portId) argument
3740 pid_t tid = mFastMixer->getTid(); local
6044 pid_t tid = mFastCapture->getTid(); local
6577 createRecordTrack_l( const sp<AudioFlinger::Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *pFrameCount, audio_session_t sessionId, size_t *notificationFrames, uid_t uid, audio_input_flags_t *flags, pid_t tid, status_t *status, audio_port_handle_t portId) argument
[all...]
/frameworks/base/core/java/android/os/
H A DProcess.java620 * @param tid the thread id
622 * This is same as what getpid(2) would return if called by tid.
625 public static final int getThreadGroupLeader(int tid) { argument
629 Process.readProcLines("/proc/" + tid + "/status", procStatusLabels, procStatusValues);
636 * @param tid The identifier of the thread/process to change.
641 * <var>tid</var> does not exist.
646 public static final native void setThreadPriority(int tid, int priority) argument
661 * @param tid The identifier of the thread to change.
665 * <var>tid</var> does not exist.
675 public static final native void setThreadGroup(int tid, in argument
690 setThreadGroupAndCpuset(int tid, int group) argument
779 getThreadPriority(int tid) argument
797 getThreadScheduler(int tid) argument
816 setThreadScheduler(int tid, int policy, int priority) argument
996 isThreadInProcess(int tid, int pid) argument
[all...]
/frameworks/native/cmds/dumpstate/
H A Dutils.cpp372 int tid; local
377 if (!(tid = atoi(de->d_name))) {
381 if (tid == pid)
384 snprintf(commpath, sizeof(commpath), "/proc/%d/comm", tid);
398 func(pid, tid, comm);
414 void show_wchan(int pid, int tid, const char *name) { argument
424 snprintf(path, sizeof(path), "/proc/%d/wchan", tid);
440 pid == tid ? 0 : 3, "", name);
442 printf("%-7d %-32s %s\n", tid, name_buffer, buffer);
/frameworks/base/tools/aapt/
H A DResourceTable.cpp4372 int tid = Res_GETTYPE(resID); local
4373 if (tid < 0 || tid >= (int)p->getOrderedTypes().size()) {
4377 sp<Type> t = p->getOrderedTypes()[tid];
/frameworks/av/media/libstagefright/
H A DACodec.cpp6382 pid_t tid = gettid(); local
6383 int prevPriority = androidGetThreadPriority(tid);
6384 androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND);
6386 androidSetThreadPriority(tid, prevPriority);
/frameworks/base/core/java/android/app/
H A DActivityManager.java4340 * To reset the VR thread for an application, a tid of 0 can be passed.
4343 * @param tid tid of the VR thread
4345 public static void setVrThread(int tid) { argument
4347 getService().setVrThread(tid);
4362 * To reset the persistent VR thread, a tid of 0 can be passed.
4365 * @param tid tid of the VR thread
4369 public static void setPersistentVrThread(int tid) { argument
4371 getService().setPersistentVrThread(tid);
[all...]

Completed in 703 milliseconds