Search in sources :

Example 31 with LogWriter

use of android.util.LogWriter in project android_frameworks_base by crdroidandroid.

the class BackStackRecord method commitInternal.

int commitInternal(boolean allowStateLoss) {
    if (mCommitted) {
        throw new IllegalStateException("commit already called");
    }
    if (FragmentManagerImpl.DEBUG) {
        Log.v(TAG, "Commit: " + this);
        LogWriter logw = new LogWriter(Log.VERBOSE, TAG);
        PrintWriter pw = new FastPrintWriter(logw, false, 1024);
        dump("  ", null, pw, null);
        pw.flush();
    }
    mCommitted = true;
    if (mAddToBackStack) {
        mIndex = mManager.allocBackStackIndex(this);
    } else {
        mIndex = -1;
    }
    mManager.enqueueAction(this, allowStateLoss);
    return mIndex;
}
Also used : LogWriter(android.util.LogWriter) FastPrintWriter(com.android.internal.util.FastPrintWriter) PrintWriter(java.io.PrintWriter) FastPrintWriter(com.android.internal.util.FastPrintWriter)

Aggregations

LogWriter (android.util.LogWriter)31 PrintWriter (java.io.PrintWriter)31 FastPrintWriter (com.android.internal.util.FastPrintWriter)24 NotFoundException (android.content.res.Resources.NotFoundException)5 SuperNotCalledException (android.util.SuperNotCalledException)5 Bundle (android.os.Bundle)1