Home
last modified time | relevance | path

Searched refs:XCollie (Results 1 – 19 of 19) sorted by relevance

/base/hiviewdfx/hicollie/frameworks/native/
Dxcollie.cpp25 XCollie::XCollie() in XCollie() function in OHOS::HiviewDFX::XCollie
28 XCollie::~XCollie() in ~XCollie()
32 void XCollie::RegisterXCollieChecker(const sptr<XCollieChecker> &checker, unsigned int type) in RegisterXCollieChecker()
37 int XCollie::SetTimer(const std::string &name, unsigned int timeout, std::function<void(void *)> fu… in SetTimer()
43 void XCollie::CancelTimer(int id) in CancelTimer()
48 bool XCollie::UpdateTimer(int id, unsigned int timeout) in UpdateTimer()
/base/hiviewdfx/hicollie/frameworks/native/test/unittest/common/
Dxcollie_interface_test.cpp57 XCollie::GetInstance().RegisterXCollieChecker(nullptr, XCOLLIE_LOCK | XCOLLIE_THREAD);
64 XCollie::GetInstance().RegisterXCollieChecker(checkerTest, 0x100);
81 …int id = XCollie::GetInstance().SetTimer("TimeoutTimerxce!@#$%^&*()", 1, nullptr, nullptr, XCOLLIE…
88 bool ret = XCollie::GetInstance().UpdateTimer(id, 1);
90 XCollie::GetInstance().CancelTimer(id);
96 id = XCollie::GetInstance().SetTimer("Timer", 0, nullptr, nullptr, XCOLLIE_FLAG_NOOP);
102 XCollie::GetInstance().CancelTimer(-1);
108 ret = XCollie::GetInstance().UpdateTimer(-1, 10);
115 ret = XCollie::GetInstance().UpdateTimer(10, 0);
Dxcollie_checker_interface_test.cpp61 XCollie::GetInstance().RegisterXCollieChecker(checkerTest, XCOLLIE_LOCK | XCOLLIE_THREAD);
/base/hiviewdfx/hicollie/frameworks/native/test/moduletest/common/
Dxcollie_timeout_test.cpp75 …int id = XCollie::GetInstance().SetTimer("NoTimeoutTimer", 1, nullptr, nullptr, XCOLLIE_FLAG_NOOP);
82 bool ret = XCollie::GetInstance().UpdateTimer(id, 3);
89 XCollie::GetInstance().CancelTimer(id);
109 int id = XCollie::GetInstance().SetTimer("TimeoutTimer", 1, func, this, XCOLLIE_FLAG_NOOP);
118 bool ret = XCollie::GetInstance().UpdateTimer(id, 1);
120 XCollie::GetInstance().CancelTimer(id);
143 … id[i] = XCollie::GetInstance().SetTimer("TimeoutTimer", 1, func, this, XCOLLIE_FLAG_DEFAULT);
151 …int last = XCollie::GetInstance().SetTimer("TimeoutTimer", 1, nullptr, nullptr, XCOLLIE_FLAG_NOOP);
165 last = XCollie::GetInstance().SetTimer("TimeoutTimer", 1, nullptr, nullptr, XCOLLIE_FLAG_NOOP);
167 XCollie::GetInstance().CancelTimer(last);
[all …]
Dxcollie_watchdog_test.cpp75 XCollie::GetInstance().RegisterXCollieChecker(checkerTest, XCOLLIE_LOCK | XCOLLIE_THREAD);
110 XCollie::GetInstance().RegisterXCollieChecker(checkerTest, XCOLLIE_LOCK);
145 XCollie::GetInstance().RegisterXCollieChecker(checkerTest, XCOLLIE_THREAD);
183 XCollie::GetInstance().RegisterXCollieChecker(checkerThreadTest, XCOLLIE_THREAD);
187 XCollie::GetInstance().RegisterXCollieChecker(checkerLockTest, XCOLLIE_LOCK);
227 XCollie::GetInstance().RegisterXCollieChecker(checkerThreadTest, XCOLLIE_THREAD);
231 XCollie::GetInstance().RegisterXCollieChecker(checkerLockTest, XCOLLIE_LOCK);
/base/hiviewdfx/hicollie/interfaces/native/innerkits/include/xcollie/
Dxcollie.h25 class XCollie : public Singleton<XCollie> {
26 DECLARE_SINGLETON(XCollie);
/base/powermgr/power_manager/services/zidl/src/
Dpower_shutdown_callback_stub.cpp34 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("PowerShutdownCallback", DFX_DELAY_MS, nullptr… in OnRemoteRequest()
51 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
Dpower_mode_callback_stub.cpp34 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("PowerModeCallbackStub", DFX_DELAY_MS, nullptr… in OnRemoteRequest()
51 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
Dpower_state_callback_stub.cpp31 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("PowerStateCallbackStub", DFX_DELAY_MS, nullpt… in OnRemoteRequest()
48 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
Dpower_mgr_stub.cpp44 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("PowerMgrStub", DFX_DELAY_MS, nullptr, nullptr, in OnRemoteRequest()
139 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
/base/powermgr/thermal_manager/services/zidl/src/
Dthermal_level_callback_stub.cpp43 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("ThermalLevelCallbackStub", DFX_DELAY_MS, null… in OnRemoteRequest()
55 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
Dthermal_temp_callback_stub.cpp44 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("ThermalLevelCallbackStub", DFX_DELAY_MS, null… in OnRemoteRequest()
56 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
Dthermal_action_callback_stub.cpp38 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("ThermalActionCallbackStub", DFX_DELAY_MS, nul… in OnRemoteRequest()
50 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
Dthermal_srv_stub.cpp45 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("ThermalSrvStub", DFX_DELAY_MS, nullptr, nullp… in OnRemoteRequest()
48 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
/base/powermgr/display_manager/service/zidl/src/
Ddisplay_power_callback_stub.cpp45 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("DisplayPowerCallbackStub", DFX_DELAY_MS, null… in OnRemoteRequest()
56 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
Ddisplay_power_mgr_stub.cpp46 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("DisplayPowerMgrStub", DFX_DELAY_MS, nullptr, … in OnRemoteRequest()
112 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
/base/powermgr/battery_manager/services/zidl/src/
Dbattery_srv_stub.cpp42 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("BatteryManagerCallbackStub", DFX_DELAY_MS, nu… in OnRemoteRequest()
45 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
/base/powermgr/battery_statistics/services/zidl/src/
Dbattery_stats_stub.cpp37 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("BatteryStatsStub", DFX_DELAY_MS, nullptr, nul… in OnRemoteRequest()
47 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in OnRemoteRequest()
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_core.cpp148 …int id = HiviewDFX::XCollie::GetInstance().SetTimer("BatteryStatsCoreComputePower", DFX_DELAY_MS, … in ComputePower()
160 HiviewDFX::XCollie::GetInstance().CancelTimer(id); in ComputePower()