/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
H A D | parcelable_unique_fd.h | 16 ParcelableUniqueFd(const base::unique_fd& fence); 19 void set_fence(const base::unique_fd& fence) { argument 20 fence_.reset(dup(fence.get())); 22 base::unique_fd fence() const { return base::unique_fd(dup(fence_.get())); } function in class:android::dvr::ParcelableUniqueFd
|
H A D | parcelable_unique_fd.cpp | 10 ParcelableUniqueFd::ParcelableUniqueFd(const base::unique_fd& fence) argument 11 : fence_(dup(fence.get())) {}
|
/frameworks/native/libs/ui/ |
H A D | FenceTime.cpp | 48 FenceTime::FenceTime(const sp<Fence>& fence) argument 49 : mState(((fence.get() != nullptr) && fence->isValid()) ? 51 mFence(fence), 56 FenceTime::FenceTime(sp<Fence>&& fence) argument 57 : mState(((fence.get() != nullptr) && fence->isValid()) ? 59 mFence(std::move(fence)), 79 ALOGE("applyTrustedSnapshot: Unexpected fence."); 108 // underlying fence i 123 sp<Fence> fence; local 182 FenceTime(const sp<Fence>& fence, bool forceValidForTest) argument 274 push(const std::shared_ptr<FenceTime>& fence) argument 296 std::shared_ptr<FenceTime> fence = mQueue.front().lock(); local 317 createFenceTimeForTest( const sp<Fence>& fence) argument 327 signalAllForTest( const sp<Fence>& fence, nsecs_t signalTime) argument [all...] |
/frameworks/av/media/libmedia/omx/1.0/ |
H A D | WOmxBufferSource.cpp | 54 hidl_handle fence; local 56 if (!wrapAs(&fence, &fenceNh, fenceParcel)) { 59 "Invalid fence"); 63 static_cast<uint32_t>(bufferId), fence)); 95 uint32_t buffer, hidl_handle const& fence) { 97 if (!convertTo(&fenceParcelable, fence)) { 94 onInputBufferEmptied( uint32_t buffer, hidl_handle const& fence) argument
|
/frameworks/av/media/libstagefright/omx/1.0/ |
H A D | WOmxBufferSource.cpp | 54 hidl_handle fence; local 56 if (!wrapAs(&fence, &fenceNh, fenceParcel)) { 59 "Invalid fence"); 63 static_cast<uint32_t>(bufferId), fence)); 95 uint32_t buffer, hidl_handle const& fence) { 97 if (!convertTo(&fenceParcelable, fence)) { 94 onInputBufferEmptied( uint32_t buffer, hidl_handle const& fence) argument
|
/frameworks/native/include/ui/ |
H A D | FenceTime.h | 33 // A wrapper around fence that only implements isValid and getSignalTime. 34 // It automatically closes the fence in a thread-safe manner once the signal 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); 97 // This method should only be called when replacing the fence with 99 // of a fence, the snapshot should come from a trusted source. 124 FenceTime(const sp<Fence>& fence, bool forceValidForTest); 146 // Can be used to get the signal time of a fence an [all...] |
/frameworks/native/libs/ui/include/ui/ |
H A D | FenceTime.h | 33 // A wrapper around fence that only implements isValid and getSignalTime. 34 // It automatically closes the fence in a thread-safe manner once the signal 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); 97 // This method should only be called when replacing the fence with 99 // of a fence, the snapshot should come from a trusted source. 124 FenceTime(const sp<Fence>& fence, bool forceValidForTest); 146 // Can be used to get the signal time of a fence an [all...] |
/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | FenceTime.h | 33 // A wrapper around fence that only implements isValid and getSignalTime. 34 // It automatically closes the fence in a thread-safe manner once the signal 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); 97 // This method should only be called when replacing the fence with 99 // of a fence, the snapshot should come from a trusted source. 124 FenceTime(const sp<Fence>& fence, bool forceValidForTest); 146 // Can be used to get the signal time of a fence an [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | TestWindowContext.h | 49 void fence();
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | GeofenceState.java | 44 double mDistanceToCenter; // current distance to center of fence 46 public GeofenceState(Geofence fence, long expireAt, argument 51 mFence = fence; 59 mLocation.setLatitude(fence.getLatitude()); 60 mLocation.setLongitude(fence.getLongitude()); 65 * @return FLAG_ENTER or FLAG_EXIT if the fence was crossed, 0 otherwise 88 * Gets the distance from the current location to the fence's boundary.
|
/frameworks/native/libs/vr/libbufferhubqueue/tests/ |
H A D | buffer_hub_queue-test.cpp | 99 LocalHandle fence; local 103 auto p1_status = producer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence); 113 auto c1_status = consumer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence); 129 LocalHandle fence; local 146 auto status = consumer_queue_->Dequeue(kNoTimeout, &slot, &mo, &fence); 152 // Use eventfd as a stand-in for a fence. 158 consumer_queue_->Dequeue(kNoTimeout, &slot, &mo, &fence); 165 producer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence); 174 consumer_status = consumer_queue_->Dequeue(kTimeoutMs, &slot, &mo, &fence); 176 EXPECT_TRUE(fence 207 LocalHandle fence; member in struct:android::dvr::__anon1697::Entry 308 LocalHandle fence; local 395 LocalHandle fence; local 438 LocalHandle fence; local 462 LocalHandle fence; local 479 LocalHandle fence; local 542 LocalHandle fence; local 562 LocalHandle fence; local 646 LocalHandle fence; local 790 LocalHandle fence; local 857 LocalHandle fence; local [all...] |
/frameworks/native/services/vr/hardware_composer/ |
H A D | vr_composer.cpp | 70 ParcelableUniqueFd fence; local 71 binder::Status ret = callback_->onNewFrame(parcelable_frame, &fence); 75 return fence.fence();
|
/frameworks/native/services/vr/hardware_composer/tests/ |
H A D | vr_composer_test.cpp | 40 ParcelableUniqueFd* /* fence */) override { 58 ParcelableUniqueFd* fence) override { 59 binder::Status status = TestComposerCallback::onNewFrame(frame, fence); 63 fence->set_fence(fd); 104 base::unique_fd fence = composer_->OnNewFrame(frame); local 105 ASSERT_EQ(-1, fence.get()); 116 base::unique_fd fence = composer_->OnNewFrame(frame); local 117 ASSERT_EQ(-1, fence.get()); 133 .fence = new Fence(eventfd(0, 0)), 141 base::unique_fd fence local [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | IGraphicBufferProducer_test.cpp | 158 fence = QUEUE_BUFFER_INPUT_FENCE; 169 fence); 202 QueueBufferInputBuilder& setFence(sp<Fence> fence) { argument 203 this->fence = fence; 214 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::QueueBufferInputBuilder 220 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::DequeueBufferResult 224 return mProducer->dequeueBuffer(&result->slot, &result->fence, w, h, format, usage, 228 void setupDequeueRequestBuffer(int *slot, sp<Fence> *fence, argument 232 ASSERT_TRUE(fence ! 686 sp<Fence> fence; local 695 sp<Fence> fence; local 709 sp<Fence> fence; local 731 sp<Fence> fence; local 747 sp<Fence> fence; local 764 sp<Fence> fence; local 777 sp<Fence> fence; local [all...] |
H A D | BufferQueue_test.cpp | 82 sp<Fence> fence; local 85 &scalingMode, &transform, &fence, NULL); 92 ASSERT_EQ(fence, item.mFence); 144 sp<Fence> fence; local 147 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, 182 sp<Fence> fence; local 191 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, 199 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, GRALLOC_USAGE_SW_READ_OFTEN, 233 sp<Fence> fence; local 242 mProducer->dequeueBuffer(&slot, &fence, 270 sp<Fence> fence; local 335 sp<Fence> fence; local 384 sp<Fence> fence; local 443 sp<Fence> fence; local 491 sp<Fence> fence; local 527 sp<Fence> fence; local 569 sp<Fence> fence; local 620 sp<Fence> fence; local 686 sp<Fence> fence; local 740 sp<Fence> fence = Fence::NO_FENCE; local 767 sp<Fence> fence = Fence::NO_FENCE; local 777 sp<Fence> fence = Fence::NO_FENCE; local 821 sp<Fence> fence; local 874 sp<Fence> fence = Fence::NO_FENCE; local 1010 sp<Fence> fence = Fence::NO_FENCE; local 1088 sp<Fence> fence = Fence::NO_FENCE; local 1129 sp<Fence> fence = Fence::NO_FENCE; local [all...] |
H A D | StreamSplitter_test.cpp | 82 sp<Fence> fence; local 85 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, 119 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, 154 sp<Fence> fence; local 157 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, 194 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, 218 sp<Fence> fence; local 221 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN, 235 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, GRALLOC_USAGE_SW_WRITE_OFTEN,
|
/frameworks/av/include/media/stagefright/ |
H A D | FrameRenderTracker.h | 39 // queue fence (read fence). mIndex is negative, and mRenderTimeNs is invalid. 42 // 2. dequeued frame: mFence is updated with the dequeue fence (write fence). mIndex is set. 61 const sp<Fence> &fence) 66 mFence(fence) { 99 // queued to the output surface using |fence|. 101 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence); 104 // |fenceFd| is the dequeue fence, and |index| is a positive buffer ID to be usable by the 117 // unrendered frame, as well as any dropped frames (those with invalid fence) u 60 RenderedFrameInfo(int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) argument [all...] |
/frameworks/av/media/libstagefright/include/media/stagefright/ |
H A D | FrameRenderTracker.h | 39 // queue fence (read fence). mIndex is negative, and mRenderTimeNs is invalid. 42 // 2. dequeued frame: mFence is updated with the dequeue fence (write fence). mIndex is set. 61 const sp<Fence> &fence) 66 mFence(fence) { 99 // queued to the output surface using |fence|. 101 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence); 104 // |fenceFd| is the dequeue fence, and |index| is a positive buffer ID to be usable by the 117 // unrendered frame, as well as any dropped frames (those with invalid fence) u 60 RenderedFrameInfo(int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) argument [all...] |
/frameworks/native/libs/vr/libvrflinger/ |
H A D | acquired_buffer.cpp | 17 LocalHandle fence; local 18 const int ret = buffer->Acquire(&fence); 30 acquire_fence_ = std::move(fence); 56 // Only check the fence if the acquire fence is not empty. 64 // The fence is completed, so to avoid further calls to sync_wait we close
|
/frameworks/native/include/gui/ |
H A D | BufferQueueConsumer.h | 61 // being accessed. The fence will signal when the buffer is no longer 73 EGLSyncKHR fence); 160 EGLDisplay display, EGLSyncKHR fence, 162 return releaseBuffer(buf, frameNumber, releaseFence, display, fence); 159 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
|
/frameworks/native/libs/gui/include/gui/ |
H A D | BufferQueueConsumer.h | 61 // being accessed. The fence will signal when the buffer is no longer 73 EGLSyncKHR fence); 160 EGLDisplay display, EGLSyncKHR fence, 162 return releaseBuffer(buf, frameNumber, releaseFence, display, fence); 159 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
|
/frameworks/native/services/surfaceflinger/ |
H A D | MonitoredProducer.cpp | 58 status_t MonitoredProducer::dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, argument 62 return mProducer->dequeueBuffer(slot, fence, w, h, format, usage, outBufferAge, outTimestamps); 84 status_t MonitoredProducer::cancelBuffer(int slot, const sp<Fence>& fence) { argument 85 return mProducer->cancelBuffer(slot, fence);
|
/frameworks/native/libs/gui/ |
H A D | IGraphicBufferProducer.cpp | 131 virtual status_t dequeueBuffer(int* buf, sp<Fence>* fence, uint32_t width, uint32_t height, argument 150 *fence = new Fence(); 151 result = reply.read(**fence); 153 fence->clear(); 274 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { argument 278 data.write(*fence.get()); 462 sp<Fence> fence(new Fence); 463 result = reply.read(*fence); 465 ALOGE("getLastQueuedBuffer failed to read fence: %d", result); 469 *outFence = fence; 772 sp<Fence> fence = Fence::NO_FENCE; local 796 sp<Fence> fence; local 838 sp<Fence> fence = new Fence(); local [all...] |
/frameworks/native/libs/nativewindow/include/android/ |
H A D | hardware_buffer.h | 245 * specific reasons. If fence is not negative, then it specifies a fence file 275 int32_t fence, const ARect* rect, void** outVirtualAddress); 279 * are completed by the caller. If fence is not NULL then it will be set to a 281 * completed. The caller is responsible for closing the fence when it is no 287 int AHardwareBuffer_unlock(AHardwareBuffer* buffer, int32_t* fence);
|
/frameworks/native/vulkan/include/vulkan/ |
H A D | vk_android_native_buffer.h | 90 typedef VkResult (VKAPI_PTR *PFN_vkAcquireImageANDROID)(VkDevice device, VkImage image, int nativeFenceFd, VkSemaphore semaphore, VkFence fence); 116 VkFence fence
|