/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_logger.cpp | 26 static int32_t g_DebugLogFd = INVALID_FD; 27 static int32_t g_StdErrFd = INVALID_FD; 43 if (g_DebugLogFd != INVALID_FD) { in WriteLog() 53 } else if (fd == INVALID_FD) { in WriteLog() 82 if (g_DebugLogFd != INVALID_FD) { in InitDebugLog() 96 g_DebugLogFd = INVALID_FD; in InitDebugLog() 104 g_StdErrFd = INVALID_FD; in InitDebugLog() 115 if (g_DebugLogFd == INVALID_FD) { in CloseDebugLog() 119 if (g_StdErrFd != INVALID_FD) { in CloseDebugLog() 123 g_DebugLogFd = INVALID_FD; in CloseDebugLog() [all …]
|
H A D | dfx_ring_buffer_wrapper.cpp | 26 static const int32_t INVALID_FD = -1; variable 140 if (fd_ != INVALID_FD) { in StopThread() 143 fd_ = INVALID_FD; in StopThread()
|
/ohos5.0/base/sensors/medical_sensor/utils/src/ |
H A D | medical_basic_data_channel.cpp | 37 : sendFd_(INVALID_FD), receiveFd_(INVALID_FD), isActive_(false) in MedicalSensorBasicDataChannel() 44 if ((sendFd_ != INVALID_FD) || (receiveFd_ != INVALID_FD)) { in CreateSensorBasicChannel() 54 sendFd_ = INVALID_FD; in CreateSensorBasicChannel() 55 receiveFd_ = INVALID_FD; in CreateSensorBasicChannel() 92 if ((sendFd_ != INVALID_FD) || (receiveFd_ != INVALID_FD)) { in CreateSensorBasicChannel() 99 sendFd_ = INVALID_FD; in CreateSensorBasicChannel() 105 sendFd_ = INVALID_FD; in CreateSensorBasicChannel() 134 if (sendFd_ != INVALID_FD) { in CloseSendFd() 136 sendFd_ = INVALID_FD; in CloseSendFd() 188 sendFd_ = INVALID_FD; in DestroySensorBasicChannel() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/utils/socketpair/src/ |
H A D | local_socketpair.cpp | 38 constexpr int32_t INVALID_FD = -1; variable 46 : sendFd_(INVALID_FD), receiveFd_(INVALID_FD) in LocalSocketPair() 53 if ((sendFd_ != INVALID_FD) || (receiveFd_ != INVALID_FD)) { in ~LocalSocketPair() 90 if ((sendFd_ != INVALID_FD) || (receiveFd_ != INVALID_FD)) { in CreateChannel() 204 if (fd != INVALID_FD) { in CloseFd() 206 fd = INVALID_FD; in CloseFd()
|
/ohos5.0/base/powermgr/battery_manager/charger/src/ |
H A D | battery_thread.cpp | 47 if (fd == INVALID_FD) { in OpenUeventSocket() 49 return INVALID_FD; in OpenUeventSocket() 56 return INVALID_FD; in OpenUeventSocket() 63 return INVALID_FD; in OpenUeventSocket() 99 if (ueventFd_ == INVALID_FD) { in InitUevent() 123 if (epFd_ == INVALID_FD) {
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
H A D | stream_manager.cpp | 21 #define INVALID_FD (-1) macro 56 return INVALID_FD; in CreateStreamClientChannel() 66 return INVALID_FD; in CreateStreamClientChannel() 86 return INVALID_FD; in CreateStreamServerChannel() 92 return INVALID_FD; in CreateStreamServerChannel() 101 return INVALID_FD; in CreateStreamServerChannel()
|
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/event_benchmark_test/ |
H A D | event_benchmark_test.cpp | 77 const int INVALID_FD = -1; variable 307 AssertUnequal(reactor->Clean(INVALID_FD), EVENT_SYS_ERR_OK, in BENCHMARK_F() 358 if ((GetFd() == INVALID_FD)) { in Initialize() 364 if (clock_gettime(CLOCK_MONOTONIC, &now) == INVALID_FD) { in Initialize() 400 if (GetFd() == INVALID_FD) { in TimeOut() 443 reactor->Run(INVALID_FD); in BENCHMARK_F() 481 reactor->Run(INVALID_FD); in EventLoop() 608 reactor->Run(INVALID_FD); in BENCHMARK_F() 656 reactor->Run(INVALID_FD); in BENCHMARK_F() 979 if (clock_gettime(CLOCK_MONOTONIC, &now) == INVALID_FD) { in Initialize() [all …]
|
/ohos5.0/base/powermgr/battery_manager/charger/include/ |
H A D | battery_thread.h | 54 static constexpr int32_t INVALID_FD = -1; variable 55 int32_t ueventFd_ = INVALID_FD; 56 int32_t epFd_ = INVALID_FD;
|
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/source/ |
H A D | ipc_file_descriptor.cpp | 37 IPCFileDescriptor::IPCFileDescriptor() : Parcelable(true), fd_(INVALID_FD) {} in IPCFileDescriptor() 46 fd_ = INVALID_FD; in ~IPCFileDescriptor() 86 int fd = INVALID_FD; in Unmarshalling()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/uri/ |
H A D | uri_handler.cpp | 51 return INVALID_FD; in ToFd() 54 return INVALID_FD; in ToFd() 59 return INVALID_FD; in ToFd()
|
/ohos5.0/foundation/communication/ipc/ipc/test/auxiliary/native/src/ |
H A D | test_service.cpp | 71 …ervice::TestService(bool serialInvokeFlag) : TestServiceStub(serialInvokeFlag), testFd_(INVALID_FD) in TestService() 77 if (testFd_ != INVALID_FD) { in ~TestService() 142 if (testFd_ != INVALID_FD) { in TestGetFileDescriptor() 149 if (testFd_ == INVALID_FD) { in TestGetFileDescriptor() 151 return !INVALID_FD; in TestGetFileDescriptor() 158 return INVALID_FD; in TestGetFileDescriptor()
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/src/ |
H A D | battery_thread.cpp | 66 if (fd == INVALID_FD) { in OpenUeventSocket() 68 return INVALID_FD; in OpenUeventSocket() 75 return INVALID_FD; in OpenUeventSocket() 82 return INVALID_FD; in OpenUeventSocket() 122 if (ueventFd_ == INVALID_FD) { in InitUevent() 146 if (epFd_ == INVALID_FD) {
|
/ohos5.0/foundation/communication/netmanager_ext/frameworks/native/netvpnclient/src/ |
H A D | vpn_interface.cpp | 35 constexpr int32_t INVALID_FD = -1; variable 148 return INVALID_FD; in GetVpnInterfaceFd() 154 return INVALID_FD; in GetVpnInterfaceFd() 159 return INVALID_FD; in GetVpnInterfaceFd()
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/include/ |
H A D | battery_thread.h | 60 static constexpr int32_t INVALID_FD = -1; variable 61 int32_t ueventFd_ = INVALID_FD; 62 int32_t epFd_ = INVALID_FD;
|
/ohos5.0/base/hiviewdfx/faultloggerd/common/dfxlog/ |
H A D | dfx_log.cpp | 25 static int g_debugFd = INVALID_FD; 29 static int g_dmesgFd = INVALID_FD; 127 if (g_debugFd != INVALID_FD) { in DfxLogPrintV()
|
/ohos5.0/foundation/filemanagement/app_file_service/frameworks/native/backup_kit_inner/src/ |
H A D | service_reverse_stub.cpp | 26 const int INVALID_FD = -1; variable 118 int fd = INVALID_FD; in CmdBackupOnFileReady() 194 int fd = INVALID_FD; in CmdRestoreOnFileReady() 234 int fd = INVALID_FD; in CmdIncrementalBackupOnFileReady() 235 int manifestFd = INVALID_FD; in CmdIncrementalBackupOnFileReady() 312 int fd = INVALID_FD; in CmdIncrementalRestoreOnFileReady() 313 int manifestFd = INVALID_FD; in CmdIncrementalRestoreOnFileReady()
|
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | hdi_prepared_model_v1_0.cpp | 77 V1_0::SharedBuffer iBuffer {INVALID_FD, 0, 0, 0}; in TransIOTensor() 216 if (iTensor.data.fd == INVALID_FD) { in Run() 226 if (iTensor.data.fd == INVALID_FD) { in Run() 254 if (iTensor.data.fd == INVALID_FD) { in Run() 268 if (iTensor.data.fd == INVALID_FD) { in Run()
|
H A D | hdi_prepared_model_v2_0.cpp | 78 V2_0::SharedBuffer iBuffer {INVALID_FD, 0, 0, 0}; in TransIOTensor() 216 if (iTensor.data.fd == INVALID_FD) { in Run() 226 if (iTensor.data.fd == INVALID_FD) { in Run() 257 if (iTensor.data.fd == INVALID_FD) { in Run() 271 if (iTensor.data.fd == INVALID_FD) { in Run()
|
H A D | hdi_prepared_model_v2_1.cpp | 78 V2_1::SharedBuffer iBuffer {INVALID_FD, 0, 0, 0}; in TransIOTensor() 216 if (iTensor.data.fd == INVALID_FD) { in Run() 226 if (iTensor.data.fd == INVALID_FD) { in Run() 257 if (iTensor.data.fd == INVALID_FD) { in Run() 271 if (iTensor.data.fd == INVALID_FD) { in Run()
|
H A D | hdi_device_v1_0.cpp | 157 OHOS::HDI::Nnrt::V1_0::SharedBuffer tensorBuffer {INVALID_FD, 0, 0, 0}; in GetSupportedOperation() 162 if (hdiRet != HDF_SUCCESS || tensorBuffer.fd == INVALID_FD) { in GetSupportedOperation() 248 OHOS::HDI::Nnrt::V1_0::SharedBuffer tensorBuffer {INVALID_FD, 0, 0, 0}; in PrepareModel() 253 if (hdiRet != HDF_SUCCESS || tensorBuffer.fd == INVALID_FD) { in PrepareModel() 434 if (buffer.fd == INVALID_FD) { in ReleaseSharedBuffer() 435 LOGI("No need to release. fd=%d", INVALID_FD); in ReleaseSharedBuffer()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/common/unittest/ |
H A D | softbus_conn_common_test.cpp | 30 static const int INVALID_FD = -1; variable 144 … EXPECT_EQ(SOFTBUS_INVALID_PARAM, AddTrigger(static_cast<ListenerModule>(module), INVALID_FD, 146 … EXPECT_EQ(SOFTBUS_INVALID_PARAM, DelTrigger(static_cast<ListenerModule>(module), INVALID_FD, 532 ret = ConnGetLocalSocketPort(INVALID_FD); 548 ret = ConnGetPeerSocketAddr(INVALID_FD, &g_socketAddr); 600 ret = ConnGetPeerSocketAddr(INVALID_FD, &socketAddr); 613 ret = ConnGetLocalSocketPort(INVALID_FD);
|
/ohos5.0/foundation/communication/ipc/ipc/native/src/jni/source/ |
H A D | ohos_rpc_message_parcel.cpp | 237 if (fd != INVALID_FD) { in Java_ohos_rpc_MessageParcel_nativeReadFileDescriptor() 455 if (fd != INVALID_FD) { in Java_ohos_rpc_MessageParcel_nativeCloseFileDescriptor() 457 JniHelperJavaIoSetFdToFileDescriptor(env, descriptor, INVALID_FD); in Java_ohos_rpc_MessageParcel_nativeCloseFileDescriptor() 472 int dupFd = INVALID_FD; in Java_ohos_rpc_MessageParcel_nativeDupFileDescriptor() 473 if (fd != INVALID_FD) { in Java_ohos_rpc_MessageParcel_nativeDupFileDescriptor() 476 if (dupFd != INVALID_FD) { in Java_ohos_rpc_MessageParcel_nativeDupFileDescriptor()
|
/ohos5.0/foundation/graphic/graphic_surface/sync_fence/src/ |
H A D | sync_fence.cpp | 48 constexpr int32_t INVALID_FD = -1; variable 51 const sptr<SyncFence> SyncFence::INVALID_FENCE = sptr<SyncFence>(new SyncFence(INVALID_FD)); 115 int32_t newFenceFd = INVALID_FD; in MergeFence() 129 if (newFenceFd == INVALID_FD) { in MergeFence()
|
/ohos5.0/base/sensors/sensor/test/unittest/coverage/ |
H A D | sensor_basic_data_channel_test.cpp | 35 constexpr int32_t INVALID_FD = 2; variable 89 data.WriteFileDescriptor(INVALID_FD); 129 data.WriteFileDescriptor(INVALID_FD);
|
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/native/common/src/ |
H A D | ishared_result_set_proxy.cpp | 60 return INVALID_FD; in GetAllColumnNames() 92 return INVALID_FD; in GetRowCount() 148 return INVALID_FD; in Close()
|