Home
last modified time | relevance | path

Searched refs:mFence (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/native/libs/gui/
DConsumerBase.cpp100 mSlots[slotIndex].mFence = Fence::NO_FENCE; in freeBufferLocked()
363 mSlots[item->mSlot].mFence = item->mFence; in acquireBufferLocked()
387 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked()
388 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
395 auto currentStatus = mSlots[slot].mFence->getStatus(); in addReleaseFenceLocked()
404 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
414 fenceName, mSlots[slot].mFence, fence); in addReleaseFenceLocked()
419 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
422 mSlots[slot].mFence = mergedFence; in addReleaseFenceLocked()
431 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
[all …]
DBufferItem.cpp43 mFence(nullptr), in BufferItem()
98 if (mFence != nullptr) { in getFlattenedSize()
99 size += mFence->getFlattenedSize(); in getFlattenedSize()
113 if (mFence != nullptr) { in getFdCount()
114 count += mFence->getFdCount(); in getFdCount()
146 if (mFence != nullptr) { in flatten()
147 status_t err = mFence->flatten(buffer, size, fds, count); in flatten()
211 mFence = new Fence(); in unflatten()
212 status_t err = mFence->unflatten(buffer, size, fds, count); in unflatten()
216 mFenceTime = std::make_shared<FenceTime>(mFence); in unflatten()
DCpuConsumer.cpp96 int fenceFd = item.mFence.get() ? item.mFence->dup() : -1; in lockBufferItem()
120 int fenceFd = item.mFence.get() ? item.mFence->dup() : -1; in lockBufferItem()
DBufferQueueProducer.cpp474 mSlots[found].mFence = Fence::NO_FENCE; in dequeueBuffer()
488 if (CC_UNLIKELY(mSlots[found].mFence == nullptr)) { in dequeueBuffer()
500 Fence::NO_FENCE : mSlots[found].mFence; in dequeueBuffer()
502 mSlots[found].mFence = Fence::NO_FENCE; in dequeueBuffer()
681 *outFence = mSlots[found].mFence; in detachNextBuffer()
753 mSlots[*outSlot].mFence = Fence::NO_FENCE; in attachBuffer()
863 mSlots[slot].mFence = acquireFence; in queueBuffer()
886 item.mFence = acquireFence; in queueBuffer()
1082 mSlots[slot].mFence = fence; in cancelBuffer()
1429 mSlots[*slot].mFence = Fence::NO_FENCE; in allocateBuffers()
DBufferQueueConsumer.cpp214 outBuffer->mFence = Fence::NO_FENCE; in acquireBuffer()
253 mSlots[slot].mFence = Fence::NO_FENCE; in acquireBuffer()
386 mSlots[*outSlot].mFence = Fence::NO_FENCE; in attachBuffer()
447 mSlots[slot].mFence = releaseFence; in releaseBuffer()
DBufferItemConsumer.cpp75 err = item->mFence->waitForever("BufferItemConsumer::acquireBuffer"); in acquireBuffer()
/frameworks/base/services/core/java/com/android/server/location/
DGeofenceState.java35 public final Geofence mFence; field in GeofenceState
51 mFence = fence; in GeofenceState()
72 boolean inside = mDistanceToCenter <= Math.max(mFence.getRadius(), location.getAccuracy()); in processLocation()
95 return Math.abs(mFence.getRadius() - mDistanceToCenter); in getDistanceToBoundary()
112 return String.format("%s d=%.0f %s", mFence.toString(), mDistanceToCenter, state); in toString()
DGeofenceManager.java166 if (geofence.equals(w.mFence) && intent.equals(w.mIntent)) { in addFence()
193 if (fence.equals(state.mFence)) { in removeFence()
455 pw.append(state.mFence.toString()); in dump()
/frameworks/av/media/libstagefright/
DFrameRenderTracker.cpp84 renderInfo->mFence = new Fence(::dup(fenceFd)); in updateInfoForDequeuedBuffer()
122 } else if (it->mFence != NULL) { in checkFencesAndGetRenderedFrames()
124 nsecs_t signalTime = it->mFence->getSignalTime(); in checkFencesAndGetRenderedFrames()
131 it->mFence.clear(); in checkFencesAndGetRenderedFrames()
140 if (drop || (it->mFence == NULL && it == mRenderQueue.begin())) { in checkFencesAndGetRenderedFrames()
178 if (it->mFence == NULL) { in dumpRenderQueue()
185 it->mFence->isValid() ? "YES" : "NO"); in dumpRenderQueue()
DMediaSync.cpp353 returnBufferToInput_l(bufferItem->mGraphicBuffer, bufferItem->mFence); in flush()
563 bufferItem->mGraphicBuffer, bufferItem->mFence); in onDrainVideo_l()
648 returnBufferToInput_l(bufferItem.mGraphicBuffer, bufferItem.mFence); in onFrameAvailableFromInput()
667 bufferItem.mFence); in renderOneBufferItem_l()
681 returnBufferToInput_l(bufferItem.mGraphicBuffer, bufferItem.mFence); in renderOneBufferItem_l()
/frameworks/native/libs/ui/
DFenceTime.cpp39 mFence(fence), in FenceTime()
47 mFence(std::move(fence)), in FenceTime()
54 mFence(nullptr), in FenceTime()
89 mFence.clear(); in applyTrustedSnapshot()
116 if (!mFence.get()) { in getSignalTime()
121 fence = mFence; in getSignalTime()
139 mFence.clear(); in getSignalTime()
165 return Snapshot(mFence); in getSnapshot()
173 mFence(fence), in FenceTime()
183 mFence.clear(); in signalForTest()
/frameworks/av/media/libstagefright/include/media/stagefright/
DFrameRenderTracker.h66 mFence(fence) { in RenderedFrameInfo()
75 mFence(NULL) { in RenderedFrameInfo()
83 sp<Fence> mFence; member
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestBuffer.cpp68 mCallback(item.mFence->dup(), mCallbackArgs); in onFrameAvailable()
261 if (mFence >= 0) in ~Hwc2TestFenceGenerator()
262 close(mFence); in ~Hwc2TestFenceGenerator()
263 mFence = -1; in ~Hwc2TestFenceGenerator()
274 if (mFence >= 0) { in get()
275 return dup(mFence); in get()
304 return dup(mFence); in get()
310 mFence = fence; in set()
324 int32_t mFence = -1; member in Hwc2TestFenceGenerator
/frameworks/native/services/surfaceflinger/tests/
DBufferGenerator.cpp50 mCallback(item.mGraphicBuffer, item.mFence->dup()); in onFrameAvailable()
361 *outFence = new Fence(mFence); in get()
363 close(mFence); in get()
366 mFence = -1; in get()
376 generator->mFence = fence; in setBuffer()
DBufferGenerator.h51 int32_t mFence = -1; variable
/frameworks/native/libs/gui/include/gui/
DBufferSlot.h183 mFence(Fence::NO_FENCE), in BufferSlot()
224 sp<Fence> mFence; member
DBufferItem.h60 sp<Fence> mFence; variable
DConsumerBase.h228 sp<Fence> mFence; member
/frameworks/base/libs/hwui/surfacetexture/
DImageConsumer.cpp221 if (item.mFence->isValid()) { in dequeueImage()
225 err = renderState.getRenderThread().eglManager().fenceWait(item.mFence); in dequeueImage()
228 item.mFence, renderState.getRenderThread().getGrContext()); in dequeueImage()
288 st.mCurrentFence = item.mFence; in dequeueImage()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DFramebufferSurface.cpp137 mCurrentFence = item.mFence; in nextBuffer()
139 outFence = item.mFence; in nextBuffer()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp109 status_t err = pinnedBuffer->getBufferItem().mFence->waitForever( in pinSelectedBuffer()
233 item.mGraphicBuffer, item.mFence); in releaseOldestBufferLocked()
337 item.mGraphicBuffer, item.mFence); in unpinBuffer()
/frameworks/native/libs/ui/include_vndk/ui/
DFenceTime.h134 sp<Fence> mFence{Fence::NO_FENCE};
/frameworks/av/media/libstagefright/filters/
DGraphicBufferListener.cpp114 err = item.mFence->waitForever("GraphicBufferListener::getBufferItem"); in getBufferItem()
/frameworks/native/libs/ui/include/ui/
DFenceTime.h134 sp<Fence> mFence{Fence::NO_FENCE};
/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue_producer-test.cpp39 mTransform, mFence); in build()
73 this->mFence = fence; in setFence()
84 sp<Fence> mFence{Fence::NO_FENCE}; member

12