Searched refs:APerformanceHintSession (Results 1 – 7 of 7) sorted by relevance
/frameworks/native/include/android/ |
D | performance_hint.h | 62 struct APerformanceHintSession; 122 typedef struct APerformanceHintSession APerformanceHintSession; typedef 144 APerformanceHintSession* _Nullable APerformanceHint_createSession( 168 APerformanceHintSession* _Nonnull session, 185 APerformanceHintSession* _Nonnull session, 195 APerformanceHintSession* _Nonnull session) __INTRODUCED_IN(__ANDROID_API_T__); 212 APerformanceHintSession* _Nonnull session, 226 APerformanceHintSession* _Nonnull session, 250 APerformanceHintSession* _Nonnull session,
|
/frameworks/base/native/android/ |
D | performance_hint.cpp | 49 struct APerformanceHintSession; 64 APerformanceHintSession* createSession(const int32_t* threadIds, size_t size, 87 struct APerformanceHintSession { struct 89 APerformanceHintSession(std::shared_ptr<IHintManager> hintManager, 93 APerformanceHintSession() = delete; 94 ~APerformanceHintSession(); 139 int64_t APerformanceHintSession::sIDCounter = INT32_MAX; argument 183 APerformanceHintSession* APerformanceHintManager::createSession( in createSession() 196 auto out = new APerformanceHintSession(mHintManager, std::move(session), mPreferredRateNanos, in createSession() 211 APerformanceHintSession::APerformanceHintSession(std::shared_ptr<IHintManager> hintManager, in APerformanceHintSession() function in APerformanceHintSession [all …]
|
/frameworks/base/core/jni/ |
D | android_os_PerformanceHintManager.cpp | 35 struct APerformanceHintSession; 39 typedef APerformanceHintSession* (*APH_createSession)(APerformanceHintManager*, const int32_t*, 41 typedef void (*APH_updateTargetWorkDuration)(APerformanceHintSession*, int64_t); 42 typedef void (*APH_reportActualWorkDuration)(APerformanceHintSession*, int64_t); 43 typedef void (*APH_closeSession)(APerformanceHintSession* session); 44 typedef void (*APH_sendHint)(APerformanceHintSession*, int32_t); 45 typedef int (*APH_setThreads)(APerformanceHintSession*, const pid_t*, size_t); 46 typedef void (*APH_getThreadIds)(APerformanceHintSession*, int32_t* const, size_t* const); 47 typedef void (*APH_setPreferPowerEfficiency)(APerformanceHintSession*, bool); 48 typedef void (*APH_reportActualWorkDuration2)(APerformanceHintSession*, AWorkDuration*); [all …]
|
/frameworks/base/libs/hwui/renderthread/ |
D | HintSessionWrapper.h | 56 APerformanceHintSession* mHintSession = nullptr; 58 std::optional<std::shared_future<APerformanceHintSession*>> mHintSessionFuture; 84 APerformanceHintSession* (*createSessionInternal)(APerformanceHintManager* manager, 88 void (*closeSession)(APerformanceHintSession* session) = nullptr; 89 void (*updateTargetWorkDuration)(APerformanceHintSession* session, 91 void (*reportActualWorkDuration)(APerformanceHintSession* session, 93 void (*sendHint)(APerformanceHintSession* session, int32_t hintId) = nullptr; 94 int (*setThreads)(APerformanceHintSession* session, const pid_t* tids,
|
/frameworks/base/libs/hwui/tests/unit/ |
D | HintSessionWrapperTests.cpp | 33 APerformanceHintSession* sessionPtr = reinterpret_cast<APerformanceHintSession*>(456); 55 MOCK_METHOD(APerformanceHintSession*, fakeCreateSessionInternal, 57 MOCK_METHOD(void, fakeCloseSession, (APerformanceHintSession*)); 58 MOCK_METHOD(void, fakeUpdateTargetWorkDuration, (APerformanceHintSession*, int64_t)); 59 MOCK_METHOD(void, fakeReportActualWorkDuration, (APerformanceHintSession*, int64_t)); 60 MOCK_METHOD(void, fakeSendHint, (APerformanceHintSession*, int32_t)); 61 MOCK_METHOD(int, fakeSetThreads, (APerformanceHintSession*, const std::vector<pid_t>&)); 75 static APerformanceHintSession* stubCreateSessionInternal(APerformanceHintManager* manager, in stubCreateSessionInternal() 82 static APerformanceHintSession* stubManagedCreateSessionInternal( in stubManagedCreateSessionInternal() 89 static APerformanceHintSession* stubSlowCreateSessionInternal(APerformanceHintManager* manager, in stubSlowCreateSessionInternal() [all …]
|
/frameworks/native/include/private/ |
D | performance_hint_private.h | 96 int APerformanceHint_sendHint(APerformanceHintSession* session, SessionHint hint); 101 int APerformanceHint_getThreadIds(APerformanceHintSession* session, 107 APerformanceHintSession* APerformanceHint_createSessionInternal(APerformanceHintManager* manager,
|
/frameworks/base/native/android/tests/performance_hint/ |
D | PerformanceHintNativeTest.cpp | 99 APerformanceHintSession* createSession(APerformanceHintManager* manager, in createSession() 154 APerformanceHintSession* session = createSession(manager); in TEST_F() 198 APerformanceHintSession* session = createSession(manager); in TEST_F() 208 APerformanceHintSession* session = createSession(manager, 56789L, true); in TEST_F() 216 APerformanceHintSession* session = createSession(manager); in TEST_F() 243 APerformanceHintSession* session = createSession(manager); in TEST_F() 257 APerformanceHintSession* session = createSession(manager, 0); in TEST_F() 282 APerformanceHintSession* session = createSession(manager); in TEST_F()
|