Home
last modified time | relevance | path

Searched refs:PressureMonitor (Results 1 – 6 of 6) sorted by relevance

/packages/services/Car/cpp/watchdog/server/src/
DPressureMonitor.cpp56 Result<void> PressureMonitor::init() { in init()
90 void PressureMonitor::terminate() { in terminate()
94 mHandlerLooper->removeMessages(sp<PressureMonitor>::fromExisting(this)); in terminate()
106 Result<void> PressureMonitor::initializePsiMonitorsLocked() { in initializePsiMonitorsLocked()
151 void PressureMonitor::destroyActivePsiMonitorsLocked() { in destroyActivePsiMonitorsLocked()
172 Result<void> PressureMonitor::start() { in start()
196 mHandlerLooper->sendMessage(sp<PressureMonitor>::fromExisting(this), in start()
210 Result<void> PressureMonitor::registerPressureChangeCallback( in registerPressureChangeCallback()
220 void PressureMonitor::unregisterPressureChangeCallback( in unregisterPressureChangeCallback()
231 void PressureMonitor::handleMessage(const Message& message) { in handleMessage()
[all …]
DPressureMonitor.h102 class PressureMonitor final :
106 PressureMonitor() : in PressureMonitor() function
107 PressureMonitor(kDefaultProcPressureDirPath, kPollingIntervalMillis, &init_psi_monitor, in PressureMonitor()
112 PressureMonitor(const std::string& procPressureDirPath, in PressureMonitor() function
DServiceManager.cpp116 mPressureMonitor = sp<PressureMonitor>::make(); in startPressureMonitor()
/packages/services/Car/cpp/watchdog/server/tests/
DPressureMonitorTest.cpp118 .epollData.u32 = PressureMonitor::PRESSURE_LEVEL_LOW,
125 .epollData.u32 = PressureMonitor::PRESSURE_LEVEL_MEDIUM,
132 .epollData.u32 = PressureMonitor::PRESSURE_LEVEL_HIGH,
159 PressureMonitor::PRESSURE_LEVEL_NONE;
173 sp<PressureMonitor>::make(mTempProcPressureDir->path, kTestPollingIntervalMillis, in SetUp()
352 sp<PressureMonitor> mPressureMonitor;
420 Call(_, _, reinterpret_cast<void*>(PressureMonitor::PRESSURE_LEVEL_HIGH))) in TEST_F()
467 onPressureChanged(PressureMonitor::PRESSURE_LEVEL_MEDIUM)) in TEST_F()
470 onPressureChanged(PressureMonitor::PRESSURE_LEVEL_LOW)) in TEST_F()
473 onPressureChanged(PressureMonitor::PRESSURE_LEVEL_HIGH)) in TEST_F()
[all …]
DPerformanceProfilerTest.cpp668 PressureLevelDurationPair{PressureMonitor::PRESSURE_LEVEL_NONE, 100 * advanceUptimeSec}, in samplePressureLevels()
669 PressureLevelDurationPair{PressureMonitor::PRESSURE_LEVEL_HIGH, 200 * advanceUptimeSec}, in samplePressureLevels()
670 PressureLevelDurationPair{PressureMonitor::PRESSURE_LEVEL_HIGH, 100 * advanceUptimeSec}, in samplePressureLevels()
671 PressureLevelDurationPair{PressureMonitor::PRESSURE_LEVEL_LOW, 200 * advanceUptimeSec}, in samplePressureLevels()
672 PressureLevelDurationPair{PressureMonitor::PRESSURE_LEVEL_MEDIUM, in samplePressureLevels()
674 PressureLevelDurationPair{PressureMonitor::PRESSURE_LEVEL_LOW, 200 * advanceUptimeSec}, in samplePressureLevels()
675 PressureLevelDurationPair{PressureMonitor::PRESSURE_LEVEL_MEDIUM, in samplePressureLevels()
679 {PressureMonitor::PRESSURE_LEVEL_NONE, 100ms * advanceUptimeSec}, in samplePressureLevels()
680 {PressureMonitor::PRESSURE_LEVEL_LOW, 400ms * advanceUptimeSec}, in samplePressureLevels()
681 {PressureMonitor::PRESSURE_LEVEL_MEDIUM, 200ms * advanceUptimeSec}, in samplePressureLevels()
[all …]
/packages/services/Car/cpp/watchdog/server/
DAndroid.bp127 "src/PressureMonitor.cpp",