diff options
author | Dianne Hackborn <hackbod@google.com> | 2014-12-09 00:59:01 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-09 00:59:01 +0000 |
commit | 9b07ba19908aa5c75d9f8d13e27995f7e10d8e38 (patch) | |
tree | 57af0f3a58f68b3d44a16209b3a11c17905eecf8 /core/java/android/util | |
parent | 3de2fd483c1eae4b77bb52b9cd900b6c2563a505 (diff) | |
parent | 0cfdd810ded6f8486a6b0a61044594f58ab5c052 (diff) | |
download | frameworks_base-9b07ba19908aa5c75d9f8d13e27995f7e10d8e38.zip frameworks_base-9b07ba19908aa5c75d9f8d13e27995f7e10d8e38.tar.gz frameworks_base-9b07ba19908aa5c75d9f8d13e27995f7e10d8e38.tar.bz2 |
am 0cfdd810: am e52a2ea0: am 0029f0ac: Merge "Fix issue #17323751: Additional items in aggregated battery stats" into lmp-mr1-dev
* commit '0cfdd810ded6f8486a6b0a61044594f58ab5c052':
Fix issue #17323751: Additional items in aggregated battery stats
Diffstat (limited to 'core/java/android/util')
-rw-r--r-- | core/java/android/util/Log.java | 5 | ||||
-rw-r--r-- | core/java/android/util/Slog.java | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/util/Log.java b/core/java/android/util/Log.java index a9b3571..121485a 100644 --- a/core/java/android/util/Log.java +++ b/core/java/android/util/Log.java @@ -295,6 +295,11 @@ public final class Log { return bytes; } + static void wtfQuiet(int logId, String tag, String msg, boolean system) { + TerribleFailure what = new TerribleFailure(msg, null); + sWtfHandler.onTerribleFailure(tag, what, system); + } + /** * Sets the terrible failure handler, for testing. * diff --git a/core/java/android/util/Slog.java b/core/java/android/util/Slog.java index e92b846..58a2703 100644 --- a/core/java/android/util/Slog.java +++ b/core/java/android/util/Slog.java @@ -83,6 +83,13 @@ public final class Slog { } /** + * Like {@link #wtf(String, String)}, but does not output anything to the log. + */ + public static void wtfQuiet(String tag, String msg) { + Log.wtfQuiet(Log.LOG_ID_SYSTEM, tag, msg, true); + } + + /** * Like {@link Log#wtfStack(String, String)}, but will never cause the caller to crash, and * will always be handled asynchronously. Primarily for use by coding running within * the system process. |