當前位置: 首頁>>代碼示例>>Java>>正文


Java FLog.v方法代碼示例

本文整理匯總了Java中com.facebook.common.logging.FLog.v方法的典型用法代碼示例。如果您正苦於以下問題:Java FLog.v方法的具體用法?Java FLog.v怎麽用?Java FLog.v使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.facebook.common.logging.FLog的用法示例。


在下文中一共展示了FLog.v方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onUltimateProducerReached

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public synchronized void onUltimateProducerReached(
    String requestId,
    String producerName,
    boolean successful) {
  if (FLog.isLoggable(FLog.VERBOSE)) {
    Pair<String, String> mapKey = Pair.create(requestId, producerName);
    Long startTime = mProducerStartTimeMap.remove(mapKey);
    long currentTime = getTime();
    FLog.v(
        TAG,
        "time %d: onUltimateProducerReached: " +
            "{requestId: %s, producer: %s, elapsedTime: %d ms, success: %b}",
        currentTime,
        requestId,
        producerName,
        getElapsedTime(startTime, currentTime),
        successful);
  }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:21,代碼來源:RequestLoggingListener.java

示例2: onAttach

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void 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();
  }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:19,代碼來源:AbstractDraweeController.java

示例3: onProducerEvent

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public synchronized void onProducerEvent(
    String requestId, String producerName, String producerEventName) {
  if (FLog.isLoggable(FLog.VERBOSE)) {
    Pair<String, String> mapKey = Pair.create(requestId, producerName);
    Long startTime = mProducerStartTimeMap.get(mapKey);
    long currentTime = getTime();
    FLog.v(
        TAG,
        "time %d: onProducerEvent: {requestId: %s, stage: %s, eventName: %s; elapsedTime: %d ms}",
        getTime(),
        requestId,
        producerName,
        producerEventName,
        getElapsedTime(startTime, currentTime));
  }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:18,代碼來源:RequestLoggingListener.java

示例4: stopAnimation

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@SuppressLint("NewApi")
@Override
public void stopAnimation() {
  if (!isAnimating()) {
    return;
  }
  FLog.v(getLogTag(), "stopAnimation");
  mValueAnimator.cancel();
  mValueAnimator.removeAllUpdateListeners();
  mValueAnimator.removeAllListeners();
}
 
開發者ID:idisfkj,項目名稱:Zoomable,代碼行數:12,代碼來源:AnimatedZoomableController.java

示例5: updateZoomableControllerBounds

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
protected void updateZoomableControllerBounds() {
    getImageBounds(mImageBounds);
    getLimitBounds(mViewBounds);
    mZoomableController.setImageBounds(mImageBounds);
    mZoomableController.setViewBounds(mViewBounds);
    FLog.v(
            getLogTag(),
            "updateZoomableControllerBounds: view %x, view bounds: %s, image bounds: %s",
            this.hashCode(),
            mViewBounds,
            mImageBounds);
}
 
開發者ID:idisfkj,項目名稱:Zoomable,代碼行數:13,代碼來源:ZoomableDraweeView.java

示例6: reset

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void reset() {
  FLog.v(getLogTag(), "reset");
  stopAnimation();
  mWorkingTransform.reset();
  mNewTransform.reset();
  super.reset();
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:9,代碼來源:AbstractAnimatedZoomableController.java

示例7: onFrameDropped

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
private void onFrameDropped() {
  mDroppedFrames++;
  // we need to drop frames
  if (FLog.isLoggable(FLog.VERBOSE)) {
    FLog.v(TAG, "Dropped a frame. Count: %s", mDroppedFrames);
  }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:8,代碼來源:AnimatedDrawable2.java

示例8: onDetach

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void onDetach() {
  if (FLog.isLoggable(FLog.VERBOSE)) {
    FLog.v(TAG, "controller %x %s: onDetach", System.identityHashCode(this), mId);
  }
  mEventTracker.recordEvent(Event.ON_DETACH_CONTROLLER);
  mIsAttached = false;
  mDeferredReleaser.scheduleDeferredRelease(this);
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:10,代碼來源:AbstractDraweeController.java

示例9: onFinalImageSet

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
private void onFinalImageSet() {
  FLog.v(TAG, "onFinalImageSet: view %x", this.hashCode());
  if (!mZoomableController.isEnabled()) {
    updateZoomableControllerBounds();
    mZoomableController.setEnabled(true);
  }
}
 
開發者ID:mingdroid,項目名稱:tumbviewer,代碼行數:8,代碼來源:ZoomableDraweeView.java

示例10: onGestureUpdate

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void onGestureUpdate(TransformGestureDetector detector) {
  FLog.v(getLogTag(), "onGestureUpdate %s", isAnimating() ? "(ignored)" : "");
  if (isAnimating()) {
    return;
  }
  super.onGestureUpdate(detector);
}
 
開發者ID:idisfkj,項目名稱:Zoomable,代碼行數:9,代碼來源:AbstractAnimatedZoomableController.java

示例11: updateZoomableControllerBounds

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
protected void updateZoomableControllerBounds() {
  getImageBounds(mImageBounds);
  getLimitBounds(mViewBounds);
  mZoomableController.setImageBounds(mImageBounds);
  mZoomableController.setViewBounds(mViewBounds);
  FLog.v(
      getLogTag(),
      "updateZoomableControllerBounds: view %x, view bounds: %s, image bounds: %s",
      this.hashCode(),
      mViewBounds,
      mImageBounds);
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:13,代碼來源:ZoomableDraweeView.java

示例12: setHierarchy

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
/**
 * Sets the hierarchy.
 *
 * <p>The controller should be detached when this method is called.
 * @param hierarchy This must be an instance of {@link SettableDraweeHierarchy}
 */
@Override
public void setHierarchy(@Nullable DraweeHierarchy hierarchy) {
  if (FLog.isLoggable(FLog.VERBOSE)) {
    FLog.v(
        TAG,
        "controller %x %s: setHierarchy: %s",
        System.identityHashCode(this),
        mId,
        hierarchy);
  }
  mEventTracker.recordEvent(
      (hierarchy != null) ? Event.ON_SET_HIERARCHY : Event.ON_CLEAR_HIERARCHY);
  // force release in case request was submitted
  if (mIsRequestSubmitted) {
    mDeferredReleaser.cancelDeferredRelease(this);
    release();
  }
  // clear the existing hierarchy
  if (mSettableDraweeHierarchy != null) {
    mSettableDraweeHierarchy.setControllerOverlay(null);
    mSettableDraweeHierarchy = null;
  }
  // set the new hierarchy
  if (hierarchy != null) {
    Preconditions.checkArgument(hierarchy instanceof SettableDraweeHierarchy);
    mSettableDraweeHierarchy = (SettableDraweeHierarchy) hierarchy;
    mSettableDraweeHierarchy.setControllerOverlay(mControllerOverlay);
  }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:36,代碼來源:AbstractDraweeController.java

示例13: reset

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void reset() {
    FLog.v(getLogTag(), "reset");
    stopAnimation();
    mWorkingTransform.reset();
    mNewTransform.reset();
    super.reset();
}
 
開發者ID:ibosong,項目名稱:CommentGallery,代碼行數:9,代碼來源:AbstractAnimatedZoomableController.java

示例14: logStats

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
/**
 * Simple 'debug' logging of stats.
 * WARNING: The caller is responsible for synchronization
 */
@SuppressLint("InvalidAccessToGuardedField")
private void logStats() {
  if (FLog.isLoggable(FLog.VERBOSE)) {
    FLog.v(
        TAG,
        "Used = (%d, %d); Free = (%d, %d)",
        mUsed.mCount,
        mUsed.mNumBytes,
        mFree.mCount,
        mFree.mNumBytes);
  }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:17,代碼來源:BasePool.java

示例15: onGestureUpdate

import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void onGestureUpdate(TransformGestureDetector detector) {
    FLog.v(getLogTag(), "onGestureUpdate %s", isAnimating() ? "(ignored)" : "");
    if (isAnimating()) {
        return;
    }
    super.onGestureUpdate(detector);
}
 
開發者ID:ibosong,項目名稱:CommentGallery,代碼行數:9,代碼來源:AbstractAnimatedZoomableController.java


注:本文中的com.facebook.common.logging.FLog.v方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。