Home
last modified time | relevance | path

Searched refs:threadIds (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/native/android/
Dperformance_hint.cpp64 APerformanceHintSession* createSession(const int32_t* threadIds, size_t size,
99 int setThreads(const int32_t* threadIds, size_t size);
100 int getThreadIds(int32_t* const threadIds, size_t* size);
184 const int32_t* threadIds, size_t size, int64_t initialTargetWorkDurationNanos, in createSession() argument
186 std::vector<int32_t> tids(threadIds, threadIds + size); in createSession()
298 int APerformanceHintSession::setThreads(const int32_t* threadIds, size_t size) { in setThreads() argument
303 std::vector<int32_t> tids(threadIds, threadIds + size); in setThreads()
321 int APerformanceHintSession::getThreadIds(int32_t* const threadIds, size_t* size) { in getThreadIds() argument
331 if (threadIds == nullptr) { in getThreadIds()
339 threadIds[i] = tids[i]; in getThreadIds()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_hint_HintManagerService.cpp76 std::vector<int32_t>& threadIds, int64_t durationNanos) { in createHintSession() argument
77 auto result = gPowerHalController.createHintSession(tgid, uid, threadIds, durationNanos); in createHintSession()
94 std::vector<int32_t> threadIds, int64_t durationNanos, in createHintSessionWithConfig() argument
97 gPowerHalController.createHintSessionWithConfig(tgid, uid, threadIds, durationNanos, in createHintSessionWithConfig()
151 static void setThreads(int64_t session_ptr, const std::vector<int32_t>& threadIds) { in setThreads() argument
153 appSession->setThreads(threadIds); in setThreads()
177 std::vector<int32_t> threadIds(tidArray.get(), tidArray.get() + tidArray.size()); in nativeCreateHintSession() local
178 return createHintSession(env, tgid, uid, threadIds, durationNanos); in nativeCreateHintSession()
189 std::vector<int32_t> threadIds(tidArray.get(), tidArray.get() + tidArray.size()); in nativeCreateHintSessionWithConfig() local
191 jlong out = createHintSessionWithConfig(env, tgid, uid, std::move(threadIds), durationNanos, in nativeCreateHintSessionWithConfig()
[all …]
/frameworks/native/services/powermanager/tests/
DPowerHalWrapperAidlTest.cpp56 (int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
60 (int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
253 std::vector<int> threadIds{gettid()}; in TEST_F() local
258 createHintSession(Eq(tgid), Eq(uid), Eq(threadIds), Eq(durationNanos), _)) in TEST_F()
261 auto result = mWrapper->createHintSession(tgid, uid, threadIds, durationNanos); in TEST_F()
266 std::vector<int> threadIds{gettid()}; in TEST_F() local
273 createHintSessionWithConfig(Eq(tgid), Eq(uid), Eq(threadIds), Eq(durationNanos), in TEST_F()
278 mWrapper->createHintSessionWithConfig(tgid, uid, threadIds, durationNanos, tag, &out); in TEST_F()
285 std::vector<int> threadIds{}; in TEST_F() local
288 createHintSession(Eq(tgid), Eq(uid), Eq(threadIds), Eq(durationNanos), _)) in TEST_F()
[all …]
/frameworks/base/libs/hwui/renderthread/
DHintSessionWrapper.cpp153 void HintSessionWrapper::setActiveFunctorThreads(std::vector<pid_t> threadIds) { in setActiveFunctorThreads() argument
157 std::sort(threadIds.begin(), threadIds.end()); in setActiveFunctorThreads()
158 if (threadIds == mActiveFunctorTids) return; in setActiveFunctorThreads()
159 mActiveFunctorTids = std::move(threadIds); in setActiveFunctorThreads()
DHintSessionWrapper.h53 void setActiveFunctorThreads(std::vector<pid_t> threadIds);
/frameworks/native/services/powermanager/
DPowerHalWrapper.cpp47 int32_t, int32_t, const std::vector<int32_t>& threadIds, int64_t) { in createHintSession() argument
48 ALOGV("Skipped createHintSession(task num=%zu) because %s", threadIds.size(), in createHintSession()
54 int32_t, int32_t, const std::vector<int32_t>& threadIds, int64_t, Aidl::SessionTag, in createHintSessionWithConfig() argument
56 ALOGV("Skipped createHintSessionWithConfig(task num=%zu) because %s", threadIds.size(), in createHintSessionWithConfig()
250 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos) { in createHintSession() argument
253 fromStatus(mHandle->createHintSession(tgid, uid, threadIds, durationNanos, &appSession), in createHintSession()
258 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos, in createHintSessionWithConfig() argument
262 fromStatus(mHandle->createHintSessionWithConfig(tgid, uid, threadIds, durationNanos, in createHintSessionWithConfig()
DPowerHalController.cpp129 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos) { in createHintSession() argument
132 processHalResult(handle->createHintSession(tgid, uid, threadIds, in createHintSession()
138 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos, in createHintSessionWithConfig() argument
143 processHalResult(handle->createHintSessionWithConfig(tgid, uid, threadIds, in createHintSessionWithConfig()
/frameworks/native/include/private/
Dperformance_hint_private.h102 int32_t* const threadIds, size_t* const size);
108 const int32_t* threadIds, size_t size,
/frameworks/native/include/powermanager/
DPowerHalWrapper.h56 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
59 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos,
78 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
81 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos,
162 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
165 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos,
DPowerHalController.h65 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
68 int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos,
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuThreadReaderTest.java112 private void setupDirectory(Path processPath, int[] threadIds, String processName, in setupDirectory() argument
126 for (int i = 0; i < threadIds.length; i++) { in setupDirectory()
128 final Path threadPath = selfThreadsPath.resolve(String.valueOf(threadIds[i])); in setupDirectory()
146 int[] readerCpuFrequencies, int uid, int processId, int[] threadIds, String processName, in checkResults() argument
152 assertEquals(threadIds.length, processCpuUsage.threadCpuUsages.size()); in checkResults()
161 assertEquals(threadIds[threadCount], threadCpuUsage.threadId); in checkResults()
175 assertEquals(threadCount, threadIds.length); in checkResults()
/frameworks/native/services/powermanager/benchmarks/
DPowerHalAidlBenchmarks.cpp107 std::vector<int32_t> threadIds{1}; in runSessionBenchmark() local
111 auto status = hal->createHintSession(1, 0, threadIds, durationNanos, &session); in runSessionBenchmark()
162 std::vector<int32_t> threadIds{static_cast<int32_t>(state.range(0))}; in BM_PowerHalAidlBenchmarks_createHintSession() local
176 hal->createHintSession(tgid, uid, threadIds, durationNanos, &appSession); in BM_PowerHalAidlBenchmarks_createHintSession()
184 ret = hal->createHintSession(tgid, uid, threadIds, durationNanos, &appSession); in BM_PowerHalAidlBenchmarks_createHintSession()
/frameworks/native/include/android/
Dperformance_hint.h146 const int32_t* _Nonnull threadIds, size_t size,
213 const pid_t* _Nonnull threadIds,
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockIPower.h50 (int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
55 (int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
DMockPowerHalController.h52 (int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds,
DMockPowerAdvisor.h43 MOCK_METHOD(bool, startPowerHintSession, (std::vector<int32_t> && threadIds), (override));
/frameworks/base/core/java/android/os/
DIHintManager.aidl35 IHintSession createHintSessionWithConfig(in IBinder token, in int[] threadIds, in createHintSessionWithConfig() argument
/frameworks/base/libs/hwui/platform/host/renderthread/
DHintSessionWrapper.cpp57 void HintSessionWrapper::setActiveFunctorThreads(std::vector<pid_t> threadIds) {} in setActiveFunctorThreads() argument
/frameworks/base/core/jni/
Dandroid_os_PerformanceHintManager.cpp277 jint* threadIds = env->GetIntArrayElements(jintArr, 0); in nativeGetThreadIds() local
279 threadIds[i] = tidsVector[i]; in nativeGetThreadIds()
281 env->ReleaseIntArrayElements(jintArr, threadIds, 0); in nativeGetThreadIds()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockPowerAdvisor.h45 MOCK_METHOD(bool, startPowerHintSession, (std::vector<int32_t> && threadIds), (override));
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGraphicBufferMetrics.java325 Set<Integer> threadIds = new TreeSet<>(); in buildEventModel() local
326 threadIds.addAll(result.keySet()); in buildEventModel()
327 for (int threadId : threadIds) { in buildEventModel()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.h72 virtual bool startPowerHintSession(std::vector<int32_t>&& threadIds) = 0;
131 bool startPowerHintSession(std::vector<int32_t>&& threadIds) override;
DPowerAdvisor.cpp430 bool PowerAdvisor::startPowerHintSession(std::vector<int32_t>&& threadIds) { in startPowerHintSession() argument
431 mHintSessionThreadIds = threadIds; in startPowerHintSession()
/frameworks/base/services/core/java/com/android/server/power/hint/
DHintManagerService.java1013 int uid, int pid, int[] threadIds, IBinder token, in AppHintSession() argument
1018 mThreadIds = threadIds; in AppHintSession()