Home
last modified time | relevance | path

Searched refs:IsValid (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/native/libs/vr/libbufferhubqueue/
Dbuffer_hub_queue_parcelable.cpp10 bool BufferHubQueueParcelable<Magic>::IsValid() const { in IsValid() function in android::dvr::BufferHubQueueParcelable
11 return !!channel_parcelable_ && channel_parcelable_->IsValid(); in IsValid()
16 if (!IsValid()) { in TakeChannelHandle()
32 if (!IsValid()) { in writeToParcel()
48 if (IsValid()) { in readFromParcel()
/frameworks/native/libs/vr/libpdx_uds/
Dchannel_parcelable.cpp23 bool ChannelParcelable::IsValid() const { in IsValid() function in android::pdx::uds::ChannelParcelable
28 if (!IsValid()) { in TakeChannelHandle()
41 if (!IsValid()) { in writeToParcel()
84 if (IsValid()) { in readFromParcel()
112 if (!IsValid()) { in readFromParcel()
Dremote_method_tests.cpp651 ASSERT_TRUE(fd.IsValid()); in TEST_F()
661 ASSERT_TRUE(fd.IsValid()) << "Error code: " << fd.Get(); in TEST_F()
671 EXPECT_TRUE(fd.IsValid()); in TEST_F()
735 EXPECT_TRUE(result.fd.IsValid()); in TEST_F()
743 EXPECT_TRUE(files[0].IsValid()); in TEST_F()
744 EXPECT_TRUE(files[1].IsValid()); in TEST_F()
745 EXPECT_TRUE(files[2].IsValid()); in TEST_F()
Dclient_channel_factory.cpp61 bool connected = socket_.IsValid(); in Connect()
Dservice_endpoint.cpp149 CHECK(fd.IsValid())
155 CHECK(fd.IsValid()) << "Endpoint::Endpoint: Failed to create socket: "
179 CHECK(cancel_event_fd_.IsValid()) in Init()
183 CHECK(epoll_fd_.IsValid()) in Init()
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dnative_handle_wrapper.h42 bool IsValid() const { return ints_.size() != 0 || fds_.size() != 0; } in IsValid() function
46 if (!IsValid()) { in DuplicateHandle()
53 if (!fd.IsValid()) { in DuplicateHandle()
64 if (!IsValid()) { in TakeHandle()
Dion_buffer.h27 bool IsValid() const { return buffer_ && buffer_->initCheck() == OK; } in IsValid() function
Dbufferhub_rpc.h165 explicit operator bool() const { return fence_.IsValid(); }
/frameworks/native/libs/vr/libpdx/private/pdx/
Dfile_handle.h81 if (IsValid() && Mode == FileHandleMode::Local) in Close()
106 bool IsValid() const { return fd_ >= 0; } in IsValid() function
107 explicit operator bool() const { return IsValid(); }
Dchannel_parcelable.h20 virtual bool IsValid() const = 0;
/frameworks/native/services/vr/performanced/
Ddirectory_reader.h31 bool IsValid() const { return directory_ != nullptr; } in IsValid() function
32 explicit operator bool() const { return IsValid(); }
Dtask.h26 bool IsValid() const { return task_fd_.get() >= 0; } in IsValid() function
27 explicit operator bool() const { return IsValid(); }
Dtask.cpp56 if (IsValid()) { in Task()
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
Depoll_file_descriptor.h23 bool IsValid() const { return fd_.get() >= 0; } in IsValid() function
26 if (IsValid()) { in Create()
Dbuffer_hub_queue_parcelable.h45 bool IsValid() const;
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub-test.cpp115 ASSERT_TRUE(epoll_fd.IsValid()); in TEST_F()
265 EXPECT_FALSE(invalid_fence.IsValid()); in TEST_F()
266 EXPECT_FALSE(invalid_fence.IsValid()); in TEST_F()
276 EXPECT_FALSE(invalid_fence.IsValid()); in TEST_F()
281 EXPECT_FALSE(invalid_fence.IsValid()); in TEST_F()
287 EXPECT_FALSE(invalid_fence.IsValid()); in TEST_F()
290 EXPECT_FALSE(invalid_fence.IsValid()); in TEST_F()
300 EXPECT_FALSE(invalid_fence.IsValid()); in TEST_F()
305 EXPECT_FALSE(invalid_fence.IsValid()); in TEST_F()
311 EXPECT_FALSE(invalid_fence.IsValid()); in TEST_F()
[all …]
Dbuffer_hub_base.cpp161 if (pending_fence_fd_.IsValid()) { in UpdateSharedFence()
170 if (new_fence.IsValid()) { in UpdateSharedFence()
/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue-test.cpp319 EXPECT_TRUE(fence.IsValid()); in TEST_F()
949 EXPECT_TRUE(output_parcelable.IsValid()); in TEST_F()
958 EXPECT_TRUE(output_parcelable.IsValid()); in TEST_F()
973 EXPECT_FALSE(input_parcelable.IsValid()); in TEST_F()
977 EXPECT_TRUE(input_parcelable.IsValid()); in TEST_F()
981 EXPECT_FALSE(input_parcelable.IsValid()); in TEST_F()
1019 EXPECT_TRUE(output_parcelable.IsValid()); in TEST_F()
1036 EXPECT_FALSE(wrongly_typed_parcelable.IsValid()); in TEST_F()
1043 EXPECT_FALSE(input_parcelable.IsValid()); in TEST_F()
1047 EXPECT_TRUE(input_parcelable.IsValid()); in TEST_F()
[all …]
Dbuffer_hub_queue_producer-test.cpp561 EXPECT_TRUE(dummy_channel_parcelable->IsValid()); in TEST_F()
564 EXPECT_TRUE(dummy_producer_parcelable.IsValid()); in TEST_F()
569 EXPECT_FALSE(producer_parcelable.IsValid()); in TEST_F()
571 EXPECT_TRUE(producer_parcelable.IsValid()); in TEST_F()
/frameworks/native/libs/gui/
DBufferHubConsumer.cpp31 if (!parcelable.IsValid()) { in Create()
DBufferHubProducer.cpp36 if (!parcelable.IsValid()) { in Create()
756 if (!out_parcelable || out_parcelable->IsValid()) return BAD_VALUE; in TakeAsParcelable()
848 if (!pending_producer_parcelable_.IsValid()) { in exportToParcel()
/frameworks/rs/tests/lldb/tests/harness/
Dtest_base_remote.py168 self.assert_true(self._ci.IsValid())
Dtest_base.py331 assert self._ci.IsValid()
/frameworks/native/services/vr/bufferhubd/
Dproducer_channel.cpp38 if (!buffer_.IsValid()) { in ProducerChannel()
43 if (!metadata_buffer_.IsValid()) { in ProducerChannel()
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvUinputBridge.cpp157 bool IsValid() const { return mFd != kInvalidFileDescriptor; } in IsValid() function in android::UInputDescriptor
189 if (IsValid()) { in Open()

12