diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-27 02:17:21 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-27 02:17:21 -0700 |
commit | 298784cd8a7ed77923bdb51de38c15e4c246a037 (patch) | |
tree | a6e51419b3c9e2369f6009ba481f826555a013b9 /core/java | |
parent | 2a4daf06fb36ff932f9d52962284ba369cee1ce0 (diff) | |
parent | 28b0e5d06a04f6fa13edbb28de1dd226a158f724 (diff) | |
download | frameworks_base-298784cd8a7ed77923bdb51de38c15e4c246a037.zip frameworks_base-298784cd8a7ed77923bdb51de38c15e4c246a037.tar.gz frameworks_base-298784cd8a7ed77923bdb51de38c15e4c246a037.tar.bz2 |
Merge change 2420 into donut
* changes:
This just makes it easier to derive from ApplicationErrorReport.
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/app/ApplicationErrorReport.java | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/core/java/android/app/ApplicationErrorReport.java b/core/java/android/app/ApplicationErrorReport.java index 72cbff4..74ed1e2 100644 --- a/core/java/android/app/ApplicationErrorReport.java +++ b/core/java/android/app/ApplicationErrorReport.java @@ -18,7 +18,6 @@ package android.app; import android.os.Parcel; import android.os.Parcelable; -import android.util.Log; import android.util.Printer; /** @@ -103,20 +102,7 @@ public class ApplicationErrorReport implements Parcelable { * a parcel. */ ApplicationErrorReport(Parcel in) { - type = in.readInt(); - packageName = in.readString(); - installerPackageName = in.readString(); - processName = in.readString(); - time = in.readLong(); - - switch (type) { - case TYPE_CRASH: - crashInfo = new CrashInfo(in); - break; - case TYPE_ANR: - anrInfo = new AnrInfo(in); - break; - } + readFromParcel(in); } public void writeToParcel(Parcel dest, int flags) { @@ -136,6 +122,25 @@ public class ApplicationErrorReport implements Parcelable { } } + protected void readFromParcel(Parcel in) { + type = in.readInt(); + packageName = in.readString(); + installerPackageName = in.readString(); + processName = in.readString(); + time = in.readLong(); + + switch (type) { + case TYPE_CRASH: + crashInfo = new CrashInfo(in); + anrInfo = null; + break; + case TYPE_ANR: + anrInfo = new AnrInfo(in); + crashInfo = null; + break; + } + } + /** * Describes an application crash. */ |