Searched defs:fence (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/native/include/gui/
H A DBufferQueueConsumer.h60 // being accessed. The fence will signal when the buffer is no longer
72 EGLSyncKHR fence);
153 EGLDisplay display, EGLSyncKHR fence,
155 return releaseBuffer(buf, frameNumber, releaseFence, display, fence);
152 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
H A DIGraphicBufferProducer.h123 // The fence parameter will be updated to hold the fence associated with
125 // fence signals. If the fence is Fence::NO_FENCE, the buffer may be written
169 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, bool async,
199 // equivalent to fence from the dequeueBuffer call.
256 // * fence was NULL
274 // fence - a fence that the consumer must wait on before reading the buffer,
280 const sp<Fence>& fence, uint32_
278 QueueBufferInput(int64_t timestamp, bool isAutoTimestamp, const Rect& crop, int scalingMode, uint32_t transform, bool async, const sp<Fence>& fence, uint32_t sticky = 0) argument
314 sp<Fence> fence; member in struct:android::IGraphicBufferProducer::QueueBufferInput
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DStatusTracker.h63 // 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 DCamera3Stream.cpp457 sp<Fence> fence = new Fence(streamBuffers[bufferIdx].acquire_fence); local
458 fence->waitForever("Camera3Stream::registerBuffers");
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFramebufferSurface.cpp148 sp<Fence> fence = mHwc.getAndResetReleaseFence(mDisplayType); local
149 if (fence->isValid() &&
152 mCurrentBuffer, fence);
153 ALOGE_IF(err, "setReleaseFenceFd: failed to add the fence: %s (%d)",
H A DVirtualDisplaySurface.cpp197 // At this point we know the output buffer acquire fence,
287 uint32_t format, uint32_t usage, int* sslot, sp<Fence>* fence) {
292 status_t result = mSource[source]->dequeueBuffer(sslot, fence, async,
319 mSource[source]->cancelBuffer(*sslot, *fence);
331 status_t VirtualDisplaySurface::dequeueBuffer(int* pslot, sp<Fence>* fence, bool async, argument
334 return mSource[SOURCE_SINK]->dequeueBuffer(pslot, fence, async, w, h, format, usage);
386 *fence = mOutputFence;
389 result = dequeueBuffer(source, format, usage, &sslot, fence);
436 // slot and fence as we just queued.
453 // Extract the GLES release fence fo
286 dequeueBuffer(Source source, uint32_t format, uint32_t usage, int* sslot, sp<Fence>* fence) argument
471 cancelBuffer(int pslot, const sp<Fence>& fence) argument
[all...]
/frameworks/base/services/core/java/com/android/server/location/
H A DGeofenceState.java44 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 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/base/services/core/jni/
H A Dcom_android_server_AssetAtlasService.cpp81 if (fence != EGL_NO_SYNC_KHR) eglDestroySyncKHR(display, fence); \
143 EGLSyncKHR fence = EGL_NO_SYNC_KHR; local
193 // The fence is used to wait for the texture upload to finish
196 fence = eglCreateSyncKHR(display, EGL_SYNC_FENCE_KHR, NULL);
197 if (fence == EGL_NO_SYNC_KHR) {
198 ALOGW("Could not create sync fence %#x", eglGetError());
204 EGLint waitStatus = eglClientWaitSyncKHR(display, fence,
207 ALOGW("Failed to wait for the fence %#x", eglGetError());
/frameworks/native/libs/gui/
H A DStreamSplitter.cpp192 sp<Fence> fence; local
193 status_t status = from->detachNextBuffer(&buffer, &fence);
209 // Merge the release fence of the incoming buffer so that the fence we send
211 tracker->mergeFence(fence);
H A DConsumerBase.cpp203 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) {
205 return addReleaseFenceLocked(slot, graphicBuffer, fence);
209 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) {
213 // drop this fence, as it will never be received by the producer.
219 mSlots[slot].mFence = fence;
223 mSlots[slot].mFence, fence);
227 // signal in order so the new fence will act like a union
228 mSlots[slot].mFence = fence;
202 addReleaseFence(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument
208 addReleaseFenceLocked(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument
H A DIGraphicBufferProducer.cpp93 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, bool async, argument
109 *fence = new Fence();
110 reply.read(**fence);
187 virtual void cancelBuffer(int buf, const sp<Fence>& fence) { argument
191 data.write(*fence.get());
308 sp<Fence> fence; local
309 int result = dequeueBuffer(&buf, &fence, async, w, h, format, usage);
311 reply->writeInt32(fence != NULL);
312 if (fence != NULL) {
313 reply->write(*fence);
328 sp<Fence> fence; local
367 sp<Fence> fence = new Fence(); local
[all...]
H A DBufferQueueProducer.cpp328 BQ_LOGE("dequeueBuffer: about to return a NULL fence - "
374 BQ_LOGE("dequeueBuffer: error %#x waiting for fence",
377 BQ_LOGE("dequeueBuffer: timeout waiting for fence");
524 sp<Fence> fence; local
526 &async, &fence, &stickyTransform);
528 if (fence == NULL) {
529 BQ_LOGE("queueBuffer: fence is NULL");
598 mSlots[slot].mFence = fence;
614 item.mFence = fence;
664 mLastQueueBufferFence = fence;
693 cancelBuffer(int slot, const sp<Fence>& fence) argument
[all...]
H A DGLConsumer.cpp271 // if we're detached, we just use the fence that was created in detachFromContext()
528 void GLConsumer::setReleaseFence(const sp<Fence>& fence) { argument
529 if (fence->isValid() &&
532 mCurrentTextureImage->graphicBuffer(), fence);
534 ST_LOGE("setReleaseFence: failed to add the fence: %s (%d)",
646 ST_LOGE("syncForReleaseLocked: error creating EGL fence: %#x",
654 ST_LOGE("syncForReleaseLocked: error dup'ing native fence "
658 sp<Fence> fence(new Fence(fenceFd));
660 mCurrentTextureImage->graphicBuffer(), fence);
662 ST_LOGE("syncForReleaseLocked: error adding release fence
667 EGLSyncKHR fence = mEglSlots[mCurrentTexture].mEglFence; local
[all...]
H A DSurface.cpp132 sp<Fence> fence(new Fence(fenceFd));
133 int waitResult = fence->waitForever("dequeueBuffer_DEPRECATED");
214 sp<Fence> fence; local
215 status_t result = mGraphicBufferProducer->dequeueBuffer(&buf, &fence, swapIntervalZero,
230 ALOGE_IF(fence == NULL, "Surface::dequeueBuffer: received null Fence! buf=%d", buf);
240 mGraphicBufferProducer->cancelBuffer(buf, fence);
245 if (fence->isValid()) {
246 *fenceFd = fence->dup();
248 ALOGE("dequeueBuffer: error duping fence: %d", errno);
270 sp<Fence> fence(fenceF
[all...]
/frameworks/native/libs/gui/tests/
H A DBufferQueue_test.cpp114 sp<Fence> fence; local
117 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
151 sp<Fence> fence; local
159 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0,
167 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0,
222 sp<Fence> fence; local
225 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
270 sp<Fence> fence; local
273 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
308 mProducer->dequeueBuffer(&slot, &fence, fals
328 sp<Fence> fence; local
[all...]
H A DStreamSplitter_test.cpp100 sp<Fence> fence; local
103 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
131 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
166 sp<Fence> fence; local
169 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
200 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
226 sp<Fence> fence; local
229 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
242 ASSERT_EQ(NO_INIT, inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0,
H A DIGraphicBufferProducer_test.cpp133 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, async, w, h, format, usage);
510 mProducer->cancelBuffer(result.slot, result.fence);
/frameworks/native/services/surfaceflinger/
H A DMonitoredProducer.cpp63 status_t MonitoredProducer::dequeueBuffer(int* slot, sp<Fence>* fence, argument
65 return mProducer->dequeueBuffer(slot, fence, async, w, h, format, usage);
87 void MonitoredProducer::cancelBuffer(int slot, const sp<Fence>& fence) { argument
88 mProducer->cancelBuffer(slot, fence);
H A DDispSync.cpp48 // This is the offset from the present fence timestamps to the corresponding
322 bool DispSync::addPresentFence(const sp<Fence>& fence) { argument
325 mPresentFences[mPresentSampleOffset] = fence;
547 result.appendFormat(" [unsignaled fence]\n");
H A DLayer.cpp531 // acquire fence the first time a new buffer is acquired on EACH display.
534 sp<Fence> fence = mSurfaceFlingerConsumer->getCurrentFence(); local
535 if (fence->isValid()) {
536 fenceFd = fence->dup();
538 ALOGW("failed to dup layer fence, skipping sync: %d", errno);
1066 // There was no fence for this frame, so assume that it was ready
/frameworks/base/core/java/android/view/
H A DHardwareRenderer.java486 abstract void fence(); method in class:HardwareRenderer
H A DThreadedRenderer.java390 void fence() { method in class:ThreadedRenderer
/frameworks/base/libs/hwui/renderthread/
H A DRenderProxy.cpp88 // This is also a fence as we need to be certain that there are no
216 // destroyCanvasAndSurface() needs a fence as when it returns the
342 CREATE_BRIDGE0(fence) {
347 void RenderProxy::fence() { function in class:android::uirenderer::renderthread::RenderProxy
348 SETUP_TASK(fence);
/frameworks/base/location/java/android/location/
H A DLocationManager.java970 Geofence fence = Geofence.createCircle(latitude, longitude, radius);
973 mService.requestGeofence(request, fence, intent, mContext.getPackageName());
996 * a geo-fence without notification, but the system will do its best
1005 * @param fence a geographical description of the geofence area
1008 * @throws IllegalArgumentException if fence is null
1015 public void addGeofence(LocationRequest request, Geofence fence, PendingIntent intent) { argument
1017 checkGeofence(fence);
1020 mService.requestGeofence(request, fence, intent, mContext.getPackageName());
1059 * @param fence a geofence previously passed to {@link #addGeofence}
1062 * @throws IllegalArgumentException if fence i
1069 removeGeofence(Geofence fence, PendingIntent intent) argument
1716 checkGeofence(Geofence fence) argument
[all...]

Completed in 332 milliseconds

12