Lines Matching refs:APerformanceHintManager
57 struct APerformanceHintManager { struct
59 static APerformanceHintManager* getInstance();
60 APerformanceHintManager(std::shared_ptr<IHintManager> service, int64_t preferredRateNanos);
61 APerformanceHintManager() = delete;
62 ~APerformanceHintManager() = default;
80 static APerformanceHintManager* create(std::shared_ptr<IHintManager> iHintManager); argument
105 friend struct APerformanceHintManager; argument
137 static APerformanceHintManager* gHintManagerForTesting = nullptr;
142 APerformanceHintManager::APerformanceHintManager(std::shared_ptr<IHintManager> manager, in APerformanceHintManager() function in APerformanceHintManager
151 APerformanceHintManager* APerformanceHintManager::getInstance() { in getInstance()
154 APerformanceHintManager* manager = create(*gIHintManagerForTesting); in getInstance()
158 static APerformanceHintManager* instance = create(nullptr); in getInstance()
162 APerformanceHintManager* APerformanceHintManager::create(std::shared_ptr<IHintManager> manager) { in create()
180 return new APerformanceHintManager(std::move(manager), preferredRateNanos); in create()
183 APerformanceHintSession* APerformanceHintManager::createSession( in createSession()
205 int64_t APerformanceHintManager::getPreferredRateNanos() const { in getPreferredRateNanos()
448 APerformanceHintManager* APerformanceHint_getManager() { in APerformanceHint_getManager()
449 return APerformanceHintManager::getInstance(); in APerformanceHint_getManager()
468 APerformanceHintSession* APerformanceHint_createSession(APerformanceHintManager* manager, in APerformanceHint_createSession()
477 APerformanceHintManager* manager, const int32_t* threadIds, size_t size, in APerformanceHint_createSessionInternal()
485 int64_t APerformanceHint_getPreferredUpdateRateNanos(APerformanceHintManager* manager) { in APerformanceHint_getPreferredUpdateRateNanos()