/frameworks/base/core/java/android/os/ |
D | PerformanceHintManager.java | 77 public Session createHintSession(@NonNull int[] tids, long initialTargetWorkDurationNanos) { in createHintSession() argument 78 Objects.requireNonNull(tids, "tids cannot be null"); in createHintSession() 79 if (tids.length == 0) { in createHintSession() 84 long nativeSessionPtr = nativeCreateSession(mNativeManagerPtr, tids, in createHintSession() 287 public void setThreads(@NonNull int[] tids) { in setThreads() argument 291 Objects.requireNonNull(tids, "tids cannot be null"); in setThreads() 292 if (tids.length == 0) { in setThreads() 295 nativeSetThreads(mNativeSessionPtr, tids); in setThreads() 354 int[] tids, long initialTargetWorkDurationNanos); in nativeCreateSession() argument 362 private static native void nativeSetThreads(long nativeSessionPtr, int[] tids); in nativeSetThreads() argument
|
D | IHintManager.aidl | 43 void setHintSessionThreads(in IHintSession hintSession, in int[] tids); in setHintSessionThreads() argument
|
/frameworks/base/services/core/java/com/android/server/power/hint/ |
D | HintManagerService.java | 267 private static native long nativeCreateHintSession(int tgid, int uid, int[] tids, in nativeCreateHintSession() argument 270 private static native long nativeCreateHintSessionWithConfig(int tgid, int uid, int[] tids, in nativeCreateHintSessionWithConfig() argument 287 private static native void nativeSetThreads(long halPtr, int[] tids); in nativeSetThreads() argument 305 public long halCreateHintSession(int tgid, int uid, int[] tids, long durationNanos) { in halCreateHintSession() argument 306 return nativeCreateHintSession(tgid, uid, tids, durationNanos); in halCreateHintSession() 311 int tgid, int uid, int[] tids, long durationNanos, int tag, SessionConfig config) { in halCreateHintSessionWithConfig() argument 312 return nativeCreateHintSessionWithConfig(tgid, uid, tids, durationNanos, tag, config); in halCreateHintSessionWithConfig() 348 public void halSetThreads(long halPtr, int[] tids) { in halSetThreads() argument 349 nativeSetThreads(halPtr, tids); in halSetThreads() 666 final int[] tids = session.getTidsInternal(); in cleanUpSession() local [all …]
|
/frameworks/base/libs/hwui/thread/ |
D | CommonPool.cpp | 31 std::vector<int> tids(THREAD_COUNT); in CommonPool() local 36 std::thread worker([pool, i, &mLock, &tids, &tidConditionVars] { in CommonPool() 37 pool->setupThread(i, mLock, tids, tidConditionVars); in CommonPool() 45 while (!tids[i]) { in CommonPool() 51 mWorkerThreadIds = std::move(tids); in CommonPool()
|
/frameworks/base/native/android/ |
D | performance_hint.cpp | 129 void traceThreads(std::vector<int32_t>& tids); 186 std::vector<int32_t> tids(threadIds, threadIds + size); in createSession() local 190 ret = mHintManager->createHintSessionWithConfig(mToken, tids, initialTargetWorkDurationNanos, in createSession() 199 out->traceThreads(tids); in createSession() 303 std::vector<int32_t> tids(threadIds, threadIds + size); in setThreads() local 304 ndk::ScopedAStatus ret = mHintManager->setHintSessionThreads(mHintSession, tids); in setThreads() 316 traceThreads(tids); in setThreads() 322 std::vector<int32_t> tids; in getThreadIds() local 323 ndk::ScopedAStatus ret = mHintManager->getHintSessionThreadIds(mHintSession, &tids); in getThreadIds() 332 *size = tids.size(); in getThreadIds() [all …]
|
/frameworks/base/libs/hwui/renderthread/ |
D | HintSessionWrapper.cpp | 124 mHintSessionFuture = CommonPool::async([=, this, tids = mPermanentSessionTids] { in init() 125 return mBinding->createSessionInternal(manager, tids.data(), tids.size(), in init() 163 mSetThreadsFuture = CommonPool::async([this, tids = std::move(combinedTids)] { in setActiveFunctorThreads() 164 int ret = mBinding->setThreads(mHintSession, tids.data(), tids.size()); in setActiveFunctorThreads()
|
D | HintSessionWrapper.h | 85 const int32_t* tids, size_t tidCount, 94 int (*setThreads)(APerformanceHintSession* session, const pid_t* tids,
|
/frameworks/base/native/android/tests/performance_hint/ |
D | PerformanceHintNativeTest.cpp | 46 (const SpAIBinder& token, const ::std::vector<int32_t>& tids, int64_t durationNanos, 53 const ::std::vector<int32_t>& tids), 56 (const std::shared_ptr<IHintSession>& hintSession, ::std::vector<int32_t>* tids), 103 std::vector<int32_t> tids; in createSession() local 104 tids.push_back(1); in createSession() 105 tids.push_back(2); in createSession() 108 createHintSessionWithConfig(_, Eq(tids), Eq(targetDuration), _, _, _)) in createSession() 130 return APerformanceHint_createSessionInternal(manager, tids.data(), tids.size(), in createSession() 133 return APerformanceHint_createSession(manager, tids.data(), tids.size(), targetDuration); in createSession()
|
/frameworks/base/libs/hwui/platform/host/thread/ |
D | CommonPoolBase.h | 35 void setupThread(int i, std::mutex& mLock, std::vector<int>& tids, in setupThread() argument 41 tids[i] = -1; in setupThread()
|
/frameworks/base/libs/hwui/platform/android/thread/ |
D | CommonPoolBase.h | 33 void setupThread(int i, std::mutex& mLock, std::vector<int>& tids, in setupThread() argument 41 tids[i] = pthread_gettid_np(self); in setupThread()
|
/frameworks/base/core/jni/ |
D | android_os_PerformanceHintManager.cpp | 199 static jlong nativeCreateSession(JNIEnv* env, jclass clazz, jlong nativeManagerPtr, jintArray tids, in nativeCreateSession() argument 202 if (tids == nullptr) return 0; in nativeCreateSession() 204 ScopedIntArrayRO tidsArray(env, tids); in nativeCreateSession() 238 static void nativeSetThreads(JNIEnv* env, jclass clazz, jlong nativeSessionPtr, jintArray tids) { in nativeSetThreads() argument 241 if (tids == nullptr) { in nativeSetThreads() 244 ScopedIntArrayRO tidsArray(env, tids); in nativeSetThreads()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_hint_HintManagerService.cpp | 171 jintArray tids, jlong durationNanos) { in nativeCreateHintSession() argument 172 ScopedIntArrayRO tidArray(env, tids); in nativeCreateHintSession() 182 jintArray tids, jlong durationNanos, jint sessionTag, in nativeCreateHintSessionWithConfig() argument 184 ScopedIntArrayRO tidArray(env, tids); in nativeCreateHintSessionWithConfig() 236 static void nativeSetThreads(JNIEnv* env, jclass /* clazz */, jlong session_ptr, jintArray tids) { in nativeSetThreads() argument 237 ScopedIntArrayRO tidArray(env, tids); in nativeSetThreads()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/hint/ |
D | HintManagerServiceTest.java | 233 public long halCreateHintSession(int tgid, int uid, int[] tids, long durationNanos) { 238 public long halCreateHintSessionWithConfig(int tgid, int uid, int[] tids, 269 public void halSetThreads(long halPtr, int[] tids) { 762 int[] tids = new int[threadCount]; 768 tids[k.getAndIncrement()] = android.os.Process.myTid(); 778 return tids; 1007 int[] tids = new int[threadCount]; 1017 tids[k.getAndIncrement()] = android.os.Process.myTid(); 1027 a.setThreads(tids);
|
/frameworks/base/libs/hwui/tests/unit/ |
D | HintSessionWrapperTests.cpp | 113 std::vector<pid_t> tids(ids, ids + size); in stubSetThreads() local 114 return sMockBinding->fakeSetThreads(session, tids); in stubSetThreads()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BinderCallsStatsTest.java | 917 int[] tids = bcs.getNativeTids(); in testNativeTids() local 918 assertEquals(3, tids.length); in testNativeTids() 919 assertEquals(1, tids[0]); in testNativeTids() 920 assertEquals(2, tids[1]); in testNativeTids() 921 assertEquals(3, tids[2]); in testNativeTids()
|
/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
D | android-33.jar | AndroidManifest.xml
META-INF/
META-INF/MANIFEST.MF
NOTICES/
NOTICES/libcore ... |