Searched refs:tid (Results 1 - 25 of 34) sorted by relevance

12

/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.java933 * @param tid the thread id
935 * This is same as what getpid(2) would return if called by tid.
938 public static final int getThreadGroupLeader(int tid) { argument
942 Process.readProcLines("/proc/" + tid + "/status", procStatusLabels, procStatusValues);
949 * @param tid The identifier of the thread/process to change.
954 * <var>tid</var> does not exist.
959 public static final native void setThreadPriority(int tid, int priority) argument
974 * @param tid The identifier of the thread to change.
978 * <var>tid</var> does not exist.
988 public static final native void setThreadGroup(int tid, in argument
1077 getThreadPriority(int tid) argument
1095 getThreadScheduler(int tid) argument
1114 setThreadScheduler(int tid, int policy, int priority) argument
1294 isThreadInProcess(int tid, int pid) argument
[all...]
/frameworks/av/media/utils/include/mediautils/
H A DSchedulingPolicyService.h22 // Request elevated priority for thread tid, whose thread group leader must be pid.
27 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool asynchronous = false);
/frameworks/base/services/core/java/com/android/server/os/
H A DSchedulingPolicyService.java40 public int requestPriority(int pid, int tid, int prio) { argument
41 //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 | Process.SCHED_RESET_ON_FORK,
/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.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
445 android_os_Process_getThreadScheduler(JNIEnv* env, jclass clazz, jint tid) argument
462 android_os_Process_setThreadScheduler(JNIEnv* env, jclass clazz, jint tid, jint policy, jint pri) argument
[all...]
/frameworks/av/media/utils/
H A DSchedulingPolicyService.cpp31 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool asynchronous) argument
50 ret = sps->requestPriority(pid, tid, prio, asynchronous);
H A DISchedulingPolicyService.h29 virtual int requestPriority(/*pid_t*/int32_t pid, /*pid_t*/int32_t tid,
H A DISchedulingPolicyService.cpp40 virtual int requestPriority(int32_t pid, int32_t tid, int32_t prio, bool asynchronous) argument
45 data.writeInt32(tid);
/frameworks/base/tools/preload/
H A DRecord.java86 final int tid; field in class:Record
130 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/libs/usb/tests/accessorytest/
H A Daudio.c191 pthread_t tid; local
218 pthread_create(&tid, NULL, capture_thread, NULL);
219 pthread_create(&tid, NULL, play_thread, pcm);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifParser.java590 short tid = tag.getTagId();
592 if (tid == TAG_EXIF_IFD && checkAllowed(ifd, ExifInterface.TAG_EXIF_IFD)) {
597 } else if (tid == TAG_GPS_IFD && checkAllowed(ifd, ExifInterface.TAG_GPS_IFD)) {
601 } else if (tid == TAG_INTEROPERABILITY_IFD
606 } else if (tid == TAG_JPEG_INTERCHANGE_FORMAT
611 } else if (tid == TAG_JPEG_INTERCHANGE_FORMAT_LENGTH
616 } else if (tid == TAG_STRIP_OFFSETS && checkAllowed(ifd, ExifInterface.TAG_STRIP_OFFSETS)) {
630 } else if (tid == TAG_STRIP_BYTE_COUNTS
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.h173 void show_wchan(int pid, int tid, const char *name);
H A Dutils.cpp203 int tid; local
208 if (!(tid = atoi(de->d_name))) {
212 if (tid == pid)
215 snprintf(commpath, sizeof(commpath), "/proc/%d/comm", tid);
229 func(pid, tid, comm);
240 void show_wchan(int pid, int tid, const char *name) { argument
249 snprintf(path, sizeof(path), "/proc/%d/wchan", tid);
265 pid == tid ? 0 : 3, "", name);
267 printf("%-7d %-32s %s\n", tid, name_buffer, buffer);
/frameworks/av/include/media/
H A DIAudioFlinger.h67 pid_t tid, // -1 means unused, otherwise must be valid non-0
84 pid_t tid, // -1 means unused, otherwise must be valid non-0
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.h92 mutable GLuint tid; member in struct:android::BootAnimation::Animation::Frame
H A DBootAnimation.cpp911 glBindTexture(GL_TEXTURE_2D, frame.tid);
914 glGenTextures(1, &frame.tid);
915 glBindTexture(GL_TEXTURE_2D, frame.tid);
981 glDeleteTextures(1, &frame.tid);
/frameworks/av/services/audioflinger/
H A DThreads.h129 PrioConfigEventData(pid_t pid, pid_t tid, int32_t prio) : argument
130 mPid(pid), mTid(tid), mPrio(prio) {}
133 snprintf(buffer, size, "Prio event: pid %d, tid %d, prio %d\n", mPid, mTid, mPrio);
143 PrioConfigEvent(pid_t pid, pid_t tid, int32_t prio) : argument
145 mData = new PrioConfigEventData(pid, tid, prio);
270 void sendPrioConfigEvent(pid_t pid, pid_t tid, int32_t prio);
271 void sendPrioConfigEvent_l(pid_t pid, pid_t tid, int32_t prio);
593 pid_t tid,
1294 pid_t tid,
H A DAudioFlinger.h111 pid_t tid,
125 pid_t tid,
H A DThreads.cpp747 void AudioFlinger::ThreadBase::sendPrioConfigEvent(pid_t pid, pid_t tid, int32_t prio) argument
750 sendPrioConfigEvent_l(pid, tid, prio);
754 void AudioFlinger::ThreadBase::sendPrioConfigEvent_l(pid_t pid, pid_t tid, int32_t prio) argument
756 sp<ConfigEvent> configEvent = (ConfigEvent *)new PrioConfigEvent(pid, tid, prio);
819 ALOGW("Policy SCHED_FIFO priority %d is unavailable for pid %d tid %d; error %d",
1888 pid_t tid,
1965 "hasFastMixer=%d tid=%d fastTrackAvailMask=%#x",
1968 channelMask, sampleRate, mSampleRate, hasFastMixer(), tid, mFastTrackAvailMask);
2085 if ((*flags & AUDIO_OUTPUT_FLAG_FAST) && (tid != -1)) {
2089 sendPrioConfigEvent_l(callingPid, tid, kPriorityAudioAp
1878 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, int uid, status_t *status) argument
3765 pid_t tid = mFastMixer->getTid(); local
6031 pid_t tid = mFastCapture->getTid(); local
6546 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, int uid, audio_input_flags_t *flags, pid_t tid, status_t *status) argument
[all...]
/frameworks/av/media/libmedia/
H A DIAudioFlinger.cpp108 pid_t tid,
133 data.writeInt32((int32_t) tid);
185 pid_t tid,
206 data.writeInt32((int32_t) tid);
958 pid_t tid = (pid_t) data.readInt32(); local
970 channelMask, &frameCount, &flags, buffer, output, pid, tid,
991 pid_t tid = (pid_t) data.readInt32(); local
1000 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) argument
176 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) argument
H A DAudioRecord.cpp598 pid_t tid = -1; local
601 tid = mAudioRecordThread->getTid();
619 tid,
/frameworks/base/core/java/android/view/
H A DThreadedRenderer.java918 int tid = nGetRenderThreadTid(renderProxy);
919 ActivityManagerNative.getDefault().setRenderThread(tid);
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipHelper.java260 ClientTransaction tid = responseEvent.getClientTransaction();
262 responseEvent.getResponse(), tid, mSipProvider, 5);

Completed in 570 milliseconds

12