Searched defs:tid (Results 1 - 21 of 21) 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.cpp41 virtual int requestPriority(int32_t pid, int32_t tid, argument
47 data.writeInt32(tid);
/frameworks/minikin/tests/stresstest/
H A DMultithreadTest.cpp61 static void thread_main(int tid) { argument
68 std::mt19937 mt(tid);
/frameworks/native/services/schedulerservice/
H A DSchedulingPolicyService.cpp38 Return<bool> SchedulingPolicyService::requestPriority(int32_t pid, int32_t tid, int32_t priority) { argument
50 int value = ::android::requestPriority(pid, tid, priority, false /* isForApp */);
/frameworks/native/services/surfaceflinger/
H A DEventControlThread.cpp37 pid_t tid = pthread_gettid_np(mThread.native_handle()); local
38 setpriority(PRIO_PROCESS, tid, ANDROID_PRIORITY_URGENT_DISPLAY);
39 set_sched_policy(tid, SP_FOREGROUND);
H A DEventThread.cpp64 pid_t tid = pthread_gettid_np(mThread.native_handle()); local
74 set_sched_policy(tid, SP_FOREGROUND);
/frameworks/av/media/libaaudio/src/binding/
H A DIAAudioService.cpp244 pid_t tid; local
351 data.readInt32(&tid);
353 result = registerAudioThread(streamHandle, tid, nanoseconds);
363 data.readInt32(&tid);
364 result = unregisterAudioThread(streamHandle, tid);
/frameworks/base/services/core/java/com/android/server/os/
H A DSchedulingPolicyService.java83 public int requestPriority(int pid, int tid, int prio, boolean isForApp) { argument
84 //Log.i(TAG, "requestPriority(pid=" + pid + ", tid=" + tid + ", prio=" + prio + ")");
90 // we can't trust the tid. No need to explicitly check for pid == 0 || tid == 0,
93 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) {
99 Process.setThreadGroup(tid, !isForApp ?
108 Process.setThreadScheduler(tid, Process.SCHED_FIFO | Process.SCHED_RESET_ON_FORK,
/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.java214 * @param tid the tid of the thread to set, or 0 to unset the current thread.
218 public void setVrThreadLocked(int tid, int pid, ProcessRecord proc) { argument
227 if (tid != 0) {
228 enforceThreadInProcess(tid, pid);
233 setVrRenderThreadLocked(tid, proc.curSchedGroup, false);
235 proc.vrThreadTid = (tid > 0) ? tid : 0;
248 * @param tid the tid o
252 setPersistentVrThreadLocked(int tid, int pid, ProcessRecord proc) argument
412 enforceThreadInProcess(int tid, int pid) argument
[all...]
H A DActivityManagerService.java7446 // Reset render thread tid if it was already set, so new process can set it again.
14364 public void setVrThread(int tid) { argument
14370 mVrController.setVrThreadLocked(tid, pid, proc);
14376 public void setPersistentVrThread(int tid) { argument
14390 mVrController.setPersistentVrThreadLocked(tid, pid, proc);
14398 * @param tid the tid of the thread to adjust the scheduling of.
14403 static boolean scheduleAsRegularPriority(int tid, boolean suppressLogs) { argument
14405 Process.setThreadScheduler(tid, Process.SCHED_OTHER, 0);
14422 * @param tid th
14427 scheduleAsFifoPriority(int tid, boolean suppressLogs) argument
14455 setRenderThread(int tid) argument
14502 demoteSystemServerRenderThread(int tid) argument
[all...]
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.h63 mutable GLuint tid; member in struct:android::BootAnimation::Animation::Frame
/frameworks/base/core/java/android/os/
H A DProcess.java664 * @param tid the thread id
666 * This is same as what getpid(2) would return if called by tid.
669 public static final int getThreadGroupLeader(int tid) { argument
673 Process.readProcLines("/proc/" + tid + "/status", procStatusLabels, procStatusValues);
680 * @param tid The identifier of the thread/process to change.
685 * <var>tid</var> does not exist.
690 public static final native void setThreadPriority(int tid, int priority) argument
705 * @param tid The identifier of the thread to change.
709 * <var>tid</var> does not exist.
719 public static final native void setThreadGroup(int tid, in argument
734 setThreadGroupAndCpuset(int tid, int group) argument
824 getThreadPriority(int tid) argument
842 getThreadScheduler(int tid) argument
861 setThreadScheduler(int tid, int policy, int priority) argument
1041 isThreadInProcess(int tid, int pid) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_Process.cpp61 static void signalExceptionForError(JNIEnv* env, int err, int tid) { argument
65 "Invalid argument: %d", tid);
69 "Given thread %d does not exist", tid);
73 "No permission to modify given thread %d", tid);
81 static void signalExceptionForPriorityError(JNIEnv* env, int err, int tid) { argument
85 "No permission to set the priority of %d", tid);
88 signalExceptionForError(env, err, tid);
94 static void signalExceptionForGroupError(JNIEnv* env, int err, int tid) { argument
98 "No permission to set the group of %d", tid);
101 signalExceptionForError(env, err, tid);
170 android_os_Process_setThreadGroup(JNIEnv* env, jobject clazz, int tid, jint grp) argument
180 android_os_Process_setThreadGroupAndCpuset(JNIEnv* env, jobject clazz, int tid, jint grp) argument
460 android_os_Process_getThreadScheduler(JNIEnv* env, jclass clazz, jint tid) argument
477 android_os_Process_setThreadScheduler(JNIEnv* env, jclass clazz, jint tid, jint policy, jint pri) argument
[all...]
/frameworks/native/cmds/dumpstate/
H A Dutils.cpp347 int tid; local
352 if (!(tid = atoi(de->d_name))) {
356 if (tid == pid)
359 snprintf(commpath, sizeof(commpath), "/proc/%d/comm", tid);
373 func(pid, tid, comm);
389 void show_wchan(int pid, int tid, const char *name) { argument
399 snprintf(path, sizeof(path), "/proc/%d/wchan", tid);
415 pid == tid ? 0 : 3, "", name);
417 printf("%-7d %-32s %s\n", tid, name_buffer, buffer);
/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);
273 void sendPrioConfigEvent(pid_t pid, pid_t tid, int32_t prio, bool forApp);
274 void sendPrioConfigEvent_l(pid_t pid, pid_t tid, int32_t prio, bool forApp);
729 pid_t tid,
1414 pid_t tid,
H A DThreads.cpp537 ALOGI("AudioFlinger's thread %p tid=%d ready to run", this, getTid());
618 void AudioFlinger::ThreadBase::sendPrioConfigEvent(pid_t pid, pid_t tid, int32_t prio, bool forApp) argument
621 sendPrioConfigEvent_l(pid, tid, prio, forApp);
626 pid_t pid, pid_t tid, int32_t prio, bool forApp)
628 sp<ConfigEvent> configEvent = (ConfigEvent *)new PrioConfigEvent(pid, tid, prio, forApp);
691 ALOGW("Policy SCHED_FIFO priority %d is unavailable for pid %d tid %d; error %d",
813 dprintf(fd, "\n%s thread %p, name %s, tid %d, type %d (%s):\n", isOutput() ? "Output" : "Input",
1872 pid_t tid,
1957 "hasFastMixer=%d tid=%d fastTrackAvailMask=%#x",
1960 channelMask, sampleRate, mSampleRate, hasFastMixer(), tid, mFastTrackAvailMas
625 sendPrioConfigEvent_l( pid_t pid, pid_t tid, int32_t prio, bool forApp) argument
1858 createTrack_l( const sp<AudioFlinger::Client>& client, audio_stream_type_t streamType, const audio_attributes_t& attr, uint32_t *pSampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *pFrameCount, size_t *pNotificationFrameCount, uint32_t notificationsPerBuffer, float speed, 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
3940 pid_t tid = mFastMixer->getTid(); local
6356 pid_t tid = mFastCapture->getTid(); local
6911 createRecordTrack_l( const sp<AudioFlinger::Client>& client, const audio_attributes_t& attr, uint32_t *pSampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *pFrameCount, audio_session_t sessionId, size_t *pNotificationFrameCount, uid_t uid, audio_input_flags_t *flags, pid_t tid, status_t *status, audio_port_handle_t portId) argument
[all...]
/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.cpp6482 pid_t tid = gettid(); local
6483 int prevPriority = androidGetThreadPriority(tid);
6484 androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND);
6486 androidSetThreadPriority(tid, prevPriority);
/frameworks/base/core/java/android/app/
H A DActivityManager.java4259 * To reset the VR thread for an application, a tid of 0 can be passed.
4262 * @param tid tid of the VR thread
4264 public static void setVrThread(int tid) { argument
4266 getService().setVrThread(tid);
4281 * To reset the persistent VR thread, a tid of 0 can be passed.
4284 * @param tid tid of the VR thread
4288 public static void setPersistentVrThread(int tid) { argument
4290 getService().setPersistentVrThread(tid);
[all...]

Completed in 6176 milliseconds