Searched refs:fence (Results 26 - 50 of 73) sorted by relevance

123

/frameworks/native/vulkan/libvulkan/
H A Dswapchain.h35 VKAPI_ATTR VkResult AcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain_handle, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* image_index);
H A Ddriver_gen.cpp58 VKAPI_ATTR VkResult checkedAcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex) { argument
60 return AcquireNextImageKHR(device, swapchain, timeout, semaphore, fence, pImageIndex);
H A Dapi_gen.cpp298 VKAPI_ATTR VkResult QueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence);
314 VKAPI_ATTR VkResult QueueBindSparse(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence);
316 VKAPI_ATTR void DestroyFence(VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator);
318 VKAPI_ATTR VkResult GetFenceStatus(VkDevice device, VkFence fence);
425 VKAPI_ATTR VkResult AcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex);
682 VKAPI_ATTR VkResult QueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence) { argument
683 return GetData(queue).dispatch.QueueSubmit(queue, submitCount, pSubmits, fence);
746 VKAPI_ATTR VkResult QueueBindSparse(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence) { argument
747 return GetData(queue).dispatch.QueueBindSparse(queue, bindInfoCount, pBindInfo, fence);
754 VKAPI_ATTR void DestroyFence(VkDevice device, VkFence fence, cons argument
762 GetFenceStatus(VkDevice device, VkFence fence) argument
1190 AcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex) argument
1303 vkQueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmits, VkFence fence) argument
1383 vkQueueBindSparse(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence) argument
1393 vkDestroyFence(VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator) argument
1403 vkGetFenceStatus(VkDevice device, VkFence fence) argument
1938 vkAcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex) argument
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DVirtualDisplaySurface.cpp217 // At this point we know the output buffer acquire fence,
344 PixelFormat format, uint32_t usage, int* sslot, sp<Fence>* fence) {
347 status_t result = mSource[source]->dequeueBuffer(sslot, fence,
374 mSource[source]->cancelBuffer(*sslot, *fence);
386 status_t VirtualDisplaySurface::dequeueBuffer(int* pslot, sp<Fence>* fence, argument
389 return mSource[SOURCE_SINK]->dequeueBuffer(pslot, fence, w, h, format, usage);
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
343 dequeueBuffer(Source source, PixelFormat format, uint32_t usage, int* sslot, sp<Fence>* fence) argument
525 cancelBuffer(int pslot, const sp<Fence>& fence) argument
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DEglManager.cpp335 fence();
361 void EglManager::fence() { function in class:android::uirenderer::renderthread::EglManager
362 EGLSyncKHR fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL); local
363 eglClientWaitSyncKHR(mEglDisplay, fence,
365 eglDestroySyncKHR(mEglDisplay, fence);
H A DEglManager.h84 void fence();
/frameworks/native/libs/gui/
H A DSurface.cpp203 sp<Fence> fence(new Fence(fenceFd));
204 int waitResult = fence->waitForever("dequeueBuffer_DEPRECATED");
296 sp<Fence> fence; local
298 status_t result = mGraphicBufferProducer->dequeueBuffer(&buf, &fence,
314 ALOGE_IF(fence == NULL, "Surface::dequeueBuffer: received null Fence! buf=%d", buf);
324 mGraphicBufferProducer->cancelBuffer(buf, fence);
329 if (fence->isValid()) {
330 *fenceFd = fence->dup();
332 ALOGE("dequeueBuffer: error duping fence: %d", errno);
372 sp<Fence> fence(fenceF
[all...]
H A DGLConsumer.cpp304 // if we're detached, we just use the fence that was created in detachFromContext()
478 pendingRelease->fence = mEglSlots[mCurrentTexture].mEglFence;
580 void GLConsumer::setReleaseFence(const sp<Fence>& fence) { argument
581 if (fence->isValid() &&
584 mCurrentTextureImage->graphicBuffer(), fence);
586 GLC_LOGE("setReleaseFence: failed to add the fence: %s (%d)",
698 GLC_LOGE("syncForReleaseLocked: error creating EGL fence: %#x",
706 GLC_LOGE("syncForReleaseLocked: error dup'ing native fence "
710 sp<Fence> fence(new Fence(fenceFd));
712 mCurrentTextureImage->graphicBuffer(), fence);
719 EGLSyncKHR fence = mEglSlots[mCurrentTexture].mEglFence; local
[all...]
H A DStreamSplitter.cpp193 sp<Fence> fence; local
194 status_t status = from->detachNextBuffer(&buffer, &fence);
210 // Merge the release fence of the incoming buffer so that the fence we send
212 tracker->mergeFence(fence);
H A DCpuConsumer.cpp235 sp<Fence> fence(new Fence(fd));
239 fence);
H A DBufferQueueProducer.cpp472 BQ_LOGE("dequeueBuffer: about to return a NULL fence - "
479 // Don't return a fence in shared buffer mode, except for the first
542 BQ_LOGE("dequeueBuffer: error %#x waiting for fence",
545 BQ_LOGE("dequeueBuffer: timeout waiting for fence");
742 sp<Fence> fence; local
744 &transform, &fence, &stickyTransform);
747 if (fence == NULL) {
748 BQ_LOGE("queueBuffer: fence is NULL");
823 mSlots[slot].mFence = fence;
842 item.mFence = fence;
954 cancelBuffer(int slot, const sp<Fence>& fence) argument
[all...]
/frameworks/av/media/libstagefright/
H A DFrameRenderTracker.cpp46 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) {
47 mRenderQueue.emplace_back(mediaTimeUs, graphicBuffer, fence);
66 // could have been canceled after fence has signaled
75 // was this frame dropped (we could also infer this if the fence is invalid or a dup of
76 // the queued fence; however, there is no way to figure that out.)
83 // store dequeue fence and buffer index
121 // check if fence signaled
123 if (signalTime < 0) { // invalid fence
125 } else if (signalTime == INT64_MAX) { // unsignaled fence
181 ALOGI(" QUEUED: handle: %p, media time: %lldus, fence
45 onFrameQueued( int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) argument
[all...]
H A DMediaSync.cpp721 sp<Fence> fence; local
722 status_t status = mOutput->detachNextBuffer(&buffer, &fence);
747 returnBufferToInput_l(buffer, fence);
751 const sp<GraphicBuffer> &buffer, const sp<Fence> &fence) {
769 EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, fence);
750 returnBufferToInput_l( const sp<GraphicBuffer> &buffer, const sp<Fence> &fence) argument
/frameworks/base/services/core/java/com/android/server/location/
H A DGeofenceManager.java143 public void removeFence(Geofence fence, PendingIntent intent) { argument
145 Slog.d(TAG, "removeFence: fence=" + fence + ", intent=" + intent);
154 if (fence == null) {
159 if (fence.equals(state.mFence)) {
255 // Keep track of the distance to the nearest fence.
301 // Compute a location update interval based on the distance to the nearest fence.
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlingerConsumer.h82 virtual void setReleaseFence(const sp<Fence>& fence) override;
105 // A release that is pending on the receipt of a new release fence from
110 // The release fence of the already displayed buffer (previous frame).
/frameworks/native/include/gui/
H A DGLConsumer.h108 // setReleaseFence stores a fence that will signal when the current buffer
109 // is no longer being read. This fence will be returned to the producer
112 // union fence.
113 virtual void setReleaseFence(const sp<Fence>& fence);
186 // getCurrentFence returns the fence indicating when the current buffer is
264 graphicBuffer(), display(nullptr), fence(nullptr) {}
270 EGLSyncKHR fence; member in struct:android::GLConsumer::PendingRelease
368 // current slot's fence to guard against a producer accessing the buffer
398 // mCurrentFence is the fence received from BufferQueue in updateTexImage.
H A DBufferQueueProducer.h54 // The outFence parameter will be updated to hold the fence associated with
56 // fence signals. If the fence is Fence::NO_FENCE, the buffer may be
105 // The caller may provide a fence that signals when all rendering
118 // The buffer will not be overwritten until the fence signals. The fence
120 virtual status_t cancelBuffer(int slot, const sp<Fence>& fence);
221 // This saves the fence from the last queueBuffer, such that the
223 // queueBuffer's fence is not nessessarily available elsewhere,
H A DIGraphicBufferConsumer.h124 // being accessed. The fence will signal when the buffer is no longer
144 // * the fence was NULL
147 EGLDisplay display, EGLSyncKHR fence,
/frameworks/base/location/java/android/location/
H A DLocationManager.java991 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
2279 checkGeofence(Geofence fence) argument
[all...]
H A DILocationManager.aidl47 void removeGeofence(in Geofence fence, in PendingIntent intent, String packageName);
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3OutputStream.cpp256 // Fence management - always honor release fence from HAL
652 sp<Fence> fence; local
653 status_t res = mConsumer->detachNextBuffer(buffer, &fence);
669 if (fence!= 0 && fence->isValid()) {
670 *fenceFd = fence->dup();
H A DStatusTracker.cpp123 // - If invalid fence or error, returns -1
167 // First pass for changed components or fence completions
183 mIdleFence, newState.fence);
/frameworks/native/vulkan/nulldrv/
H A Dnull_driver.cpp891 int fence,
894 close(fence);
902 int* fence) {
903 *fence = -1;
955 VkFence* fence) {
956 *fence = AllocHandle<VkFence>(device, HandleType::kFence);
1085 VkResult QueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo* pSubmitInfo, VkFence fence) { argument
1132 VkResult QueueBindSparse(VkQueue queue, uint32_t bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence) { argument
1137 void DestroyFence(VkDevice device, VkFence fence, const VkAllocationCallbacks* allocator) { argument
1144 VkResult GetFenceStatus(VkDevice device, VkFence fence) { argument
889 AcquireImageANDROID(VkDevice, VkImage, int fence, VkSemaphore, VkFence) argument
898 QueueSignalReleaseImageANDROID(VkQueue, uint32_t, const VkSemaphore*, VkImage, int* fence) argument
952 CreateFence(VkDevice device, const VkFenceCreateInfo*, const VkAllocationCallbacks* , VkFence* fence) argument
[all...]
/frameworks/av/include/media/stagefright/
H A DMediaSync.h260 void returnBufferToInput_l(const sp<GraphicBuffer> &buffer, const sp<Fence> &fence);
/frameworks/av/media/libstagefright/omx/
H A DGraphicBufferSource.h249 const sp<GraphicBuffer> buffer, const sp<Fence> &fence);

Completed in 525 milliseconds

123