Home
last modified time | relevance | path

Searched refs:IsOpen (Results 1 – 25 of 38) sorted by relevance

12

/external/libbrillo/brillo/streams/
Dfile_stream.cc33 if (IsOpen()) { in ~FileDescriptor()
39 bool IsOpen() const override { return fd_ >= 0; } in IsOpen() function in brillo::FileDescriptor
353 bool FileStream::IsOpen() const { in IsOpen() function in brillo::FileStream
354 return fd_interface_->IsOpen(); in IsOpen()
358 return IsOpen() && stream_utils::IsReadAccessMode(access_mode_); in CanRead()
362 return IsOpen() && stream_utils::IsWriteAccessMode(access_mode_); in CanWrite()
366 return IsOpen() && seekable_; in CanSeek()
370 return IsOpen() && can_get_size_; in CanGetSize()
374 return IsOpen() ? fd_interface_->GetSize() : 0; in GetSize()
378 if (!IsOpen()) in SetSizeBlocking()
[all …]
Dinput_stream_set.cc72 bool InputStreamSet::IsOpen() const { in IsOpen() function in brillo::InputStreamSet
77 bool can_get_size = IsOpen(); in CanGetSize()
114 if (!IsOpen()) in ReadNonBlocking()
162 if (!IsOpen()) in WaitForData()
181 if (!IsOpen()) in WaitForDataBlocking()
198 if (IsOpen() && !source_streams_.empty()) { in CancelPendingAsyncOperations()
Dmemory_stream.cc85 bool MemoryStream::IsOpen() const { return container_ != nullptr; } in IsOpen() function in brillo::MemoryStream
86 bool MemoryStream::CanRead() const { return IsOpen(); } in CanRead()
89 return IsOpen() && !container_->IsReadOnly(); in CanWrite()
92 bool MemoryStream::CanSeek() const { return IsOpen(); } in CanSeek()
93 bool MemoryStream::CanGetSize() const { return IsOpen(); } in CanGetSize()
96 return IsOpen() ? container_->GetSize() : 0; in GetSize()
112 return IsOpen() ? stream_position_ : 0; in GetPosition()
Dfile_stream_unittest.cc56 ASSERT_TRUE(stream->IsOpen()); in TestCreateFile()
133 MOCK_CONST_METHOD0(IsOpen, bool());
163 EXPECT_CALL(fd_mock(), IsOpen()).WillRepeatedly(Return(true)); in CreateStream()
201 TEST_F(FileStreamTest, IsOpen) { in TEST_F() argument
202 EXPECT_TRUE(stream_->IsOpen()); in TEST_F()
203 EXPECT_CALL(fd_mock(), IsOpen()).WillOnce(Return(false)); in TEST_F()
204 EXPECT_FALSE(stream_->IsOpen()); in TEST_F()
210 EXPECT_CALL(fd_mock(), IsOpen()).WillRepeatedly(Return(false)); in TEST_F()
221 EXPECT_CALL(fd_mock(), IsOpen()).WillRepeatedly(Return(false)); in TEST_F()
276 EXPECT_CALL(fd_mock(), IsOpen()).WillOnce(Return(false)); in TEST_F()
[all …]
Dfile_stream.h40 virtual bool IsOpen() const = 0;
96 bool IsOpen() const override;
Dfake_stream.cc205 if (!IsOpen()) in ReadNonBlocking()
269 if (!IsOpen()) in WriteNonBlocking()
331 if (!IsOpen()) in FlushBlocking()
Dtls_stream.h39 bool IsOpen() const override;
Dmock_stream.h19 MOCK_CONST_METHOD0(IsOpen, bool());
Dinput_stream_set.h61 bool IsOpen() const override;
Dfake_stream_unittest.cc70 EXPECT_TRUE(stream_->IsOpen()); in TEST_F()
82 EXPECT_TRUE(stream_->IsOpen()); in TEST_F()
94 EXPECT_TRUE(stream_->IsOpen()); in TEST_F()
Dfake_stream.h83 bool IsOpen() const override { return is_open_; } in IsOpen() function
/external/v8/src/parsing/
Dfunc-name-inferrer.h51 DCHECK(fni_->IsOpen());
64 bool IsOpen() const { return scope_depth_ > 0; }
76 if (IsOpen()) {
82 if (IsOpen() && !funcs_to_infer_.empty()) funcs_to_infer_.pop_back();
89 DCHECK(IsOpen());
Dfunc-name-inferrer.cc28 if (IsOpen() && name != ast_value_factory_->prototype_string()) { in PushLiteralName()
35 if (IsOpen() && name != ast_value_factory_->dot_result_string()) { in PushVariableName()
41 if (IsOpen()) { in RemoveAsyncKeywordFromEnd()
/external/oj-libjdwp/src/share/javavm/export/
DjdwpTransport.h177 jboolean (JNICALL *IsOpen)(jdwpTransportEnv* env);
231 jboolean IsOpen(void) { in IsOpen() function
232 return functions->IsOpen(this); in IsOpen()
/external/oj-libjdwp/src/share/back/
Dtransport.c563 is_open = (*transport)->IsOpen(transport); in transport_is_open()
575 if ( (*transport)->IsOpen(transport) ) { in transport_sendPacket()
581 if ((*transport)->IsOpen(transport)) { in transport_sendPacket()
607 if (!(*transport)->IsOpen(transport)) { in transport_receivePacket()
/external/swiftshader/third_party/PowerVR_SDK/Tools/OGLES2/
DPVRTShader.cpp198 if (ShaderFile.IsOpen()) in PVRTShaderLoadFromFile()
208 if (!ShaderFile.IsOpen()) in PVRTShaderLoadFromFile()
/external/nos/host/generic/libnos/test/include/nos/
DMockNuggetClient.h32 MOCK_CONST_METHOD0(IsOpen, bool());
/external/nos/host/generic/libnos/include/nos/
DNuggetClientInterface.h47 virtual bool IsOpen() const = 0;
DNuggetClient.h64 bool IsOpen() const override;
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTResourceFile.h71 bool IsOpen() const;
/external/webrtc/talk/app/webrtc/
Dpeerconnection_unittest.cc1600 EXPECT_TRUE_WAIT(initializing_client()->data_observer()->IsOpen(), in TEST_F()
1602 EXPECT_TRUE_WAIT(receiving_client()->data_observer()->IsOpen(), in TEST_F()
1618 EXPECT_FALSE(initializing_client()->data_observer()->IsOpen()); in TEST_F()
1619 EXPECT_FALSE(receiving_client()->data_observer()->IsOpen()); in TEST_F()
1630 EXPECT_TRUE_WAIT(initializing_client()->data_observer()->IsOpen(), in TEST_F()
1632 EXPECT_TRUE_WAIT(receiving_client()->data_observer()->IsOpen(), kMaxWaitMs); in TEST_F()
1645 EXPECT_TRUE_WAIT(!initializing_client()->data_observer()->IsOpen(), in TEST_F()
1647 EXPECT_TRUE_WAIT(!receiving_client()->data_observer()->IsOpen(), kMaxWaitMs); in TEST_F()
1666 EXPECT_TRUE_WAIT(initializing_client()->data_observer()->IsOpen(), in TEST_F()
1701 EXPECT_FALSE(initializing_client()->data_observer()->IsOpen()); in TEST_F()
[all …]
Dpeerconnectioninterface_unittest.cc1287 EXPECT_TRUE_WAIT(observer1->IsOpen(), kTimeout); in TEST_F()
1288 EXPECT_TRUE_WAIT(observer2->IsOpen(), kTimeout); in TEST_F()
1301 EXPECT_FALSE(observer1->IsOpen()); in TEST_F()
1303 EXPECT_TRUE(observer2->IsOpen()); in TEST_F()
1331 EXPECT_TRUE_WAIT(observer1->IsOpen(), kTimeout); in TEST_F()
1332 EXPECT_TRUE_WAIT(observer2->IsOpen(), kTimeout); in TEST_F()
1354 EXPECT_TRUE_WAIT(observer1->IsOpen(), kTimeout); in TEST_F()
1360 EXPECT_FALSE(observer1->IsOpen()); in TEST_F()
1570 EXPECT_TRUE_WAIT(observer1->IsOpen(), kTimeout); in TEST_F()
1571 EXPECT_TRUE_WAIT(observer2->IsOpen(), kTimeout); in TEST_F()
/external/gptfdisk/
Ddiskio.h79 int IsOpen(void) {return isOpen;} in IsOpen() function
/external/nos/host/generic/libnos/
DNuggetClient.cpp53 bool NuggetClient::IsOpen() const { in IsOpen() function in nos::NuggetClient
/external/lzma/CPP/7zip/UI/Common/
DOpenArchive.h371 bool IsOpen; member
386 IsOpen(false), in CArchiveLink()

12