Home
last modified time | relevance | path

Searched refs:pid_t (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/base/powermgr/power_manager/services/native/include/
Drunning_lock_proxy.h33 void AddRunningLock(pid_t pid, pid_t uid, const sptr<IRemoteObject>& remoteObj);
34 void RemoveRunningLock(pid_t pid, pid_t uid, const sptr<IRemoteObject>& remoteObj);
35 std::vector<sptr<IRemoteObject>> GetRemoteObjectList(pid_t pid, pid_t uid);
36 bool IsProxied(pid_t pid, pid_t uid);
37 bool IncreaseProxyCnt(pid_t pid, pid_t uid, const std::function<void(void)>& proxyRunningLock);
38 … bool DecreaseProxyCnt(pid_t pid, pid_t uid, const std::function<void(void)>& unProxyRunningLock);
43 std::string AssembleProxyKey(pid_t pid, pid_t uid);
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_thread.h34 pid_t pid = 0;
35 pid_t tid = 0;
36 pid_t nsTid = 0;
42 static std::shared_ptr<DfxThread> Create(pid_t pid, pid_t tid, pid_t nsTid);
43 DfxThread(pid_t pid, pid_t tid, pid_t nsTid);
67 void InitThreadInfo(pid_t pid, pid_t tid, pid_t nsTid);
Ddfx_process.h32 pid_t pid = 0;
33 pid_t nsPid = 0;
40 static std::shared_ptr<DfxProcess> Create(pid_t pid, pid_t nsPid);
41 DfxProcess(pid_t pid, pid_t nsPid);
49 pid_t ChangeTid(pid_t tid, bool ns);
60 pid_t recycleTid_ = 0;
66 void InitProcessInfo(pid_t pid, pid_t nsPid);
Ddfx_thread.cpp40 std::shared_ptr<DfxThread> DfxThread::Create(pid_t pid, pid_t tid, pid_t nsTid) in Create()
46 DfxThread::DfxThread(pid_t pid, pid_t tid, pid_t nsTid) : regs_(nullptr) in DfxThread()
51 void DfxThread::InitThreadInfo(pid_t pid, pid_t tid, pid_t nsTid) in InitThreadInfo()
Ddfx_process.cpp38 std::shared_ptr<DfxProcess> DfxProcess::Create(pid_t pid, pid_t nsPid) in Create()
44 DfxProcess::DfxProcess(pid_t pid, pid_t nsPid) in DfxProcess()
49 void DfxProcess::InitProcessInfo(pid_t pid, pid_t nsPid) in InitProcessInfo()
84 pid_t DfxProcess::ChangeTid(pid_t tid, bool ns) in ChangeTid()
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/mock/
Dmock_ipc.cpp23 pid_t uid_ = 0;
24 pid_t tokenId_ = 0;
26 pid_t IPCSkeleton::GetCallingUid() in GetCallingUid()
31 pid_t IPCSkeleton::GetCallingPid() in GetCallingPid()
36 void IPCSkeleton::SetCallingUid(pid_t uid) in SetCallingUid()
46 uint32_t IPCSkeleton::SetCallingTokenID(pid_t tokenId) in SetCallingTokenID()
/base/location/interfaces/inner_api/include/
Dapp_identity.h26 …explicit AppIdentity(pid_t uid, pid_t pid, uint32_t tokenId, uint64_t tokenIdEx, uint32_t firstTok…
29 inline pid_t GetPid() const in GetPid()
34 inline void SetPid(pid_t pid) in SetPid()
39 inline pid_t GetUid() const in GetUid()
44 inline void SetUid(pid_t uid) in SetUid()
91 pid_t uid_;
92 pid_t pid_;
Dcommon_hisysevent.h23 void WriteGnssStateEvent(const std::string& state, const pid_t pid, const pid_t uid);
24 void WriteAppLocatingStateEvent(const std::string& state, const pid_t pid, const pid_t uid);
/base/hiviewdfx/faultloggerd/test/benchmarktest/unwindstack/
Dpid_utils.h35 static bool Quiesce(pid_t pid);
37 static bool Attach(pid_t pid);
39 static bool Detach(pid_t pid);
41 static bool WaitForPidState(pid_t pid, const std::function<PidRunEnum()>& stateCheckFunc);
43 …static bool WaitForPidStateAfterAttach(pid_t pid, const std::function<PidRunEnum()>& stateCheckFun…
Dpid_utils.cpp39 static bool Exited(pid_t pid) in Exited()
42 pid_t waitPid = waitpid(pid, &status, WNOHANG); in Exited()
57 bool PidUtils::Quiesce(pid_t pid) in Quiesce()
82 bool PidUtils::Attach(pid_t pid) in Attach()
106 bool PidUtils::Detach(pid_t pid) in Detach()
115 bool PidUtils::WaitForPidState(pid_t pid, const std::function<PidRunEnum()>& stateCheckFunc) in WaitForPidState()
140 bool PidUtils::WaitForPidStateAfterAttach(pid_t pid, const std::function<PidRunEnum()>& stateCheckF… in WaitForPidStateAfterAttach()
/base/powermgr/power_manager/test/unittest/src/
Drunning_lock_test.cpp174 pid_t curUid = getuid();
175 pid_t curPid = getpid();
195 pid_t curUid = getuid();
196 pid_t curPid = getpid();
221 pid_t curUid = getuid();
222 pid_t curPid = getpid();
250 pid_t curUid = getuid();
251 pid_t curPid = getpid();
277 pid_t curUid = getuid();
278 pid_t curPid = getpid();
[all …]
/base/powermgr/power_manager/services/native/src/
Drunning_lock_proxy.cpp23 void RunningLockProxy::AddRunningLock(pid_t pid, pid_t uid, const sptr<IRemoteObject>& remoteObj) in AddRunningLock()
43 void RunningLockProxy::RemoveRunningLock(pid_t pid, pid_t uid, const sptr<IRemoteObject>& remoteObj) in RemoveRunningLock()
65 std::vector<sptr<IRemoteObject>> RunningLockProxy::GetRemoteObjectList(pid_t pid, pid_t uid) in GetRemoteObjectList()
75 bool RunningLockProxy::IsProxied(pid_t pid, pid_t uid) in IsProxied()
85 bool RunningLockProxy::IncreaseProxyCnt(pid_t pid, pid_t uid, const std::function<void(void)>& prox… in IncreaseProxyCnt()
103 bool RunningLockProxy::DecreaseProxyCnt(pid_t pid, pid_t uid, const std::function<void(void)>& unPr… in DecreaseProxyCnt()
155 std::string RunningLockProxy::AssembleProxyKey(pid_t pid, pid_t uid) in AssembleProxyKey()
/base/security/selinux_adapter/interfaces/policycoreutils/include/
Dservice_checker.h32 int ListServiceCheck(const pid_t callingPid);
34 int GetServiceCheck(const pid_t callingPid, const std::string &serviceName);
36 int GetRemoteServiceCheck(const pid_t callingPid, const std::string &remoteServiceName);
38 int AddServiceCheck(const pid_t callingPid, const std::string &serviceName);
44 int CheckPerm(const pid_t callingPid, const std::string &serviceName, std::string action);
Dhdf_service_checker.h24 int HdfListServiceCheck(pid_t callingPid);
25 int HdfGetServiceCheck(pid_t callingPid, const char *serviceName);
26 int HdfAddServiceCheck(pid_t callingPid, const char *serviceName);
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dmock_ipc.cpp23 pid_t uid_ = 1;
26 pid_t IPCSkeleton::GetCallingUid() in GetCallingUid()
31 pid_t IPCSkeleton::GetCallingPid() in GetCallingPid()
41 void IPCSkeleton::SetCallingUid(pid_t uid) in SetCallingUid()
/base/notification/common_event_service/test/mock/
Dmock_ipc.cpp23 pid_t uid_ = 1000;
26 pid_t IPCSkeleton::GetCallingUid() in GetCallingUid()
31 pid_t IPCSkeleton::GetCallingPid() in GetCallingPid()
36 void IPCSkeleton::SetCallingUid(pid_t uid) in SetCallingUid()
/base/hiviewdfx/faultloggerd/test/systemtest/
Dfaultloggerd_system_test.cpp71 static pid_t ForkAndExecuteCrasher(const string& option, const CrasherType type) in ForkAndExecuteCrasher()
73 pid_t pid = fork(); in ForkAndExecuteCrasher()
102 static pid_t TriggerCrasherAndGetFileName(const string& option, const CrasherType type, string& cra… in TriggerCrasherAndGetFileName()
122 static bool CheckCountNum(const string& filePath, const pid_t& pid, const string& option) in CheckCountNum()
152 static bool CheckCountNumAbort(const string& filePath, const pid_t& pid) in CheckCountNumAbort()
164 static bool CheckCountNumNullpointer(const string& filePath, const pid_t& pid) in CheckCountNumNullpointer()
175 static bool CheckCountNumStackOverFlow(const string& filePath, const pid_t& pid) in CheckCountNumStackOverFlow()
186 static bool CheckCountNumPCZero(const string& filePath, const pid_t& pid) in CheckCountNumPCZero()
197 static bool CheckCountNumOverStack(const string& filePath, const pid_t& pid) in CheckCountNumOverStack()
208 static bool CheckCountNumMultiThread(const string& filePath, const pid_t& pid) in CheckCountNumMultiThread()
[all …]
/base/web/webview/ohos_adapter/interfaces/
Dres_sched_client_adapter.h65 ResSchedStatusAdapter statusAdapter, pid_t pid, pid_t tid, ResSchedRoleAdapter roleAdapter);
67 ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId = -1);
70 static bool ReportAudioData(ResSchedStatusAdapter statusAdapter, pid_t pid, pid_t tid);
/base/startup/init/services/init/adapter/
Dinit_adapter.c55 static pid_t g_waitPid = -1;
57 static void SignalRegWaitSem(pid_t waitPid, sem_t *waitSem) in SignalRegWaitSem()
63 void CheckWaitPid(pid_t sigPID) in CheckWaitPid()
74 void CheckWaitPid(pid_t sigPID) in CheckWaitPid()
83 pid_t retPid = fork(); in SystemExecuteRcs()
/base/location/services/location_locator/locator/include/
Drequest.h31 pid_t GetUid();
32 pid_t GetPid();
37 void SetUid(pid_t uid);
38 void SetPid(pid_t pid);
64 pid_t uid_;
65 pid_t pid_;
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/mock/include/
Dmock_ipc_skeleton.h36 static pid_t GetCallingPid();
38 static pid_t GetCallingUid();
60 static void SetCallingUid(pid_t uid);
62 static uint32_t SetCallingTokenID(pid_t tokenId);
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/
Ddfx_processdump_test.cpp64 static pid_t CreateMultiThreadProcess(int threadNum) in CreateMultiThreadProcess()
66 pid_t pid = fork(); in CreateMultiThreadProcess()
75 static pid_t CreateMultiThreadForThreadCrash(int threadNum) in CreateMultiThreadForThreadCrash()
77 pid_t pid = fork(); in CreateMultiThreadForThreadCrash()
86 static bool CheckCppCrashKeyWords(const string& filePath, pid_t pid, int sig) in CheckCppCrashKeyWords()
124 pid_t testProcess = CreateMultiThreadProcess(10); // 10 : create a process with ten threads
143 pid_t testProcess = CreateMultiThreadProcess(10); // 10 : create a process with ten threads
162 pid_t testProcess = CreateMultiThreadProcess(10); // 10 : create a process with ten threads
181 pid_t testProcess = CreateMultiThreadProcess(10); // 10 : create a process with ten threads
200 pid_t testProcess = CreateMultiThreadProcess(10); // 10 : create a process with ten threads
[all …]
/base/powermgr/power_manager/utils/permission/src/
Dpermission.cpp32 pid_t pid = IPCSkeleton::GetCallingPid(); in IsHap()
33 pid_t uid = IPCSkeleton::GetCallingUid(); in IsHap()
54 pid_t pid = IPCSkeleton::GetCallingPid(); in IsSystem()
55 pid_t uid = IPCSkeleton::GetCallingUid(); in IsSystem()
85 pid_t pid = IPCSkeleton::GetCallingPid(); in IsPermissionGranted()
86 pid_t uid = IPCSkeleton::GetCallingUid(); in IsPermissionGranted()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
Ddfx_maps.h31 static const std::string GetMapsFile(pid_t pid = 0);
32 static std::shared_ptr<DfxMaps> Create(pid_t pid = 0);
33 …static bool Create(const pid_t pid, std::vector<std::shared_ptr<DfxMap>>& maps, std::vector<int>& …
34 …static std::shared_ptr<DfxMaps> Create(const pid_t pid, const std::string& path, bool enableMapInd…
36 static void FormatMapName(pid_t pid, std::string& mapName);
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/include/
Dnapi_callback_context.h27 using CALLBACK_FUNC = std::function<void(const napi_env, const napi_ref, pid_t threadId)>;
28 using RELEASE_FUNC = std::function<void(pid_t threadId)>;
34 pid_t threadId;

12345678910>>...12