Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 25 of 65) sorted by relevance

123

/hardware/google/gfxstream/guest/android-emu/aemu/base/threads/
DAndroidThread_pthread.cpp191 pid_t tid = gettid(); in getCurrentThreadId() local
194 thread_local pid_t tid = -1; in getCurrentThreadId()
195 if (tid == -1) { in getCurrentThreadId()
196 tid = syscall(__NR_gettid); in getCurrentThreadId()
199 zx_handle_t tid = zx_thread_self(); in getCurrentThreadId()
206 unsigned long tid = *reinterpret_cast<unsigned long*>(&tid); in getCurrentThreadId()
208 static_assert(sizeof(tid) <= sizeof(long), in getCurrentThreadId()
210 return static_cast<unsigned long>(tid); in getCurrentThreadId()
/hardware/google/aemu/base/
DThread_pthread.cpp183 pthread_t tid = pthread_self(); in getCurrentThreadId() local
188 static_assert(sizeof(tid) >= sizeof(int), in getCurrentThreadId()
190 return *reinterpret_cast<unsigned int*>(&tid); in getCurrentThreadId()
192 static_assert(sizeof(tid) >= sizeof(long), in getCurrentThreadId()
194 return *reinterpret_cast<unsigned long*>(&tid); in getCurrentThreadId()
/hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_pla/src/
Dplatform_lib_sched_policy.cpp37 int platform_lib_abstraction_set_sched_policy(int tid, PLASchedPolicy policy) in platform_lib_abstraction_set_sched_policy() argument
39 return set_sched_policy(tid, (SchedPolicy)policy); in platform_lib_abstraction_set_sched_policy()
/hardware/qcom/gps/msm8909w_3100/utils/platform_lib_abstractions/loc_pla/src/
Dplatform_lib_sched_policy.cpp37 int platform_lib_abstraction_set_sched_policy(int tid, PLASchedPolicy policy) in platform_lib_abstraction_set_sched_policy() argument
39 return set_sched_policy(tid, (SchedPolicy)policy); in platform_lib_abstraction_set_sched_policy()
/hardware/qcom/gps/msm8960/core/
DMsgTask.cpp76 pthread_t tid; in createPThread() local
79 if (!pthread_create(&tid, &attr, loopMain, in createPThread()
85 pthread_setname_np(tid, lname); in createPThread()
/hardware/qcom/gps/msm8084/core/
DMsgTask.cpp91 pthread_t tid; in createPThread() local
94 if (!pthread_create(&tid, &attr, loopMain, in createPThread()
100 pthread_setname_np(tid, lname); in createPThread()
/hardware/qcom/gps/msm8994/core/
DMsgTask.cpp91 pthread_t tid; in createPThread() local
94 if (!pthread_create(&tid, &attr, loopMain, in createPThread()
100 pthread_setname_np(tid, lname); in createPThread()
/hardware/qcom/gps/core/
DMsgTask.cpp91 pthread_t tid; in createPThread() local
94 if (!pthread_create(&tid, &attr, loopMain, in createPThread()
100 pthread_setname_np(tid, lname); in createPThread()
/hardware/google/pixel/power-libperfmgr/aidl/
DPowerSessionManager.cpp60 static int set_uclamp(int tid, UclampRange range) { in set_uclamp() argument
72 const int ret = syscall(__NR_sched_setattr, tid, attr, 0); in set_uclamp()
74 ALOGW("sched_setattr failed for thread %d, err=%d", tid, errno); in set_uclamp()
164 for (auto tid : removedThreads) { in removePowerSession() local
165 if (!SetTaskProfiles(tid, {"NoResetUclampGrp"})) { in removePowerSession()
166 ALOGE("Failed to set NoResetUclampGrp task profile for tid:%d", tid); in removePowerSession()
183 for (auto tid : addedThreads) { in setThreadsFromPowerSession() local
184 if (!SetTaskProfiles(tid, {"ResetUclampGrp"})) { in setThreadsFromPowerSession()
185 ALOGE("Failed to set ResetUclampGrp task profile for tid:%d", tid); in setThreadsFromPowerSession()
188 for (auto tid : removedThreads) { in setThreadsFromPowerSession() local
[all …]
DSessionTaskMap.cpp232 for (auto tid : taskIds) { in replace() local
233 auto taskSessItr = mTasks.find(tid); in replace()
235 addedThreads->push_back(tid); in replace()
247 for (auto tid : previousTaskIds) { in replace() local
248 auto taskSessItr = mTasks.find(tid); in replace()
250 removedThreads->push_back(tid); in replace()
DBackgroundWorker.cpp34 mThreadPool.push_back(std::thread([&, tid = threadId]() { loop(); })); in PriorityQueueWorkerPool()
/hardware/interfaces/audio/effect/all-versions/default/
DEffect.cpp62 uint64_t getAffinity(pid_t tid) { in getAffinity() argument
66 if (sched_getaffinity(tid, sizeof(set), &set)) { in getAffinity()
67 ALOGW("%s: for tid:%d returning 0, failed %s", __func__, tid, strerror(errno)); in getAffinity()
77 ALOGV("%s: for tid:%d returning cpu count %d mask %llu", __func__, tid, count, in getAffinity()
82 status_t setAffinity(pid_t tid, uint64_t mask) { in setAffinity() argument
91 if (sched_setaffinity(tid, sizeof(set), &set)) { in setAffinity()
92 ALOGW("%s: for tid:%d setting cpu mask %llu failed %s", __func__, tid, in setAffinity()
96 ALOGV("%s: for tid:%d setting cpu mask %llu", __func__, tid, (unsigned long long)mask); in setAffinity()
100 __unused status_t setPriority(pid_t tid, int policy, int priority) { in setPriority() argument
104 if (sched_setscheduler(tid, policy, &param) != 0) { in setPriority()
[all …]
/hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_stub/src/
Dloc_stub_sched_policy.cpp47 int set_sched_policy(int tid, SchedPolicy policy) in set_sched_policy() argument
/hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_stub/include/
Dloc_stub_sched_policy.h57 int set_sched_policy(int tid, SchedPolicy policy);
/hardware/qcom/gps/msm8909w_3100/utils/platform_lib_abstractions/loc_stub/include/
Dloc_stub_sched_policy.h57 int set_sched_policy(int tid, SchedPolicy policy);
/hardware/qcom/gps/msm8909w_3100/utils/platform_lib_abstractions/loc_pla/include/
Dplatform_lib_sched_policy.h40 int platform_lib_abstraction_set_sched_policy(int tid, PLASchedPolicy policy);
/hardware/qcom/gps/msm8998/utils/platform_lib_abstractions/loc_pla/include/
Dplatform_lib_sched_policy.h40 int platform_lib_abstraction_set_sched_policy(int tid, PLASchedPolicy policy);
/hardware/google/gfxstream/guest/mesa/include/android_stub/backtrace/
DBacktrace.h127 static Backtrace* Create(pid_t pid, pid_t tid, BacktraceMap* map = nullptr);
190 Backtrace(pid_t pid, pid_t tid, BacktraceMap* map);
/hardware/google/gfxstream/guest/vulkan/
Dgfxstream_vk_fuchsia.cpp37 static thread_local zx_koid_t tid = GetKoid(zx_thread_self()); variable
95 0, pid, tid); in gfxstream_fuchsia_log()
/hardware/google/gfxstream/guest/mesa/include/android_stub/log/
Dlogprint.h62 int32_t tid; member
Dlog_read.h43 uint32_t tid; /* generating process's tid */ member
/hardware/google/pixel/power-libperfmgr/aidl/tests/
DPowerHintSessionTest.cpp261 for (auto tid : threadIds) { in TEST_F() local
262 newSess1Threads.emplace_back(tid.second); in TEST_F()
/hardware/qcom/wlan/wcn6740/qcwcn/wifi_hal/
Dpkt_stats.h157 u32 tid : 4; //[31:28] member
605 u8 tid; member
/hardware/qcom/wlan/legacy/qcwcn/wifi_hal/
Dpkt_stats.h153 u32 tid : 4; //[31:28] member
601 u8 tid; member
/hardware/google/camera/common/hal/utils/
Dstream_buffer_cache_manager.cc262 pid_t tid = gettid(); in WorkloadThreadLoop() local
263 setpriority(PRIO_PROCESS, tid, -20); in WorkloadThreadLoop()

123