当前位置: 首页>>代码示例>>Java>>正文


Java LogWriter类代码示例

本文整理汇总了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;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:18,代码来源:BackStackRecord.java

示例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;
  }
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:19,代码来源:BackStackRecord.java

示例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;
}
 
开发者ID:bestarandyan,项目名称:ShoppingMall,代码行数:18,代码来源:BackStackRecord.java

示例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;
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:23,代码来源:l.java

示例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;
}
 
开发者ID:Hamz-a,项目名称:MyCTFWriteUps,代码行数:23,代码来源:BackStackRecord.java

示例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);
    }
  }
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:29,代码来源:FragmentManagerImpl.java

示例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;
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:29,代码来源:v.java

示例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[] {} );
  }
 
开发者ID:OceanLabs,项目名称:Android-Print-SDK,代码行数:10,代码来源:AKiteActivity.java


注:本文中的android.support.v4.util.LogWriter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。