/frameworks/native/libs/gui/tests/ |
H A D | BufferQueue_test.cpp | 71 sp<Fence> fence; local 79 mBQ->dequeueBuffer(&slot, &fence, false, 1, 1, 0, 87 mBQ->dequeueBuffer(&slot, &fence, false, 1, 1, 0,
|
/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 | Camera3Stream.cpp | 349 sp<Fence> fence = new Fence(streamBuffers[bufferIdx].acquire_fence); local 350 fence->waitForever("Camera3Stream::registerBuffers");
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | FramebufferSurface.cpp | 148 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 D | VirtualDisplaySurface.cpp | 195 // At this point we know the output buffer acquire fence, 265 uint32_t format, uint32_t usage, int* sslot, sp<Fence>* fence) { 269 status_t result = mSource[source]->dequeueBuffer(sslot, fence, async, 303 status_t VirtualDisplaySurface::dequeueBuffer(int* pslot, sp<Fence>* fence, bool async, argument 355 *fence = mOutputFence; 358 result = dequeueBuffer(source, format, usage, &sslot, fence); 385 // slot and fence as we just queued. 402 // Extract the GLES release fence for HWC to acquire 420 void VirtualDisplaySurface::cancelBuffer(int pslot, const sp<Fence>& fence) { argument 427 mapProducer2SourceSlot(source, pslot), fence); 264 dequeueBuffer(Source source, uint32_t format, uint32_t usage, int* sslot, sp<Fence>* fence) argument [all...] |
/frameworks/base/services/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/native/include/gui/ |
H A D | IGraphicBufferProducer.h | 83 // The fence parameter will be updated to hold the fence associated with 85 // fence signals. If the fence is NULL, the buffer may be written 90 virtual status_t dequeueBuffer(int *slot, sp<Fence>* fence, bool async, 113 const sp<Fence>& fence) 116 fence(fence) { } 126 *outFence = fence; 142 sp<Fence> fence; member in struct:android::IGraphicBufferProducer::QueueBufferInput 111 QueueBufferInput(int64_t timestamp, bool isAutoTimestamp, const Rect& crop, int scalingMode, uint32_t transform, bool async, const sp<Fence>& fence) argument [all...] |
/frameworks/base/services/jni/ |
H A D | com_android_server_AssetAtlasService.cpp | 100 if (fence != EGL_NO_SYNC_KHR) eglDestroySyncKHR(display, fence); \ 161 EGLSyncKHR fence = EGL_NO_SYNC_KHR; local 211 // The fence is used to wait for the texture upload to finish 214 fence = eglCreateSyncKHR(display, EGL_SYNC_FENCE_KHR, NULL); 215 if (fence == EGL_NO_SYNC_KHR) { 216 ALOGW("Could not create sync fence %#x", eglGetError()); 222 EGLint waitStatus = eglClientWaitSyncKHR(display, fence, 225 ALOGW("Failed to wait for the fence %#x", eglGetError());
|
/frameworks/native/libs/gui/ |
H A D | ConsumerBase.cpp | 198 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { 200 return addReleaseFenceLocked(slot, graphicBuffer, fence); 204 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) { 208 // drop this fence, as it will never be received by the producer. 214 mSlots[slot].mFence = fence; 218 mSlots[slot].mFence, fence); 222 // signal in order so the new fence will act like a union 223 mSlots[slot].mFence = fence; 197 addReleaseFence(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument 203 addReleaseFenceLocked(int slot, const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence) argument
|
H A D | IGraphicBufferProducer.cpp | 82 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, bool async, argument 98 *fence = new Fence(); 99 reply.read(**fence); 120 virtual void cancelBuffer(int buf, const sp<Fence>& fence) { argument 124 data.write(*fence.get()); 205 sp<Fence> fence; local 206 int result = dequeueBuffer(&buf, &fence, async, w, h, format, usage); 208 reply->writeInt32(fence != NULL); 209 if (fence != NULL) { 210 reply->write(*fence); 229 sp<Fence> fence = new Fence(); local [all...] |
H A D | IGraphicBufferConsumer.cpp | 121 // check we have enough space (in case flattening the fence/graphicbuffer lied to us) 226 EGLDisplay display, EGLSyncKHR fence, 225 releaseBuffer(int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR fence, const sp<Fence>& releaseFence) argument
|
H A D | BufferQueue.cpp | 415 ST_LOGE("dequeueBuffer: about to return a NULL fence from mSlot. " 455 ST_LOGE("dequeueBuffer: error waiting for fence: %#x", eglGetError()); 457 ST_LOGE("dequeueBuffer: timeout waiting for fence"); 480 sp<Fence> fence; local 483 &async, &fence); 485 if (fence == NULL) { 486 ST_LOGE("queueBuffer: fence is NULL"); 551 mSlots[buf].mFence = fence; 567 item.mFence = fence; 611 void BufferQueue::cancelBuffer(int buf, const sp<Fence>& fence) { argument 996 releaseBuffer( int buf, uint64_t frameNumber, EGLDisplay display, EGLSyncKHR eglFence, const sp<Fence>& fence) argument [all...] |
H A D | GLConsumer.cpp | 244 // if we're detached, we just use the fence that was created in detachFromContext() 499 void GLConsumer::setReleaseFence(const sp<Fence>& fence) { argument 500 if (fence->isValid() && 503 mCurrentTextureBuf, fence); 505 ST_LOGE("setReleaseFence: failed to add the fence: %s (%d)", 660 ST_LOGE("syncForReleaseLocked: error creating EGL fence: %#x", 668 ST_LOGE("syncForReleaseLocked: error dup'ing native fence " 672 sp<Fence> fence(new Fence(fenceFd)); 674 mCurrentTextureBuf, fence); 676 ST_LOGE("syncForReleaseLocked: error adding release fence 681 EGLSyncKHR fence = mEglSlots[mCurrentTexture].mEglFence; local [all...] |
H A D | Surface.cpp | 118 sp<Fence> fence(new Fence(fenceFd)); 119 int waitResult = fence->waitForever("dequeueBuffer_DEPRECATED"); 185 sp<Fence> fence; local 186 status_t result = mGraphicBufferProducer->dequeueBuffer(&buf, &fence, mSwapIntervalZero, 197 ALOGE_IF(fence == NULL, "Surface::dequeueBuffer: received null Fence! buf=%d", buf); 211 if (fence->isValid()) { 212 *fenceFd = fence->dup(); 214 ALOGE("dequeueBuffer: error duping fence: %d", errno); 236 sp<Fence> fence(fenceFd >= 0 ? new Fence(fenceFd) : Fence::NO_FENCE); 237 mGraphicBufferProducer->cancelBuffer(i, fence); [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | DispSync.cpp | 56 // This is the offset from the present fence timestamps to the corresponding 328 bool DispSync::addPresentFence(const sp<Fence>& fence) { argument 331 mPresentFences[mPresentSampleOffset] = fence;
|
H A D | Layer.cpp | 426 // acquire fence the first time a new buffer is acquired on EACH display. 429 sp<Fence> fence = mSurfaceFlingerConsumer->getCurrentFence(); local 430 if (fence->isValid()) { 431 fenceFd = fence->dup(); 433 ALOGW("failed to dup layer fence, skipping sync: %d", errno); 913 // There was no fence for this frame, so assume that it was ready
|
/frameworks/base/location/java/android/location/ |
H A D | LocationManager.java | 963 Geofence fence = Geofence.createCircle(latitude, longitude, radius); 966 mService.requestGeofence(request, fence, intent, mContext.getPackageName()); 989 * a geo-fence without notification, but the system will do its best 998 * @param fence a geographical description of the geofence area 1001 * @throws IllegalArgumentException if fence is null 1008 public void addGeofence(LocationRequest request, Geofence fence, PendingIntent intent) { argument 1010 checkGeofence(fence); 1013 mService.requestGeofence(request, fence, intent, mContext.getPackageName()); 1052 * @param fence a geofence previously passed to {@link #addGeofence} 1055 * @throws IllegalArgumentException if fence i 1062 removeGeofence(Geofence fence, PendingIntent intent) argument 1654 checkGeofence(Geofence fence) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | OpenGLRenderer.cpp | 711 AutoFence fence; local
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_api.cpp | 14767 GLboolean GLTrace_glIsFenceNV(GLuint fence) { argument 14773 // copy argument fence 14777 arg_fence->add_intvalue(fence); 14782 GLboolean retValue = glContext->hooks->gl.glIsFenceNV(fence); 14803 GLboolean GLTrace_glTestFenceNV(GLuint fence) { argument 14809 // copy argument fence 14813 arg_fence->add_intvalue(fence); 14818 GLboolean retValue = glContext->hooks->gl.glTestFenceNV(fence); 14839 void GLTrace_glGetFenceivNV(GLuint fence, GLenum pname, GLint *params) { argument 14845 // copy argument fence 14880 GLTrace_glFinishFenceNV(GLuint fence) argument 14908 GLTrace_glSetFenceNV(GLuint fence, GLenum condition) argument [all...] |