Esempio n. 1
0
        internal static void printStackTrace(Exception x, java.io.PrintWriter printWriter)
        {
#if !FIRST_PASS
            lock (printWriter)
            {
                foreach (string line in BuildStackTrace(x))
                {
                    printWriter.println(line);
                }
            }
#endif
        }
Esempio n. 2
0
        public virtual void dump(java.io.PrintWriter pw)
        {
            int N = mSlots.Length;

            pw.println("Icon list:");
            {
                for (int i = 0; i < N; i++)
                {
                    pw.printf("  %2d: (%s) %s\n", i, mSlots[i], mIcons[i]);
                }
            }
        }
Esempio n. 3
0
        public virtual void print(java.io.PrintWriter printWriter, int digits)
        {
            string format = string.format("%%5.%df ", digits);

            for (int i = 0; i < getRowCount(); i++)
            {
                for (int j = 0; j < getColCount(); j++)
                {
                    printWriter.format(format, get(i, j));
                }
                if (getRowCount() > 1)
                {
                    printWriter.println();
                }
            }
        }
Esempio n. 4
0
 /// <hide></hide>
 public virtual void dumpGfxInfo(java.io.FileDescriptor fd)
 {
     java.io.FileOutputStream fout = new java.io.FileOutputStream(fd);
     java.io.PrintWriter      pw   = new java.io.PrintWriter(fout);
     try
     {
         lock (this)
         {
             if (mViews != null)
             {
                 pw.println("View hierarchy:");
                 int   count            = mViews.Length;
                 int   viewsCount       = 0;
                 int   displayListsSize = 0;
                 int[] info             = new int[2];
                 {
                     for (int i = 0; i < count; i++)
                     {
                         android.view.ViewRootImpl root = mRoots[i];
                         root.dumpGfxInfo(pw, info);
                         string name = root.GetType().FullName + '@' + Sharpen.Util.IntToHexString(GetHashCode
                                                                                                       ());
                         pw.printf("  %s: %d views, %.2f kB (display lists)\n", name, info[0], info[1] / 1024.0f
                                   );
                         viewsCount       += info[0];
                         displayListsSize += info[1];
                     }
                 }
                 pw.printf("\nTotal ViewRootImpl: %d\n", count);
                 pw.printf("Total Views:        %d\n", viewsCount);
                 pw.printf("Total DisplayList:  %.2f kB\n\n", displayListsSize / 1024.0f);
             }
         }
     }
     finally
     {
         pw.flush();
     }
 }
Esempio n. 5
0
 protected static void Log(string str)
 {
     s_logFileWriter.println(str);
     s_logFileWriter.flush();
 }
Esempio n. 6
0
 public static void PrintStackTrace(Exception e, java.io.PrintWriter pw)
 {
     pw.println(e.StackTrace);
 }
Esempio n. 7
0
		/// <hide></hide>
		public virtual void dumpGfxInfo(java.io.FileDescriptor fd)
		{
			java.io.FileOutputStream fout = new java.io.FileOutputStream(fd);
			java.io.PrintWriter pw = new java.io.PrintWriter(fout);
			try
			{
				lock (this)
				{
					if (mViews != null)
					{
						pw.println("View hierarchy:");
						int count = mViews.Length;
						int viewsCount = 0;
						int displayListsSize = 0;
						int[] info = new int[2];
						{
							for (int i = 0; i < count; i++)
							{
								android.view.ViewRootImpl root = mRoots[i];
								root.dumpGfxInfo(pw, info);
								string name = root.GetType().FullName + '@' + Sharpen.Util.IntToHexString(GetHashCode
									());
								pw.printf("  %s: %d views, %.2f kB (display lists)\n", name, info[0], info[1] / 1024.0f
									);
								viewsCount += info[0];
								displayListsSize += info[1];
							}
						}
						pw.printf("\nTotal ViewRootImpl: %d\n", count);
						pw.printf("Total Views:        %d\n", viewsCount);
						pw.printf("Total DisplayList:  %.2f kB\n\n", displayListsSize / 1024.0f);
					}
				}
			}
			finally
			{
				pw.flush();
			}
		}