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

/frameworks/base/services/java/com/android/server/location/
H A DGeofenceState.java42 double mDistanceToCenter; // current distance to center of fence
44 public GeofenceState(Geofence fence, long expireAt, argument
49 mFence = fence;
55 mLocation.setLatitude(fence.getLatitude());
56 mLocation.setLongitude(fence.getLongitude());
61 * @return FLAG_ENTER or FLAG_EXIT if the fence was crossed, 0 otherwise
84 * Gets the distance from the current location to the fence's boundary.
H A DGeofenceManager.java140 public void removeFence(Geofence fence, PendingIntent intent) { argument
142 Slog.d(TAG, "removeFence: fence=" + fence + ", intent=" + intent);
151 if (fence == null) {
156 if (fence.equals(state.mFence)) {
252 // Keep track of the distance to the nearest fence.
286 // Compute a location update interval based on the distance to the nearest fence.
/frameworks/native/libs/gui/
H A DISurfaceTexture.cpp84 virtual status_t dequeueBuffer(int *buf, sp<Fence>& fence, argument
97 fence.clear();
100 fence = new Fence();
101 reply.read(*fence.get());
122 virtual void cancelBuffer(int buf, sp<Fence> fence) { argument
124 bool hasFence = fence.get() && fence->isValid();
129 data.write(*fence.get());
219 sp<Fence> fence; local
220 int result = dequeueBuffer(&buf, fence,
244 sp<Fence> fence; local
292 isValid(const sp<Fence>& fence) argument
[all...]
H A DConsumerBase.cpp195 status_t ConsumerBase::addReleaseFence(int slot, const sp<Fence>& fence) { argument
197 return addReleaseFenceLocked(slot, fence);
200 status_t ConsumerBase::addReleaseFenceLocked(int slot, const sp<Fence>& fence) { argument
204 mSlots[slot].mFence = fence;
208 mSlots[slot].mFence, fence);
212 // signal in order so the new fence will act like a union
213 mSlots[slot].mFence = fence;
H A DSurfaceTextureClient.cpp135 sp<Fence> fence(new Fence(fenceFd));
136 int waitResult = fence->waitForever(1000, "dequeueBuffer_DEPRECATED");
204 sp<Fence> fence; local
205 status_t result = mSurfaceTexture->dequeueBuffer(&buf, fence, reqW, reqH,
227 if (fence.get()) {
228 *fenceFd = fence->dup();
230 ALOGE("dequeueBuffer: error duping fence: %d", errno);
252 sp<Fence> fence(fenceFd >= 0 ? new Fence(fenceFd) : NULL);
253 mSurfaceTexture->cancelBuffer(i, fence);
298 sp<Fence> fence(fenceF
[all...]
H A DSurfaceTexture.cpp326 sp<Fence> fence(new Fence(fenceFd));
329 status_t err = addReleaseFence(mCurrentTexture, fence);
331 ST_LOGE("setReleaseFence: failed to add the fence: %s (%d)",
474 ST_LOGE("syncForReleaseLocked: error creating EGL fence: %#x",
482 ST_LOGE("syncForReleaseLocked: error dup'ing native fence "
486 sp<Fence> fence(new Fence(fenceFd));
487 status_t err = addReleaseFenceLocked(mCurrentTexture, fence);
489 ST_LOGE("syncForReleaseLocked: error adding release fence: "
494 EGLSyncKHR fence = mEglSlots[mCurrentTexture].mEglFence; local
495 if (fence !
[all...]
H A DBufferQueue.cpp434 ST_LOGE("dequeueBuffer: error waiting for fence: %#x", eglGetError());
436 ST_LOGE("dequeueBuffer: timeout waiting for fence");
488 sp<Fence> fence; local
490 input.deflate(&timestamp, &crop, &scalingMode, &transform, &fence);
558 mSlots[buf].mFence = fence;
592 void BufferQueue::cancelBuffer(int buf, sp<Fence> fence) { argument
614 mSlots[buf].mFence = fence;
784 // destroy fence as BufferQueue now takes ownership
861 EGLSyncKHR eglFence, const sp<Fence>& fence) {
873 mSlots[buf].mFence = fence;
860 releaseBuffer(int buf, EGLDisplay display, EGLSyncKHR eglFence, const sp<Fence>& fence) argument
[all...]
/frameworks/native/include/gui/
H A DISurfaceTexture.h69 // The fence parameter will be updated to hold the fence associated with
71 // fence signals. If the fence is NULL, the buffer may be written
73 virtual status_t dequeueBuffer(int *slot, sp<Fence>& fence,
93 sp<Fence> fence)
95 transform(transform), fence(fence) { }
103 *outFence = fence;
119 sp<Fence> fence; member in struct:android::ISurfaceTexture::QueueBufferInput
91 QueueBufferInput(int64_t timestamp, const Rect& crop, int scalingMode, uint32_t transform, sp<Fence> fence) argument
[all...]
H A DConsumerBase.h157 // addReleaseFence* adds the sync points associated with a fence to the set
162 status_t addReleaseFence(int slot, const sp<Fence>& fence);
163 status_t addReleaseFenceLocked(int slot, const sp<Fence>& fence);
172 // mFence is a fence which will signal when the buffer associated with
174 // overwritten. The buffer can be dequeued before the fence signals;
H A DBufferQueue.h122 // The fence parameter will be updated to hold the fence associated with
124 // fence signals. If the fence is NULL, the buffer may be written
131 virtual status_t dequeueBuffer(int *buf, sp<Fence>& fence,
142 virtual void cancelBuffer(int buf, sp<Fence> fence);
208 // mFence is a fence that will signal when the buffer is idle.
224 // BufferQueue pending a fence sync.
233 status_t releaseBuffer(int buf, EGLDisplay display, EGLSyncKHR fence,
425 // mFence is a fence whic
[all...]
/frameworks/native/libs/gui/tests/
H A DBufferQueue_test.cpp71 sp<Fence> fence; local
74 NATIVE_WINDOW_SCALING_MODE_FREEZE, 0, fence);
79 mBQ->dequeueBuffer(&slot, fence, 1, 1, 0,
87 mBQ->dequeueBuffer(&slot, fence, 1, 1, 0,
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFramebufferSurface.cpp135 sp<Fence> fence(new Fence(fenceFd));
137 status_t err = addReleaseFence(mCurrentBufferSlot, fence);
138 ALOGE_IF(err, "setReleaseFenceFd: failed to add the fence: %s (%d)",
/frameworks/native/libs/ui/
H A DFramebufferNativeWindow.cpp225 sp<Fence> fence(new Fence(fenceFd));
226 int waitResult = fence->wait(Fence::TIMEOUT_NEVER);
282 sp<Fence> fence(new Fence(fenceFd));
283 fence->wait(Fence::TIMEOUT_NEVER);
/frameworks/base/location/java/android/location/
H A DLocationManager.java939 Geofence fence = Geofence.createCircle(latitude, longitude, radius);
942 mService.requestGeofence(request, fence, intent, mContext.getPackageName());
965 * a geo-fence without notification, but the system will do its best
974 * @param fence a geographical description of the geofence area
977 * @throws IllegalArgumentException if fence is null
984 public void addGeofence(LocationRequest request, Geofence fence, PendingIntent intent) { argument
986 checkGeofence(fence);
989 mService.requestGeofence(request, fence, intent, mContext.getPackageName());
1028 * @param fence a geofence previously passed to {@link #addGeofence}
1031 * @throws IllegalArgumentException if fence i
1038 removeGeofence(Geofence fence, PendingIntent intent) argument
1625 checkGeofence(Geofence fence) argument
[all...]
H A DILocationManager.aidl46 void removeGeofence(in Geofence fence, in PendingIntent intent, String packageName);
/frameworks/native/opengl/include/GLES/
H A Dglext.h1085 GL_API GLboolean GL_APIENTRY glIsFenceNV (GLuint fence);
1086 GL_API GLboolean GL_APIENTRY glTestFenceNV (GLuint fence);
1087 GL_API void GL_APIENTRY glGetFenceivNV (GLuint fence, GLenum pname, GLint *params);
1088 GL_API void GL_APIENTRY glFinishFenceNV (GLuint fence);
1089 GL_API void GL_APIENTRY glSetFenceNV (GLuint fence, GLenum condition);
1093 typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
1094 typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
1095 typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
1096 typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
1097 typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenu
[all...]
/frameworks/native/opengl/include/GLES2/
H A Dgl2ext.h1268 GL_APICALL GLboolean GL_APIENTRY glIsFenceNV (GLuint fence);
1269 GL_APICALL GLboolean GL_APIENTRY glTestFenceNV (GLuint fence);
1270 GL_APICALL void GL_APIENTRY glGetFenceivNV (GLuint fence, GLenum pname, GLint *params);
1271 GL_APICALL void GL_APIENTRY glFinishFenceNV (GLuint fence);
1272 GL_APICALL void GL_APIENTRY glSetFenceNV (GLuint fence, GLenum condition);
1276 typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
1277 typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
1278 typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
1279 typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
1280 typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenu
[all...]
/frameworks/native/services/surfaceflinger/
H A DLayer.cpp297 // acquire fence the first time a new buffer is acquired on EACH display.
300 sp<Fence> fence = mSurfaceTexture->getCurrentFence(); local
301 if (fence.get()) {
302 fenceFd = fence->dup();
304 ALOGW("failed to dup layer fence, skipping sync: %d", errno);
345 ALOGE("onDraw: failed waiting for fence: %d", err);
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_api.h265 GLboolean GLTrace_glIsFenceNV(GLuint fence);
266 GLboolean GLTrace_glTestFenceNV(GLuint fence);
267 void GLTrace_glGetFenceivNV(GLuint fence, GLenum pname, GLint *params);
268 void GLTrace_glFinishFenceNV(GLuint fence);
269 void GLTrace_glSetFenceNV(GLuint fence, GLenum condition);
H A Dgltrace_api.cpp10147 GLboolean GLTrace_glIsFenceNV(GLuint fence) { argument
10153 // copy argument fence
10157 arg_fence->add_intvalue(fence);
10162 GLboolean retValue = glContext->hooks->gl.glIsFenceNV(fence);
10183 GLboolean GLTrace_glTestFenceNV(GLuint fence) { argument
10189 // copy argument fence
10193 arg_fence->add_intvalue(fence);
10198 GLboolean retValue = glContext->hooks->gl.glTestFenceNV(fence);
10219 void GLTrace_glGetFenceivNV(GLuint fence, GLenum pname, GLint *params) { argument
10225 // copy argument fence
10260 GLTrace_glFinishFenceNV(GLuint fence) argument
10288 GLTrace_glSetFenceNV(GLuint fence, GLenum condition) argument
[all...]
/frameworks/native/opengl/libagl/
H A Degl.cpp383 sp<Fence> fence(new Fence(fenceFd));
384 if (fence->wait(Fence::TIMEOUT_NEVER) != NO_ERROR) {
534 sp<Fence> fence(new Fence(fenceFd));
535 if (fence->wait(Fence::TIMEOUT_NEVER)) {

Completed in 279 milliseconds