/packages/services/Car/cpp/watchdog/stable_server/src/ |
D | WatchdogPerfService.cpp | 268 mBoottimeCollection.lastPollElapsedRealTimeNs = mHandlerLooper->now(); in start() 269 mHandlerLooper->setLooper(Looper::prepare(/*opts=*/0)); in start() 270 mHandlerLooper->sendMessage(sp<WatchdogPerfService>::fromExisting(this), in start() 286 mHandlerLooper->pollAll(/*timeoutMillis=*/-1); in start() 307 mHandlerLooper->removeMessages(sp<WatchdogPerfService>::fromExisting(this)); in terminate() 308 mHandlerLooper->wake(); in terminate() 341 mHandlerLooper->sendMessage(sp<WatchdogPerfService>::fromExisting(this), in onCarWatchdogServiceRegistered() 365 mHandlerLooper->sendMessageAtTime(mHandlerLooper->now() + mPostSystemEventDurationNs.count(), in onBootFinished() 434 mHandlerLooper->removeMessages(thiz, SwitchMessage::END_USER_SWITCH_COLLECTION); in onUserStateChange() 436 mHandlerLooper->now() + mPostSystemEventDurationNs.count(); in onUserStateChange() [all …]
|
D | PressureMonitor.cpp | 94 mHandlerLooper->removeMessages(sp<PressureMonitor>::fromExisting(this)); in terminate() 95 mHandlerLooper->wake(); in terminate() 194 mHandlerLooper->setLooper(Looper::prepare(/*opts=*/0)); in start() 195 mLastPollElapsedRealTimeNs = mHandlerLooper->now(); in start() 196 mHandlerLooper->sendMessage(sp<PressureMonitor>::fromExisting(this), in start() 202 mHandlerLooper->pollAll(/*timeoutMillis=*/-1); in start() 274 mHandlerLooper->sendMessage(sp<PressureMonitor>::fromExisting(this), in monitorPressure() 284 nsecs_t now = mHandlerLooper->now(); in monitorPressure() 285 mHandlerLooper->sendMessageAtTime(mLastPollElapsedRealTimeNs > now ? mLastPollElapsedRealTimeNs in monitorPressure()
|
D | PackageInfoResolver.cpp | 111 sInstance->mHandlerLooper->removeMessages(sInstance->mMessageHandler); in terminate() 112 sInstance->mHandlerLooper->wake(); in terminate() 218 mHandlerLooper->removeMessages(mMessageHandler, MSG_RESOLVE_PACKAGE_NAME); in asyncFetchPackageNamesForUids() 219 mHandlerLooper->sendMessage(mMessageHandler, Message(MSG_RESOLVE_PACKAGE_NAME)); in asyncFetchPackageNamesForUids() 279 mHandlerLooper->setLooper(Looper::prepare(/* opts= */ 0)); in startLooper() 292 mHandlerLooper->pollAll(/* timeoutMillis= */ -1); in startLooper()
|
D | WatchdogProcessService.cpp | 284 mHandlerLooper(handlerLooper), in WatchdogProcessService() 375 mHandlerLooper->sendMessage(mMessageHandler, Message(MSG_CACHE_VHAL_PROCESS_IDENTIFIER)); in registerCarWatchdogService() 517 mHandlerLooper->removeMessages(mMessageHandler, MSG_VHAL_HEALTH_CHECK_TIMEOUT); in setEnabled() 524 mHandlerLooper->sendMessageDelayed(intervalNs.count(), mMessageHandler, in setEnabled() 528 mHandlerLooper->removeMessages(mMessageHandler, static_cast<int>(timeout)); in setEnabled() 700 mHandlerLooper->removeMessages(mMessageHandler, what); in doHealthCheck() 744 mHandlerLooper->sendMessageDelayed(durationNs.count(), mMessageHandler, Message(what)); in doHealthCheck() 779 mHandlerLooper->removeMessages(mMessageHandler); in terminate() 926 mHandlerLooper->sendMessageDelayed(durationNs.count(), mMessageHandler, Message(what)); in startHealthCheckingLocked() 1042 mHandlerLooper->removeMessages(mMessageHandler, MSG_VHAL_HEALTH_CHECK_TIMEOUT); in handleVhalDeath() [all …]
|
D | PackageInfoResolver.h | 147 mHandlerLooper(android::sp<LooperWrapper>::make()), 179 android::sp<LooperWrapper> mHandlerLooper; variable
|
D | PressureMonitor.h | 127 mHandlerLooper(android::sp<LooperWrapper>::make()), in PressureMonitor() 214 android::sp<LooperWrapper> mHandlerLooper GUARDED_BY(mMutex);
|
D | WatchdogPerfService.h | 277 mHandlerLooper(android::sp<LooperWrapper>::make()), in WatchdogPerfService() 425 android::sp<LooperWrapper> mHandlerLooper GUARDED_BY(mMutex);
|
D | WatchdogProcessService.h | 324 android::sp<Looper> mHandlerLooper; variable
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogPerfService.cpp | 268 mBoottimeCollection.lastPollElapsedRealTimeNs = mHandlerLooper->now(); in start() 269 mHandlerLooper->setLooper(Looper::prepare(/*opts=*/0)); in start() 270 mHandlerLooper->sendMessage(sp<WatchdogPerfService>::fromExisting(this), in start() 286 mHandlerLooper->pollAll(/*timeoutMillis=*/-1); in start() 307 mHandlerLooper->removeMessages(sp<WatchdogPerfService>::fromExisting(this)); in terminate() 308 mHandlerLooper->wake(); in terminate() 341 mHandlerLooper->sendMessage(sp<WatchdogPerfService>::fromExisting(this), in onCarWatchdogServiceRegistered() 365 mHandlerLooper->sendMessageAtTime(mHandlerLooper->now() + mPostSystemEventDurationNs.count(), in onBootFinished() 434 mHandlerLooper->removeMessages(thiz, SwitchMessage::END_USER_SWITCH_COLLECTION); in onUserStateChange() 436 mHandlerLooper->now() + mPostSystemEventDurationNs.count(); in onUserStateChange() [all …]
|
D | PressureMonitor.cpp | 94 mHandlerLooper->removeMessages(sp<PressureMonitor>::fromExisting(this)); in terminate() 95 mHandlerLooper->wake(); in terminate() 194 mHandlerLooper->setLooper(Looper::prepare(/*opts=*/0)); in start() 195 mLastPollElapsedRealTimeNs = mHandlerLooper->now(); in start() 196 mHandlerLooper->sendMessage(sp<PressureMonitor>::fromExisting(this), in start() 202 mHandlerLooper->pollAll(/*timeoutMillis=*/-1); in start() 274 mHandlerLooper->sendMessage(sp<PressureMonitor>::fromExisting(this), in monitorPressure() 284 nsecs_t now = mHandlerLooper->now(); in monitorPressure() 285 mHandlerLooper->sendMessageAtTime(mLastPollElapsedRealTimeNs > now ? mLastPollElapsedRealTimeNs in monitorPressure()
|
D | PackageInfoResolver.cpp | 111 sInstance->mHandlerLooper->removeMessages(sInstance->mMessageHandler); in terminate() 112 sInstance->mHandlerLooper->wake(); in terminate() 218 mHandlerLooper->removeMessages(mMessageHandler, MSG_RESOLVE_PACKAGE_NAME); in asyncFetchPackageNamesForUids() 219 mHandlerLooper->sendMessage(mMessageHandler, Message(MSG_RESOLVE_PACKAGE_NAME)); in asyncFetchPackageNamesForUids() 279 mHandlerLooper->setLooper(Looper::prepare(/* opts= */ 0)); in startLooper() 292 mHandlerLooper->pollAll(/* timeoutMillis= */ -1); in startLooper()
|
D | WatchdogProcessService.cpp | 284 mHandlerLooper(handlerLooper), in WatchdogProcessService() 375 mHandlerLooper->sendMessage(mMessageHandler, Message(MSG_CACHE_VHAL_PROCESS_IDENTIFIER)); in registerCarWatchdogService() 517 mHandlerLooper->removeMessages(mMessageHandler, MSG_VHAL_HEALTH_CHECK_TIMEOUT); in setEnabled() 524 mHandlerLooper->sendMessageDelayed(intervalNs.count(), mMessageHandler, in setEnabled() 528 mHandlerLooper->removeMessages(mMessageHandler, static_cast<int>(timeout)); in setEnabled() 700 mHandlerLooper->removeMessages(mMessageHandler, what); in doHealthCheck() 744 mHandlerLooper->sendMessageDelayed(durationNs.count(), mMessageHandler, Message(what)); in doHealthCheck() 779 mHandlerLooper->removeMessages(mMessageHandler); in terminate() 926 mHandlerLooper->sendMessageDelayed(durationNs.count(), mMessageHandler, Message(what)); in startHealthCheckingLocked() 1042 mHandlerLooper->removeMessages(mMessageHandler, MSG_VHAL_HEALTH_CHECK_TIMEOUT); in handleVhalDeath() [all …]
|
D | PackageInfoResolver.h | 147 mHandlerLooper(android::sp<LooperWrapper>::make()), 179 android::sp<LooperWrapper> mHandlerLooper; variable
|
D | PressureMonitor.h | 127 mHandlerLooper(android::sp<LooperWrapper>::make()), in PressureMonitor() 214 android::sp<LooperWrapper> mHandlerLooper GUARDED_BY(mMutex);
|
D | WatchdogPerfService.h | 277 mHandlerLooper(android::sp<LooperWrapper>::make()), in WatchdogPerfService() 425 android::sp<LooperWrapper> mHandlerLooper GUARDED_BY(mMutex);
|
D | WatchdogProcessService.h | 324 android::sp<Looper> mHandlerLooper; variable
|
/packages/services/Car/cpp/watchdog/testclient/src/ |
D | WatchdogClient.cpp | 51 WatchdogClient::WatchdogClient(const sp<Looper>& handlerLooper) : mHandlerLooper(handlerLooper) { in WatchdogClient() 60 mHandlerLooper->removeMessages(mMessageHandler, WHAT_CHECK_ALIVE); in checkIfAlive() 62 mHandlerLooper->sendMessage(mMessageHandler, Message(WHAT_CHECK_ALIVE)); in checkIfAlive() 102 mHandlerLooper->sendMessageDelayed(seconds_to_nanoseconds(param.inactiveAfterInSec), in initialize() 106 mHandlerLooper->sendMessageDelayed(seconds_to_nanoseconds(param.terminateAfterInSec), in initialize()
|
D | WatchdogClient.h | 76 ::android::sp<::android::Looper> mHandlerLooper;
|
/packages/services/Car/cpp/watchdog/stable_server/tests/ |
D | WatchdogProcessServiceTest.cpp | 294 kTestVhalPidCachingRetryDelayNs, mHandlerLooper, in startService() 316 mHandlerLooper.clear(); in terminateService() 326 mHandlerLooper->sendMessageDelayed(std::chrono::nanoseconds(delayMillis).count(), in scheduleVhalHeartBeatUpdate() 377 mHandlerLooper->sendMessageDelayed(kTestVhalPidCachingRetryDelayNs.count() / 2, in expectRequestAidlVhalPidAndRespond() 398 mHandlerLooper->sendMessageDelayed(delay.count(), mMessageHandler, in syncLooper() 465 mHandlerLooper = sp<Looper>::make(/*allowNonCallbacks=*/false); in prepareLooper() 467 Looper::setForThread(mHandlerLooper); in prepareLooper() 474 mHandlerLooper->pollAll(/*timeoutMillis=*/-1); in prepareLooper() 484 mHandlerLooper->wake(); in wakeAndJoinLooper() 540 sp<Looper> mHandlerLooper; member in android::automotive::watchdog::WatchdogProcessServiceTest
|
D | WatchdogPerfServiceTest.cpp | 164 mService->mHandlerLooper = looper; in init()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | WatchdogProcessServiceTest.cpp | 294 kTestVhalPidCachingRetryDelayNs, mHandlerLooper, in startService() 316 mHandlerLooper.clear(); in terminateService() 326 mHandlerLooper->sendMessageDelayed(std::chrono::nanoseconds(delayMillis).count(), in scheduleVhalHeartBeatUpdate() 377 mHandlerLooper->sendMessageDelayed(kTestVhalPidCachingRetryDelayNs.count() / 2, in expectRequestAidlVhalPidAndRespond() 398 mHandlerLooper->sendMessageDelayed(delay.count(), mMessageHandler, in syncLooper() 465 mHandlerLooper = sp<Looper>::make(/*allowNonCallbacks=*/false); in prepareLooper() 467 Looper::setForThread(mHandlerLooper); in prepareLooper() 474 mHandlerLooper->pollAll(/*timeoutMillis=*/-1); in prepareLooper() 484 mHandlerLooper->wake(); in wakeAndJoinLooper() 540 sp<Looper> mHandlerLooper; member in android::automotive::watchdog::WatchdogProcessServiceTest
|
D | WatchdogPerfServiceTest.cpp | 164 mService->mHandlerLooper = looper; in init()
|
/packages/services/Car/cpp/power/server/src/ |
D | CarPowerPolicyServer.cpp | 1205 mHandlerLooper->sendMessage(mRequestIdHandler, requestId); in enqueuePowerPolicyRequest() 1344 mHandlerLooper = looper; in init() 1422 if (mHandlerLooper != nullptr) { in terminate() 1424 mHandlerLooper->removeMessages(mEventHandler); in terminate() 1425 mHandlerLooper->removeMessages(mRequestIdHandler); in terminate() 1759 mHandlerLooper->sendMessage(mEventHandler, MSG_CONNECT_TO_VHAL); in connectToVhal() 1782 mHandlerLooper->sendMessageDelayed(kConnectionRetryIntervalNs, mEventHandler, in connectToVhalHelper()
|
D | CarPowerPolicyServer.h | 474 android::sp<android::Looper> mHandlerLooper; variable
|
/packages/services/Car/cpp/power/server/tests/ |
D | CarPowerPolicyServerTest.cpp | 185 if (mServer->mHandlerLooper != nullptr) { in ~CarPowerPolicyServerPeer() 305 mServer->mHandlerLooper = looper; in initializeLooper() 332 mServer->mHandlerLooper->wake(); in finalizeLooper()
|