Java Code Examples for com.facebook.common.logging.FLog#v()
The following examples show how to use
com.facebook.common.logging.FLog#v() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultBitmapFramePreparer.java From fresco with MIT License | 6 votes |
@Override public void run() { try { // If we have a cached frame already, we don't need to do anything. if (mBitmapFrameCache.contains(mFrameNumber)) { FLog.v(TAG, "Frame %d is cached already.", mFrameNumber); return; } // Prepare the frame. if (prepareFrameAndCache(mFrameNumber, BitmapAnimationBackend.FRAME_TYPE_REUSED)) { FLog.v(TAG, "Prepared frame frame %d.", mFrameNumber); } else { FLog.e(TAG, "Could not prepare frame %d.", mFrameNumber); } } finally { synchronized (mPendingFrameDecodeJobs) { mPendingFrameDecodeJobs.remove(mHashCode); } } }
Example 2
Source File: AbstractDraweeController.java From fresco with MIT License | 6 votes |
@Override public void onAttach() { if (FrescoSystrace.isTracing()) { FrescoSystrace.beginSection("AbstractDraweeController#onAttach"); } if (FLog.isLoggable(FLog.VERBOSE)) { FLog.v( TAG, "controller %x %s: onAttach: %s", System.identityHashCode(this), mId, mIsRequestSubmitted ? "request already submitted" : "request needs submit"); } mEventTracker.recordEvent(Event.ON_ATTACH_CONTROLLER); Preconditions.checkNotNull(mSettableDraweeHierarchy); mDeferredReleaser.cancelDeferredRelease(this); mIsAttached = true; if (!mIsRequestSubmitted) { submitRequest(); } if (FrescoSystrace.isTracing()) { FrescoSystrace.endSection(); } }
Example 3
Source File: ZoomableDraweeView.java From droidddle with Apache License 2.0 | 5 votes |
@Override public boolean onTouchEvent(MotionEvent event) { if (mZoomableController.onTouchEvent(event)) { if (mZoomableController.getScaleFactor() > 1.0f) { getParent().requestDisallowInterceptTouchEvent(true); } FLog.v(TAG, "onTouchEvent: view %x, handled by zoomable controller", this.hashCode()); return true; } FLog.v(TAG, "onTouchEvent: view %x, handled by the super", this.hashCode()); return super.onTouchEvent(event); }
Example 4
Source File: AnimatedDrawableDiagnosticsImpl.java From FanXin-based-HuanXin with GNU General Public License v2.0 | 5 votes |
@Override public void onStartMethodEnd() { long elapsedMs = SystemClock.elapsedRealtime() - mLastTimeStamp; if (elapsedMs > 3) { FLog.v(TAG, "onStart took %d", elapsedMs); } }
Example 5
Source File: AbstractAnimatedZoomableController.java From CommentGallery with Apache License 2.0 | 5 votes |
@Override public void onGestureUpdate(TransformGestureDetector detector) { FLog.v(getLogTag(), "onGestureUpdate %s", isAnimating() ? "(ignored)" : ""); if (isAnimating()) { return; } super.onGestureUpdate(detector); }
Example 6
Source File: AbstractDraweeController.java From fresco with MIT License | 5 votes |
private void logMessageAndImage(String messageAndMethod, T image) { if (FLog.isLoggable(FLog.VERBOSE)) { FLog.v( TAG, "controller %x %s: %s: image: %s %x", System.identityHashCode(this), mId, messageAndMethod, getImageClass(image), getImageHash(image)); } }
Example 7
Source File: AbstractDraweeController.java From fresco with MIT License | 5 votes |
private void logMessageAndFailure(String messageAndMethod, Throwable throwable) { if (FLog.isLoggable(FLog.VERBOSE)) { FLog.v( TAG, "controller %x %s: %s: failure: %s", System.identityHashCode(this), mId, messageAndMethod, throwable); } }
Example 8
Source File: AnimatedZoomableControllerSupport.java From CommentGallery with Apache License 2.0 | 5 votes |
public void stopAnimation() { if (!isAnimating()) { return; } FLog.v(getLogTag(), "stopAnimation"); mValueAnimator.cancel(); mValueAnimator.removeAllUpdateListeners(); mValueAnimator.removeAllListeners(); }
Example 9
Source File: AnimatedDrawable2.java From fresco with MIT License | 5 votes |
private void onFrameDropped() { mDroppedFrames++; // we need to drop frames if (FLog.isLoggable(FLog.VERBOSE)) { FLog.v(TAG, "Dropped a frame. Count: %s", mDroppedFrames); } }
Example 10
Source File: ZoomableDraweeView.java From CommentGallery with Apache License 2.0 | 5 votes |
private void onFinalImageSet() { FLog.v(getLogTag(), "onFinalImageSet: view %x", this.hashCode()); if (!mZoomableController.isEnabled()) { updateZoomableControllerBounds(); mZoomableController.setEnabled(true); } }
Example 11
Source File: ZoomableDraweeView.java From ZoomableDraweeView-sample with Apache License 2.0 | 5 votes |
private void updateZoomableControllerBounds() { getHierarchy().getActualImageBounds(mImageBounds); mViewBounds.set(0, 0, getWidth(), getHeight()); mZoomableController.setImageBounds(mImageBounds); mZoomableController.setViewBounds(mViewBounds); FLog.v( TAG, "updateZoomableControllerBounds: view %x, view bounds: %s, image bounds: %s", this.hashCode(), mViewBounds, mImageBounds); }
Example 12
Source File: RequestLoggingListener.java From fresco with MIT License | 5 votes |
@Override public synchronized void onProducerStart(String requestId, String producerName) { if (FLog.isLoggable(FLog.VERBOSE)) { Pair<String, String> mapKey = Pair.create(requestId, producerName); long startTime = getTime(); mProducerStartTimeMap.put(mapKey, startTime); FLog.v( TAG, "time %d: onProducerStart: {requestId: %s, producer: %s}", startTime, requestId, producerName); } }
Example 13
Source File: FrescoFrameCache.java From fresco with MIT License | 5 votes |
@Override public synchronized void onFramePrepared( int frameNumber, CloseableReference<Bitmap> bitmapReference, @BitmapAnimationBackend.FrameType int frameType) { Preconditions.checkNotNull(bitmapReference); CloseableReference<CloseableImage> closableReference = null; try { closableReference = createImageReference(bitmapReference); if (closableReference == null) { return; } CloseableReference<CloseableImage> newReference = mAnimatedFrameCache.cache(frameNumber, closableReference); if (CloseableReference.isValid(newReference)) { CloseableReference<CloseableImage> oldReference = mPreparedPendingFrames.get(frameNumber); CloseableReference.closeSafely(oldReference); // For performance reasons, we don't clone the reference and close the original one // but cache the reference directly. mPreparedPendingFrames.put(frameNumber, newReference); FLog.v( TAG, "cachePreparedFrame(%d) cached. Pending frames: %s", frameNumber, mPreparedPendingFrames); } } finally { CloseableReference.closeSafely(closableReference); } }
Example 14
Source File: AbstractAnimatedZoomableController.java From fresco with MIT License | 5 votes |
@Override public void reset() { FLog.v(getLogTag(), "reset"); stopAnimation(); mWorkingTransform.reset(); mNewTransform.reset(); super.reset(); }
Example 15
Source File: AnimatedZoomableController.java From fresco with MIT License | 5 votes |
@SuppressLint("NewApi") @Override public void stopAnimation() { if (!isAnimating()) { return; } FLog.v(getLogTag(), "stopAnimation"); mValueAnimator.cancel(); mValueAnimator.removeAllUpdateListeners(); mValueAnimator.removeAllListeners(); }
Example 16
Source File: AnimatedDrawableDiagnosticsImpl.java From FanXin-based-HuanXin with GNU General Public License v2.0 | 4 votes |
@Override public void onDrawMethodEnd() { long elapsedMs = SystemClock.elapsedRealtime() - mLastTimeStamp; FLog.v(TAG, "draw took %d", elapsedMs); }
Example 17
Source File: AnimatedDrawable.java From FanXin-based-HuanXin with GNU General Public License v2.0 | 4 votes |
@Override public void run() { FLog.v(TAG, "(%s) Next Frame Task", mLogId); onNextFrame(); }
Example 18
Source File: BufferedDiskCache.java From fresco with MIT License | 4 votes |
private Task<EncodedImage> foundPinnedImage(CacheKey key, EncodedImage pinnedImage) { FLog.v(TAG, "Found image for %s in staging area", key.getUriString()); mImageCacheStatsTracker.onStagingAreaHit(key); return Task.forResult(pinnedImage); }
Example 19
Source File: ZoomableDraweeView.java From CommentGallery with Apache License 2.0 | 4 votes |
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { FLog.v(getLogTag(), "onLayout: view %x", this.hashCode()); super.onLayout(changed, left, top, right, bottom); updateZoomableControllerBounds(); }
Example 20
Source File: ZoomableDraweeView.java From materialup with Apache License 2.0 | 4 votes |
private void onRelease() { FLog.v(TAG, "onRelease: view %x", this.hashCode()); mZoomableController.setEnabled(false); }