Home
last modified time | relevance | path

Searched refs:APerformanceHintSession (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/include/android/
Dperformance_hint.h62 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/
Dperformance_hint.cpp49 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/
Dandroid_os_PerformanceHintManager.cpp35 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/
DHintSessionWrapper.h56 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/
DHintSessionWrapperTests.cpp33 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/
Dperformance_hint_private.h96 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/
DPerformanceHintNativeTest.cpp99 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()