diff options
author | Dan Egnor <egnor@google.com> | 2009-12-09 16:22:32 -0800 |
---|---|---|
committer | Dan Egnor <egnor@google.com> | 2009-12-11 13:27:04 -0800 |
commit | b7f0367cec1c744aa66ef397b0244e25d507491c (patch) | |
tree | 7b70d87b9886ea1567647aac00fccb3198accc8c /tests/SmokeTest | |
parent | af1255dab8fa3eab1caf9bae799f80de14a74470 (diff) | |
download | frameworks_base-b7f0367cec1c744aa66ef397b0244e25d507491c.zip frameworks_base-b7f0367cec1c744aa66ef397b0244e25d507491c.tar.gz frameworks_base-b7f0367cec1c744aa66ef397b0244e25d507491c.tar.bz2 |
Eliminate CrashData and friends.
(CrashData was a custom-marshalled crash-info class used for a server crash
reporting system I am deprecating). Use ApplicationErrorReport.CrashInfo
instead to report crash details (mostly the stack trace) from RuntimeInfo to
ActivityManagerService, since we're likely to need the crash information in
that form anyway.
Remove the (long-disabled) flags and support for the "Debug" button
in the crash dialog.
Further gut the ICheckinService interface by removing the crash-reporting
APIs (and everything that calls them), plus the synchronous checkin()
method (which has been stubbed out for a while now).
A new dropbox-based crash reporting system is in the works, but not part
of this change.
Diffstat (limited to 'tests/SmokeTest')
-rw-r--r-- | tests/SmokeTest/tests/src/com/android/smoketest/ProcessErrorsTest.java | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/tests/SmokeTest/tests/src/com/android/smoketest/ProcessErrorsTest.java b/tests/SmokeTest/tests/src/com/android/smoketest/ProcessErrorsTest.java index 85b91f1..5f53a9b 100644 --- a/tests/SmokeTest/tests/src/com/android/smoketest/ProcessErrorsTest.java +++ b/tests/SmokeTest/tests/src/com/android/smoketest/ProcessErrorsTest.java @@ -20,7 +20,6 @@ import com.android.internal.os.RuntimeInit; import android.app.ActivityManager; import android.content.Context; -import android.server.data.CrashData; import android.test.AndroidTestCase; import android.util.Log; @@ -91,25 +90,12 @@ public class ProcessErrorsTest extends AndroidTestCase { break; default: condition = "<unknown>"; - break; - } - - String stackTrace = null; - try { - if (entry.crashData != null) { - CrashData cd = RuntimeInit.unmarshallException(entry.crashData); - stackTrace = cd.toString(); - } - } catch (RuntimeException e) { } - if (stackTrace == null) { - stackTrace = "<no stack trace>"; + break; } - final String entryReport = "Process error " + condition + " " + entry.shortMsg + - " detected in " + entry.processName + " " + entry.tag + - ". \n" + stackTrace; - - builder.append(entryReport).append(" "); + builder.append("Process error ").append(condition).append(" "); + builder.append(" ").append(entry.shortMsg); + builder.append(" detected in ").append(entry.processName).append(" ").append(entry.tag); } return builder.toString(); } |