本文整理汇总了Java中android.support.v4.util.LogWriter类的典型用法代码示例。如果您正苦于以下问题:Java LogWriter类的具体用法?Java LogWriter怎么用?Java LogWriter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LogWriter类属于android.support.v4.util包,在下文中一共展示了LogWriter类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: commitInternal
import android.support.v4.util.LogWriter; //导入依赖的package包/类
int commitInternal(boolean allowStateLoss) {
if (this.mCommitted) {
throw new IllegalStateException("commit already called");
}
if (FragmentManagerImpl.DEBUG) {
Log.v(TAG, "Commit: " + this);
dump(" ", null, new PrintWriter(new LogWriter(TAG)), null);
}
this.mCommitted = true;
if (this.mAddToBackStack) {
this.mIndex = this.mManager.allocBackStackIndex(this);
} else {
this.mIndex = -1;
}
this.mManager.enqueueAction(this, allowStateLoss);
return this.mIndex;
}
示例2: commitInternal
import android.support.v4.util.LogWriter; //导入依赖的package包/类
private int commitInternal(boolean paramBoolean)
{
if (this.mCommitted) {
throw new IllegalStateException("commit already called");
}
if (FragmentManagerImpl.DEBUG)
{
Log.v("FragmentManager", "Commit: " + this);
dump$ec96877(" ", new PrintWriter(new LogWriter("FragmentManager")));
}
this.mCommitted = true;
if (this.mAddToBackStack) {}
for (this.mIndex = this.mManager.allocBackStackIndex(this);; this.mIndex = -1)
{
this.mManager.enqueueAction(this, paramBoolean);
return this.mIndex;
}
}
示例3: commitInternal
import android.support.v4.util.LogWriter; //导入依赖的package包/类
int commitInternal(boolean allowStateLoss) {
if (mCommitted) throw new IllegalStateException("commit already called");
if (FragmentManagerImpl.DEBUG) {
Log.v(TAG, "Commit: " + this);
LogWriter logw = new LogWriter(TAG);
PrintWriter pw = new PrintWriter(logw);
dump(" ", null, pw, null);
}
mCommitted = true;
if (mAddToBackStack) {
mIndex = mManager.allocBackStackIndex(this);
} else {
mIndex = -1;
}
mManager.enqueueAction(this, allowStateLoss);
return mIndex;
}
示例4: a
import android.support.v4.util.LogWriter; //导入依赖的package包/类
int a(boolean flag)
{
if (w)
{
throw new IllegalStateException("commit already called");
}
if (v.a)
{
Log.v("FragmentManager", (new StringBuilder()).append("Commit: ").append(this).toString());
a(" ", ((FileDescriptor) (null)), new PrintWriter(new LogWriter("FragmentManager")), ((String []) (null)));
}
w = true;
if (t)
{
x = b.a(this);
} else
{
x = -1;
}
b.a(this, flag);
return x;
}
示例5: commitInternal
import android.support.v4.util.LogWriter; //导入依赖的package包/类
int commitInternal(boolean flag)
{
if (mCommitted)
{
throw new IllegalStateException("commit already called");
}
if (FragmentManagerImpl.DEBUG)
{
Log.v("FragmentManager", (new StringBuilder()).append("Commit: ").append(this).toString());
dump(" ", null, new PrintWriter(new LogWriter("FragmentManager")), null);
}
mCommitted = true;
if (mAddToBackStack)
{
mIndex = mManager.allocBackStackIndex(this);
} else
{
mIndex = -1;
}
mManager.enqueueAction(this, flag);
return mIndex;
}
示例6: throwException
import android.support.v4.util.LogWriter; //导入依赖的package包/类
private void throwException(RuntimeException paramRuntimeException)
{
Log.e("FragmentManager", paramRuntimeException.getMessage());
Log.e("FragmentManager", "Activity state:");
PrintWriter localPrintWriter = new PrintWriter(new LogWriter("FragmentManager"));
if (this.mHost != null) {}
for (;;)
{
try
{
this.mHost.onDump$ec96877(" ", localPrintWriter, new String[0]);
throw paramRuntimeException;
}
catch (Exception localException2)
{
Log.e("FragmentManager", "Failed dumping state", localException2);
continue;
}
try
{
dump(" ", null, localPrintWriter, new String[0]);
}
catch (Exception localException1)
{
Log.e("FragmentManager", "Failed dumping state", localException1);
}
}
}
示例7: a
import android.support.v4.util.LogWriter; //导入依赖的package包/类
private void a(RuntimeException runtimeexception)
{
Log.e("FragmentManager", runtimeexception.getMessage());
Log.e("FragmentManager", "Activity state:");
PrintWriter printwriter = new PrintWriter(new LogWriter("FragmentManager"));
if (t != null)
{
try
{
t.dump(" ", null, printwriter, new String[0]);
}
catch (Exception exception1)
{
Log.e("FragmentManager", "Failed dumping state", exception1);
}
} else
{
try
{
dump(" ", null, printwriter, new String[0]);
}
catch (Exception exception)
{
Log.e("FragmentManager", "Failed dumping state", exception);
}
}
throw runtimeexception;
}
示例8: logFragments
import android.support.v4.util.LogWriter; //导入依赖的package包/类
/*****************************************************
*
* Logs the back stack, for debugging.
*
*****************************************************/
protected void logFragments()
{
mFragmentManager.dump( "", null, new PrintWriter( new LogWriter( "" ) ), new String[] {} );
}