Example usage for android.util DebugUtils buildShortClassTag

List of usage examples for android.util DebugUtils buildShortClassTag

Introduction

In this page you can find the example usage for android.util DebugUtils buildShortClassTag.

Prototype

@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023)
public static void buildShortClassTag(Object cls, StringBuilder out) 

Source Link

Usage

From source file:android.app.FragmentManager.java

@Override
public String toString() {
    StringBuilder sb = new StringBuilder(128);
    sb.append("FragmentManager{");
    sb.append(Integer.toHexString(System.identityHashCode(this)));
    sb.append(" in ");
    if (mParent != null) {
        DebugUtils.buildShortClassTag(mParent, sb);
    } else {// www  . ja v a  2  s.  com
        DebugUtils.buildShortClassTag(mActivity, sb);
    }
    sb.append("}}");
    return sb.toString();
}

From source file:android.app.FragmentState.java

@Override
public String toString() {
    StringBuilder sb = new StringBuilder(128);
    DebugUtils.buildShortClassTag(this, sb);
    if (mIndex >= 0) {
        sb.append(" #");
        sb.append(mIndex);//w  w  w.j  a va2s.  c o m
    }
    if (mFragmentId != 0) {
        sb.append(" id=0x");
        sb.append(Integer.toHexString(mFragmentId));
    }
    if (mTag != null) {
        sb.append(" ");
        sb.append(mTag);
    }
    sb.append('}');
    return sb.toString();
}

From source file:android.app.LoaderManager.java

@Override
public String toString() {
    StringBuilder sb = new StringBuilder(128);
    sb.append("LoaderManager{");
    sb.append(Integer.toHexString(System.identityHashCode(this)));
    sb.append(" in ");
    DebugUtils.buildShortClassTag(mActivity, sb);
    sb.append("}}");
    return sb.toString();
}