/frameworks/base/services/core/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 | 123 // 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...] |
H A D | BufferQueueConsumer.h | 60 // 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 D | ConsumerBase.h | 173 // addReleaseFence* adds the sync points associated with a fence to the set 179 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence); 181 const sp<GraphicBuffer> graphicBuffer, const sp<Fence>& fence); 190 // mFence is a fence which will signal when the buffer associated with 192 // overwritten. The buffer can be dequeued before the fence signals;
|
H A D | BufferQueueProducer.h | 65 // The outFence parameter will be updated to hold the fence associated with 67 // fence signals. If the fence is Fence::NO_FENCE, the buffer may be 117 // The caller may provide a fence that signals when all rendering 130 // The buffer will not be overwritten until the fence signals. The fence 132 virtual void cancelBuffer(int slot, const sp<Fence>& fence); 200 // This saves the fence from the last queueBuffer, such that the 202 // queueBuffer's fence is not nessessarily available elsewhere,
|
/frameworks/native/services/surfaceflinger/ |
H A D | MonitoredProducer.cpp | 63 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 D | MonitoredProducer.h | 39 virtual status_t dequeueBuffer(int* slot, sp<Fence>* fence, bool async, 48 virtual void cancelBuffer(int slot, const sp<Fence>& fence);
|
H A D | DispSync.h | 51 // 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 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); 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/native/libs/gui/ |
H A D | IGraphicBufferProducer.cpp | 93 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 D | ConsumerBase.cpp | 203 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 D | GLConsumer.cpp | 271 // 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 D | StreamSplitter.cpp | 192 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 D | Surface.cpp | 132 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 D | StreamSplitter_test.cpp | 100 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 D | BufferQueue_test.cpp | 114 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 D | IGraphicBufferProducer_test.cpp | 133 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/base/services/core/jni/ |
H A D | com_android_server_AssetAtlasService.cpp | 81 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/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.h | 102 virtual status_t dequeueBuffer(int* pslot, sp<Fence>* fence, bool async, 110 virtual void cancelBuffer(int pslot, const sp<Fence>& fence); 124 int* sslot, sp<Fence>* fence); 184 // mFbFence is the fence HWC should wait for before reading the framebuffer 188 // mOutputFence is the fence HWC should wait for before writing to the
|
H A D | VirtualDisplaySurface.cpp | 197 // 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/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
|
/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 | 970 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...] |