/frameworks/native/libs/ui/ |
D | FenceTime.cpp | 48 FenceTime::FenceTime(const sp<Fence>& fence) in FenceTime() argument 49 : mState(((fence.get() != nullptr) && fence->isValid()) ? in FenceTime() 51 mFence(fence), in FenceTime() 56 FenceTime::FenceTime(sp<Fence>&& fence) in FenceTime() argument 57 : mState(((fence.get() != nullptr) && fence->isValid()) ? in FenceTime() 59 mFence(std::move(fence)), in FenceTime() 123 sp<Fence> fence; in getSignalTime() local 133 fence = mFence; in getSignalTime() 137 signalTime = fence->getSignalTime(); in getSignalTime() 182 FenceTime::FenceTime(const sp<Fence>& fence, bool forceValidForTest) in FenceTime() argument [all …]
|
/frameworks/native/libs/vr/libbufferhubqueue/tests/ |
D | buffer_hub_queue-test.cpp | 96 LocalHandle fence; in TEST_F() local 97 auto p1_status = producer_queue_->Dequeue(100, &slot, &fence); in TEST_F() 104 auto c1_status = consumer_queue_->Dequeue(100, &slot, &mo, &fence); in TEST_F() 134 LocalHandle fence; in TEST_F() local 135 auto status = consumer_queue_->Dequeue(100, &slot, &seq, &fence); in TEST_F() 145 LocalHandle fence; in TEST_F() local 148 auto consumer_status = consumer_queue_->Dequeue(100, &slot, &seq, &fence); in TEST_F() 154 auto producer_status = producer_queue_->Dequeue(100, &slot, &fence); in TEST_F() 164 consumer_status = consumer_queue_->Dequeue(100, &slot, &seq_out, &fence); in TEST_F() 166 EXPECT_TRUE(fence.IsValid()); in TEST_F() [all …]
|
D | buffer_hub_queue_producer-test.cpp | 70 QueueBufferInputBuilder& setFence(sp<Fence> fence) { in setFence() 71 this->mFence = fence; in setFence() 112 sp<Fence> fence; in DequeueBuffer() local 113 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(outSlot, &fence)); in DequeueBuffer() 363 sp<Fence> fence; in TEST_F() local 366 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot, &fence)); in TEST_F() 369 EXPECT_EQ(NO_ERROR, mProducer->cancelBuffer(slot, fence)); in TEST_F() 405 sp<Fence> fence; in TEST_F() local 407 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot, &fence)); in TEST_F() 411 ASSERT_EQ(NO_ERROR, mProducer->cancelBuffer(slot, fence)); in TEST_F() [all …]
|
/frameworks/native/opengl/specs/ |
D | EGL_ANDROID_native_fence_sync.txt | 39 This extension enables the creation of EGL fence sync objects that are 40 associated with a native synchronization fence object that is referenced 41 using a file descriptor. These EGL fence sync objects have nearly 44 referring to the native fence object. 46 This extension assumes the existence of a native fence synchronization 47 object that behaves similarly to an EGL fence sync object. These native 49 indicates whether the fence has ever been signaled. Once signaled the 89 "If <type> is EGL_SYNC_NATIVE_FENCE_ANDROID, an EGL native fence sync 92 must be set to either a file descriptor that refers to a native fence 95 The default values for the EGL native fence sync object attributes are as [all …]
|
/frameworks/native/libs/vr/libbufferhub/ |
D | bufferhub_tests.cpp | 74 LocalHandle fence; in TEST_F() local 75 EXPECT_EQ(0, c->Acquire(&fence, &context)); in TEST_F() 80 EXPECT_EQ(0, c2->Acquire(&fence, &context)); in TEST_F() 90 EXPECT_EQ(0, p->Gain(&fence)); in TEST_F() 200 LocalHandle fence; in TEST_F() local 205 EXPECT_EQ(-EBUSY, c->Acquire(&fence, &context)); in TEST_F() 207 EXPECT_EQ(-EALREADY, p->Gain(&fence)); in TEST_F() 215 EXPECT_EQ(-EBUSY, p->Gain(&fence)); in TEST_F() 218 EXPECT_LE(0, c->Acquire(&fence, &context)); in TEST_F() 221 EXPECT_EQ(-EBUSY, c->Acquire(&fence, &context)); in TEST_F() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | BufferQueue_test.cpp | 82 sp<Fence> fence; in testBufferItem() local 85 &scalingMode, &transform, &fence, NULL); in testBufferItem() 92 ASSERT_EQ(fence, item.mFence); in testBufferItem() 144 sp<Fence> fence; in TEST_F() local 147 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F() 182 sp<Fence> fence; in TEST_F() local 191 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F() 199 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F() 233 sp<Fence> fence; in TEST_F() local 242 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F() [all …]
|
D | IGraphicBufferProducer_test.cpp | 131 fence = QUEUE_BUFFER_INPUT_FENCE; in QueueBufferInputBuilder() 142 fence); in build() 175 QueueBufferInputBuilder& setFence(sp<Fence> fence) { in setFence() 176 this->fence = fence; in setFence() 187 sp<Fence> fence; member 193 sp<Fence> fence; member 197 return mProducer->dequeueBuffer(&result->slot, &result->fence, w, h, format, usage, in dequeueBuffer() 201 void setupDequeueRequestBuffer(int *slot, sp<Fence> *fence, in setupDequeueRequestBuffer() argument 205 ASSERT_TRUE(fence != NULL); in setupDequeueRequestBuffer() 213 (mProducer->dequeueBuffer(slot, fence, DEFAULT_WIDTH, DEFAULT_HEIGHT, in setupDequeueRequestBuffer() [all …]
|
D | StreamSplitter_test.cpp | 82 sp<Fence> fence; in TEST_F() local 85 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F() 119 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F() 154 sp<Fence> fence; in TEST_F() local 157 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F() 194 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F() 218 sp<Fence> fence; in TEST_F() local 221 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F() 235 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
|
D | Malicious.cpp | 40 status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, PixelFormat format, in dequeueBuffer() argument 43 return mProducer->dequeueBuffer(slot, fence, w, h, format, usage, outBufferAge, in dequeueBuffer() 57 status_t cancelBuffer(int slot, const sp<Fence>& fence) override { in cancelBuffer() argument 58 return mProducer->cancelBuffer(slot, fence); in cancelBuffer() 112 status_t dequeueBuffer(int* buf, sp<Fence>* fence, uint32_t width, uint32_t height, in dequeueBuffer() argument 116 mProducer->dequeueBuffer(buf, fence, width, height, format, usage, outBufferAge, in dequeueBuffer()
|
/frameworks/native/libs/ui/include/ui/ |
D | FenceTime.h | 53 explicit Snapshot(const sp<Fence>& fence); 72 sp<Fence> fence{Fence::NO_FENCE}; 78 explicit FenceTime(const sp<Fence>& fence); 79 explicit FenceTime(sp<Fence>&& fence); 124 FenceTime(const sp<Fence>& fence, bool forceValidForTest); 162 void push(const std::shared_ptr<FenceTime>& fence); 191 std::shared_ptr<FenceTime> createFenceTimeForTest(const sp<Fence>& fence); 195 void signalAllForTest(const sp<Fence>& fence, nsecs_t signalTime);
|
/frameworks/native/services/vr/hardware_composer/tests/ |
D | vr_composer_test.cpp | 58 ParcelableUniqueFd* fence) override { in onNewFrame() argument 59 binder::Status status = TestComposerCallback::onNewFrame(frame, fence); in onNewFrame() 63 fence->set_fence(fd); in onNewFrame() 104 base::unique_fd fence = composer_->OnNewFrame(frame); in TEST_F() local 105 ASSERT_EQ(-1, fence.get()); in TEST_F() 116 base::unique_fd fence = composer_->OnNewFrame(frame); in TEST_F() local 117 ASSERT_EQ(-1, fence.get()); in TEST_F() 133 .fence = new Fence(eventfd(0, 0)), in TEST_F() 141 base::unique_fd fence = composer_->OnNewFrame(frame); in TEST_F() local 142 ASSERT_LE(0, fence.get()); in TEST_F() [all …]
|
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
D | parcelable_unique_fd.h | 16 ParcelableUniqueFd(const base::unique_fd& fence); 19 void set_fence(const base::unique_fd& fence) { in set_fence() argument 20 fence_.reset(dup(fence.get())); in set_fence() 22 base::unique_fd fence() const { return base::unique_fd(dup(fence_.get())); } in fence() function
|
/frameworks/av/media/libmedia/omx/1.0/ |
D | WOmxBufferSource.cpp | 54 hidl_handle fence; in onInputBufferEmptied() local 56 if (!wrapAs(&fence, &fenceNh, fenceParcel)) { in onInputBufferEmptied() 63 static_cast<uint32_t>(bufferId), fence)); in onInputBufferEmptied() 95 uint32_t buffer, hidl_handle const& fence) { in onInputBufferEmptied() argument 97 if (!convertTo(&fenceParcelable, fence)) { in onInputBufferEmptied()
|
/frameworks/av/media/libstagefright/omx/1.0/ |
D | WOmxBufferSource.cpp | 54 hidl_handle fence; in onInputBufferEmptied() local 56 if (!wrapAs(&fence, &fenceNh, fenceParcel)) { in onInputBufferEmptied() 63 static_cast<uint32_t>(bufferId), fence)); in onInputBufferEmptied() 95 uint32_t buffer, hidl_handle const& fence) { in onInputBufferEmptied() argument 97 if (!convertTo(&fenceParcelable, fence)) { in onInputBufferEmptied()
|
/frameworks/native/libs/gui/ |
D | IGraphicBufferProducer.cpp | 128 virtual status_t dequeueBuffer(int* buf, sp<Fence>* fence, uint32_t width, uint32_t height, in dequeueBuffer() argument 147 *fence = new Fence(); in dequeueBuffer() 148 result = reply.read(**fence); in dequeueBuffer() 150 fence->clear(); in dequeueBuffer() 271 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { in cancelBuffer() argument 275 data.write(*fence.get()); in cancelBuffer() 459 sp<Fence> fence(new Fence); in getLastQueuedBuffer() local 460 result = reply.read(*fence); in getLastQueuedBuffer() 466 *outFence = fence; in getLastQueuedBuffer() 550 status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, PixelFormat format, in dequeueBuffer() argument [all …]
|
D | ConsumerBase.cpp | 318 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFence() argument 320 return addReleaseFenceLocked(slot, graphicBuffer, fence); in addReleaseFence() 324 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFenceLocked() argument 334 mSlots[slot].mFence = fence; in addReleaseFenceLocked() 347 auto incomingStatus = fence->getStatus(); in addReleaseFenceLocked() 350 mSlots[slot].mFence = fence; in addReleaseFenceLocked() 360 fenceName, mSlots[slot].mFence, fence); in addReleaseFenceLocked() 365 mSlots[slot].mFence = fence; in addReleaseFenceLocked() 377 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GeofenceState.java | 46 public GeofenceState(Geofence fence, long expireAt, in GeofenceState() argument 51 mFence = fence; in GeofenceState() 59 mLocation.setLatitude(fence.getLatitude()); in GeofenceState() 60 mLocation.setLongitude(fence.getLongitude()); in GeofenceState()
|
/frameworks/native/services/vr/hardware_composer/ |
D | vr_composer.cpp | 70 ParcelableUniqueFd fence; in OnNewFrame() local 71 binder::Status ret = callback_->onNewFrame(parcelable_frame, &fence); in OnNewFrame() 75 return fence.fence(); in OnNewFrame()
|
/frameworks/native/libs/gui/bufferqueue/1.0/ |
D | H2BGraphicBufferProducer.cpp | 211 inline size_t getFenceFdCount(hidl_handle const& fence) { in getFenceFdCount() argument 212 return native_handle_read_fd(fence) == -1 ? 0 : 1; in getFenceFdCount() 230 inline status_t unflattenFence(hidl_handle* fence, native_handle_t** nh, in unflattenFence() argument 252 *fence = *nh; in unflattenFence() 257 *fence = hidl_handle(); in unflattenFence() 273 inline status_t flattenFence(hidl_handle const& fence, in flattenFence() argument 275 if (size < getFenceFlattenedSize(fence) || in flattenFence() 276 numFds < getFenceFdCount(fence)) { in flattenFence() 282 static_cast<uint32_t>(getFenceFdCount(fence))); in flattenFence() 283 int fd = native_handle_read_fd(fence); in flattenFence() [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | FramebufferSurface.cpp | 217 sp<Fence> fence = mHwc.getPresentFence(mDisplayType); in nextBuffer() local 218 if (fence->isValid()) { in nextBuffer() 220 mPreviousBuffer, fence); in nextBuffer() 233 sp<Fence> fence = mHwc.getAndResetReleaseFence(mDisplayType); in nextBuffer() 234 if (fence->isValid() && in nextBuffer() 237 mCurrentBuffer, fence); in nextBuffer()
|
/frameworks/native/services/surfaceflinger/ |
D | SurfaceFlingerConsumer.cpp | 201 void SurfaceFlingerConsumer::setReleaseFence(const sp<Fence>& fence) in setReleaseFence() argument 204 GLConsumer::setReleaseFence(fence); in setReleaseFence() 208 if (fence->isValid() && in setReleaseFence() 211 mPendingRelease.graphicBuffer, fence); in setReleaseFence() 227 mPendingRelease.fence); in releasePendingBuffer()
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | FrameRenderTracker.h | 61 const sp<Fence> &fence) in RenderedFrameInfo() 66 mFence(fence) { in RenderedFrameInfo() 101 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence);
|
/frameworks/native/libs/vr/libbufferhubqueue/ |
D | buffer_hub_queue_producer.cpp | 163 LocalHandle fence; in dequeueBuffer() local 164 auto buffer_status = queue_->Dequeue(dequeue_timeout_ms_, &slot, &fence); in dequeueBuffer() 268 sp<Fence> fence; in queueBuffer() local 271 &scaling_mode, &transform, &fence); in queueBuffer() 286 if (fence == nullptr) { in queueBuffer() 329 LocalHandle fence_fd(fence->isValid() ? fence->dup() : -1); in queueBuffer() 363 const sp<Fence>& fence) { in cancelBuffer() argument 381 } else if (fence == nullptr) { in cancelBuffer() 389 buffers_[slot].mFence = fence; in cancelBuffer()
|
/frameworks/native/libs/vr/libvrflinger/ |
D | acquired_buffer.cpp | 17 LocalHandle fence; in AcquiredBuffer() local 18 const int ret = buffer->Acquire(&fence); in AcquiredBuffer() 30 acquire_fence_ = std::move(fence); in AcquiredBuffer()
|
/frameworks/native/libs/gui/include/gui/ |
D | IGraphicBufferProducer.h | 197 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, 323 transform(_transform), stickyTransform(_sticky), fence(_fence), in timestamp() 338 *outFence = fence; 365 sp<Fence> fence; member 417 virtual status_t cancelBuffer(int slot, const sp<Fence>& fence) = 0;
|