Java Code Examples for android.support.v4.util.DebugUtils#buildShortClassTag()

The following examples show how to use android.support.v4.util.DebugUtils#buildShortClassTag() . 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: Fragment.java    From adt-leanback-support with Apache License 2.0 6 votes vote down vote up
@Override
public String toString() {
    StringBuilder sb = new StringBuilder(128);
    DebugUtils.buildShortClassTag(this, sb);
    if (mIndex >= 0) {
        sb.append(" #");
        sb.append(mIndex);
    }
    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();
}
 
Example 2
Source File: Fragment.java    From android-recipes-app with Apache License 2.0 6 votes vote down vote up
@Override
public String toString() {
    StringBuilder sb = new StringBuilder(128);
    DebugUtils.buildShortClassTag(this, sb);
    if (mIndex >= 0) {
        sb.append(" #");
        sb.append(mIndex);
    }
    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();
}
 
Example 3
Source File: v.java    From MiBandDecompiled with Apache License 2.0 6 votes vote down vote up
public String toString()
{
    StringBuilder stringbuilder = new StringBuilder(128);
    stringbuilder.append("FragmentManager{");
    stringbuilder.append(Integer.toHexString(System.identityHashCode(this)));
    stringbuilder.append(" in ");
    if (v != null)
    {
        DebugUtils.buildShortClassTag(v, stringbuilder);
    } else
    {
        DebugUtils.buildShortClassTag(t, stringbuilder);
    }
    stringbuilder.append("}}");
    return stringbuilder.toString();
}
 
Example 4
Source File: Fragment.java    From droidel with Apache License 2.0 6 votes vote down vote up
@Override
public String toString() {
    StringBuilder sb = new StringBuilder(128);
    DebugUtils.buildShortClassTag(this, sb);
    if (mIndex >= 0) {
        sb.append(" #");
        sb.append(mIndex);
    }
    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();
}
 
Example 5
Source File: Loader.java    From adt-leanback-support with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    StringBuilder sb = new StringBuilder(64);
    DebugUtils.buildShortClassTag(this, sb);
    sb.append(" id=");
    sb.append(mId);
    sb.append("}");
    return sb.toString();
}
 
Example 6
Source File: Loader.java    From CodenameOne with GNU General Public License v2.0 5 votes vote down vote up
@Override
public String toString() {
    StringBuilder sb = new StringBuilder(64);
    DebugUtils.buildShortClassTag(this, sb);
    sb.append(" id=");
    sb.append(mId);
    sb.append("}");
    return sb.toString();
}
 
Example 7
Source File: LoaderManager.java    From android-recipes-app with Apache License 2.0 5 votes vote down vote up
@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();
}
 
Example 8
Source File: LoaderManager.java    From CodenameOne with GNU General Public License v2.0 5 votes vote down vote up
@Override
public String toString() {
    StringBuilder sb = new StringBuilder(64);
    sb.append("LoaderInfo{");
    sb.append(Integer.toHexString(System.identityHashCode(this)));
    sb.append(" #");
    sb.append(mId);
    sb.append(" : ");
    DebugUtils.buildShortClassTag(mLoader, sb);
    sb.append("}}");
    return sb.toString();
}
 
Example 9
Source File: LoaderManager.java    From android-recipes-app with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
    StringBuilder sb = new StringBuilder(64);
    sb.append("LoaderInfo{");
    sb.append(Integer.toHexString(System.identityHashCode(this)));
    sb.append(" #");
    sb.append(mId);
    sb.append(" : ");
    DebugUtils.buildShortClassTag(mLoader, sb);
    sb.append("}}");
    return sb.toString();
}
 
Example 10
Source File: FragmentManager.java    From CodenameOne with GNU General Public License v2.0 5 votes vote down vote up
@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 {
        DebugUtils.buildShortClassTag(mActivity, sb);
    }
    sb.append("}}");
    return sb.toString();
}
 
Example 11
Source File: Loader.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
public String toString()
{
    StringBuilder stringbuilder = new StringBuilder(64);
    DebugUtils.buildShortClassTag(this, stringbuilder);
    stringbuilder.append(" id=");
    stringbuilder.append(o);
    stringbuilder.append("}");
    return stringbuilder.toString();
}
 
Example 12
Source File: Loader.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
public String dataToString(Object obj)
{
    StringBuilder stringbuilder = new StringBuilder(64);
    DebugUtils.buildShortClassTag(obj, stringbuilder);
    stringbuilder.append("}");
    return stringbuilder.toString();
}
 
Example 13
Source File: Loader.java    From adt-leanback-support with Apache License 2.0 5 votes vote down vote up
/**
 * For debugging, converts an instance of the Loader's data class to
 * a string that can be printed.  Must handle a null data.
 */
public String dataToString(D data) {
    StringBuilder sb = new StringBuilder(64);
    DebugUtils.buildShortClassTag(data, sb);
    sb.append("}");
    return sb.toString();
}
 
Example 14
Source File: K.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
public String toString()
{
    StringBuilder stringbuilder = new StringBuilder(64);
    stringbuilder.append("LoaderInfo{");
    stringbuilder.append(Integer.toHexString(System.identityHashCode(this)));
    stringbuilder.append(" #");
    stringbuilder.append(a);
    stringbuilder.append(" : ");
    DebugUtils.buildShortClassTag(d, stringbuilder);
    stringbuilder.append("}}");
    return stringbuilder.toString();
}
 
Example 15
Source File: Loader.java    From android-recipes-app with Apache License 2.0 5 votes vote down vote up
/**
 * For debugging, converts an instance of the Loader's data class to
 * a string that can be printed.  Must handle a null data.
 */
public String dataToString(D data) {
    StringBuilder sb = new StringBuilder(64);
    DebugUtils.buildShortClassTag(data, sb);
    sb.append("}");
    return sb.toString();
}
 
Example 16
Source File: Loader.java    From letv with Apache License 2.0 5 votes vote down vote up
public String toString() {
    StringBuilder sb = new StringBuilder(64);
    DebugUtils.buildShortClassTag(this, sb);
    sb.append(" id=");
    sb.append(this.mId);
    sb.append("}");
    return sb.toString();
}
 
Example 17
Source File: Loader.java    From V.FlyoutTest with MIT License 5 votes vote down vote up
@Override
public String toString() {
    StringBuilder sb = new StringBuilder(64);
    DebugUtils.buildShortClassTag(this, sb);
    sb.append(" id=");
    sb.append(mId);
    sb.append("}");
    return sb.toString();
}
 
Example 18
Source File: Loader.java    From V.FlyoutTest with MIT License 5 votes vote down vote up
/**
 * For debugging, converts an instance of the Loader's data class to
 * a string that can be printed.  Must handle a null data.
 */
public String dataToString(D data) {
    StringBuilder sb = new StringBuilder(64);
    DebugUtils.buildShortClassTag(data, sb);
    sb.append("}");
    return sb.toString();
}
 
Example 19
Source File: LoaderManagerImpl.java    From letv with Apache License 2.0 5 votes vote down vote up
public String toString() {
    StringBuilder sb = new StringBuilder(64);
    sb.append("LoaderInfo{");
    sb.append(Integer.toHexString(System.identityHashCode(this)));
    sb.append(" #");
    sb.append(this.mId);
    sb.append(" : ");
    DebugUtils.buildShortClassTag(this.mLoader, sb);
    sb.append("}}");
    return sb.toString();
}
 
Example 20
Source File: LoaderManager.java    From guideshow with MIT License 5 votes vote down vote up
@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();
}