diff options
author | Brad Ebinger <breadley@google.com> | 2016-10-05 15:47:28 -0700 |
---|---|---|
committer | Brad Ebinger <breadley@google.com> | 2016-10-11 16:26:11 -0700 |
commit | 4fb372fe169c6abd463a620b56dd6b05b5ff1e7a (patch) | |
tree | 0cc2fce3457707ffa63cdd63b047f78a7876b231 /telecomm/java/android/telecom/Log.java | |
parent | cbb03d1ad375fb5252a5da47f5438667134ab848 (diff) |
Switch on android.telecom.Log in Telecom
Move over the Runnable Class into android.telecom and turn on the
framework's usage in Telecom.
Test: All Telecom unit tests pass. Manual Log testing has also been
confirmed to be working as it did before.
Bug: 26571395
Change-Id: If7e2036c746c5a953f3a77e2d625a423ce5bf8f3
Diffstat (limited to 'telecomm/java/android/telecom/Log.java')
-rw-r--r-- | telecomm/java/android/telecom/Log.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/telecomm/java/android/telecom/Log.java b/telecomm/java/android/telecom/Log.java index ecda3cd45f73..140cce6b4ee2 100644 --- a/telecomm/java/android/telecom/Log.java +++ b/telecomm/java/android/telecom/Log.java @@ -16,6 +16,7 @@ package android.telecom; +import android.content.Context; import android.net.Uri; import android.os.AsyncTask; import android.telecom.Logging.EventManager; @@ -175,6 +176,10 @@ public class Log { * loggers. */ + public static void setSessionContext(Context context) { + getSessionManager().setContext(context); + } + public static void startSession(String shortMethodName) { getSessionManager().startSession(shortMethodName, null); } @@ -300,7 +305,7 @@ public class Log { private static MessageDigest sMessageDigest; - static void initMd5Sum() { + public static void initMd5Sum() { new AsyncTask<Void, Void, Void>() { @Override public Void doInBackground(Void... args) { @@ -426,7 +431,7 @@ public class Log { msg = (args == null || args.length == 0) ? format : String.format(Locale.US, format, args); } catch (IllegalFormatException ife) { - e("Log", ife, "IllegalFormatException: formatString='%s' numArgs=%d", format, + e(TAG, ife, "Log: IllegalFormatException: formatString='%s' numArgs=%d", format, args.length); msg = format + " (An error occurred while formatting the message.)"; } |