/frameworks/av/media/utils/ |
H A D | SchedulingPolicyService.cpp | 31 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 D | ISchedulingPolicyService.cpp | 40 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 D | SchedulingPolicyService.java | 43 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 D | SchedulingPolicyService.cpp | 35 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/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 | 61 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/minikin/tests/stresstest/ |
H A D | MultithreadTest.cpp | 61 static void thread_main(int tid) { argument 68 std::mt19937 mt(tid);
|
/frameworks/av/media/libaaudio/src/binding/ |
H A D | IAAudioService.cpp | 250 pid_t tid; local 357 data.readInt32(&tid); 359 result = registerAudioThread(streamHandle, tid, nanoseconds); 369 data.readInt32(&tid); 370 result = unregisterAudioThread(streamHandle, tid);
|
/frameworks/base/tools/preload/ |
H A D | Record.java | 86 final int tid; field in class:Record 130 tid = Integer.parseInt(parts[2]);
|
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | audio.c | 189 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 D | VrController.java | 199 * @param tid the tid of the thread to set, or 0 to unset the current thread. 203 public void setVrThreadLocked(int tid, int pid, ProcessRecord proc) { argument 212 if (tid != 0) { 213 enforceThreadInProcess(tid, pid); 218 setVrRenderThreadLocked(tid, proc.curSchedGroup, false); 220 proc.vrThreadTid = (tid > 0) ? tid : 0; 233 * @param tid the tid o 237 setPersistentVrThreadLocked(int tid, int pid, ProcessRecord proc) argument 397 enforceThreadInProcess(int tid, int pid) argument [all...] |
H A D | ActivityManagerService.java | 6790 // Reset render thread tid if it was already set, so new process can set it again. 13452 public void setVrThread(int tid) { argument 13458 mVrController.setVrThreadLocked(tid, pid, proc); 13464 public void setPersistentVrThread(int tid) { argument 13478 mVrController.setPersistentVrThreadLocked(tid, pid, proc); 13486 * @param tid the tid of the thread to adjust the scheduling of. 13491 static boolean scheduleAsRegularPriority(int tid, boolean suppressLogs) { argument 13493 Process.setThreadScheduler(tid, Process.SCHED_OTHER, 0); 13510 * @param tid th 13515 scheduleAsFifoPriority(int tid, boolean suppressLogs) argument 13542 setRenderThread(int tid) argument 13589 demoteSystemServerRenderThread(int tid) argument [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.h | 63 mutable GLuint tid; member in struct:android::BootAnimation::Animation::Frame
|
/frameworks/av/media/libaudioclient/ |
H A D | AudioRecord.cpp | 646 pid_t tid = -1; local 649 tid = mAudioRecordThread->getTid(); 667 tid,
|
H A D | IAudioFlinger.cpp | 108 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, ¬ificationFrames, 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
|
H A D | AudioTrack.cpp | 1480 pid_t tid = -1; local 1486 tid = mAudioTrackThread->getTid(); 1502 tid,
|
/frameworks/av/services/audioflinger/ |
H A D | Threads.h | 131 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); 715 pid_t tid, 1334 pid_t tid,
|
H A D | AudioFlinger.cpp | 655 pid_t tid, 752 channelMask, frameCount, sharedBuffer, lSessionId, flags, tid, 1578 pid_t tid, 1614 if (!recordingAllowed(opPackageName, tid, clientUid)) { 1669 clientUid, flags, tid, &lStatus, portId); 645 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 1569 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 D | Threads.cpp | 534 ALOGI("AudioFlinger's thread %p tid=%d ready to run", this, getTid()); 615 void AudioFlinger::ThreadBase::sendPrioConfigEvent(pid_t pid, pid_t tid, int32_t prio, bool forApp) argument 618 sendPrioConfigEvent_l(pid, tid, prio, forApp); 623 pid_t pid, pid_t tid, int32_t prio, bool forApp) 625 sp<ConfigEvent> configEvent = (ConfigEvent *)new PrioConfigEvent(pid, tid, prio, forApp); 688 ALOGW("Policy SCHED_FIFO priority %d is unavailable for pid %d tid %d; error %d", 810 dprintf(fd, "\n%s thread %p, name %s, tid %d, type %d (%s):\n", isOutput() ? "Output" : "Input", 1847 pid_t tid, 1925 "hasFastMixer=%d tid=%d fastTrackAvailMask=%#x", 1928 channelMask, sampleRate, mSampleRate, hasFastMixer(), tid, mFastTrackAvailMas 622 sendPrioConfigEvent_l( pid_t pid, pid_t tid, int32_t prio, bool forApp) argument 1837 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 3743 pid_t tid = mFastMixer->getTid(); local 6076 pid_t tid = mFastCapture->getTid(); local 6609 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 D | Process.java | 626 * @param tid the thread id 628 * This is same as what getpid(2) would return if called by tid. 631 public static final int getThreadGroupLeader(int tid) { argument 635 Process.readProcLines("/proc/" + tid + "/status", procStatusLabels, procStatusValues); 642 * @param tid The identifier of the thread/process to change. 647 * <var>tid</var> does not exist. 652 public static final native void setThreadPriority(int tid, int priority) argument 667 * @param tid The identifier of the thread to change. 671 * <var>tid</var> does not exist. 681 public static final native void setThreadGroup(int tid, in argument 696 setThreadGroupAndCpuset(int tid, int group) argument 786 getThreadPriority(int tid) argument 804 getThreadScheduler(int tid) argument 823 setThreadScheduler(int tid, int policy, int priority) argument 1003 isThreadInProcess(int tid, int pid) argument [all...] |
/frameworks/native/cmds/dumpstate/ |
H A D | utils.cpp | 375 int tid; local 380 if (!(tid = atoi(de->d_name))) { 384 if (tid == pid) 387 snprintf(commpath, sizeof(commpath), "/proc/%d/comm", tid); 401 func(pid, tid, comm); 417 void show_wchan(int pid, int tid, const char *name) { argument 427 snprintf(path, sizeof(path), "/proc/%d/wchan", tid); 443 pid == tid ? 0 : 3, "", name); 445 printf("%-7d %-32s %s\n", tid, name_buffer, buffer);
|
/frameworks/base/tools/aapt/ |
H A D | ResourceTable.cpp | 4372 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 D | ACodec.cpp | 6413 pid_t tid = gettid(); local 6414 int prevPriority = androidGetThreadPriority(tid); 6415 androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND); 6417 androidSetThreadPriority(tid, prevPriority);
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityManager.java | 4357 * To reset the VR thread for an application, a tid of 0 can be passed. 4360 * @param tid tid of the VR thread 4362 public static void setVrThread(int tid) { argument 4364 getService().setVrThread(tid); 4379 * To reset the persistent VR thread, a tid of 0 can be passed. 4382 * @param tid tid of the VR thread 4386 public static void setPersistentVrThread(int tid) { argument 4388 getService().setPersistentVrThread(tid); [all...] |