/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...] |
H A D | ConsumerBase.h | 170 // addReleaseFence* adds the sync points associated with a fence to the set 176 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence); 178 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence); 187 // mFence is a fence which will signal when the buffer associated with 189 // overwritten. The buffer can be dequeued before the fence signals;
|
H A D | BufferQueue.h | 129 // The fence parameter will be updated to hold the fence associated with 131 // fence signals. If the fence is Fence::NO_FENCE, the buffer may be 160 virtual status_t dequeueBuffer(int *buf, sp<Fence>* fence, bool async, 171 // The caller may provide a fence that signals when all rendering 184 // The buffer will not be overwritten until the fence signals. The fence 186 virtual void cancelBuffer(int buf, const sp<Fence>& fence); 231 // being accessed. The fence wil [all...] |
H A D | IGraphicBufferConsumer.h | 59 // mFence is a fence that will signal when the buffer is idle. 118 // being accessed. The fence will signal when the buffer is no longer 129 EGLDisplay display, EGLSyncKHR fence,
|
H A D | GLConsumer.h | 104 // setReleaseFence stores a fence that will signal when the current buffer 105 // is no longer being read. This fence will be returned to the producer 108 // union fence. 109 void setReleaseFence(const sp<Fence>& fence); 181 // getCurrentFence returns the fence indicating when the current buffer is 298 // current slot's fence to guard against a producer accessing the buffer 335 // mCurrentFence is the fence received from BufferQueue in updateTexImage.
|
/frameworks/native/libs/gui/ |
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 | 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 | 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...] |
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 | 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...] |
/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/native/services/surfaceflinger/DisplayHardware/ |
H A D | VirtualDisplaySurface.h | 99 virtual status_t dequeueBuffer(int* pslot, sp<Fence>* fence, bool async, 103 virtual void cancelBuffer(int pslot, const sp<Fence>& fence); 114 int* sslot, sp<Fence>* fence); 174 // mFbFence is the fence HWC should wait for before reading the framebuffer 178 // mOutputFence is the fence HWC should wait for before writing to the
|
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/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/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 | StatusTracker.cpp | 126 // - If invalid fence or error, returns -1 170 // First pass for changed components or fence completions 186 mIdleFence, newState.fence);
|
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/ |
H A D | DispSync.h | 39 // to the DispSync object via the addPresentFence method. These fence 60 // addPresentFence adds a fence for use in validating the current vsync 61 // event model. The fence need not be signaled at the time 62 // addPresentFence is called. When the fence does signal, its timestamp 67 // This method should be called with the retire fence from each HWComposer 69 bool addPresentFence(const sp<Fence>& fence);
|
H A D | FrameTracker.h | 37 // 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); 104 // processFences iterates over all the frame records that have a fence set 105 // and replaces that fence with a timestamp if the fence has signaled. If 106 // the fence i [all...] |
/frameworks/native/libs/ui/ |
H A D | FramebufferNativeWindow.cpp | 225 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 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...] |
H A D | ILocationManager.aidl | 46 void removeGeofence(in Geofence fence, in PendingIntent intent, String packageName);
|