Home
last modified time | relevance | path

Searched refs:SystemState (Results 1 – 15 of 15) sorted by relevance

/packages/services/Car/cpp/watchdog/server/tests/
DIoOveruseMonitorTest.cpp371 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::NORMAL_MODE, in TEST_F()
418 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::NORMAL_MODE, in TEST_F()
473 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::NORMAL_MODE, in TEST_F()
536 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::GARAGE_MODE, in TEST_F()
595 SystemState::NORMAL_MODE, mMockUidStatsCollector, in TEST_F()
617 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::NORMAL_MODE, in TEST_F()
655 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::GARAGE_MODE, in TEST_F()
699 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::NORMAL_MODE, in TEST_F()
748 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::NORMAL_MODE, in TEST_F()
797 SystemState::NORMAL_MODE, mMockUidStatsCollector, in TEST_F()
[all …]
DWatchdogPerfServiceTest.cpp292 EXPECT_CALL(*mMockDataProcessor, onPeriodicCollection(_, SystemState::NORMAL_MODE, _, _, _)) in skipPeriodicCollection()
496 onPeriodicCollection(_, SystemState::NORMAL_MODE, Eq(mMockUidStatsCollector), in TEST_F()
553 onCustomCollection(_, SystemState::NORMAL_MODE, _, Eq(mMockUidStatsCollector), in TEST_F()
587 onCustomCollection(_, SystemState::NORMAL_MODE, _, Eq(mMockUidStatsCollector), in TEST_F()
620 onPeriodicCollection(_, SystemState::NORMAL_MODE, Eq(mMockUidStatsCollector), in TEST_F()
778 onCustomCollection(_, SystemState::NORMAL_MODE, in TEST_F()
827 onCustomCollection(_, SystemState::NORMAL_MODE, in TEST_F()
1289 onPeriodicCollection(_, SystemState::NORMAL_MODE, Eq(mMockUidStatsCollector), in TEST_F()
1328 onCustomCollection(_, SystemState::NORMAL_MODE, _, Eq(mMockUidStatsCollector), in TEST_F()
1433 onCustomCollection(_, SystemState::NORMAL_MODE, _, Eq(mMockUidStatsCollector), in TEST_F()
[all …]
DMockDataProcessor.h48 (time_point_millis, SystemState, const wp<UidStatsCollectorInterface>&,
57 (time_point_millis, SystemState, const std::unordered_set<std::string>&,
DPerformanceProfilerTest.cpp1588 ASSERT_RESULT_OK(mCollector->onPeriodicCollection(getNowMillis(), SystemState::NORMAL_MODE, in TEST_F()
1614 ASSERT_RESULT_OK(mCollector->onPeriodicCollection(getNowMillis(), SystemState::NORMAL_MODE, in TEST_F()
1639 ASSERT_RESULT_OK(mCollector->onCustomCollection(getNowMillis(), SystemState::NORMAL_MODE, {}, in TEST_F()
1675 ASSERT_RESULT_OK(mCollector->onCustomCollection(getNowMillis(), SystemState::NORMAL_MODE, in TEST_F()
1779 ASSERT_RESULT_OK(mCollector->onPeriodicCollection(getNowMillis(), SystemState::NORMAL_MODE, in TEST_F()
1837 ASSERT_RESULT_OK(mCollector->onPeriodicCollection(getNowMillis(), SystemState::NORMAL_MODE, in TEST_F()
1845 ASSERT_RESULT_OK(mCollector->onPeriodicCollection(getNowMillis(), SystemState::NORMAL_MODE, in TEST_F()
1865 ASSERT_RESULT_OK(mCollector->onPeriodicCollection(getNowMillis(), SystemState::NORMAL_MODE, in TEST_F()
1898 ASSERT_RESULT_OK(mCollector->onPeriodicCollection(getNowMillis(), SystemState::NORMAL_MODE, in TEST_F()
1924 ASSERT_RESULT_OK(mCollector->onPeriodicCollection(getNowMillis(), SystemState::NORMAL_MODE, in TEST_F()
[all …]
DMockWatchdogPerfService.h42 MOCK_METHOD(void, setSystemState, (SystemState), (override));
DWatchdogInternalHandlerTest.cpp452 EXPECT_CALL(*mMockWatchdogPerfService, setSystemState(SystemState::GARAGE_MODE)).Times(1); in TEST_F()
466 EXPECT_CALL(*mMockWatchdogPerfService, setSystemState(SystemState::NORMAL_MODE)).Times(1); in TEST_F()
/packages/services/Car/cpp/watchdog/server/src/
DWatchdogPerfService.h70 enum SystemState { enum
117 time_point_millis time, SystemState systemState,
132 time_point_millis time, SystemState systemState,
225 virtual void setSystemState(SystemState systemState) = 0;
294 void setSystemState(SystemState systemState) override;
420 SystemState mSystemState GUARDED_BY(mMutex);
DPerformanceProfiler.h274 time_point_millis time, SystemState systemState,
285 time_point_millis time, SystemState systemState,
351 time_point_millis time, SystemState systemState,
DIoOveruseMonitor.h167 time_point_millis time, SystemState systemState,
173 time_point_millis time, SystemState systemState,
DPerformanceProfiler.cpp1035 return processLocked(time, SystemState::NORMAL_MODE, std::unordered_set<std::string>(), in onBoottimeCollection()
1041 time_point_millis time, SystemState systemState, in onPeriodicCollection()
1082 return processLocked(time, SystemState::NORMAL_MODE, std::unordered_set<std::string>(), in onUserSwitchCollection()
1097 return processLocked(time, SystemState::NORMAL_MODE, std::unordered_set<std::string>(), in onWakeUpCollection()
1103 time_point_millis time, SystemState systemState, in onCustomCollection()
1119 time_point_millis time, SystemState systemState, in processLocked()
1133 bool isGarageModeActive = systemState == SystemState::GARAGE_MODE; in processLocked()
DWatchdogPerfService.cpp159 constexpr const char* toString(SystemState systemState) { in toString()
161 case SystemState::NORMAL_MODE: in toString()
163 case SystemState::GARAGE_MODE: in toString()
324 void WatchdogPerfService::setSystemState(SystemState systemState) { in setSystemState()
DWatchdogInternalHandler.cpp301 ? SystemState::NORMAL_MODE in notifySystemStateChange()
302 : SystemState::GARAGE_MODE); in notifySystemStateChange()
DIoOveruseMonitor.cpp252 time_point_millis time, SystemState systemState, in onPeriodicCollection()
287 bool isGarageModeActive = systemState == SystemState::GARAGE_MODE; in onPeriodicCollection()
401 time_point_millis time, SystemState systemState, in onCustomCollection()
/packages/services/Car/service/proto/android/car/watchdog/
Datoms.proto44 enum SystemState { enum
50 optional SystemState system_state = 3;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DWatchdogPerfHandlerUnitTest.java4402 .setSystemState(AtomsProto.CarWatchdogKillStatsReported.SystemState.forNumber(