/frameworks/av/media/libstagefright/omx/ |
H A D | SoftVideoEncoderOMXComponent.cpp | 561 sp<Fence> fence = new Fence(nativeMeta.nFenceFd); local 563 status_t err = fence->wait(IOMX::kFenceTimeoutMs); 565 ALOGE("Timed out waiting on input fence");
|
H A D | OMXNodeInstance.cpp | 1686 // propagate fence if component supports it; wait for it otherwise 1692 ALOGE("fence (%d) already exists in meta", nativeMeta.nFenceFd); 1700 CLOG_BUFFER(storeFenceInMeta, "waiting for fence %d", fenceFd); 1701 sp<Fence> fence = new Fence(fenceFd); local 1702 return fence->wait(IOMX::kFenceTimeoutMs);
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | ZslProcessor.cpp | 443 sp<Fence> fence; local 444 auto rc = mInputProducer->detachNextBuffer(&gb, &fence);
|
/frameworks/base/libs/hwui/hwui/ |
H A D | Bitmap.cpp | 120 fence = eglCreateSyncKHR(mDisplay, EGL_SYNC_FENCE_KHR, NULL); 124 if (fence != EGL_NO_SYNC_KHR) { 125 eglDestroySyncKHR(mDisplay, fence); 129 EGLSyncKHR fence = EGL_NO_SYNC_KHR; member in class:android::AutoEglFence 197 // The fence is used to wait for the texture upload to finish 201 if (autoFence.fence == EGL_NO_SYNC_KHR) { 202 LOG_ALWAYS_FATAL("Could not create sync fence %#x", eglGetError()); 207 EGLint waitStatus = eglClientWaitSyncKHR(display, autoFence.fence, 210 LOG_ALWAYS_FATAL("Failed to wait for the fence %#x", eglGetError());
|
/frameworks/base/media/jni/ |
H A D | android_media_ImageWriter.cpp | 154 sp<Fence> fence; local 157 mProducer->detachNextBuffer(&buffer, &fence); 357 // 3. need use lockAsync here, as it will handle the dequeued fence for us automatically. 629 // no need to use fence here, as we it will be consumed by either cancel or queue buffer.
|
/frameworks/native/libs/gui/ |
H A D | IGraphicBufferProducer.cpp | 127 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, uint32_t width, argument 146 *fence = new Fence(); 147 result = reply.read(**fence); 149 fence->clear(); 259 virtual status_t cancelBuffer(int buf, const sp<Fence>& fence) { argument 263 data.write(*fence.get()); 447 sp<Fence> fence(new Fence); 448 result = reply.read(*fence); 450 ALOGE("getLastQueuedBuffer failed to read fence: %d", result); 454 *outFence = fence; 661 sp<Fence> fence = Fence::NO_FENCE; local 684 sp<Fence> fence; local 726 sp<Fence> fence = new Fence(); local [all...] |
H A D | BufferQueueProducer.cpp | 479 BQ_LOGE("dequeueBuffer: about to return a NULL fence - " 486 // Don't return a fence in shared buffer mode, except for the first 551 BQ_LOGE("dequeueBuffer: error %#x waiting for fence", 554 BQ_LOGE("dequeueBuffer: timeout waiting for fence"); 770 BQ_LOGE("queueBuffer: fence is NULL"); 1012 status_t BufferQueueProducer::cancelBuffer(int slot, const sp<Fence>& fence) { argument 1040 } else if (fence == NULL) { 1041 BQ_LOGE("cancelBuffer: fence is NULL"); 1059 mSlots[slot].mFence = fence;
|
H A D | GLConsumer.cpp | 305 // if we're detached, we just use the fence that was created in detachFromContext() 481 pendingRelease->fence = mEglSlots[mCurrentTexture].mEglFence; 585 void GLConsumer::setReleaseFence(const sp<Fence>& fence) { argument 586 if (fence->isValid() && 589 mCurrentTextureImage->graphicBuffer(), fence); 591 GLC_LOGE("setReleaseFence: failed to add the fence: %s (%d)", 703 GLC_LOGE("syncForReleaseLocked: error creating EGL fence: %#x", 711 GLC_LOGE("syncForReleaseLocked: error dup'ing native fence " 715 sp<Fence> fence(new Fence(fenceFd)); 717 mCurrentTextureImage->graphicBuffer(), fence); 724 EGLSyncKHR fence = mEglSlots[mCurrentTexture].mEglFence; local [all...] |
H A D | Surface.cpp | 404 sp<Fence> fence(new Fence(fenceFd)); 405 int waitResult = fence->waitForever("dequeueBuffer_DEPRECATED"); 503 sp<Fence> fence; local 507 status_t result = mGraphicBufferProducer->dequeueBuffer(&buf, &fence, 533 ALOGE_IF(fence == NULL, "Surface::dequeueBuffer: received null Fence! buf=%d", buf); 550 mGraphicBufferProducer->cancelBuffer(buf, fence); 555 if (fence->isValid()) { 556 *fenceFd = fence->dup(); 558 ALOGE("dequeueBuffer: error duping fence: %d", errno); 598 sp<Fence> fence(fenceF [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | DispSync.cpp | 422 bool DispSync::addPresentFence(const sp<Fence>& fence) { argument 425 mPresentFences[mPresentSampleOffset] = fence; 680 result.appendFormat(" [unsignaled fence]\n");
|
H A D | Layer.cpp | 963 // acquire fence the first time a new buffer is acquired on EACH display. 966 sp<Fence> fence = mSurfaceFlingerConsumer->getCurrentFence(); local 967 if (fence->isValid()) { 968 fenceFd = fence->dup(); 970 ALOGW("failed to dup layer fence, skipping sync: %d", errno); 1307 // Even though this buffer's fence may not have signaled yet, it could 2033 // There was no fence for this frame, so assume that it was ready 2148 // If the head buffer's acquire fence hasn't signaled yet, return and
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | VirtualDisplaySurface.cpp | 214 // At this point we know the output buffer acquire fence, 341 PixelFormat format, uint32_t usage, int* sslot, sp<Fence>* fence) { 344 status_t result = mSource[source]->dequeueBuffer(sslot, fence, 371 mSource[source]->cancelBuffer(*sslot, *fence); 383 status_t VirtualDisplaySurface::dequeueBuffer(int* pslot, sp<Fence>* fence, argument 388 pslot, fence, w, h, format, usage, outTimestamps); 440 *fence = mOutputFence; 443 result = dequeueBuffer(source, format, usage, &sslot, fence); 490 // slot and fence as we just queued. 507 // Extract the GLES release fence fo 340 dequeueBuffer(Source source, PixelFormat format, uint32_t usage, int* sslot, sp<Fence>* fence) argument 526 cancelBuffer(int pslot, const sp<Fence>& fence) argument [all...] |
H A D | ComposerHal.cpp | 951 // (layer id, release fence index) pairs 961 auto fence = readFence(); local 964 mCurrentReturnData->releaseFences.push_back(fence); 989 for (auto fence : data.second.releaseFences) { 990 if (fence >= 0) { 991 close(fence);
|
H A D | HWC2.cpp | 591 sp<Fence> fence(new Fence(fenceFds[element])); 592 releaseFences.emplace(std::move(layer), fence); local
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
H A D | Hwc2TestBuffer.cpp | 35 /* Returns a fence from egl */ 36 typedef void (*FenceCallback)(int32_t fence, void* callbackArgs); 38 /* Returns fence to fence generator */ 39 static void setFence(int32_t fence, void* fenceGenerator); 46 /* Listens for a new frame, detaches the buffer and returns the fence 109 * fence for testing. Egl can generate buffers along with a valid fence. 111 * a CPU filled buffer is used instead. The Egl fence is used along with the 265 /* It is not possible to simply generate a fence 305 set(int32_t fence) argument 326 setFence(int32_t fence, void* fenceGenerator) argument [all...] |
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderProxy.cpp | 96 // This is also a fence as we need to be certain that there are no 247 // destroyCanvasAndSurface() needs a fence as when it returns the 370 CREATE_BRIDGE0(fence) { 378 void RenderProxy::fence() { function in class:android::uirenderer::renderthread::RenderProxy 379 SETUP_TASK(fence); 385 SETUP_TASK(fence);
|
/frameworks/base/location/java/android/location/ |
H A D | LocationManager.java | 991 Geofence fence = Geofence.createCircle(latitude, longitude, radius); 994 mService.requestGeofence(request, fence, intent, mContext.getPackageName()); 1017 * a geo-fence without notification, but the system will do its best 1026 * @param fence a geographical description of the geofence area 1029 * @throws IllegalArgumentException if fence is null 1037 public void addGeofence(LocationRequest request, Geofence fence, PendingIntent intent) { argument 1039 checkGeofence(fence); 1042 mService.requestGeofence(request, fence, intent, mContext.getPackageName()); 1081 * @param fence a geofence previously passed to {@link #addGeofence} 1084 * @throws IllegalArgumentException if fence i 1091 removeGeofence(Geofence fence, PendingIntent intent) argument 2129 checkGeofence(Geofence fence) argument [all...] |
/frameworks/native/libs/gui/bufferqueue/1.0/ |
H A D | H2BGraphicBufferProducer.cpp | 189 * \brief Return the size of the non-fd buffer required to flatten a fence. 191 * \param[in] fence The input fence of type `hidl_handle`. 198 inline size_t getFenceFlattenedSize(hidl_handle const& /* fence */) { 203 * \brief Return the number of file descriptors contained in a fence. 205 * \param[in] fence The input fence of type `hidl_handle`. 206 * \return `0` if \p fence does not contain a valid file descriptor, or `1` 209 inline size_t getFenceFdCount(hidl_handle const& fence) { argument 210 return native_handle_read_fd(fence) 228 unflattenFence(hidl_handle* fence, native_handle_t** nh, void const*& buffer, size_t& size, int const*& fds, size_t& numFds) argument 271 flattenFence(hidl_handle const& fence, void*& buffer, size_t& size, int*& fds, size_t& numFds) argument 991 dequeueBuffer( int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, ::android::PixelFormat format, uint32_t usage, FrameEventHistoryDelta* outTimestamps) argument 1090 cancelBuffer(int slot, const sp<Fence>& fence) argument [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | Surface_test.cpp | 234 sp<Fence> fence; local 235 ASSERT_EQ(NO_ERROR, surface->detachNextBuffer(&graphicBuffer, &fence)); 314 int fence; local 316 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fence)); 318 ASSERT_EQ(NO_ERROR, window->queueBuffer(window.get(), buffer, fence)); 320 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fence)); 321 ASSERT_EQ(NO_ERROR, window->queueBuffer(window.get(), buffer, fence)); 559 // Verify the acquire fence being added isn't the one from the consumer. 561 // Override the fence, so we can verify this was called by the 575 std::shared_ptr<FenceTime> createFenceTime(const sp<Fence>& fence) 763 int fence = -1; local 878 int fence; local 939 int fence; local [all...] |
/frameworks/native/services/vr/hardware_composer/impl/ |
H A D | vr_hwc.cpp | 89 base::unique_fd fence) { 93 fence_ = new Fence(fence.release()); 186 .fence = fence_.get() ? fence_ : new Fence(-1), 197 if (!layer.info.buffer.get() || !layer.info.fence.get()) { 457 base::unique_fd fence(acquireFence); 466 if (!display_ptr->SetClientTarget(target, std::move(fence))) 474 base::unique_fd fence(releaseFence); 532 base::unique_fd fence; local 534 fence = observer_->OnNewFrame(frame); 536 if (fence 88 SetClientTarget(const native_handle_t* handle, base::unique_fd fence) argument [all...] |
/frameworks/rs/rsov/driver/ |
H A D | rsovScript.cpp | 546 VkFence fence; local 554 vkCreateFence(mDevice, &fenceInfo, NULL, &fence); 556 vkQueueSubmit(mRSoV->getQueue(), 1, &submit_info, fence); 560 res = vkWaitForFences(mDevice, 1, &fence, VK_TRUE, 100000); 565 vkDestroyFence(mDevice, fence, NULL);
|
/frameworks/base/core/java/android/view/ |
H A D | ThreadedRenderer.java | 836 void fence() { method in class:ThreadedRenderer
|
/frameworks/native/vulkan/libvulkan/ |
H A D | swapchain.cpp | 227 // The fence is only valid when the buffer is dequeued, and should be 251 "ReleaseSwapchainImage: can't provide a release fence for " 1212 // the semaphore and fence passed to us will be signalled. 1247 ALOGE("dup(fence) failed, stalling until signalled: %s (%d)", 1352 int fence = -1; local 1355 present_info->pWaitSemaphores, img.image, &fence); 1440 err = window->queueBuffer(window, img.buffer.get(), fence); 1441 // queueBuffer always closes fence, even on error 1480 ReleaseSwapchainImage(device, window, fence, img); 1484 ReleaseSwapchainImage(device, nullptr, fence, im [all...] |
/frameworks/native/vulkan/nulldrv/ |
H A D | null_driver.cpp | 941 int fence, 944 close(fence); 952 int* fence) { 953 *fence = -1; 1005 VkFence* fence) { 1006 *fence = AllocHandle<VkFence>(device, HandleType::kFence); 1146 VkResult QueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmitInfo, VkFence fence) { argument 1201 VkResult QueueBindSparse(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence) { argument 1206 void DestroyFence(VkDevice device, VkFence fence, const VkAllocationCallbacks* allocator) { argument 1213 VkResult GetFenceStatus(VkDevice device, VkFence fence) { argument 939 AcquireImageANDROID(VkDevice, VkImage, int fence, VkSemaphore, VkFence) argument 948 QueueSignalReleaseImageANDROID(VkQueue, uint32_t, const VkSemaphore*, VkImage, int* fence) argument 1002 CreateFence(VkDevice device, const VkFenceCreateInfo*, const VkAllocationCallbacks* , VkFence* fence) argument [all...] |
/frameworks/av/media/libstagefright/ |
H A D | ACodec.cpp | 497 ALOGW("OVERWRITE OF %s fence %d by write fence %d in %s", 506 ALOGW("OVERWRITE OF %s fence %d by read fence %d in %s", 515 ALOGD("REUSING read fence %d as write fence in %s", mFenceFd, dbg); 521 ALOGD("REUSING write fence %d as read fence in %s", mFenceFd, dbg); 1333 // Initialize fence fd to -1 to avoid warning in freeBuffer(). 1370 sp<Fence> fence local [all...] |