Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 902) sorted by relevance

12345678910>>...37

/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/common/
Dwifi_permission_helper.h33 static int InitPermission(const int &pid, const int &uid);
42 static int ClearPermission(const int &pid, const int &uid);
52 …static int ChangePermission(const std::map<std::string, int> &permissions, const int &pid, const i…
62 …static IsGranted MockVerifyPermission(const std::string &permissionName, const int &pid, const int…
72 static int VerifyPermission(const std::string &permissionName, const int &pid, const int &uid);
83 static int VerifyPermissionEx(const std::string &permissionName, const int &pid,
93 static int VerifySetWifiInfoPermission(const int &pid, const int &uid);
102 static int VerifyGetWifiInfoPermission(const int &pid, const int &uid);
111 static int VerifyGetScanInfosPermission(const int &pid, const int &uid);
120 static int VerifyGetWifiLocalMacPermission(const int &pid, const int &uid);
[all …]
Dwifi_permission_helper.cpp54 int WifiPermissionHelper::InitPermission(const int &pid, const int &uid) in InitPermission() argument
67 g_pidPermissionMap[pid] = permissionMap; in InitPermission()
74 const std::map<std::string, int> &permissions, const int &pid, const int &uid) in ChangePermission() argument
88 g_pidPermissionMap[pid] = permissionMap; in ChangePermission()
94 int WifiPermissionHelper::ClearPermission(const int &pid, const int &uid) in ClearPermission() argument
97 g_pidPermissionMap.erase(pid); in ClearPermission()
102 …sionHelper::MockVerifyPermission(const std::string &permissionName, const int &pid, const int &uid) in MockVerifyPermission() argument
107 MAP_INT_PERMISSION_MAP::iterator iter = g_pidPermissionMap.find(pid); in MockVerifyPermission()
110 LOGD("can't find PID=%{public}d in g_pidPermissionMap!", pid); in MockVerifyPermission()
161 int WifiPermissionHelper::VerifyPermission(const std::string &permissionName, const int &pid, const… in VerifyPermission() argument
[all …]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/
Dwifi_auth_center.cpp76 int WifiAuthCenter::InitPermission(const int &pid, const int &uid) in InitPermission() argument
78 return WifiPermissionHelper::InitPermission(pid, uid); in InitPermission()
81 int WifiAuthCenter::ChangePermission(const std::map<std::string, int> &permissions, const int &pid,… in ChangePermission() argument
86 return WifiPermissionHelper::ChangePermission(permissions, pid, uid); in ChangePermission()
89 int WifiAuthCenter::VerifySetWifiInfoPermission(const int &pid, const int &uid) in VerifySetWifiInfoPermission() argument
94 return WifiPermissionHelper::VerifySetWifiInfoPermission(pid, uid); in VerifySetWifiInfoPermission()
97 int WifiAuthCenter::VerifyGetWifiInfoPermission(const int &pid, const int &uid) in VerifyGetWifiInfoPermission() argument
102 return WifiPermissionHelper::VerifyGetWifiInfoPermission(pid, uid); in VerifyGetWifiInfoPermission()
105 int WifiAuthCenter::VerifyGetScanInfosPermission(const int &pid, const int &uid) in VerifyGetScanInfosPermission() argument
110 return WifiPermissionHelper::VerifyGetScanInfosPermission(pid, uid); in VerifyGetScanInfosPermission()
[all …]
Dwifi_auth_center.h56 int InitPermission(const int &pid, const int &uid);
66 …int ChangePermission(const std::map<std::string, int> &permissions, const int &pid, const int &uid…
75 int VerifySetWifiInfoPermission(const int &pid, const int &uid);
84 int VerifyGetWifiInfoPermission(const int &pid, const int &uid);
93 int VerifyGetScanInfosPermission(const int &pid, const int &uid);
102 int VerifyGetWifiLocalMacPermission(const int &pid, const int &uid);
111 int VerifyWifiConnectionPermission(const int &pid, const int &uid);
120 int VerifySetWifiConfigPermission(const int &pid, const int &uid);
129 int VerifyGetWifiConfigPermission(const int &pid, const int &uid);
138 int VerifyGetWifiDirectDevicePermission(const int &pid, const int &uid);
[all …]
/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/
Dffrt_trace_recover.py51 def make_costart_fake_log(mark, pid, label, gid, tid, tname, prio): argument
58 tname, tid, pid, cpu_id, timestamp, tname, tid, prio, label, pid, gid, prio)
63 def make_coyield_fake_log(mark, pid, label, gid, tid, tname, prio): argument
70 label, pid, gid, pid, cpu_id, timestamp, label, pid, gid, prio, tname, tid, prio)
74 (label, pid, gid, pid, cpu_id, timestamp, pid) + fake_log
79 def replace_sched_switch_log(fake_log, mark, pid, label, gid, tid): argument
85 fake_log = " %s-%d00%d " % (label, pid, gid) + fake_log[index:]
88 fake_log = fake_log[:fake_log.index("prev_pid=")] + "prev_pid=%d00%d " % (pid, gid) + \
93 fake_log = fake_log[:fake_log.index("next_pid=")] + "next_pid=%d00%d " % (pid, gid) + \
99 def replace_sched_wake_log(fake_log, label, pid, gid): argument
[all …]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/common/
Dwifi_permission_helper_test.cpp46 pid = PID_NUM_1001; in SetUp()
49 pWifiPermissionHelper->InitPermission(pid, uid); in SetUp()
57 int pid; member in OHOS::Wifi::WifiPermissionHelperTest
70 EXPECT_TRUE(pWifiPermissionHelper->ChangePermission(permissions, pid, uid) == 0);
81 EXPECT_TRUE(pWifiPermissionHelper->ClearPermission(pid, uid) == 0);
105 …EXPECT_TRUE(pWifiPermissionHelper->MockVerifyPermission(permissionName, pid, uid) == PERMISSION_DE…
117 EXPECT_TRUE(pWifiPermissionHelper->ChangePermission(permissions, pid, uid) == 0);
118 …EXPECT_TRUE(pWifiPermissionHelper->MockVerifyPermission(permissionName, pid, uid) == PERMISSION_DE…
130 EXPECT_TRUE(pWifiPermissionHelper->ChangePermission(permissions, pid, uid) == 0);
131 …EXPECT_TRUE(pWifiPermissionHelper->MockVerifyPermission(permissionName, pid, 1) == PERMISSION_DENI…
[all …]
/foundation/communication/ipc/ipc/test/auxiliary/native/src/
Dipc_test_helper.cpp95 pid_t pid = INVALID_PID; in GetPidByName() local
99 return pid; in GetPidByName()
135 if (sscanf_s(ptr->d_name, "%d", &pid) <= 0) { in GetPidByName()
145 return pid; in GetPidByName()
226 bool IPCTestHelper::StopExecutable(pid_t pid) in StopExecutable() argument
228 if (pid != INVALID_PID) { in StopExecutable()
229 ZLOGD(LABEL, "kill pid = %d\n", pid); in StopExecutable()
230 kill(pid, SIG_KILL); in StopExecutable()
238 pid_t pid = GetPidByName(name); in StopExecutable() local
239 if (pid != INVALID_PID) { in StopExecutable()
[all …]
/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/sched_controller/
Dapp_state_observer.cpp42 auto pid = appStateData.pid; in OnForegroundApplicationChanged() local
44 cgHandler->PostTask([cgHandler, uid, pid, bundleName, state] { in OnForegroundApplicationChanged()
45 cgHandler->HandleForegroundApplicationChanged(uid, pid, bundleName, state); in OnForegroundApplicationChanged()
50 payload["pid"] = std::to_string(appStateData.pid); in OnForegroundApplicationChanged()
65 auto pid = abilityStateData.pid; in OnAbilityStateChanged() local
72 …cgHandler->PostTask([cgHandler, uid, pid, bundleName, abilityName, token, abilityState, abilityTyp… in OnAbilityStateChanged()
73 cgHandler->HandleAbilityStateChanged(uid, pid, bundleName, abilityName, in OnAbilityStateChanged()
79 payload["pid"] = std::to_string(abilityStateData.pid); in OnAbilityStateChanged()
95 auto pid = abilityStateData.pid; in OnExtensionStateChanged() local
102 …cgHandler->PostTask([cgHandler, uid, pid, bundleName, abilityName, token, abilityState, abilityTyp… in OnExtensionStateChanged()
[all …]
Dcgroup_event_handler.cpp144 void CgroupEventHandler::HandleForegroundApplicationChanged(uid_t uid, pid_t pid, in HandleForegroundApplicationChanged() argument
154 std::shared_ptr<ProcessRecord> procRecord = app->GetProcessRecordNonNull(pid); in HandleForegroundApplicationChanged()
161 void CgroupEventHandler::HandleApplicationStateChanged(uid_t uid, pid_t pid, in HandleApplicationStateChanged() argument
176 std::shared_ptr<ProcessRecord> procRecord = app->GetProcessRecordNonNull(pid); in HandleApplicationStateChanged()
182 void CgroupEventHandler::HandleAbilityStateChanged(uid_t uid, pid_t pid, const std::string& bundleN… in HandleAbilityStateChanged() argument
190 __func__, uid, pid, bundleName.c_str(), abilityName.c_str(), abilityState, abilityType); in HandleAbilityStateChanged()
195 auto procRecord = app->GetProcessRecord(pid); in HandleAbilityStateChanged()
206 auto procRecord = app->GetProcessRecordNonNull(pid); in HandleAbilityStateChanged()
215 void CgroupEventHandler::HandleExtensionStateChanged(uid_t uid, pid_t pid, const std::string& bundl… in HandleExtensionStateChanged() argument
223 __func__, uid, pid, bundleName.c_str(), abilityName.c_str(), extensionState, abilityType); in HandleExtensionStateChanged()
[all …]
/foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf/
Dframe_msg_intf.cpp62 void FrameMsgIntf::ReportWindowFocus(const int pid, const int uid, const int isFocus) in ReportWindowFocus() argument
69 threadHandler_->PostTask([pid, uid, isFocus] { in ReportWindowFocus()
70 IntelliSenseServer::GetInstance().ReportWindowFocus(pid, uid, isFocus); in ReportWindowFocus()
74 void FrameMsgIntf::ReportRenderThread(const int pid, const int uid, const int renderTid) in ReportRenderThread() argument
77 RME_LOGI("[ReportRenderThread]:render get %{public}d with render %{pubilc}d", pid, renderTid); in ReportRenderThread()
82 threadHandler_->PostTask([pid, uid, renderTid] { in ReportRenderThread()
83 IntelliSenseServer::GetInstance().ReportRenderThread(pid, uid, renderTid); in ReportRenderThread()
87 void FrameMsgIntf::ReportAppInfo(const int pid, const int uid, const std::string bundleName, Thread… in ReportAppInfo() argument
94 RME_LOGI("ReportProcessInfo pid is %{public}d, uid is %{public}d", pid, uid); in ReportAppInfo()
95 threadHandler_->PostTask([pid, uid, bundleName, state] { in ReportAppInfo()
[all …]
/foundation/communication/bluetooth_service/services/bluetooth/service/src/permission/
Dpermission_helper.cpp26 int PermissionHelper::VerifyPermission(const std::string &permissionName, const int &pid, const int… in VerifyPermission() argument
38 LOG_INFO("callerToken=0x%{public}x is invalid token", pid); in VerifyPermission()
44 …LOG_INFO("callerToken=0x%{public}x has no permission_name=%{public}s", pid, permissionName.c_str()… in VerifyPermission()
51 auto pid = IPCSkeleton::GetCallingPid(); in VerifyPermission() local
61 LOG_INFO("callerToken=0x%{public}x is invalid token", pid); in VerifyPermission()
67 …LOG_INFO("callerToken=0x%{public}x has no permission_name=%{public}s", pid, permissionName.c_str()… in VerifyPermission()
72 int PermissionHelper::VerifyUseBluetoothPermission(const int &pid, const int &uid) in VerifyUseBluetoothPermission() argument
74 if (VerifyPermission("ohos.permission.USE_BLUETOOTH", pid, uid) == PERMISSION_DENIED) { in VerifyUseBluetoothPermission()
81 int PermissionHelper::VerifyDiscoverBluetoothPermission(const int &pid, const int &uid) in VerifyDiscoverBluetoothPermission() argument
83 if (VerifyPermission("ohos.permission.DISCOVER_BLUETOOTH", pid, uid) == PERMISSION_DENIED) { in VerifyDiscoverBluetoothPermission()
[all …]
/foundation/resourceschedule/memmgr/services/memmgrservice/src/event/
Dbg_task_observer.cpp45 int pid = ttInfo->GetPid(); in OnTransientTaskStart() local
46 HILOGD("called, pkg=%{public}s, uid=%{public}d, pid=%{public}d", pkgName.c_str(), uid, pid); in OnTransientTaskStart()
49 request.pid = pid; in OnTransientTaskStart()
65 int pid = ttInfo->GetPid(); in OnTransientTaskEnd() local
66 HILOGD("called, pkg=%{public}s, uid=%{public}d, pid=%{public}d", pkgName.c_str(), uid, pid); in OnTransientTaskEnd()
69 request.pid = pid; in OnTransientTaskEnd()
85 pid_t pid = ctInfo->GetCreatorPid(); in OnContinuousTaskStart() local
88 abilityName.c_str(), type, uid, pid); in OnContinuousTaskStart()
91 request.pid = pid; in OnContinuousTaskStart()
107 pid_t pid = ctInfo->GetCreatorPid(); in OnContinuousTaskStop() local
[all …]
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/manager/trans_channel_callback_test/
Dtrans_channel_callback_test.cpp67 int32_t pid = 2112; variable
72 int32_t ret = TransServerGetChannelCb()->OnChannelOpened(NULL, pid, sessionName, channel);
74 ret = TransServerGetChannelCb()->OnChannelOpened(pkgName, pid, NULL, channel);
76 ret = TransServerGetChannelCb()->OnChannelOpened(pkgName, pid, NULL, NULL);
81 ret = TransServerGetChannelCb()->OnChannelOpened(pkgName, pid, sessionName, channel);
86 ret = TransServerGetChannelCb()->OnChannelOpened(pkgName, pid, sessionName, channel);
100 int32_t pid = 2112; variable
104 …int32_t ret = TransServerGetChannelCb()->OnChannelOpenFailed(NULL, pid, channelId, channelType, er…
117 int32_t pid = 2112; variable
123 …int32_t ret = TransServerGetChannelCb()->OnDataReceived(NULL, pid, channelId, channelType, receive…
[all …]
/foundation/ability/ability_runtime/test/unittest/ability_manager_service_anr_test/
Dability_manager_service_anr_test.cpp70 pid_t pid; variable
71 if ((pid = fork()) == 0) {
75 Ace::UIServiceMgrClient::GetInstance()->SetDialogCheckState(pid, EVENT_CLOSE_CODE);
76 auto result = abilityMs_->SendANRProcessID(pid);
81 kill(pid, SIGKILL);
98 pid_t pid; variable
99 if ((pid = fork()) == 0) {
104 Ace::UIServiceMgrClient::GetInstance()->SetDialogCheckState(pid, EVENT_WAITING_CODE);
105 auto result = abilityMs_->SendANRProcessID(pid);
110 (void)kill(pid, SIGKILL);
[all …]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/
Dwifi_auth_center_test.cpp25 EXPECT_EQ(0, WifiAuthCenter::GetInstance().InitPermission(pid, uid));
47 …EXPECT_EQ(PERMISSION_GRANTED, WifiAuthCenter::GetInstance().ChangePermission(permissions, pid, uid…
57 WifiAuthCenter::GetInstance().ChangePermission(permissions, pid, uid);
58 …EXPECT_EQ(PERMISSION_GRANTED, WifiAuthCenter::GetInstance().VerifySetWifiInfoPermission(pid, uid));
68 WifiAuthCenter::GetInstance().ChangePermission(permissions, pid, uid);
69 …EXPECT_EQ(PERMISSION_GRANTED, WifiAuthCenter::GetInstance().VerifySetWifiInfoPermission(pid, uid));
79 WifiAuthCenter::GetInstance().ChangePermission(permissions, pid, uid);
80 …EXPECT_EQ(PERMISSION_GRANTED, WifiAuthCenter::GetInstance().VerifyGetWifiInfoPermission(pid, uid));
90 WifiAuthCenter::GetInstance().ChangePermission(permissions, pid, uid);
91 …EXPECT_EQ(PERMISSION_GRANTED, WifiAuthCenter::GetInstance().VerifyGetWifiInfoPermission(pid, uid));
[all …]
/foundation/multimedia/player_framework/services/services/sa_media/server/
Dmedia_server_manager.cpp205 pid_t pid = IPCSkeleton::GetCallingPid(); in CreatePlayerStubObject() local
206 playerStubMap_[object] = pid; in CreatePlayerStubObject()
212 dumper.pid_ = pid; in CreatePlayerStubObject()
217 playerStubMap_.size(), pid); in CreatePlayerStubObject()
238 pid_t pid = IPCSkeleton::GetCallingPid(); in CreateRecorderStubObject() local
239 recorderStubMap_[object] = pid; in CreateRecorderStubObject()
245 dumper.pid_ = pid; in CreateRecorderStubObject()
250 recorderStubMap_.size(), pid); in CreateRecorderStubObject()
268 pid_t pid = IPCSkeleton::GetCallingPid(); in CreateRecorderProfilesStubObject() local
269 recorderProfilesStubMap_[object] = pid; in CreateRecorderProfilesStubObject()
[all …]
/foundation/communication/dsoftbus/core/transmission/ipc/mini/
Dtrans_client_proxy.c23 const ChannelInfo *channel, int32_t pid) in ClientIpcOnChannelOpened() argument
26 (void)pid; in ClientIpcOnChannelOpened()
31 int32_t errCode, int32_t pid) in ClientIpcOnChannelOpenFailed() argument
34 (void)pid; in ClientIpcOnChannelOpenFailed()
39 const char *uuid, const char *udid, const char *peerIp, int32_t routeType, int32_t pid) in ClientIpcOnChannelLinkDown() argument
42 (void)pid; in ClientIpcOnChannelLinkDown()
50 int32_t pid) in ClientIpcOnChannelClosed() argument
53 (void)pid; in ClientIpcOnChannelClosed()
58 TransReceiveData *receiveData, int32_t pid) in ClientIpcOnChannelMsgReceived() argument
61 (void)pid; in ClientIpcOnChannelMsgReceived()
/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
Dtrans_tcp_direct_callback.c32 NO_SANITIZE("cfi") int32_t TransTdcOnChannelOpened(const char *pkgName, int32_t pid, const char *se… in TransTdcOnChannelOpened() argument
35 return g_channelCb.OnChannelOpened(pkgName, pid, sessionName, channel); in TransTdcOnChannelOpened()
38 NO_SANITIZE("cfi") int32_t TransTdcOnChannelClosed(const char *pkgName, int32_t pid, int32_t channe… in TransTdcOnChannelClosed() argument
40 return g_channelCb.OnChannelClosed(pkgName, pid, channelId, CHANNEL_TYPE_TCP_DIRECT); in TransTdcOnChannelClosed()
43 NO_SANITIZE("cfi") int32_t TransTdcOnChannelOpenFailed(const char *pkgName, int32_t pid, int32_t ch… in TransTdcOnChannelOpenFailed() argument
46 … return g_channelCb.OnChannelOpenFailed(pkgName, pid, channelId, CHANNEL_TYPE_TCP_DIRECT, errCode); in TransTdcOnChannelOpenFailed()
54 NO_SANITIZE("cfi") int32_t TransTdcGetUidAndPid(const char *sessionName, int32_t *uid, int32_t *pid) in TransTdcGetUidAndPid() argument
56 return g_channelCb.GetUidAndPidBySessionName(sessionName, uid, pid); in TransTdcGetUidAndPid()
59 int32_t TransTdcOnMsgReceived(const char *pkgName, int32_t pid, int32_t channelId, TransReceiveData… in TransTdcOnMsgReceived() argument
61 … return g_channelCb.OnDataReceived(pkgName, pid, channelId, CHANNEL_TYPE_TCP_DIRECT, receiveData); in TransTdcOnMsgReceived()
/foundation/communication/dhcp/services/dhcp_client/src/
Ddhcp_client.c68 pid_t pid = GetPID(pidFile); in StopProcess() local
69 if (pid <= 0) { in StopProcess()
74 LOGI("StopProcess() sending signal SIGTERM to process:%{public}d.", pid); in StopProcess()
75 if (kill(pid, SIGTERM) == -1) { in StopProcess()
77 LOGW("StopProcess() pidFile:%{public}s,pid:%{public}d is not exist.", pidFile, pid); in StopProcess()
81 LOGE("StopProcess() cmd: [kill %{public}d] failed, kill error:%{public}d!", pid, errno); in StopProcess()
91 pid_t pid = GetPID(pidFile); in GetProStatus() local
92 if (pid <= 0) { in GetProStatus()
93 …LOGI("GetProStatus() %{public}s pid:%{public}d, %{public}s is not running.", pidFile, pid, DHCPC_N… in GetProStatus()
96 …LOGI("GetProStatus() %{public}s pid:%{public}d, %{public}s is running.", pidFile, pid, DHCPC_NAME); in GetProStatus()
/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
Dsoftbus_proxychannel_callback.c32 NO_SANITIZE("cfi") int32_t TransProxyOnChannelOpened(const char *pkgName, int32_t pid, const char *… in TransProxyOnChannelOpened() argument
35 return g_channelCb.OnChannelOpened(pkgName, pid, sessionName, channel); in TransProxyOnChannelOpened()
38 NO_SANITIZE("cfi") int32_t TransProxyOnChannelClosed(const char *pkgName, int32_t pid, int32_t chan… in TransProxyOnChannelClosed() argument
40 return g_channelCb.OnChannelClosed(pkgName, pid, channelId, CHANNEL_TYPE_PROXY); in TransProxyOnChannelClosed()
43 NO_SANITIZE("cfi") int32_t TransProxyOnChannelOpenFailed(const char *pkgName, int32_t pid, int32_t … in TransProxyOnChannelOpenFailed() argument
46 return g_channelCb.OnChannelOpenFailed(pkgName, pid, channelId, CHANNEL_TYPE_PROXY, errCode); in TransProxyOnChannelOpenFailed()
49 NO_SANITIZE("cfi") int32_t TransProxyOnMsgReceived(const char *pkgName, int32_t pid, int32_t channe… in TransProxyOnMsgReceived() argument
52 return g_channelCb.OnDataReceived(pkgName, pid, channelId, CHANNEL_TYPE_PROXY, receiveData); in TransProxyOnMsgReceived()
60 …") int32_t TransProxyGetUidAndPidBySessionName(const char *sessionName, int32_t *uid, int32_t *pid) in TransProxyGetUidAndPidBySessionName() argument
62 return g_channelCb.GetUidAndPidBySessionName(sessionName, uid, pid); in TransProxyGetUidAndPidBySessionName()
/foundation/resourceschedule/frame_aware_sched/frameworks/core/frame_aware_policy/src/
Dintellisense_server.cpp88 void IntelliSenseServer::NewForeground(int pid, int uid) in NewForeground() argument
94 RME_LOGI("[ReportMessage]pid %{public}d change to foreground.", pid); in NewForeground()
96 iter->SetUiTid(pid); in NewForeground()
133 void IntelliSenseServer::NewBackground(int pid) in NewBackground() argument
136 RME_LOGI("[ReportMessage]pid %{public}d change to background.", pid); in NewBackground()
138 if (iter->GetAppPid() != pid) { in NewBackground()
150 void IntelliSenseServer::NewAppRecord(int pid, int uid) in NewAppRecord() argument
154 RME_LOGI("[NewAppRecord]pid %{public}d already exist.", pid); in NewAppRecord()
158 AppInfo tempRecord(pid, uid); in NewAppRecord()
163 void IntelliSenseServer::NewDiedProcess(int pid) in NewDiedProcess() argument
[all …]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/command/
Drs_message_processor.cpp48 void RSMessageProcessor::AddUIMessage(uint32_t pid, std::unique_ptr<RSCommand>& command) in AddUIMessage() argument
54 if (!transactionMap_.count(pid)) { in AddUIMessage()
56 transactionMap_[pid] = transactionData; in AddUIMessage()
58 transactionMap_[pid]->AddCommand(std::move(command), 0, FollowType::NONE); in AddUIMessage()
61 void RSMessageProcessor::AddUIMessage(uint32_t pid, std::unique_ptr<RSCommand>&& command) in AddUIMessage() argument
67 if (!transactionMap_.count(pid)) { in AddUIMessage()
69 transactionMap_[pid] = transactionData; in AddUIMessage()
71 transactionMap_[pid]->AddCommand(std::move(command), 0, FollowType::NONE); in AddUIMessage()
83 bool RSMessageProcessor::HasTransaction(uint32_t pid) const in HasTransaction()
89 auto iter = transactionMap_.find(pid); in HasTransaction()
[all …]
/foundation/communication/ipc/services/dbinder/test/distributedtest/src/
Ddbinder_service_test_helper.cpp43 pid_t pid = INVALID_PID; in GetPidByName() local
47 return pid; in GetPidByName()
75 if (sscanf_s(ptr->d_name, "%d", &pid) <= EOK) { in GetPidByName()
83 return pid; in GetPidByName()
123 pid_t pid = GetPidByName(name); in StartExecutable() local
124 if (pid != INVALID_PID) { in StartExecutable()
126 return pid; in StartExecutable()
141 while (pid == INVALID_PID && res < 10) { // 10:try-time to wait for exe start in StartExecutable()
142 pid = GetPidByName(name); in StartExecutable()
143 …DBINDER_LOGI(LOG_LABEL, "StartExecutable pid = %{public}d && name = %{public}s", pid, name.c_str()… in StartExecutable()
[all …]
/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/
Dkill_process.cpp36 pid_t pid = static_cast<int32_t>(atoi(payload["pid"].get<string>().c_str())); in KillProcessByPidWithClient() local
37 if (pid == 0) { in KillProcessByPidWithClient()
46 int32_t killRes = KillProcessByPid(pid); in KillProcessByPidWithClient()
48 RESSCHED_LOGE("kill process %{public}d failed.", pid); in KillProcessByPidWithClient()
55 killClientInitiator.c_str(), processName.c_str(), pid); in KillProcessByPidWithClient()
60 int32_t KillProcess::KillProcessByPid(const pid_t pid) const in KillProcessByPid()
63 if (pid > 0) { in KillProcessByPid()
64 ret = kill(pid, SIGNAL_KILL); in KillProcessByPid()
65 RESSCHED_LOGI("kill pid %{public}d.", pid); in KillProcessByPid()
/foundation/resourceschedule/frame_aware_sched/frameworks/core/frame_aware_policy/include/
Dintellisense_server.h38 … void ReportAppInfo(const int pid, const int uid, const std::string bundleName, ThreadState state);
39 …void ReportProcessInfo(const int pid, const int uid, const std::string bundleName, ThreadState sta…
40 void ReportCgroupChange(const int pid, const int uid, const int oldGroup, const int newGroup);
41 void ReportWindowFocus(const int pid, const int uid, int isFocus);
42 void ReportRenderThread(const int pid, const int uid, int renderTid);
47 void NewForeground(int pid, int uid);
48 void NewBackground(int pid);
49 void NewDiedProcess(int pid);
50 void NewAppRecord(int pid, int uid);
56 std::list<AppInfo>::iterator GetRecordOfPid(int pid);

12345678910>>...37