Searched refs:fence (Results 1 - 25 of 60) sorted by relevance

123

/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.cpp54 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/av/include/media/stagefright/
H A DFrameRenderTracker.h40 // 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/libs/gui/
H A DIGraphicBufferProducer.cpp98 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, bool async, argument
115 *fence = new Fence();
116 reply.read(**fence);
193 virtual void cancelBuffer(int buf, const sp<Fence>& fence) { argument
197 data.write(*fence.get());
352 sp<Fence> fence; local
353 int result = dequeueBuffer(&buf, &fence, async, width, height,
356 reply->writeInt32(fence != NULL);
357 if (fence != NULL) {
358 reply->write(*fence);
373 sp<Fence> fence; local
412 sp<Fence> fence = new Fence(); local
[all...]
H A DConsumerBase.cpp255 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) {
257 return addReleaseFenceLocked(slot, graphicBuffer, fence);
261 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) {
265 // drop this fence, as it will never be received by the producer.
271 mSlots[slot].mFence = fence;
275 mSlots[slot].mFence, fence);
279 // signal in order so the new fence will act like a union
280 mSlots[slot].mFence = fence;
254 addReleaseFence(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument
260 addReleaseFenceLocked(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument
H A DSurface.cpp147 sp<Fence> fence(new Fence(fenceFd));
148 int waitResult = fence->waitForever("dequeueBuffer_DEPRECATED");
229 sp<Fence> fence; local
230 status_t result = mGraphicBufferProducer->dequeueBuffer(&buf, &fence, swapIntervalZero,
245 ALOGE_IF(fence == NULL, "Surface::dequeueBuffer: received null Fence! buf=%d", buf);
255 mGraphicBufferProducer->cancelBuffer(buf, fence);
260 if (fence->isValid()) {
261 *fenceFd = fence->dup();
263 ALOGE("dequeueBuffer: error duping fence: %d", errno);
288 sp<Fence> fence(fenceF
[all...]
/frameworks/native/libs/gui/tests/
H A DBufferQueue_test.cpp113 sp<Fence> fence; local
116 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
151 sp<Fence> fence; local
160 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0,
168 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0,
223 sp<Fence> fence; local
226 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
272 sp<Fence> fence; local
275 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
311 mProducer->dequeueBuffer(&slot, &fence, fals
331 sp<Fence> fence; local
379 sp<Fence> fence; local
413 sp<Fence> fence; local
[all...]
H A DStreamSplitter_test.cpp103 sp<Fence> fence; local
106 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
135 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
170 sp<Fence> fence; local
173 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
205 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
231 sp<Fence> fence; local
234 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0,
248 ASSERT_EQ(NO_INIT, inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0,
H A DIGraphicBufferProducer_test.cpp135 fence = QUEUE_BUFFER_INPUT_FENCE;
147 fence);
185 QueueBufferInputBuilder& setFence(sp<Fence> fence) { argument
186 this->fence = fence;
198 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::QueueBufferInputBuilder
204 sp<Fence> fence; member in struct:android::IGraphicBufferProducerTest::DequeueBufferResult
208 return mProducer->dequeueBuffer(&result->slot, &result->fence, async, w, h, format, usage);
516 mProducer->cancelBuffer(result.slot, result.fence);
/frameworks/native/include/gui/
H A DIGraphicBufferProducer.h124 // The fence parameter will be updated to hold the fence associated with
126 // fence signals. If the fence is Fence::NO_FENCE, the buffer may be written
168 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, bool async,
198 // equivalent to fence from the dequeueBuffer call.
256 // * fence was NULL
275 // fence - a fence that the consumer must wait on before reading the buffer,
281 uint32_t transform, bool async, const sp<Fence>& fence,
279 QueueBufferInput(int64_t timestamp, bool isAutoTimestamp, android_dataspace dataSpace, const Rect& crop, int scalingMode, uint32_t transform, bool async, const sp<Fence>& fence, uint32_t sticky = 0) argument
323 sp<Fence> fence; member in struct:android::IGraphicBufferProducer::QueueBufferInput
[all...]
H A DBufferQueueConsumer.h60 // being accessed. The fence will signal when the buffer is no longer
72 EGLSyncKHR fence);
159 EGLDisplay display, EGLSyncKHR fence,
161 return releaseBuffer(buf, frameNumber, releaseFence, display, fence);
158 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
H A DConsumerBase.h184 // addReleaseFence* adds the sync points associated with a fence to the set
190 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence);
192 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence);
201 // mFence is a fence which will signal when the buffer associated with
203 // overwritten. The buffer can be dequeued before the fence signals;
/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 DMonitoredProducer.h39 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, bool async,
48 virtual void cancelBuffer(int slot, const sp<Fence>& fence);
H A DDispSync.h51 // to the DispSync object via the addPresentFence method. These fence
73 // addPresentFence adds a fence for use in validating the current vsync
74 // event model. The fence need not be signaled at the time
75 // addPresentFence is called. When the fence does signal, its timestamp
80 // This method should be called with the retire fence from each HWComposer
82 bool addPresentFence(const sp<Fence>& fence);
H A DFrameTracker.h37 // or a fence. When a non-NULL fence is set for a given time value, the
38 // signal time of that fence is used instead of the timestamp.
61 // setFrameReadyFence sets the fence that is used to get the time at which
69 // setActualPresentFence sets the fence that is used to get the time
71 void setActualPresentFence(const sp<Fence>& fence);
107 // processFences iterates over all the frame records that have a fence set
108 // and replaces that fence with a timestamp if the fence has signaled. If
109 // the fence i
[all...]
/frameworks/base/libs/hwui/renderthread/
H A DEglManager.cpp260 fence();
307 void EglManager::fence() { function in class:android::uirenderer::renderthread::EglManager
308 EGLSyncKHR fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL); local
309 eglClientWaitSyncKHR(mEglDisplay, fence,
311 eglDestroySyncKHR(mEglDisplay, fence);
H A DEglManager.h56 void fence();
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFramebufferSurface.cpp149 sp<Fence> fence = mHwc.getAndResetReleaseFence(mDisplayType); local
150 if (fence->isValid() &&
153 mCurrentBuffer, fence);
154 ALOGE_IF(err, "setReleaseFenceFd: failed to add the fence: %s (%d)",
H A DVirtualDisplaySurface.h102 virtual status_t dequeueBuffer(int* pslot, sp<Fence>* fence, bool async,
110 virtual void cancelBuffer(int pslot, const sp<Fence>& fence);
127 int* sslot, sp<Fence>* fence);
187 // mFbFence is the fence HWC should wait for before reading the framebuffer
191 // mOutputFence is the fence HWC should wait for before writing to the
H A DVirtualDisplaySurface.cpp199 // At this point we know the output buffer acquire fence,
290 PixelFormat format, uint32_t usage, int* sslot, sp<Fence>* fence) {
295 status_t result = mSource[source]->dequeueBuffer(sslot, fence, async,
322 mSource[source]->cancelBuffer(*sslot, *fence);
334 status_t VirtualDisplaySurface::dequeueBuffer(int* pslot, sp<Fence>* fence, bool async, argument
337 return mSource[SOURCE_SINK]->dequeueBuffer(pslot, fence, async, w, h, format, usage);
389 *fence = mOutputFence;
392 result = dequeueBuffer(source, format, usage, &sslot, fence);
439 // slot and fence as we just queued.
456 // Extract the GLES release fence fo
289 dequeueBuffer(Source source, PixelFormat format, uint32_t usage, int* sslot, sp<Fence>* fence) argument
475 cancelBuffer(int pslot, const sp<Fence>& fence) argument
[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
/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...]
/frameworks/native/libs/ui/
H A DFramebufferNativeWindow.cpp226 sp<Fence> fence(new Fence(fenceFd));
227 int waitResult = fence->wait(Fence::TIMEOUT_NEVER);
282 sp<Fence> fence(new Fence(fenceFd));
283 fence->wait(Fence::TIMEOUT_NEVER);

Completed in 293 milliseconds

123