/base/powermgr/power_manager/services/native/include/ |
D | running_lock_proxy.h | 33 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/ |
D | dfx_thread.h | 34 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);
|
D | dfx_process.h | 32 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);
|
D | dfx_thread.cpp | 40 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()
|
D | dfx_process.cpp | 38 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/ |
D | mock_ipc.cpp | 23 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/ |
D | app_identity.h | 26 …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_;
|
D | common_hisysevent.h | 23 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/ |
D | pid_utils.h | 35 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…
|
D | pid_utils.cpp | 39 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/ |
D | running_lock_test.cpp | 174 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/ |
D | running_lock_proxy.cpp | 23 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/ |
D | service_checker.h | 32 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);
|
D | hdf_service_checker.h | 24 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/ |
D | mock_ipc.cpp | 23 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/ |
D | mock_ipc.cpp | 23 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/ |
D | faultloggerd_system_test.cpp | 71 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/ |
D | res_sched_client_adapter.h | 65 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/ |
D | init_adapter.c | 55 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/ |
D | request.h | 31 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/ |
D | mock_ipc_skeleton.h | 36 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/ |
D | dfx_processdump_test.cpp | 64 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/ |
D | permission.cpp | 32 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/ |
D | dfx_maps.h | 31 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/ |
D | napi_callback_context.h | 27 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;
|