/frameworks/av/include/media/stagefright/ |
H A D | FrameRenderTracker.h | 40 // queue fence (read fence). mIndex is negative, and mRenderTimeNs is invalid. 43 // 2. dequeued frame: mFence is updated with the dequeue fence (write fence). mIndex is set. 61 Info(int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence) argument 66 mFence(fence) { 96 // queued to the output surface using |fence|. 98 int64_t mediaTimeUs, const sp<GraphicBuffer> &graphicBuffer, const sp<Fence> &fence); 101 // |fenceFd| is the dequeue fence, and |index| is a positive buffer ID to be usable by the 114 // unrendered frame, as well as any dropped frames (those with invalid fence) u [all...] |
/frameworks/native/include/gui/ |
H A D | BufferQueueConsumer.h | 60 // being accessed. The fence will signal when the buffer is no longer 72 EGLSyncKHR fence); 147 EGLDisplay display, EGLSyncKHR fence, 149 return releaseBuffer(buf, frameNumber, releaseFence, display, fence); 146 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
|
H A D | GLConsumer.h | 108 // 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 D | IGraphicBufferProducer.h | 146 // The fence parameter will be updated to hold the fence associated with 148 // fence signals. If the fence is Fence::NO_FENCE, the buffer may be written 190 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, uint32_t w, 221 // equivalent to fence from the dequeueBuffer call. 284 // * fence was NULL 302 // fence - a fence that the consumer must wait on before reading the buffer, 308 uint32_t transform, const sp<Fence>& fence, uint32_ 306 QueueBufferInput(int64_t timestamp, bool isAutoTimestamp, android_dataspace dataSpace, const Rect& crop, int scalingMode, uint32_t transform, const sp<Fence>& fence, uint32_t sticky = 0) argument 347 sp<Fence> fence; member in struct:android::IGraphicBufferProducer::QueueBufferInput [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | StatusTracker.h | 63 // accept a fence to wait on to complete idle. The fence is merged with any 93 sp<Fence> fence; member in struct:android::camera3::StatusTracker::StateChange 108 // Merged fence for all processed state changes 118 // - The merged fence for all component updates has signalled
|
H A D | Camera3OutputStream.cpp | 220 // Fence management - always honor release fence from HAL 598 sp<Fence> fence; local 599 status_t res = mConsumer->detachNextBuffer(buffer, &fence); 615 if (fence!= 0 && fence->isValid()) { 616 *fenceFd = fence->dup();
|
/frameworks/native/libs/gui/tests/ |
H A D | StreamSplitter_test.cpp | 80 sp<Fence> fence; local 83 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 117 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 152 sp<Fence> fence; local 155 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 192 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 216 sp<Fence> fence; local 219 inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 232 ASSERT_EQ(NO_INIT, inputProducer->dequeueBuffer(&slot, &fence, 0, 0, 0,
|
H A D | Surface_test.cpp | 202 sp<Fence> fence; local 203 ASSERT_EQ(NO_ERROR, surface->detachNextBuffer(&graphicBuffer, &fence)); 251 int fence; local 253 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fence)); 255 ASSERT_EQ(NO_ERROR, window->queueBuffer(window.get(), buffer, fence)); 257 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fence)); 258 ASSERT_EQ(NO_ERROR, window->queueBuffer(window.get(), buffer, fence));
|
H A D | BufferQueue_test.cpp | 76 sp<Fence> fence; local 79 &scalingMode, &transform, &fence, NULL); 86 ASSERT_EQ(fence, item.mFence); 134 sp<Fence> fence; local 137 mProducer->dequeueBuffer(&slot, &fence, 0, 0, 0, 172 sp<Fence> fence; local 181 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, 189 mProducer->dequeueBuffer(&slot, &fence, 1, 1, 0, 223 sp<Fence> fence; local 232 mProducer->dequeueBuffer(&slot, &fence, 260 sp<Fence> fence; local 325 sp<Fence> fence; local 374 sp<Fence> fence; local 433 sp<Fence> fence; local 481 sp<Fence> fence; local 515 sp<Fence> fence; local 557 sp<Fence> fence; local 608 sp<Fence> fence; local 674 sp<Fence> fence; local 728 sp<Fence> fence = Fence::NO_FENCE; local 755 sp<Fence> fence = Fence::NO_FENCE; local 765 sp<Fence> fence = Fence::NO_FENCE; local 809 sp<Fence> fence; local [all...] |
H A D | IGraphicBufferProducer_test.cpp | 133 fence = QUEUE_BUFFER_INPUT_FENCE; 144 fence); 177 QueueBufferInputBuilder& setFence(sp<Fence> fence) { argument 178 this->fence = fence; 189 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::QueueBufferInputBuilder 195 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::DequeueBufferResult 199 return mProducer->dequeueBuffer(&result->slot, &result->fence, w, h, format, usage); 202 void setupDequeueRequestBuffer(int *slot, sp<Fence> *fence, argument 206 ASSERT_TRUE(fence ! 636 sp<Fence> fence; local 644 sp<Fence> fence; local 655 sp<Fence> fence; local 675 sp<Fence> fence; local 688 sp<Fence> fence; local 705 sp<Fence> fence; local 718 sp<Fence> fence; local [all...] |
/frameworks/av/media/libstagefright/ |
H A D | FrameRenderTracker.cpp | 46 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 D | MediaSync.cpp | 721 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/libs/hwui/utils/ |
H A D | TestWindowContext.cpp | 109 // Surprisingly, calling mProxy->fence() here appears to make no difference to 113 void fence() { function in class:android::uirenderer::TestWindowContext::TestWindowData 114 mProxy->fence(); 208 void TestWindowContext::fence() { function in class:android::uirenderer::TestWindowContext 210 mData->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.
|
H A D | GeofenceManager.java | 143 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/base/services/core/jni/ |
H A D | com_android_server_AssetAtlasService.cpp | 54 if (fence != EGL_NO_SYNC_KHR) eglDestroySyncKHR(display, fence); \ 119 EGLSyncKHR fence = EGL_NO_SYNC_KHR; local 169 // The fence is used to wait for the texture upload to finish 172 fence = eglCreateSyncKHR(display, EGL_SYNC_FENCE_KHR, NULL); 173 if (fence == EGL_NO_SYNC_KHR) { 174 ALOGW("Could not create sync fence %#x", eglGetError()); 180 EGLint waitStatus = eglClientWaitSyncKHR(display, fence, 183 ALOGW("Failed to wait for the fence %#x", eglGetError());
|
/frameworks/native/libs/gui/ |
H A D | StreamSplitter.cpp | 193 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 D | ConsumerBase.cpp | 281 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { 283 return addReleaseFenceLocked(slot, graphicBuffer, fence); 287 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { 291 // drop this fence, as it will never be received by the producer. 297 mSlots[slot].mFence = fence; 301 mSlots[slot].mFence, fence); 305 // signal in order so the new fence will act like a union 306 mSlots[slot].mFence = fence; 280 addReleaseFence(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument 286 addReleaseFenceLocked(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | FramebufferSurface.cpp | 208 sp<Fence> fence = mHwc.getRetireFence(mDisplayType); local 209 if (fence->isValid()) { 211 mPreviousBuffer, fence); 213 " fence: %s (%d)", strerror(-result), result); 224 sp<Fence> fence = mHwc.getAndResetReleaseFence(mDisplayType); 225 if (fence->isValid() && 228 mCurrentBuffer, fence); 229 ALOGE_IF(err, "setReleaseFenceFd: failed to add the fence: %s (%d)",
|
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlingerConsumer.cpp | 144 // time when previous buffer's actual-present fence was signaled 191 void SurfaceFlingerConsumer::setReleaseFence(const sp<Fence>& fence) argument 193 mPrevReleaseFence = fence; 195 GLConsumer::setReleaseFence(fence); 199 if (fence->isValid() && 202 mPendingRelease.graphicBuffer, fence); 204 " fence: %s (%d)", strerror(-result), result); 218 mPendingRelease.fence); 224 void SurfaceFlingerConsumer::setReleaseFence(const sp<Fence>& fence) { argument 225 mPrevReleaseFence = fence; [all...] |
H A D | MonitoredProducer.cpp | 68 status_t MonitoredProducer::dequeueBuffer(int* slot, sp<Fence>* fence, argument 70 return mProducer->dequeueBuffer(slot, fence, w, h, format, usage); 92 status_t MonitoredProducer::cancelBuffer(int slot, const sp<Fence>& fence) { argument 93 return mProducer->cancelBuffer(slot, fence);
|
/frameworks/native/vulkan/libvulkan/ |
H A D | driver_gen.cpp | 58 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);
|
/frameworks/av/media/libstagefright/colorconversion/ |
H A D | SoftwareRenderer.cpp | 216 sp<Fence> fence = new Fence(fenceFd); local 217 err = fence->waitForever("SoftwareRenderer::render"); 221 // complete (drop) dequeued frame if fence wait failed; otherwise,
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | EglManager.cpp | 335 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);
|
/frameworks/av/media/libstagefright/omx/ |
H A D | GraphicBufferSource.cpp | 397 sp<Fence> fence = new Fence(fenceFd); local 406 releaseBuffer(id, codecBuffer.mFrameNumber, mBufferSlot[id], fence); 411 // we will not reuse codec buffer, so there is no need to wait for fence 728 // mLatestBufferFence will be set to new fence just below 924 * fence: fence of the frame being released 928 const sp<GraphicBuffer> buffer, const sp<Fence> &fence) { 935 id, 0, EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, fence); 939 id, frameNum, EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, fence); 926 releaseBuffer( int &id, uint64_t frameNum, const sp<GraphicBuffer> buffer, const sp<Fence> &fence) argument
|