Home
last modified time | relevance | path

Searched refs:INVALID_PID (Results 1 – 25 of 60) sorted by relevance

123

/ohos5.0/foundation/communication/ipc/ipc/test/auxiliary/native/src/
H A Dipc_test_helper.cpp95 pid_t pid = INVALID_PID; in GetPidByName()
117 return INVALID_PID; in GetPidByName()
228 if (pid != INVALID_PID) { in StopExecutable()
239 if (pid != INVALID_PID) { in StopExecutable()
250 if (pid == INVALID_PID) { in PrepareTestSuite()
256 return (pid != INVALID_PID); in PrepareTestSuite()
286 int pid = INVALID_PID; in StartTestApp()
296 if (pid != INVALID_PID) { in StartTestApp()
313 if (pid != INVALID_PID) { in StopTestApp()
326 int pid = INVALID_PID; in GetTestAppPid()
[all …]
/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/common/
H A Dipc_payload_statistics_unittest.cpp26 constexpr int32_t INVALID_PID = -1; variable
103 EXPECT_EQ(IPCPayloadStatistics::GetCount(INVALID_PID), 0);
123 EXPECT_EQ(IPCPayloadStatistics::GetCost(INVALID_PID), 0);
144 std::vector<IPCInterfaceInfo> info = IPCPayloadStatistics::GetDescriptorCodes(INVALID_PID);
165 EXPECT_EQ(IPCPayloadStatistics::GetDescriptorCodeCount(INVALID_PID, u"string1", CODE), 0);
209 … IPCPayloadCost cost = IPCPayloadStatistics::GetDescriptorCodeCost(INVALID_PID, u"string1", CODE);
/ohos5.0/base/startup/appspawn/lite/
H A Dappspawn_service.c31 static const int INVALID_PID = -1; variable
139 APPSPAWN_LOGE("[appspawn] invoke, funcId %d invalid, reply %d.", funcId, INVALID_PID); in Invoke()
140 WriteInt64(reply, INVALID_PID); in Invoke()
148 APPSPAWN_LOGE("[appspawn] invoke, parse failed! reply %d.", INVALID_PID); in Invoke()
149 WriteInt64(reply, INVALID_PID); in Invoke()
/ohos5.0/base/hiviewdfx/hidumper/test/unittest/common/
H A Dhidumper_memory_test.cpp35 const uint64_t INVALID_PID = 0; variable
130 ASSERT_FALSE(smapsMemoryInfo->ShowMemorySmapsByPid(INVALID_PID, result, true));
160 int value = static_cast<int>(memoryInfo->GetProcValue(INVALID_PID, NULL_STR));
162 value = static_cast<int>(memoryInfo->GetVss(INVALID_PID));
166 ASSERT_FALSE(memoryInfo->GetMemByProcessPid(INVALID_PID, usage));
167 memoryInfo->GetProcessAdjLabel(INVALID_PID);
/ohos5.0/foundation/communication/ipc/services/dbinder/test/distributedtest/src/
H A Ddbinder_service_test_helper.cpp43 pid_t pid = INVALID_PID; in GetPidByName()
60 return INVALID_PID; in GetPidByName()
124 if (pid != INVALID_PID) { in StartExecutable()
141 while (pid == INVALID_PID && res < 10) { // 10:try-time to wait for exe start in StartExecutable()
162 if (pid != INVALID_PID) { in StopExecutable()
/ohos5.0/base/sensors/sensor/services/src/
H A Dclient_info.cpp37 constexpr int32_t INVALID_PID = -1; variable
155 if (pid == INVALID_PID) { in DestroyAppThreadInfo()
196 if (pid == INVALID_PID) { in GetSensorChannelByPid()
282 if (pid <= INVALID_PID) { in UpdateSensorChannel()
347 if (pid <= INVALID_PID) { in DestroySensorChannel()
409 int32_t pid = INVALID_PID; in ComputeBestPeriodCount()
434 int32_t pid = INVALID_PID; in ComputeBestFifoCount()
522 CHKPR(sensorClient, INVALID_PID); in FindClientPid()
527 return INVALID_PID; in FindClientPid()
772 int32_t pid = INVALID_PID; in GetPidByTokenId()
[all …]
H A Dstream_server.cpp30 constexpr int32_t INVALID_PID = -1; variable
56 return it == sessionsMap_.end() ? INVALID_PID : it->second->GetPid(); in GetClientPid()
/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/src/
H A Dclient_info.cpp33 constexpr int32_t INVALID_PID = -1; variable
99 if ((sensorId == INVALID_SENSOR_ID) || (pid <= INVALID_PID)) { in OnlyCurPidSensorEnabled()
127 if ((uid == INVALID_UID) || (pid <= INVALID_PID)) { in UpdateUid()
151 if (pid == INVALID_PID) { in DestroyUid()
195 if (pid == INVALID_PID) { in GetSensorChannelByPid()
275 if (pid <= INVALID_PID || channel == nullptr) { in UpdateSensorChannel()
339 if (pid <= INVALID_PID) { in DestroySensorChannel()
404 int32_t pid = INVALID_PID; in ComputeBestPeriodCount()
430 int32_t pid = INVALID_PID; in ComputeBestFifoCount()
524 return INVALID_PID; in FindClientPid()
[all …]
/ohos5.0/drivers/hdf_core/adapter/uhdf2/manager/src/
H A Ddevmgr_service_full.c26 #define INVALID_PID (-1) macro
35 hostClnt->hostPid = INVALID_PID; in CleanupDiedHostResources()
75 if (ret == INVALID_PID) { in DevmgrServiceFullOnDeviceHostDied()
/ohos5.0/base/inputmethod/imf/services/identity_checker/include/
H A Didentity_checker.h26 static constexpr int64_t INVALID_PID = -1;
28 … bool IsFocused(int64_t callingPid, uint32_t callingTokenId, int64_t focusedPid = INVALID_PID) = 0;
H A Didentity_checker_impl.h25 …bool IsFocused(int64_t callingPid, uint32_t callingTokenId, int64_t focusedPid = INVALID_PID) over…
/ohos5.0/foundation/multimodalinput/input/service/message_handle/src/
H A Dclient_death_handler.cpp77 if (pid == INVALID_PID) { in OnDeath()
136 CHKPR(binderClientSrv, INVALID_PID); in FindClientPid()
151 return INVALID_PID; in FindClientPid()
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/
H A Dprocess_state_info_collector.h30 constexpr int32_t INVALID_PID = 0; variable
57 std::shared_ptr<ProcessCpuData> FetchProcessCpuData(int32_t pid = INVALID_PID);
/ohos5.0/base/hiviewdfx/hidumper/services/native/src/
H A Ddump_manager_cpu_service.cpp48 static constexpr int INVALID_PID = -1; variable
93 if (cpuUsagePid_ != INVALID_PID) { in InitParam()
104 if (cpuUsagePid_ != INVALID_PID) { in ResetParam()
115 if (cpuUsagePid_ != INVALID_PID) { in DumpCpuUsageData()
153 if (pid != INVALID_PID) { in GetCpuUsageByPid()
351 if (cpuUsagePid_ != INVALID_PID) { in DumpProcInfo()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/udp_negotiation/
H A Dtrans_udp_negotiation_test.cpp39 #define INVALID_PID (-1) macro
210 appInfo->myData.pid = INVALID_PID;
328 newChannel->info.myData.pid = INVALID_PID;
332 TransUdpDeathCallback(g_pkgName, INVALID_PID);
/ohos5.0/base/startup/init/interfaces/innerkits/include/
H A Dservice_watcher.h29 #define INVALID_PID 0 macro
/ohos5.0/base/sensors/medical_sensor/services/medical_sensor/test/unittest/phone/
H A Dmedical_proxy_test.cpp42 constexpr pid_t INVALID_PID = -1; variable
83 pid_t pid = INVALID_PID; in GetSensorServicePid()
/ohos5.0/foundation/window/window_manager_lite/interfaces/innerkits/
H A Dlite_wm_type.h86 const int INVALID_PID = -1; variable
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/
H A Ddump_utils.h59 static const int INVALID_PID = -1; variable
/ohos5.0/foundation/communication/ipc/ipc/test/auxiliary/native/include/
H A Dipc_test_helper.h29 const static int INVALID_PID = -1; variable
/ohos5.0/foundation/communication/ipc/services/dbinder/test/distributedtest/include/
H A Ddbinder_service_test_helper.h30 const static int INVALID_PID = -1; variable
/ohos5.0/base/startup/init/interfaces/innerkits/service_watcher/
H A Dservice_watcher.c42 info.pid = (pid_t)GetUintParameter(paramName, INVALID_PID); in ServiceStateChange()
/ohos5.0/base/msdp/device_status/utils/common/include/
H A Dproto.h32 inline constexpr int32_t INVALID_PID { 7 };
/ohos5.0/base/inputmethod/imf/test/unittest/cpp_test/common/include/
H A Didentity_checker_mock.h27 …bool IsFocused(int64_t callingPid, uint32_t callingTokenId, int64_t focusedPid = INVALID_PID) over…
/ohos5.0/base/sensors/miscdevice/services/miscdevice_service/src/
H A Dmiscdevice_service.cpp63 constexpr int32_t INVALID_PID = -1; variable
769 if ((clientPid != INVALID_PID) && (clientPid == vibratePid)) { in ProcessDeathObserver()
800 if (clientPid == INVALID_PID) { in UnregisterClientDeathRecipient()
823 return INVALID_PID; in FindClientPid()
829 return INVALID_PID; in FindClientPid()

123