Home
last modified time | relevance | path

Searched refs:timerHandle (Results 1 – 16 of 16) sorted by relevance

/system/chre/core/
Dtimer_pool.cc41 TimerHandle timerHandle = in setSystemTimer() local
45 if (timerHandle == CHRE_TIMER_INVALID) { in setSystemTimer()
49 return timerHandle; in setSystemTimer()
80 timerRequest.timerHandle = generateTimerHandleLocked(); in setTimer()
100 timerRequest.timerHandle == mTimerRequests.top().timerHandle; in setTimer()
107 return success ? timerRequest.timerHandle : CHRE_TIMER_INVALID; in setTimer()
110 bool TimerPool::cancelTimer(uint16_t instanceId, TimerHandle timerHandle) { in cancelTimer() argument
115 getTimerRequestByTimerHandleLocked(timerHandle, &index); in cancelTimer()
118 LOGW("Failed to cancel timer ID %" PRIu32 ": not found", timerHandle); in cancelTimer()
121 timerHandle); in cancelTimer()
[all …]
Dhost_comms_manager.cc38 bool deferCancelCallback(uint32_t timerHandle) { in deferCancelCallback() argument
39 return EventLoopManagerSingleton::get()->cancelDelayedCallback(timerHandle); in deferCancelCallback()
/system/chre/core/include/chre/core/
Dtimer_pool.h99 bool cancelNanoappTimer(const Nanoapp *nanoapp, TimerHandle timerHandle) { in cancelNanoappTimer() argument
101 return cancelTimer(nanoapp->getInstanceId(), timerHandle); in cancelNanoappTimer()
118 bool cancelSystemTimer(TimerHandle timerHandle) { in cancelSystemTimer() argument
119 return cancelTimer(kSystemInstanceId, timerHandle); in cancelSystemTimer()
130 TimerHandle timerHandle; member
219 bool cancelTimer(uint16_t instanceId, TimerHandle timerHandle);
232 TimerRequest *getTimerRequestByTimerHandleLocked(TimerHandle timerHandle,
Devent_loop_manager.h212 bool cancelDelayedCallback(TimerHandle timerHandle) { in cancelDelayedCallback() argument
213 return mEventLoop.getTimerPool().cancelSystemTimer(timerHandle); in cancelDelayedCallback()
/system/chre/apps/timer_world/
Dtimer_world.cc49 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleTimerEvent() local
50 if (*timerHandle == gOneShotTimerHandle) { in handleTimerEvent()
52 } else if (*timerHandle == gCyclicTimerHandle) { in handleTimerEvent()
/system/chre/apps/test/chqts/src/general_test/
Dbasic_flush_async_test.cc190 const uint32_t *timerHandle) { in handleTimerExpired() argument
191 if (timerHandle != nullptr) { in handleTimerExpired()
192 if (mFlushStartTimerHandle == *timerHandle) { in handleTimerExpired()
194 } else if (mFlushTimeoutTimerHandle == *timerHandle) { in handleTimerExpired()
Dbasic_flush_async_test.h53 void handleTimerExpired(const uint32_t *timerHandle);
Dbasic_wifi_test.cc404 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleEvent() local
406 timerHandle == &mScanTimeoutTimerHandle) { in handleEvent()
/system/chre/apps/host_awake_world/
Dhost_awake_world.cc47 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleTimerEvent() local
48 if (*timerHandle == gMessageTimerHandle) { in handleTimerEvent()
/system/chre/apps/unload_tester/
Dunload_tester.cc58 uint32_t timerHandle = in nanoappStart() local
60 CHRE_ASSERT_LOG(timerHandle != CHRE_TIMER_INVALID, "Couldn't start timer!"); in nanoappStart()
/system/chre/apps/test/common/chre_stress_test/src/
Dchre_stress_test_manager.cc692 void Manager::setTimer(uint64_t delayNs, bool oneShot, uint32_t *timerHandle) { in setTimer() argument
693 *timerHandle = chreTimerSet(delayNs, timerHandle, oneShot); in setTimer()
694 if (*timerHandle == CHRE_TIMER_INVALID) { in setTimer()
699 void Manager::cancelTimer(uint32_t *timerHandle) { in cancelTimer() argument
700 if (*timerHandle != CHRE_TIMER_INVALID) { in cancelTimer()
701 if (!chreTimerCancel(*timerHandle)) { in cancelTimer()
707 *timerHandle = CHRE_TIMER_INVALID; in cancelTimer()
/system/chre/apps/test/common/chre_stress_test/inc/
Dchre_stress_test_manager.h162 void setTimer(uint64_t delayNs, bool oneShot, uint32_t *timerHandle);
163 void cancelTimer(uint32_t *timerHandle);
/system/chre/apps/wwan_world/
Dwwan_world.cc47 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleTimerEvent() local
48 if (*timerHandle == gCellInfoTimerHandle) { in handleTimerEvent()
/system/chre/apps/wifi_world/
Dwifi_world.cc335 const uint32_t *timerHandle = static_cast<const uint32_t *>(eventData); in handleTimerEvent() local
336 if (*timerHandle == gWifiScanTimerHandle) { in handleTimerEvent()
/system/chre/util/include/chre/util/
Dtransaction_manager.h130 using DeferCancelCallback = bool (*)(uint32_t timerHandle);
/system/chre/util/tests/
Dtransaction_manager_test.cc130 static bool deferCancelCallback(uint32_t timerHandle) { in deferCancelCallback() argument
141 return test->getTaskManager()->cancelTask(timerHandle); in deferCancelCallback()