diff options
| author | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-01-10 22:20:16 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-01-10 22:20:16 +0000 |
| commit | df1499d027cc0d425b6c8eb4e83e219b71d2930d (patch) | |
| tree | dba77fcf07d185555dee15de230009dcfe3efee7 /core/java/android | |
| parent | 900cf22e7d93aa0e275e91d59619c384518c3c9b (diff) | |
| parent | 9fc52ab1fc19199585b0bb9b0a26aebf75580463 (diff) | |
Merge "Add a copy of Rlog for the telephony mainline module" am: 00fe08f5bf am: 9fc52ab1fc
Change-Id: I6cb1ffe87de13320e7ac166e9392ecdc59f8027c
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/util/Log.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/java/android/util/Log.java b/core/java/android/util/Log.java index 507790313bc2..0dd7338a5e3e 100644 --- a/core/java/android/util/Log.java +++ b/core/java/android/util/Log.java @@ -387,6 +387,25 @@ public final class Log { public static native int println_native(int bufID, int priority, String tag, String msg); /** + * Send a log message to the "radio" log buffer, which can be dumped with + * {@code adb logcat -b radio}. + * + * <p>Only the telephony mainline module should use it. + * + * <p>Note ART will protect {@code MODULE_LIBRARIES} system APIs from regular app code. + * + * @param priority Log priority. + * @param tag Used to identify the source of a log message. It usually identifies + * the class or activity where the log call occurs. + * @param message The message you would like logged. + * @hide + */ + public static int logToRadioBuffer(@Level int priority, @Nullable String tag, + @Nullable String message) { + return println_native(LOG_ID_RADIO, priority, tag, message); + } + + /** * Return the maximum payload the log daemon accepts without truncation. * @return LOGGER_ENTRY_MAX_PAYLOAD. */ |
