| /base/hiviewdfx/faultloggerd/test/systemtest/ |
| D | faultloggerd_system_test.cpp | 58 pid_t pid = fork(); in ForkAndExecuteCrasher() local 79 auto pid = ForkAndExecuteCrasher(option, type); in TriggerCrasherAndGetFileName() local 100 static bool CheckCountNum(const string& filePath, const pid_t& pid, const string& option) in CheckCountNum() 130 static bool CheckCountNumAbort(const string& filePath, const pid_t& pid) in CheckCountNumAbort() 142 static bool CheckCountNumNullpointer(const string& filePath, const pid_t& pid) in CheckCountNumNullpointer() 153 static bool CheckCountNumStackOverFlow(const string& filePath, const pid_t& pid) in CheckCountNumStackOverFlow() 164 static bool CheckCountNumPCZero(const string& filePath, const pid_t& pid) in CheckCountNumPCZero() 175 static bool CheckCountNumOverStack(const string& filePath, const pid_t& pid) in CheckCountNumOverStack() 186 static bool CheckCountNumMultiThread(const string& filePath, const pid_t& pid) in CheckCountNumMultiThread() 230 string pid; in ReadRealPid() local [all …]
|
| /base/hiviewdfx/hiview/framework/native/unified_collection/process/ |
| D | process_status.cpp | 31 std::string ProcessStatus::GetProcessName(int32_t pid) in GetProcessName() 81 bool ProcessStatus::UpdateProcessName(int32_t pid, const std::string& procName) in UpdateProcessName() 99 ProcessState ProcessStatus::GetProcessState(int32_t pid) in GetProcessState() 107 uint64_t ProcessStatus::GetProcessLastForegroundTime(int32_t pid) in GetProcessLastForegroundTime() 115 void ProcessStatus::NotifyProcessState(int32_t pid, ProcessState procState) in NotifyProcessState() 121 void ProcessStatus::UpdateProcessState(int32_t pid, ProcessState procState) in UpdateProcessState() 142 void ProcessStatus::UpdateProcessForegroundState(int32_t pid) in UpdateProcessForegroundState() 158 void ProcessStatus::UpdateProcessBackgroundState(int32_t pid) in UpdateProcessBackgroundState() 176 void ProcessStatus::ClearProcessInfo(int32_t pid) in ClearProcessInfo()
|
| /base/sensors/medical_sensor/services/medical_sensor/test/unittest/common/ |
| D | client_info_test.cpp | 63 int32_t pid = 1000; variable 83 int32_t pid = 1067; variable 103 int32_t pid = 1000; variable 123 int32_t pid = 1000; variable 143 int32_t pid = -1; variable 163 int32_t pid = 1067; variable 209 int32_t pid = 1067; variable 225 int32_t pid = -1; variable 241 int32_t pid = 1000; variable 256 int32_t pid = -1; variable [all …]
|
| /base/hiviewdfx/hidumper/test/innerkits_test/ |
| D | main.cpp | 22 static uint64_t GetPss(const int &pid) in GetPss() 28 static uint64_t GetPrivateDirty(const int &pid) in GetPrivateDirty() 34 static uint64_t GetSharedDirty(const int &pid) in GetSharedDirty() 40 static bool GetMemInfo(const int &pid, OHOS::HiviewDFX::MemInfoData::MemInfo &data) in GetMemInfo() 47 static float GetCpuUsage(const int &pid) in GetCpuUsage() 56 int pid; in main() local
|
| /base/hiviewdfx/hidumper/interfaces/innerkits/ |
| D | dump_usage.cpp | 32 bool DumpUsage::GetMemInfo(const int &pid, MemInfoData::MemInfo &info) in GetMemInfo() 39 uint64_t DumpUsage::GetPss(const int &pid) in GetPss() 45 uint64_t DumpUsage::GetPrivateDirty(const int &pid) in GetPrivateDirty() 51 uint64_t DumpUsage::GetSharedDirty(const int &pid) in GetSharedDirty() 57 double DumpUsage::GetCpuUsage(const int &pid) in GetCpuUsage()
|
| /base/hiviewdfx/faultloggerd/test/benchmarktest/unwindstack/ |
| D | pid_utils.cpp | 39 static bool Exited(pid_t pid) 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/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
| D | ark_res_sched_client_adapter_wrapper.cpp | 22 ResSchedStatusAdapter statusAdapter, pid_t pid, pid_t tid, ResSchedRoleAdapter roleAdapter) in ReportKeyThread() 29 ResSchedStatusAdapter statusAdapter, pid_t pid, uint32_t windowId, int32_t nwebId) in ReportWindowStatus() 40 bool ResSchedClientAdapter::ReportAudioData(ResSchedStatusAdapter statusAdapter, pid_t pid, pid_t t… in ReportAudioData() 55 …id ResSchedClientAdapter::ReportRenderProcessStatus(ResSchedStatusAdapter statusAdapter, pid_t pid) in ReportRenderProcessStatus() 60 bool ResSchedClientAdapter::ReportScreenCapture(ResSchedStatusAdapter statusAdapter, pid_t pid) in ReportScreenCapture() 65 bool ResSchedClientAdapter::ReportVideoPlaying(ResSchedStatusAdapter statusAdapter, pid_t pid) in ReportVideoPlaying() 70 void ResSchedClientAdapter::ReportProcessInUse(pid_t pid) in ReportProcessInUse()
|
| /base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
| D | ark_res_sched_client_adapter_impl.cpp | 23 bool ArkResSchedClientAdapter::ReportKeyThread(int32_t statusAdapter, pid_t pid, pid_t tid, int32_t… in ReportKeyThread() 29 bool ArkResSchedClientAdapter::ReportWindowStatus(int32_t statusAdapter, pid_t pid, uint32_t window… in ReportWindowStatus() 41 bool ArkResSchedClientAdapter::ReportAudioData(int32_t statusAdapter, pid_t pid, pid_t tid) in ReportAudioData() 56 void ArkResSchedClientAdapter::ReportRenderProcessStatus(int32_t statusAdapter, pid_t pid) in ReportRenderProcessStatus() 61 bool ArkResSchedClientAdapter::ReportScreenCapture(int32_t statusAdapter, pid_t pid) in ReportScreenCapture() 66 bool ArkResSchedClientAdapter::ReportVideoPlaying(int32_t statusAdapter, pid_t pid) in ReportVideoPlaying() 71 void ArkResSchedClientAdapter::ReportProcessInUse(pid_t pid) in ReportProcessInUse()
|
| /base/global/i18n/services/src/ |
| D | i18n_service_ability.cpp | 53 int pid = getpid(); in SetSystemLanguage() local 75 int pid = getpid(); in SetSystemRegion() local 97 int pid = getpid(); in SetSystemLocale() local 119 int pid = getpid(); in Set24HourClock() local 141 int pid = getpid(); in SetUsingLocalDigit() local 163 int pid = getpid(); in AddPreferredLanguage() local 180 int pid = getpid(); in RemovePreferredLanguage() local 197 int pid = getpid(); in SetTemperatureType() local 220 int pid = getpid(); in SetFirstDayOfWeek() local 277 int pid = getpid(); in OnStart() local [all …]
|
| /base/hiviewdfx/faultloggerd/test/unittest/signal_handler/ |
| D | signal_handler_test.cpp | 69 static bool CheckCallbackCrashKeyWords(const string& filePath, pid_t pid, int sig) in CheckCallbackCrashKeyWords() 92 static bool CheckCrashKeyWords(const string& filePath, pid_t pid, int sig) in CheckCrashKeyWords() 121 static bool CheckDebugSignalFaultlog(const string& filePath, pid_t pid, int siCode) in CheckDebugSignalFaultlog() 207 pid_t pid = fork(); in SendSigTestDebugSignal() local 256 pid_t pid = fork(); variable 283 pid_t pid = fork(); variable 310 pid_t pid = fork(); variable 337 pid_t pid = fork(); variable 360 pid_t pid = fork(); variable 383 pid_t pid = fork(); variable [all …]
|
| /base/powermgr/battery_statistics/test/unittest/src/clienttest/ |
| D | stats_bluetooth_test.cpp | 31 static void WriteBluetoothEvent(int32_t pid, int32_t uid, long time) in WriteBluetoothEvent() 100 int32_t pid = 3458; variable 132 int32_t pid = 3458; variable 166 int32_t pid = 3458; variable 198 int32_t pid = 3458; variable 237 int32_t pid = 3458; variable 278 int32_t pid = 3458; variable 314 int32_t pid = 3458; variable 346 int32_t pid = 3458; variable 386 int32_t pid = 3458; variable [all …]
|
| D | stats_camera_test.cpp | 66 int32_t pid = 3458; variable 97 int32_t pid = 3458; variable 127 int32_t pid = 3458; variable 155 int32_t pid = 3458; variable 191 int32_t pid = 3458; variable 226 int32_t pid = 3458; variable 259 int32_t pid = 3458; variable 296 int32_t pid = 3458; variable 332 int32_t pid = 3458; variable 368 int32_t pid = 3458; variable [all …]
|
| D | stats_location_test.cpp | 68 int32_t pid = 3458; variable 101 int32_t pid = 3458; variable 133 int32_t pid = 3458; variable 165 int32_t pid = 3458; variable 203 int32_t pid = 3458; variable 235 int32_t pid = 3458; variable 277 int32_t pid = 3458; variable 355 int32_t pid = 3458; variable 388 int32_t pid = 3458; variable
|
| /base/hiviewdfx/hiview/framework/native/unified_collection/collector/empty_impl/memory/ |
| D | memory_collector_empty_impl.cpp | 26 CollectResult<ProcessMemory> MemoryCollectorEmptyImpl::CollectProcessMemory(int32_t pid) in CollectProcessMemory() 81 CollectResult<std::string> MemoryCollectorEmptyImpl::CollectRawSmaps(int32_t pid) in CollectRawSmaps() 86 CollectResult<std::string> MemoryCollectorEmptyImpl::CollectHprof(int32_t pid) in CollectHprof() 91 CollectResult<uint64_t> MemoryCollectorEmptyImpl::CollectProcessVss(int32_t pid) in CollectProcessVss() 106 CollectResult<ProcessMemoryDetail> MemoryCollectorEmptyImpl::CollectProcessMemoryDetail(int32_t pid, in CollectProcessMemoryDetail()
|
| /base/hiviewdfx/faultloggerd/test/unittest/local_handler/ |
| D | local_handler_test.cpp | 63 static bool CheckLocalCrashKeyWords(const string& filePath, pid_t pid, int sig) in CheckLocalCrashKeyWords() 104 pid_t pid = fork(); variable 129 pid_t pid = fork(); variable 154 pid_t pid = fork(); variable 179 pid_t pid = fork(); variable 204 pid_t pid = fork(); variable 229 pid_t pid = fork(); variable 253 pid_t pid = fork(); variable 416 pid_t pid = fork(); variable 468 pid_t pid = fork(); variable
|
| /base/hiviewdfx/hiview/base/utility/ |
| D | common_utils.cpp | 37 std::string GetProcessNameFromProcCmdline(int32_t pid) in GetProcessNameFromProcCmdline() 60 std::string GetProcessNameFromProcStat(int32_t pid) in GetProcessNameFromProcStat() 85 pid_t pid = fork(); in ExecCommand() local 122 std::string GetProcNameByPid(pid_t pid) in GetProcNameByPid() 136 std::string GetProcFullNameByPid(pid_t pid) in GetProcFullNameByPid() 147 pid_t pid = -1; in GetPidByName() local 161 bool IsTheProcessExist(pid_t pid) in IsTheProcessExist() 170 bool IsPidExist(pid_t pid) in IsPidExist() 205 pid_t pid = fork(); in WriteCommandResultToFile() local
|
| /base/hiviewdfx/hidumper/test/fuzztest/dumpusage_fuzzer/ |
| D | dumpusage_fuzzer.cpp | 29 int pid = 0; in GetPidFromData() local 40 int pid = GetPidFromData(data, size); in GetCpuUsageFuzzTest() local 49 int pid = GetPidFromData(data, size); in GetPssFuzzTest() local 58 int pid = GetPidFromData(data, size); in GetPrivateDirtyFuzzTest() local 67 int pid = GetPidFromData(data, size); in GetSharedDirtyFuzzTest() local 76 int pid = GetPidFromData(data, size); in GetMemInfoFuzzTest() local
|
| /base/powermgr/battery_statistics/test/unittest/src/servicetest/ |
| D | stats_service_bluetooth_test.cpp | 40 static void WriteBluetoothEvent(int32_t pid, int32_t uid, long time) in WriteBluetoothEvent() 129 int32_t pid = 3458; variable 164 int32_t pid = 3458; variable 201 int32_t pid = 3458; variable 236 int32_t pid = 3458; variable 278 int32_t pid = 3458; variable 324 int32_t pid = 3458; variable 365 int32_t pid = 3458; variable 400 int32_t pid = 3458; variable 445 int32_t pid = 3458; variable [all …]
|
| D | stats_service_camera_test.cpp | 87 int32_t pid = 3458; variable 122 int32_t pid = 3458; variable 156 int32_t pid = 3458; variable 188 int32_t pid = 3458; variable 230 int32_t pid = 3458; variable 271 int32_t pid = 3458; variable 310 int32_t pid = 3458; variable 353 int32_t pid = 3458; variable 395 int32_t pid = 3458; variable 437 int32_t pid = 3458; variable [all …]
|
| /base/sensors/sensor/services/src/ |
| D | sensor_power_policy.cpp | 43 ErrCode SensorPowerPolicy::SuspendSensors(int32_t pid) in SuspendSensors() 73 bool SensorPowerPolicy::Suspend(int32_t pid, const std::vector<int32_t> &sensorIdList, in Suspend() 102 ErrCode SensorPowerPolicy::ResumeSensors(int32_t pid) in ResumeSensors() 134 bool SensorPowerPolicy::Resume(int32_t pid, int32_t sensorId, int64_t samplingPeriodNs, in Resume() 168 ErrCode SensorPowerPolicy::RestoreSensorInfo(int32_t pid, int32_t sensorId, int64_t samplingPeriodN… in RestoreSensorInfo() 193 int32_t pid = pidSensorInfo.first; in GetSuspendPidList() local 204 for (const auto &pid : suspendPidList) { in ResetSensors() local 217 std::vector<ActiveInfo> SensorPowerPolicy::GetActiveInfoList(int32_t pid) in GetActiveInfoList() 263 void SensorPowerPolicy::DeleteDeathPidSensorInfo(int32_t pid) in ReportActiveInfo()
|
| /base/msdp/device_status/intention/cooperate/plugin/src/ |
| D | cooperate.cpp | 77 int32_t Cooperate::RegisterListener(int32_t pid) in RegisterListener() 91 int32_t Cooperate::UnregisterListener(int32_t pid) in UnregisterListener() 105 int32_t Cooperate::RegisterHotAreaListener(int32_t pid) in RegisterHotAreaListener() 119 int32_t Cooperate::UnregisterHotAreaListener(int32_t pid) in UnregisterHotAreaListener() 133 int32_t Cooperate::Enable(int32_t tokenId, int32_t pid, int32_t userData) in Enable() 149 int32_t Cooperate::Disable(int32_t pid, int32_t userData) in Disable() 164 int32_t Cooperate::Start(int32_t pid, int32_t userData, const std::string &remoteNetworkId, int32_t… in Start() 211 int32_t Cooperate::Stop(int32_t pid, int32_t userData, bool isUnchained) in Stop() 227 int32_t Cooperate::StartWithOptions(int32_t pid, int32_t userData, const std::string &remoteNetwork… in StartWithOptions() 254 int32_t Cooperate::GetCooperateState(int32_t pid, int32_t userData, const std::string &networkId) in GetCooperateState() [all …]
|
| /base/hiviewdfx/faultloggerd/interfaces/innerkits/procinfo/ |
| D | procinfo.cpp | 51 int pid = 0; in GetProcStatusByPath() local 98 static void MoveMainThreadToHead(const int pid, std::vector<std::string>& tids) in MoveMainThreadToHead() 106 bool TidToNstid(const int pid, const int tid, int& nstid) in TidToNstid() 135 bool IsThreadInPid(int32_t pid, int32_t tid) in IsThreadInPid() 146 bool GetTidsByPidWithFunc(const int pid, std::vector<int>& tids, std::function<bool(int)> const& fu… in GetTidsByPidWithFunc() 173 bool GetTidsByPid(const int pid, std::vector<int>& tids, std::vector<int>& nstids) in GetTidsByPid() 196 pid_t pid = getpid(); in GetStacktraceHeader() local 221 void ReadThreadNameByPidAndTid(const int pid, const int tid, std::string& str) in ReadThreadNameByPidAndTid() 229 void ReadProcessName(const int pid, std::string& str) in ReadProcessName() 242 void ReadProcessStatus(std::string& result, const int pid) in ReadProcessStatus() [all …]
|
| /base/hiviewdfx/hiview/framework/native/unified_collection/graphic_memory/ |
| D | graphic_memory.cpp | 36 uint32_t pid = 0; member 42 int32_t MemoryTrackerGetGLByPid(int32_t pid) in MemoryTrackerGetGLByPid() 62 int32_t RsGetGLByPid(int32_t pid) in RsGetGLByPid() 73 int32_t GetGLByPid(int32_t pid) in GetGLByPid() 97 int32_t GetGraphByPid(pid_t pid) in GetGraphByPid() 118 CollectResult GetGraphicUsage(int32_t pid, Type type) in GetGraphicUsage()
|
| /base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
| D | process_dump_test.cpp | 89 pid_t pid = accountmgrPid; variable 140 pid_t pid = getpid(); variable 166 int32_t pid = 1, tid = 1; variable 180 int32_t pid = 243, tid = 243; variable 197 pid_t pid = GetProcessPid(ACCOUNTMGR_NAME); variable 221 pid_t pid = GetProcessPid(ACCOUNTMGR_NAME); variable 287 pid_t pid = GetProcessPid(ACCOUNTMGR_NAME); variable 314 pid_t pid = GetProcessPid(ACCOUNTMGR_NAME); variable
|
| /base/powermgr/power_manager/utils/permission/src/ |
| D | permission.cpp | 32 pid_t pid = IPCSkeleton::GetCallingPid(); in IsHap() local 54 pid_t pid = IPCSkeleton::GetCallingPid(); in IsSystem() local 85 pid_t pid = IPCSkeleton::GetCallingPid(); in IsPermissionGranted() local 116 pid_t pid = IPCSkeleton::GetCallingPid(); in IsNativePermissionGranted() local
|