Home
last modified time | relevance | path

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

12

/packages/services/Car/cpp/watchdog/server/src/
DThreadPriorityController.cpp46 Status ThreadPriorityController::checkPidTidUid(pid_t pid, pid_t tid, uid_t uid) { in checkPidTidUid() argument
47 auto tidStatus = mSystemCallsInterface->readPidStatusFileForPid(tid); in checkPidTidUid()
50 StringPrintf("invalid thread ID: %d", tid)); in checkPidTidUid()
65 Status ThreadPriorityController::setThreadPriority(int pid, int tid, int uid, int policy, in setThreadPriority() argument
67 pid_t tpid = static_cast<pid_t>(tid); in setThreadPriority()
100 Status ThreadPriorityController::getThreadPriority(int pid, int tid, int uid, in getThreadPriority() argument
102 pid_t tpid = static_cast<pid_t>(tid); in getThreadPriority()
129 int ThreadPriorityController::SystemCalls::setScheduler(pid_t tid, int policy, in setScheduler() argument
131 return sched_setscheduler(tid, policy, param); in setScheduler()
134 int ThreadPriorityController::SystemCalls::getScheduler(pid_t tid) { in getScheduler() argument
[all …]
DThreadPriorityController.h34 virtual int setScheduler(pid_t tid, int policy, const sched_param* param) = 0;
35 virtual int getScheduler(pid_t tid) = 0;
36 virtual int getParam(pid_t tid, sched_param* param) = 0;
48 android::binder::Status setThreadPriority(int pid, int tid, int uid, int policy, int priority);
50 int pid, int tid, int uid,
55 int setScheduler(pid_t tid, int policy, const sched_param* param) override;
56 int getScheduler(pid_t tid) override;
57 int getParam(pid_t tid, sched_param* param) override;
63 android::binder::Status checkPidTidUid(pid_t pid, pid_t tid, uid_t uid);
DWatchdogInternalHandler.cpp306 Status WatchdogInternalHandler::setThreadPriority(int pid, int tid, int uid, int policy, in setThreadPriority() argument
312 return mThreadPriorityController->setThreadPriority(pid, tid, uid, policy, priority); in setThreadPriority()
315 Status WatchdogInternalHandler::getThreadPriority(int pid, int tid, int uid, in getThreadPriority() argument
321 return mThreadPriorityController->getThreadPriority(pid, tid, uid, result); in getThreadPriority()
DUidProcStatsCollector.cpp371 pid_t tid = 0; in readProcessStatsLocked() local
372 if (tidDir->d_type != DT_DIR || !ParseInt(tidDir->d_name, &tid) || tid == pid) { in readProcessStatsLocked()
376 path = StringPrintf((taskDir + kStatFileFormat).c_str(), tid); in readProcessStatsLocked()
/packages/modules/Bluetooth/system/utils/src/
Dbt_utils.cc116 int tid = gettid(); in raise_priority_a2dp() local
131 rc = set_sched_policy(tid, SP_AUDIO_SYS); in raise_priority_a2dp()
135 g_TaskIDs[high_task] = tid; in raise_priority_a2dp()
139 LOG_WARN("failed to change sched policy, tid %d, err: %d", tid, errno); in raise_priority_a2dp()
148 const int rc = sched_setscheduler(tid, SCHED_FIFO, &rt_params); in raise_priority_a2dp()
151 __func__, A2DP_RT_PRIORITY, tid, strerror(errno)); in raise_priority_a2dp()
/packages/modules/Bluetooth/system/osi/src/
Dthread.cc46 pid_t tid; member
152 const int rc = setpriority(PRIO_PROCESS, thread->tid, priority); in thread_set_priority()
155 __func__, priority, thread->tid, rc); in thread_set_priority()
168 const int rc = sched_setscheduler(thread->tid, SCHED_FIFO, &rt_params); in thread_set_rt_priority()
171 __func__, priority, thread->tid, strerror(errno)); in thread_set_rt_priority()
207 thread->tid = gettid(); in run_thread()
209 LOG_INFO("%s: thread id %d, thread name %s started", __func__, thread->tid, in run_thread()
239 LOG_WARN("%s: thread id %d, thread name %s exited", __func__, thread->tid, in run_thread()
/packages/services/Car/cpp/watchdog/server/tests/
DProcPidDir.cpp83 for (const auto& tid : it.second) { in populateProcPidDir() local
85 StringPrintf((procDirPath + kTaskDirFormat + "/%" PRIu32).c_str(), pid, tid)); in populateProcPidDir()
89 if (threadStat.find(tid) != threadStat.end()) { in populateProcPidDir()
92 tid); in populateProcPidDir()
93 if (!WriteStringToFile(threadStat.at(tid), path)) { in populateProcPidDir()
/packages/modules/Bluetooth/tools/rootcanal/desktop/
Droot_canal_main.cc58 std::optional<pid_t> tid; in crash_callback() local
64 tid = ctx->tid; in crash_callback()
67 strsignal(signal_number), signal_number, ctx->tid); in crash_callback()
73 if (!unwinder.Unwind(tid, data)) { in crash_callback()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareNativeApiTest.java342 short tid = 666; in testDiscoveryRangingSettings() local
366 mDut.publish(tid, pid, pubDefault); in testDiscoveryRangingSettings()
367 mDut.publish(tid, pid, pubWithRanging); in testDiscoveryRangingSettings()
368 mDut.subscribe(tid, pid, subDefault); in testDiscoveryRangingSettings()
369 mDut.subscribe(tid, pid, subWithMin); in testDiscoveryRangingSettings()
370 mDut.subscribe(tid, pid, subWithMax); in testDiscoveryRangingSettings()
371 mDut.subscribe(tid, pid, subWithMinMax); in testDiscoveryRangingSettings()
373 verify(mIWifiNanIfaceMock, times(2)).startPublishRequest(eq(tid), pubCaptor.capture()); in testDiscoveryRangingSettings()
374 verify(mIWifiNanIfaceMock, times(4)).startSubscribeRequest(eq(tid), subCaptor.capture()); in testDiscoveryRangingSettings()
665 short tid = 44; in validateInitiateDataPath() local
[all …]
/packages/modules/Bluetooth/system/gd/facade/
Dfacade_main.cc74 std::optional<pid_t> tid; in crash_callback() local
77 tid = ctx->tid; in crash_callback()
79 …ROR("Process crashed, signal: %s[%d], tid: %d", strsignal(signal_number), signal_number, ctx->tid); in crash_callback()
85 if (!unwinder.Unwind(tid, data)) { in crash_callback()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DLastCallerInfoManager.java34 public void put(@ApiType int apiName, int tid, int uid, int pid, String packageName, in put() argument
37 LastCallerInfo callerInfo = new LastCallerInfo(tid, uid, pid, packageName, toggleState); in put()
97 public LastCallerInfo(int tid, int uid, int pid, String packageName, boolean toggleState) { in LastCallerInfo() argument
98 mTid = tid; in LastCallerInfo()
/packages/services/Car/car-lib/src/android/car/os/
DCarPerformanceManager.java179 int tid = Process.myTid(); in setThreadPriority() local
181 mService.setThreadPriority(tid, policyWithPriority); in setThreadPriority()
208 int tid = Process.myTid(); in getThreadPriority() local
210 return mService.getThreadPriority(tid); in getThreadPriority()
DICarPerformanceService.aidl39 void setThreadPriority(int tid, in ThreadPolicyWithPriority policyWithPriority); in setThreadPriority() argument
50 ThreadPolicyWithPriority getThreadPriority(int tid); in getThreadPriority() argument
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifParser.java590 short tid = tag.getTagId(); in checkOffsetOrImageTag() local
592 if (tid == TAG_EXIF_IFD && checkAllowed(ifd, ExifInterface.TAG_EXIF_IFD)) { in checkOffsetOrImageTag()
597 } else if (tid == TAG_GPS_IFD && checkAllowed(ifd, ExifInterface.TAG_GPS_IFD)) { in checkOffsetOrImageTag()
601 } else if (tid == TAG_INTEROPERABILITY_IFD in checkOffsetOrImageTag()
606 } else if (tid == TAG_JPEG_INTERCHANGE_FORMAT in checkOffsetOrImageTag()
611 } else if (tid == TAG_JPEG_INTERCHANGE_FORMAT_LENGTH in checkOffsetOrImageTag()
616 } else if (tid == TAG_STRIP_OFFSETS && checkAllowed(ifd, ExifInterface.TAG_STRIP_OFFSETS)) { in checkOffsetOrImageTag()
630 } else if (tid == TAG_STRIP_BYTE_COUNTS in checkOffsetOrImageTag()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifParser.java594 short tid = tag.getTagId(); in checkOffsetOrImageTag() local
596 if (tid == TAG_EXIF_IFD && checkAllowed(ifd, ExifInterface.TAG_EXIF_IFD)) { in checkOffsetOrImageTag()
601 } else if (tid == TAG_GPS_IFD && checkAllowed(ifd, ExifInterface.TAG_GPS_IFD)) { in checkOffsetOrImageTag()
605 } else if (tid == TAG_INTEROPERABILITY_IFD in checkOffsetOrImageTag()
610 } else if (tid == TAG_JPEG_INTERCHANGE_FORMAT in checkOffsetOrImageTag()
615 } else if (tid == TAG_JPEG_INTERCHANGE_FORMAT_LENGTH in checkOffsetOrImageTag()
620 } else if (tid == TAG_STRIP_OFFSETS && checkAllowed(ifd, ExifInterface.TAG_STRIP_OFFSETS)) { in checkOffsetOrImageTag()
634 } else if (tid == TAG_STRIP_BYTE_COUNTS in checkOffsetOrImageTag()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifParser.java590 short tid = tag.getTagId(); in checkOffsetOrImageTag() local
592 if (tid == TAG_EXIF_IFD && checkAllowed(ifd, ExifInterface.TAG_EXIF_IFD)) { in checkOffsetOrImageTag()
597 } else if (tid == TAG_GPS_IFD && checkAllowed(ifd, ExifInterface.TAG_GPS_IFD)) { in checkOffsetOrImageTag()
601 } else if (tid == TAG_INTEROPERABILITY_IFD in checkOffsetOrImageTag()
606 } else if (tid == TAG_JPEG_INTERCHANGE_FORMAT in checkOffsetOrImageTag()
611 } else if (tid == TAG_JPEG_INTERCHANGE_FORMAT_LENGTH in checkOffsetOrImageTag()
616 } else if (tid == TAG_STRIP_OFFSETS && checkAllowed(ifd, ExifInterface.TAG_STRIP_OFFSETS)) { in checkOffsetOrImageTag()
630 } else if (tid == TAG_STRIP_BYTE_COUNTS in checkOffsetOrImageTag()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DExifParser.java549 short tid = tag.getTagId(); in checkOffsetOrImageTag() local
551 if (tid == TAG_EXIF_IFD && checkAllowed(ifd, ExifInterface.TAG_EXIF_IFD)) { in checkOffsetOrImageTag()
555 } else if (tid == TAG_GPS_IFD && checkAllowed(ifd, ExifInterface.TAG_GPS_IFD)) { in checkOffsetOrImageTag()
559 } else if (tid == TAG_INTEROPERABILITY_IFD in checkOffsetOrImageTag()
564 } else if (tid == TAG_JPEG_INTERCHANGE_FORMAT in checkOffsetOrImageTag()
569 } else if (tid == TAG_JPEG_INTERCHANGE_FORMAT_LENGTH in checkOffsetOrImageTag()
574 } else if (tid == TAG_STRIP_OFFSETS && checkAllowed(ifd, ExifInterface.TAG_STRIP_OFFSETS)) { in checkOffsetOrImageTag()
588 } else if (tid == TAG_STRIP_BYTE_COUNTS in checkOffsetOrImageTag()
/packages/services/Car/service/src/com/android/car/os/
DCarPerformanceService.java154 public void setThreadPriority(int tid, ThreadPolicyWithPriority threadPolicyWithPriority) in setThreadPriority() argument
161 mCarWatchdogService.setThreadPriority(pid, tid, uid, threadPolicyWithPriority.getPolicy(), in setThreadPriority()
177 public ThreadPolicyWithPriority getThreadPriority(int tid) throws RemoteException { in getThreadPriority() argument
184 int[] result = mCarWatchdogService.getThreadPriority(pid, tid, uid); in getThreadPriority()
/packages/services/Car/cpp/watchdog/car-watchdog-lib/src/android/car/watchdoglib/
DCarWatchdogDaemonHelper.java301 public void setThreadPriority(int pid, int tid, int uid, int policy, int priority) in setThreadPriority() argument
304 (daemon) -> daemon.setThreadPriority(pid, tid, uid, policy, priority), in setThreadPriority()
315 public int[] getThreadPriority(int pid, int tid, int uid) in getThreadPriority() argument
321 ThreadPolicyWithPriority t = daemon.getThreadPriority(pid, tid, uid); in getThreadPriority()
/packages/providers/MediaProvider/jni/
DMediaProviderWrapper.h106 pid_t tid);
158 uid_t uid, pid_t tid, int transforms_reason,
227 std::unique_ptr<FileLookupResult> FileLookup(const std::string& path, uid_t uid, pid_t tid);
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DPriorityThreadFactoryTest.java60 int tid = android.os.Process.myTid(); in run() local
61 mPriority = new Integer(android.os.Process.getThreadPriority(tid)); in run()
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DICarWatchdog.aidl156 void setThreadPriority(int pid, int tid, int uid, int policy, int priority); in setThreadPriority() argument
175 ThreadPolicyWithPriority getThreadPriority(int pid, int tid, int uid); in getThreadPriority() argument
/packages/modules/Bluetooth/system/udrv/ulinux/
Duipc.cc179 uipc.tid = 0; in uipc_main_init()
462 uipc.tid = 0; in uipc_read_task()
472 if (pthread_create(&uipc.tid, (const pthread_attr_t*)NULL, uipc_read_task, in uipc_start_main_server_thread()
494 if (uipc.tid) pthread_join(uipc.tid, NULL); in uipc_stop_main_server_thread()
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/
DICarWatchdog.aidl46 void setThreadPriority(int pid, int tid, int uid, int policy, int priority); in setThreadPriority() argument
47 …android.automotive.watchdog.internal.ThreadPolicyWithPriority getThreadPriority(int pid, int tid, … in getThreadPriority() argument
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/
DICarWatchdog.aidl46 void setThreadPriority(int pid, int tid, int uid, int policy, int priority); in setThreadPriority() argument
47 …android.automotive.watchdog.internal.ThreadPolicyWithPriority getThreadPriority(int pid, int tid, … in getThreadPriority() argument

12