Lines Matching defs:sess
59 SessionPtr sess = udsServer_->GetSessionByPid(pid);
60 if (sess == nullptr) {
63 MMI_HILOGE("The sess is null, return value is %{public}d", RET_ERR);
67 std::list<int32_t> timerIds = sess->DelEvents(eventType, eventId);
79 void ANRManager::RemoveTimers(SessionPtr sess)
81 CHKPV(sess);
82 std::vector<int32_t> DispatchTimerIds = sess->GetTimerIds(ANR_DISPATCH);
89 std::vector<int32_t> MonitorTimerIds = sess->GetTimerIds(ANR_MONITOR);
98 void ANRManager::RemoveTimersByType(SessionPtr sess, int32_t type)
100 CHKPV(sess);
105 std::vector<int32_t> timerIds = sess->GetTimerIds(ANR_MONITOR);
114 void ANRManager::AddTimer(int32_t type, int32_t id, int64_t currentTime, SessionPtr sess)
116 CHKPV(sess);
117 if (sess->GetTokenType() != TokenType::TOKEN_HAP || sess->GetProgramName() == FOUNDATION) {
118 MMI_HILOGD("Not application event, skip. pid:%{public}d, anr type:%{public}d", sess->GetPid(), type);
125 int32_t timerId = TimerMgr->AddTimer(INPUT_UI_TIMEOUT_TIME / TIME_CONVERT_RATIO, 1, [this, id, type, sess]() {
126 CHKPV(sess);
127 if (type == ANR_MONITOR || WIN_MGR->IsWindowVisible(sess->GetPid())) {
128 sess->SetAnrStatus(type, true);
129 DfxHisysevent::ApplicationBlockInput(sess);
131 sess->GetPid(), type, id);
134 pkt << sess->GetPid();
146 std::vector<int32_t> timerIds = sess->GetTimerIds(type);
160 sess->SaveANREvent(type, id, currentTime, timerId);
163 bool ANRManager::TriggerANR(int32_t type, int64_t time, SessionPtr sess)
167 CHKPF(sess);
168 if (sess->GetTokenType() != TokenType::TOKEN_HAP || sess->GetProgramName() == FOUNDATION) {
169 MMI_HILOGD("Not application event, skip. pid:%{public}d, anr type:%{public}d", sess->GetPid(), type);
172 if (sess->CheckAnrStatus(type)) {
173 MMI_HILOGD("Application not responding. pid:%{public}d, anr type:%{public}d", sess->GetPid(), type);