/frameworks/base/core/jni/ |
D | com_android_internal_os_KernelSingleProcessCpuThreadReader.cpp | 86 bool startTrackingProcessCpuTimes(pid_t tgid) { in startTrackingProcessCpuTimes() argument 87 return android::bpf::startTrackingProcessCpuTimes(tgid); in startTrackingProcessCpuTimes() 114 bool startTrackingProcessCpuTimes(pid_t tgid); 119 getAggregatedTaskCpuFreqTimes(pid_t tgid, const std::vector<uint16_t> &aggregationKeys); 137 static jboolean startTrackingProcessCpuTimes(JNIEnv *env, jclass, jint tgid, in startTrackingProcessCpuTimes() argument 141 return cpuTimeInStateReader->startTrackingProcessCpuTimes(tgid); in startTrackingProcessCpuTimes() 270 bool MockCpuTimeInStateReader::startTrackingProcessCpuTimes(pid_t tgid) { in startTrackingProcessCpuTimes() argument 277 return mEnv->CallBooleanMethod(mCpuTimeInStateReader, mid, tgid); in startTrackingProcessCpuTimes()
|
/frameworks/native/services/powermanager/tests/ |
D | PowerHalWrapperAidlTest.cpp | 51 (int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, 211 int32_t tgid = 999; in TEST_F() local 215 createHintSession(Eq(tgid), Eq(uid), Eq(threadIds), Eq(durationNanos), _)) in TEST_F() 217 auto result = mWrapper->createHintSession(tgid, uid, threadIds, durationNanos); in TEST_F() 222 int32_t tgid = 999; in TEST_F() local 227 createHintSession(Eq(tgid), Eq(uid), Eq(threadIds), Eq(durationNanos), _)) in TEST_F() 230 auto result = mWrapper->createHintSession(tgid, uid, threadIds, durationNanos); in TEST_F()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_hint_HintManagerService.cpp | 45 static jlong createHintSession(JNIEnv* env, int32_t tgid, int32_t uid, in createHintSession() argument 48 gPowerHalController.createHintSession(tgid, uid, std::move(threadIds), durationNanos); in createHintSession() 98 static jlong nativeCreateHintSession(JNIEnv* env, jclass /* clazz */, jint tgid, jint uid, in nativeCreateHintSession() argument 109 return createHintSession(env, tgid, uid, std::move(threadIds), durationNanos); in nativeCreateHintSession()
|
/frameworks/base/startop/scripts/trace_analyzer/lib/ |
D | trace2db.py | 41 tgid = Column(Integer, nullable=True) # ----- -> None. variable in RawFtraceEntry 73 tgid = groups[2] 74 if tgid == '-----': 75 tgid = None 83 …return {'task_name': task_name, 'task_pid': task_pid, 'tgid': tgid, 'cpu': cpu, 'timestamp': times…
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelSingleProcessCpuThreadReaderTest.java | 91 public boolean startTrackingProcessCpuTimes(int tgid) { in startTrackingProcessCpuTimes() argument 92 mTrackedTgid = tgid; in startTrackingProcessCpuTimes()
|
D | SystemServerCpuThreadReaderTest.java | 85 public boolean startTrackingProcessCpuTimes(int tgid) { in startTrackingProcessCpuTimes() argument
|
/frameworks/base/services/core/java/com/android/server/power/hint/ |
D | HintManagerService.java | 129 private static native long nativeCreateHintSession(int tgid, int uid, int[] tids, in nativeCreateHintSession() argument 152 public long halCreateHintSession(int tgid, int uid, int[] tids, long durationNanos) { in halCreateHintSession() argument 153 return nativeCreateHintSession(tgid, uid, tids, durationNanos); in halCreateHintSession() 255 private boolean checkTidValid(int uid, int tgid, int [] tids) { in checkTidValid() argument 266 eligiblePids.add(tgid); in checkTidValid()
|
/frameworks/native/services/powermanager/ |
D | PowerHalController.cpp | 102 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos) { in createHintSession() argument 104 auto result = handle->createHintSession(tgid, uid, threadIds, durationNanos); in createHintSession()
|
D | PowerHalWrapper.cpp | 238 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos) { in createHintSession() argument 241 fromStatus(mHandle->createHintSession(tgid, uid, threadIds, durationNanos, &appSession), in createHintSession()
|
/frameworks/native/include/powermanager/ |
D | PowerHalWrapper.h | 123 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, 137 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, 152 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, 190 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
|
D | PowerHalController.h | 61 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
|
/frameworks/native/services/powermanager/benchmarks/ |
D | PowerHalAidlBenchmarks.cpp | 156 int32_t tgid = 999; in BM_PowerHalAidlBenchmarks_createHintSession() local 166 binder::Status ret = hal->createHintSession(tgid, uid, threadIds, durationNanos, &appSession); in BM_PowerHalAidlBenchmarks_createHintSession() 173 ret = hal->createHintSession(tgid, uid, threadIds, durationNanos, &appSession); in BM_PowerHalAidlBenchmarks_createHintSession()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelSingleProcessCpuThreadReader.java | 67 boolean startTrackingProcessCpuTimes(int tgid); in startTrackingProcessCpuTimes() argument
|
/frameworks/native/libs/cputimeinstate/ |
D | cputimeinstate.cpp | 606 getAggregatedTaskCpuFreqTimes(pid_t tgid, const std::vector<uint16_t> &aggregationKeys) { in getAggregatedTaskCpuFreqTimes() argument 622 aggregated_task_tis_key_t key{.tgid = tgid, .aggregation_key = aggregationKey}; in getAggregatedTaskCpuFreqTimes()
|
D | testtimeinstate.cpp | 601 pid_t tgid = getpid(); in TEST() local 602 startTrackingProcessCpuTimes(tgid); in TEST() 618 getAggregatedTaskCpuFreqTimes(tgid, {0, 42}); in TEST()
|
/frameworks/base/core/proto/android/os/ |
D | ps.proto | 40 // group ID for the thread group leader (tgid); and a tty process group
|
/frameworks/native/cmds/atrace/ |
D | atrace.rc | 20 chmod 0666 /sys/kernel/debug/tracing/options/print-tgid 21 chmod 0666 /sys/kernel/tracing/options/print-tgid 22 chmod 0666 /sys/kernel/debug/tracing/options/record-tgid 23 chmod 0666 /sys/kernel/tracing/options/record-tgid
|