/frameworks/base/core/java/android/os/ |
H A D | ISchedulingPolicyService.aidl | 28 * 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 D | SchedulingPolicyService.java | 41 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);
|
H A D | Process.java | 686 * @param tid the thread id 688 * This is same as what getpid(2) would return if called by tid. 691 public static final int getThreadGroupLeader(int tid) { argument 695 Process.readProcLines("/proc/" + tid + "/status", procStatusLabels, procStatusValues); 702 * @param tid The identifier of the thread/process to change. 707 * <var>tid</var> does not exist. 712 public static final native void setThreadPriority(int tid, int priority) argument 727 * @param tid The identifier of the thread to change. 731 * <var>tid</var> does not exist. 738 public static final native void setThreadGroup(int tid, in argument 792 getThreadPriority(int tid) argument 810 setThreadScheduler(int tid, int policy, int priority) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | SchedulingPolicyService.h | 22 // 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);
|
H A D | SchedulingPolicyService.cpp | 28 int requestPriority(pid_t pid, pid_t tid, int32_t prio) argument 49 return sps->requestPriority(pid, tid, prio);
|
H A D | ISchedulingPolicyService.cpp | 40 virtual int requestPriority(int32_t pid, int32_t tid, int32_t prio) argument 45 data.writeInt32(tid);
|
H A D | ISchedulingPolicyService.h | 29 virtual int requestPriority(/*pid_t*/int32_t pid, /*pid_t*/int32_t tid,
|
H A D | AudioFlinger.cpp | 448 pid_t tid, 503 channelMask, frameCount, sharedBuffer, lSessionId, flags, tid, &lStatus); 850 ALOGV("setParameters(): io %d, keyvalue %s, tid %d, calling pid %d", 933 // ALOGV("getParameters() io %d, keys %s, tid %d, calling pid %d", 1105 ALOGV("removeClient_l() pid %d, tid %d, calling tid %d", pid, gettid(), IPCThreadState::self()->getCallingPid()); 1668 pid_t tid, 1689 (tid != -1) && 1719 "hasFastMixer=%d tid=%d fastTrackAvailMask=%#x", 1722 channelMask, sampleRate, mSampleRate, hasFastMixer(), tid, mFastTrackAvailMas 438 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, uint32_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 1658 createTrack_l( const sp<AudioFlinger::Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, uint32_t channelMask, int frameCount, const sp<IMemory>& sharedBuffer, int sessionId, IAudioFlinger::track_flags_t flags, pid_t tid, status_t *status) argument 2309 pid_t tid = mFastMixer->getTid(); local [all...] |
H A D | AudioFlinger.h | 99 pid_t tid, 992 pid_t tid,
|
/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 | 174 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, ¶m); 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/native/include/utils/ |
H A D | AndroidThreads.h | 81 extern int androidSetThreadPriority(pid_t tid, int prio); 85 extern int androidGetThreadPriority(pid_t tid);
|
/frameworks/base/tools/preload/ |
H A D | Record.java | 72 final int tid; field in class:Record 116 tid = Integer.parseInt(parts[2]);
|
H A D | Root.java | 84 o = process.endOperation(record.tid, record.className, 93 process.startOperation(record.tid, loadedClass, record.time, 98 process.startOperation(record.tid, loadedClass, record.time,
|
/frameworks/native/libs/utils/ |
H A D | Threads.cpp | 329 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...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.h | 63 mutable GLuint tid; member in struct:android::BootAnimation::Animation::Frame
|
H A D | BootAnimation.cpp | 509 glBindTexture(GL_TEXTURE_2D, frame.tid); 512 glGenTextures(1, &frame.tid); 513 glBindTexture(GL_TEXTURE_2D, frame.tid); 566 glDeleteTextures(1, &frame.tid);
|
/frameworks/av/media/libmedia/ |
H A D | AudioRecord.cpp | 307 pid_t tid; local 311 tid = t->getTid(); // pid_t is unknown until run() 312 ALOGV("getTid=%d", tid); 313 if (tid == -1) { 314 tid = 0; 318 tid = 0; // not gettid()
|
H A D | IAudioFlinger.cpp | 94 pid_t tid, 110 data.writeInt32((int32_t) tid); 706 pid_t tid = (pid_t) data.readInt32(); local 711 channelCount, bufferCount, flags, buffer, output, tid, &sessionId, &status); 84 createTrack( pid_t pid, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, uint32_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
|
H A D | AudioTrack.cpp | 865 pid_t tid = -1; local 869 tid = mAudioTrackThread->getTid(); 882 tid,
|
/frameworks/av/include/media/ |
H A D | IAudioFlinger.h | 68 pid_t tid, // -1 means unused, otherwise must be valid non-0
|
/frameworks/base/voip/java/com/android/server/sip/ |
H A D | SipHelper.java | 262 ClientTransaction tid = responseEvent.getClientTransaction(); 264 responseEvent.getResponse(), tid, mSipProvider, 5);
|
/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 2932 pid_t tid = androidGetTid(); local 2933 int prevPriority = androidGetThreadPriority(tid); 2934 androidSetThreadPriority(tid, ANDROID_PRIORITY_FOREGROUND); 2936 androidSetThreadPriority(tid, prevPriority);
|
/frameworks/base/tools/aapt/ |
H A D | ResourceTable.cpp | 3795 int tid = Res_GETTYPE(resID); local 3796 if (tid < 0 || tid >= (int)p->getOrderedTypes().size()) { 3800 sp<Type> t = p->getOrderedTypes()[tid];
|