本文整理匯總了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);
}
}
示例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();
}
}
示例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));
}
}
示例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();
}
示例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);
}
示例6: reset
import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void reset() {
FLog.v(getLogTag(), "reset");
stopAnimation();
mWorkingTransform.reset();
mNewTransform.reset();
super.reset();
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
}
示例13: reset
import com.facebook.common.logging.FLog; //導入方法依賴的package包/類
@Override
public void reset() {
FLog.v(getLogTag(), "reset");
stopAnimation();
mWorkingTransform.reset();
mNewTransform.reset();
super.reset();
}
示例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);
}
}
示例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);
}