Home
last modified time | relevance | path

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

123

/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 …]
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()
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()
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()
/external/v8/src/parsing/
Dfunc-name-inferrer.h53 bool IsOpen() const { return !entries_stack_.is_empty(); } in IsOpen() function
65 if (IsOpen()) { in AddFunction()
71 if (IsOpen() && !funcs_to_infer_.is_empty()) { in RemoveLastFunction()
80 DCHECK(IsOpen()); in Infer()
Dfunc-name-inferrer.cc33 if (IsOpen() && name != ast_value_factory_->prototype_string()) { in PushLiteralName()
40 if (IsOpen() && name != ast_value_factory_->dot_result_string()) { in PushVariableName()
46 if (IsOpen()) { in RemoveAsyncKeywordFromEnd()
54 DCHECK(IsOpen()); in Leave()
/external/perf_data_converter/src/quipper/
Dfile_reader.cc15 if (!IsOpen()) { in FileReader()
28 if (IsOpen()) { in ~FileReader()
Dfile_utils.cc16 if (!reader.IsOpen()) return false; in FileToBuffer()
Dfile_reader.h20 bool IsOpen() const { return infile_; } in IsOpen() function
/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/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 …]
/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.h63 bool IsOpen() const override;
/external/nos/host/android/citadel/citadeld/include/nos/
DCitadeldProxyClient.h44 bool IsOpen() const override;
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTResourceFile.h71 bool IsOpen() const;
/external/nos/host/android/hals/authsecret/citadel/
Dservice.cpp42 if (!citadeldProxy.IsOpen()) { in main()
/external/nos/host/android/hals/oemlock/citadel/
Dservice.cpp46 if (!citadeldProxy.IsOpen()) { in main()
/external/nos/host/android/hals/weaver/citadel/
Dservice.cpp47 if (!citadeldProxy.IsOpen()) { in main()
/external/gptfdisk/
Ddiskio.h76 int IsOpen(void) {return isOpen;} in IsOpen() function
/external/nos/test/system-test-harness/tools/
Dnugget_tools.cc38 return client.IsOpen(); in IsDirectDeviceClient()
64 if (!client->IsOpen()) { in MakeNuggetClient()

123