/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogProcessService.cpp | 56 using ::aidl::android::automotive::watchdog::TimeoutLength; 96 const std::vector<TimeoutLength> kTimeouts = {TimeoutLength::TIMEOUT_CRITICAL, 97 TimeoutLength::TIMEOUT_MODERATE, 98 TimeoutLength::TIMEOUT_NORMAL}; 102 const int32_t MSG_VHAL_WATCHDOG_ALIVE = static_cast<int>(TimeoutLength::TIMEOUT_NORMAL) + 1; 114 constexpr TimeoutLength kCarWatchdogServiceTimeoutDelay = TimeoutLength::TIMEOUT_CRITICAL; 202 int toProtoHealthCheckTimeout(TimeoutLength timeoutLength) { in toProtoHealthCheckTimeout() 204 case TimeoutLength::TIMEOUT_CRITICAL: in toProtoHealthCheckTimeout() 206 case TimeoutLength::TIMEOUT_MODERATE: in toProtoHealthCheckTimeout() 208 case TimeoutLength::TIMEOUT_NORMAL: in toProtoHealthCheckTimeout() [all …]
|
D | WatchdogProcessService.h | 72 aidl::android::automotive::watchdog::TimeoutLength timeout) = 0; 130 aidl::android::automotive::watchdog::TimeoutLength timeout) override; 199 aidl::android::automotive::watchdog::TimeoutLength timeout) const; 254 aidl::android::automotive::watchdog::TimeoutLength timeout); 256 const std::vector<aidl::android::automotive::watchdog::TimeoutLength>& timeouts, 260 aidl::android::automotive::watchdog::TimeoutLength timeout); 262 aidl::android::automotive::watchdog::TimeoutLength timeout); 291 const std::vector<aidl::android::automotive::watchdog::TimeoutLength>& timeouts, 294 const std::vector<aidl::android::automotive::watchdog::TimeoutLength>& timeouts, 297 const aidl::android::automotive::watchdog::TimeoutLength& timeout); [all …]
|
D | WatchdogServiceHelper.cpp | 30 using ::aidl::android::automotive::watchdog::TimeoutLength; 165 TimeoutLength timeout) const { in checkIfAlive() 177 aidl::android::automotive::watchdog::internal::TimeoutLength>( in checkIfAlive()
|
D | WatchdogServiceHelper.h | 66 aidl::android::automotive::watchdog::TimeoutLength timeout) const = 0; 113 aidl::android::automotive::watchdog::TimeoutLength timeout) const override;
|
/packages/services/Car/cpp/watchdog/vts/ |
D | VtsAidlWatchdogTargetTest.cpp | 41 using ::aidl::android::automotive::watchdog::TimeoutLength; 70 MOCK_METHOD(ScopedAStatus, checkIfAlive, (int32_t, TimeoutLength), (override)); 76 [&](int32_t sessionId, TimeoutLength timeoutLength) -> ScopedAStatus { in expectCheckIfAlive() 85 void waitCheckIfAlive(TimeoutLength expectedTimeoutLength, int32_t* actualSessionId) { in waitCheckIfAlive() 96 TimeoutLength mTimeoutLength GUARDED_BY(mMutex); 126 watchdogServer->registerClient(mockClient, TimeoutLength::TIMEOUT_CRITICAL); in TEST_P() 130 mockClient->waitCheckIfAlive(TimeoutLength::TIMEOUT_CRITICAL, &sessionId)); in TEST_P() 138 ASSERT_FALSE(watchdogServer->registerClient(nullptr, TimeoutLength::TIMEOUT_CRITICAL).isOk()) in TEST_P()
|
/packages/services/Car/cpp/watchdog/testclient/src/ |
D | WatchdogClient.h | 41 TimeoutLength sessionTimeout = TimeoutLength::TIMEOUT_NORMAL) : 46 TimeoutLength timeout; 53 ndk::ScopedAStatus checkIfAlive(int32_t sessionId, TimeoutLength timeout) override;
|
D | WatchdogClient.cpp | 40 const std::unordered_map<std::string, TimeoutLength> kTimeoutMap = 41 {{"critical", TimeoutLength::TIMEOUT_CRITICAL}, 42 {"moderate", TimeoutLength::TIMEOUT_MODERATE}, 43 {"normal", TimeoutLength::TIMEOUT_NORMAL}}; 51 ndk::ScopedAStatus WatchdogClient::checkIfAlive(int32_t sessionId, TimeoutLength timeout) { in checkIfAlive()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | WatchdogProcessServiceTest.cpp | 44 using ::aidl::android::automotive::watchdog::TimeoutLength; 144 {TimeoutLength::TIMEOUT_CRITICAL, clientInfoMap}); in setWatchdogProcessServiceState() 149 bool hasClientInfoWithPackageName(TimeoutLength timeoutLength, std::string packageName) { in hasClientInfoWithPackageName() 408 auto status = mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F() 412 status = mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F() 422 auto status = mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F() 441 mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL).isOk()) in TEST_F() 450 auto status = mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F() 568 mWatchdogProcessService->registerClient(client, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F() 820 ->hasClientInfoWithPackageName(TimeoutLength::TIMEOUT_CRITICAL, "shell")); in TEST_F() [all …]
|
D | WatchdogServiceHelperTest.cpp | 34 using ::aidl::android::automotive::watchdog::TimeoutLength; 60 using InternalTimeoutLength = ::aidl::android::automotive::watchdog::internal::TimeoutLength; 304 0, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F() 317 TimeoutLength::TIMEOUT_CRITICAL); in TEST_F() 327 0, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F() 341 0, TimeoutLength::TIMEOUT_CRITICAL); in TEST_F()
|
D | WatchdogBinderMediatorTest.cpp | 44 using ::aidl::android::automotive::watchdog::TimeoutLength; 193 TimeoutLength timeout = TimeoutLength::TIMEOUT_MODERATE; in TEST_F()
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/ |
D | ICarWatchdogClient.aidl | 19 import android.automotive.watchdog.TimeoutLength; 33 void checkIfAlive(in int sessionId, in TimeoutLength timeout); in checkIfAlive()
|
D | ICarWatchdog.aidl | 25 import android.automotive.watchdog.TimeoutLength; 42 void registerClient(in ICarWatchdogClient client, in TimeoutLength timeout); in registerClient()
|
D | TimeoutLength.aidl | 26 enum TimeoutLength { enum
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/ |
D | ICarWatchdogServiceForSystem.aidl | 21 import android.automotive.watchdog.internal.TimeoutLength; 43 oneway void checkIfAlive(int sessionId, in TimeoutLength timeout); in checkIfAlive()
|
D | TimeoutLength.aidl | 25 enum TimeoutLength { enum
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/ |
D | TimeoutLength.aidl | 36 enum TimeoutLength { enum
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/ |
D | TimeoutLength.aidl | 36 enum TimeoutLength { enum
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/1/android/automotive/watchdog/internal/ |
D | TimeoutLength.aidl | 36 enum TimeoutLength { enum
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/ |
D | TimeoutLength.aidl | 36 enum TimeoutLength { enum
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/current/android/automotive/watchdog/ |
D | TimeoutLength.aidl | 36 enum TimeoutLength { enum
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/3/android/automotive/watchdog/ |
D | TimeoutLength.aidl | 36 enum TimeoutLength { enum
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/1/android/automotive/watchdog/ |
D | TimeoutLength.aidl | 20 enum TimeoutLength { enum
|
D | ICarWatchdogClient.aidl | 21 oneway void checkIfAlive(in int sessionId, in android.automotive.watchdog.TimeoutLength timeout); in checkIfAlive()
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog/2/android/automotive/watchdog/ |
D | TimeoutLength.aidl | 20 enum TimeoutLength { enum
|
D | ICarWatchdogClient.aidl | 21 oneway void checkIfAlive(in int sessionId, in android.automotive.watchdog.TimeoutLength timeout); in checkIfAlive()
|