• Home
  • Raw
  • Download

Lines Matching full:uid

37     pid_t uid = IPCSkeleton::GetInstance().GetCallingUid();  in ReportData()  local
38 if (!CheckUid(uid)) { in ReportData()
69 pid_t uid = IPCSkeleton::GetInstance().GetCallingUid(); in QueryInterval() local
70 if (uid == 0) { in QueryInterval()
71 CONCUR_LOGE("Uid is 0, error query"); in QueryInterval()
76 QueryUi(uid, queryRs); in QueryInterval()
79 QueryRender(uid, queryRs); in QueryInterval()
82 QueryRenderService(uid, queryRs); in QueryInterval()
85 QueryHwc(uid, queryRs); in QueryInterval()
92 void TaskController::QueryUi(int uid, IntervalReply& queryRs) in QueryUi() argument
94 if (uid == SYSTEM_UID) { in QueryUi()
98 auto iter = GetRecordOfUid(uid); in QueryUi()
100 CONCUR_LOGD("Query ui with uid %{public}d failed: pid %{public}d", uid, pid); in QueryUi()
105 CONCUR_LOGI("%{public}d Query ui with none grpid", uid); in QueryUi()
112 void TaskController::QueryRender(int uid, IntervalReply& queryRs) in QueryRender() argument
114 if (uid == SYSTEM_UID) { in QueryRender()
118 auto iter = GetRecordOfUid(uid); in QueryRender()
120 CONCUR_LOGD("Query render with uid %{public}d failed, pid %{public}d", uid, pid); in QueryRender()
125 CONCUR_LOGI("%{public}d Query render with none grpid", uid); in QueryRender()
132 void TaskController::QueryRenderService(int uid, IntervalReply& queryRs) in QueryRenderService() argument
135 CONCUR_LOGD("uid %{public}d query rs group %{public}d.", uid, renderServiceGrpId_); in QueryRenderService()
141 …CONCUR_LOGE("uid %{public}d query rs group failed and create %{public}d.", uid, renderServiceGrpId… in QueryRenderService()
144 void TaskController::QueryHwc(int uid, IntervalReply& queryRs) in QueryHwc() argument
146 if (uid == SYSTEM_UID) { in QueryHwc()
150 auto iter = GetRecordOfUid(uid); in QueryHwc()
152 CONCUR_LOGD("Query ipc thread with uid %{public}d failed, pid %{public}d", uid, pid); in QueryHwc()
157 CONCUR_LOGI("%{public}d Query ipc thread with none grpid", uid); in QueryHwc()
237 bool TaskController::CheckUid(pid_t uid) in CheckUid() argument
239 if ((uid != SYSTEM_UID) && (uid != 0)) { in CheckUid()
249 appUid = stoi(payload["uid"].asString()); in DealSystemRequest()
251 CONCUR_LOGE("Unexpected uid format"); in DealSystemRequest()
276 void TaskController::DealAppRequest(int requestType, const Json::Value& payload, pid_t uid) in DealAppRequest() argument
278 if (uid <= SYSTEM_UID) { in DealAppRequest()
279 CONCUR_LOGE("Unexpected uid in app req"); in DealAppRequest()
291 auto record = GetRecordOfUid(uid); in DealAppRequest()
302 std::list<ForegroundAppRecord>::iterator TaskController::GetRecordOfUid(int uid) in GetRecordOfUid() argument
305 if (iter->GetUid() == uid) { in GetRecordOfUid()
312 void TaskController::NewForeground(int uid) in NewForeground() argument
314 auto it = find(authApps_.begin(), authApps_.end(), uid); in NewForeground()
316 CONCUR_LOGI("un-authed uid %{public}d", uid); in NewForeground()
319 unsigned int uidParam = static_cast<unsigned int>(uid); in NewForeground()
325 CONCUR_LOGI("auth_enable %{public}d success", uid); in NewForeground()
327 CONCUR_LOGE("auth_enable %{public}d fail with ret %{public}d", uid, ret); in NewForeground()
331 if (iter->GetUid() == uid) { in NewForeground()
333 CONCUR_LOGI("uid %{public}d is already in foreground.", uid); in NewForeground()
337 CONCUR_LOGI("uid %{public}d change to foreground.", uid); in NewForeground()
339 ForegroundAppRecord *tempRecord = new ForegroundAppRecord(uid); in NewForeground()
349 void TaskController::NewBackground(int uid) in NewBackground() argument
351 auto it = find(authApps_.begin(), authApps_.end(), uid); in NewBackground()
353 CONCUR_LOGI("un-authed uid %{public}d", uid); in NewBackground()
356 CONCUR_LOGI("uid %{public}d change to background.", uid); in NewBackground()
357 unsigned int uidParam = static_cast<unsigned int>(uid); in NewBackground()
361 CONCUR_LOGI("auth_pause %{public}d success", uid); in NewBackground()
363 CONCUR_LOGI("auth_pause %{public}d fail with %{public}d", uid, ret); in NewBackground()
366 if (iter->GetUid() == uid) { in NewBackground()
373 void TaskController::NewAppStart(int uid) in NewAppStart() argument
375 CONCUR_LOGI("uid %{public}d start.", uid); in NewAppStart()
376 unsigned int uidParam = static_cast<unsigned int>(uid); in NewAppStart()
382 CONCUR_LOGI("auth_enable %{public}d success", uid); in NewAppStart()
384 CONCUR_LOGE("auth_enable %{public}d fail with ret %{public}d", uid, ret); in NewAppStart()
386 authApps_.push_back(uid); in NewAppStart()
389 void TaskController::AppKilled(int uid) in AppKilled() argument
391 CONCUR_LOGI("uid %{public}d killed.", uid); in AppKilled()
392 unsigned int uidParam = static_cast<unsigned int>(uid); in AppKilled()
395 CONCUR_LOGI("auth_delete %{public}d success", uid); in AppKilled()
397 CONCUR_LOGE("auth_delete %{public}d fail with %{public}d", uid, ret); in AppKilled()
401 if (iter->GetUid() == uid) { in AppKilled()
407 if (*iter == uid) { in AppKilled()
421 ForegroundAppRecord::ForegroundAppRecord(int uid) in ForegroundAppRecord() argument
423 uid_ = uid; in ForegroundAppRecord()
430 CONCUR_LOGI("CreateNewRtgGroup failed! rtGrp:%{public}d, pid: %{public}d", grpId_, uid); in ForegroundAppRecord()
471 CONCUR_LOGI("Error begin scene in uid %{public}d", uid_); in BeginScene()
482 CONCUR_LOGI("Error end scene in uid %{public}d", uid_); in EndScene()