/frameworks/native/libs/ui/ |
D | FenceTime.cpp | 36 FenceTime::FenceTime(const sp<Fence>& fence) in FenceTime() argument 37 : mState(((fence.get() != nullptr) && fence->isValid()) ? in FenceTime() 39 mFence(fence), in FenceTime() 44 FenceTime::FenceTime(sp<Fence>&& fence) in FenceTime() argument 45 : mState(((fence.get() != nullptr) && fence->isValid()) ? in FenceTime() 47 mFence(std::move(fence)), in FenceTime() 111 sp<Fence> fence; in getSignalTime() local 121 fence = mFence; in getSignalTime() 125 signalTime = fence->getSignalTime(); in getSignalTime() 170 FenceTime::FenceTime(const sp<Fence>& fence, bool forceValidForTest) in FenceTime() argument [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/libbufferhubqueue/tests/ |
D | buffer_hub_queue-test.cpp | 101 LocalHandle fence; in TEST_F() local 105 auto p1_status = producer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence); in TEST_F() 115 auto c1_status = consumer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence); in TEST_F() 139 LocalHandle fence; in TEST_F() local 146 producer_queue_->Dequeue(kTimeoutMs, &producer_slot, &mo, &fence, true); in TEST_F() 165 consumer_queue_->Dequeue(kTimeoutMs, &consumer_slot, &mo, &fence); in TEST_F() 179 producer_queue_->Dequeue(kTimeoutMs, &producer_slot, &mo, &fence, true); in TEST_F() 194 producer_queue_->Dequeue(kTimeoutMs, &producer_slot, &mo, &fence, true); in TEST_F() 222 LocalHandle fence; in TEST_F() local 227 producer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence, true); in TEST_F() [all …]
|
D | buffer_hub_queue_producer-test.cpp | 72 QueueBufferInputBuilder& setFence(sp<Fence> fence) { in setFence() 73 this->mFence = fence; in setFence() 118 sp<Fence> fence; in DequeueBuffer() local 119 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(outSlot, &fence)); in DequeueBuffer() 367 sp<Fence> fence; in TEST_F() local 370 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot, &fence)); in TEST_F() 373 EXPECT_EQ(OK, mProducer->cancelBuffer(slot, fence)); in TEST_F() 408 sp<Fence> fence; in TEST_F() local 410 ASSERT_NO_FATAL_FAILURE(DequeueBuffer(&slot, &fence)); in TEST_F() 414 ASSERT_EQ(OK, mProducer->cancelBuffer(slot, fence)); in TEST_F() [all …]
|
/frameworks/native/libs/ui/include/ui/ |
D | FenceTime.h | 54 explicit Snapshot(const sp<Fence>& fence); 73 sp<Fence> fence{Fence::NO_FENCE}; 79 explicit FenceTime(const sp<Fence>& fence); 80 explicit FenceTime(sp<Fence>&& fence); 120 FenceTime(const sp<Fence>& fence, bool forceValidForTest); 158 void push(const std::shared_ptr<FenceTime>& fence); 187 std::shared_ptr<FenceTime> createFenceTimeForTest(const sp<Fence>& fence); 191 void signalAllForTest(const sp<Fence>& fence, nsecs_t signalTime);
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | FenceTime.h | 54 explicit Snapshot(const sp<Fence>& fence); 73 sp<Fence> fence{Fence::NO_FENCE}; 79 explicit FenceTime(const sp<Fence>& fence); 80 explicit FenceTime(sp<Fence>&& fence); 120 FenceTime(const sp<Fence>& fence, bool forceValidForTest); 158 void push(const std::shared_ptr<FenceTime>& fence); 187 std::shared_ptr<FenceTime> createFenceTimeForTest(const sp<Fence>& fence); 191 void signalAllForTest(const sp<Fence>& fence, nsecs_t signalTime);
|
/frameworks/native/libs/gui/tests/ |
D | IGraphicBufferProducer_test.cpp | 158 fence = QUEUE_BUFFER_INPUT_FENCE; in QueueBufferInputBuilder() 169 fence); in build() 202 QueueBufferInputBuilder& setFence(sp<Fence> fence) { in setFence() 203 this->fence = fence; in setFence() 214 sp<Fence> fence; member 220 sp<Fence> fence; member 224 return mProducer->dequeueBuffer(&result->slot, &result->fence, w, h, format, usage, in dequeueBuffer() 228 void setupDequeueRequestBuffer(int *slot, sp<Fence> *fence, in setupDequeueRequestBuffer() argument 232 ASSERT_TRUE(fence != nullptr); in setupDequeueRequestBuffer() 240 (mProducer->dequeueBuffer(slot, fence, DEFAULT_WIDTH, DEFAULT_HEIGHT, in setupDequeueRequestBuffer() [all …]
|
D | BufferQueue_test.cpp | 82 sp<Fence> fence; in testBufferItem() local 85 &scalingMode, &transform, &fence, nullptr); 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() 194 sp<Fence> fence; in TEST_F() local 203 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F() 211 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F() 245 sp<Fence> fence; in TEST_F() local 254 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, in TEST_F() [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()
|
/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/base/libs/hwui/tests/unit/ |
D | CommonPoolTests.cpp | 59 std::condition_variable fence; in TEST() local 67 fence.notify_all(); in TEST() 69 fence.wait(lock); in TEST() 78 fence.wait(lock); in TEST() 89 fence.notify_all(); in TEST() 102 std::condition_variable fence; in TEST() local 113 fence.wait(_lock); in TEST() 132 fence.notify_all(); in TEST()
|
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
D | parcelable_unique_fd.h | 16 explicit 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/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/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/native/libs/gui/ |
D | IGraphicBufferProducer.cpp | 138 virtual status_t dequeueBuffer(int* buf, sp<Fence>* fence, uint32_t width, uint32_t height, in dequeueBuffer() argument 157 *fence = new Fence(); in dequeueBuffer() 158 result = reply.read(**fence); in dequeueBuffer() 160 fence->clear(); in dequeueBuffer() 281 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { in cancelBuffer() argument 285 data.write(*fence.get()); in cancelBuffer() 483 sp<Fence> fence(new Fence); in getLastQueuedBuffer() local 484 result = reply.read(*fence); in getLastQueuedBuffer() 490 *outFence = fence; in getLastQueuedBuffer() 587 status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, PixelFormat format, in dequeueBuffer() argument [all …]
|
D | QueueBufferInputOutput.cpp | 44 fence->getFlattenedSize() + in getFlattenedSize() 50 return fence->getFdCount(); in getFdCount() 69 status_t result = fence->flatten(buffer, size, fds, count); in flatten() 97 fence = new Fence(); in unflatten() 98 status_t result = fence->unflatten(buffer, size, fds, count); in unflatten()
|
D | ConsumerBase.cpp | 414 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFence() argument 416 return addReleaseFenceLocked(slot, graphicBuffer, fence); in addReleaseFence() 420 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { in addReleaseFenceLocked() argument 430 mSlots[slot].mFence = fence; in addReleaseFenceLocked() 443 auto incomingStatus = fence->getStatus(); in addReleaseFenceLocked() 446 mSlots[slot].mFence = fence; in addReleaseFenceLocked() 456 fenceName, mSlots[slot].mFence, fence); in addReleaseFenceLocked() 461 mSlots[slot].mFence = fence; in addReleaseFenceLocked() 473 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GeofenceState.java | 44 public GeofenceState(Geofence fence, long expireAt, CallerIdentity identity, in GeofenceState() argument 49 mFence = fence; in GeofenceState() 55 mLocation.setLatitude(fence.getLatitude()); in GeofenceState() 56 mLocation.setLongitude(fence.getLongitude()); in GeofenceState()
|
/frameworks/native/services/surfaceflinger/FrameTracer/ |
D | FrameTracer.cpp | 81 const std::shared_ptr<FenceTime>& fence, in traceFence() argument 83 FrameTracerDataSource::Trace([this, layerId, bufferID, frameNumber, &fence, type, in traceFence() 85 const nsecs_t signalTime = fence->getSignalTime(); in traceFence() 101 .fence = fence, in traceFence() 116 if (pendingFence.fence && pendingFence.fence->isValid()) { in tracePendingFencesLocked() 117 signalTime = pendingFence.fence->getSignalTime(); in tracePendingFencesLocked()
|
/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/base/libs/hwui/renderthread/ |
D | EglManager.cpp | 464 fence(); in swapBuffers() 488 void EglManager::fence() { in fence() function in android::uirenderer::renderthread::EglManager 489 EGLSyncKHR fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL); in fence() local 490 eglClientWaitSyncKHR(mEglDisplay, fence, EGL_SYNC_FLUSH_COMMANDS_BIT_KHR, EGL_FOREVER_KHR); in fence() 491 eglDestroySyncKHR(mEglDisplay, fence); in fence() 515 static status_t waitForeverOnFence(int fence, const char* logname) { in waitForeverOnFence() argument 517 if (fence == -1) { in waitForeverOnFence() 521 int err = sync_wait(fence, warningTimeout); in waitForeverOnFence() 523 ALOGE("%s: fence %d didn't signal in %d ms", logname, fence, warningTimeout); in waitForeverOnFence() 524 err = sync_wait(fence, -1); in waitForeverOnFence() [all …]
|
/frameworks/native/libs/vr/libbufferhub/ |
D | buffer_hub-test.cpp | 86 LocalHandle fence; in TEST_F() local 87 EXPECT_EQ(0, c1->Acquire(&fence)); in TEST_F() 91 EXPECT_EQ(0, c2->Acquire(&fence)); in TEST_F() 100 EXPECT_EQ(0, p->Gain(&fence)); in TEST_F() 215 LocalHandle fence; in TEST_F() local 219 EXPECT_EQ(-EBUSY, c->Acquire(&fence)); in TEST_F() 226 EXPECT_EQ(-EBUSY, p->Gain(&fence)); in TEST_F() 229 EXPECT_EQ(0, c->Acquire(&fence)); in TEST_F() 232 EXPECT_EQ(-EBUSY, c->Acquire(&fence)); in TEST_F() 234 EXPECT_EQ(-EBUSY, p->Gain(&fence)); in TEST_F() [all …]
|
/frameworks/native/libs/nativewindow/include/android/ |
D | hardware_buffer.h | 432 int32_t fence, const ARect* rect, void** outVirtualAddress) __INTRODUCED_IN(26); 462 int32_t fence, const ARect* rect, AHardwareBuffer_Planes* outPlanes) __INTRODUCED_IN(29); 482 int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence) __INTRODUCED_IN(26); 541 int32_t fence, const ARect* rect, void** outVirtualAddress,
|
/frameworks/native/libs/gui/bufferqueue/1.0/ |
D | H2BGraphicBufferProducer.cpp | 216 inline size_t getFenceFdCount(hidl_handle const& fence) { in getFenceFdCount() argument 217 return native_handle_read_fd(fence) == -1 ? 0 : 1; in getFenceFdCount() 235 inline status_t unflattenFence(hidl_handle* fence, native_handle_t** nh, in unflattenFence() argument 257 *fence = *nh; in unflattenFence() 262 *fence = hidl_handle(); in unflattenFence() 278 inline status_t flattenFence(hidl_handle const& fence, in flattenFence() argument 280 if (size < getFenceFlattenedSize(fence) || in flattenFence() 281 numFds < getFenceFdCount(fence)) { in flattenFence() 287 static_cast<uint32_t>(getFenceFdCount(fence))); in flattenFence() 288 int fd = native_handle_read_fd(fence); in flattenFence() [all …]
|
/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);
|