Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e7768a2 authored by Andreas Gampe's avatar Andreas Gampe Committed by android-build-merger
Browse files

Merge "Frameworks: Move Log holder to be preloaded" into oc-mr1-dev am: 1a17bfa2

am: fd31b789

Change-Id: Ie6e2671e6ecd53e24cf8a2438ce032ecb0af012b
parents 64b8b5aa fd31b789
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2193,6 +2193,7 @@ android.util.IntProperty
android.util.Log
android.util.Log$1
android.util.Log$ImmediateLogWriter
android.util.Log$PreloadHolder
android.util.Log$TerribleFailureHandler
android.util.LogPrinter
android.util.LongArray
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ android.media.MediaPlayer
android.media.SoundPool
android.text.format.Formatter
android.text.Html$HtmlParser
android.util.Log$PreloadHolder
com.android.org.conscrypt.TrustedCertificateStore
org.ccil.cowan.tagsoup.HTMLScanner
sun.security.jca.Providers
+3 −3
Original line number Diff line number Diff line
@@ -392,7 +392,7 @@ public final class Log {
        // and the length of the tag.
        // Note: we implicitly accept possible truncation for Modified-UTF8 differences. It
        //       is too expensive to compute that ahead of time.
        int bufferSize = NoPreloadHolder.LOGGER_ENTRY_MAX_PAYLOAD  // Base.
        int bufferSize = PreloadHolder.LOGGER_ENTRY_MAX_PAYLOAD    // Base.
                - 2                                                // Two terminators.
                - (tag != null ? tag.length() : 0)                 // Tag length.
                - 32;                                              // Some slack.
@@ -429,10 +429,10 @@ public final class Log {
    }

    /**
     * NoPreloadHelper class. Caches the LOGGER_ENTRY_MAX_PAYLOAD value to avoid
     * PreloadHelper class. Caches the LOGGER_ENTRY_MAX_PAYLOAD value to avoid
     * a JNI call during logging.
     */
    static class NoPreloadHolder {
    static class PreloadHolder {
        public final static int LOGGER_ENTRY_MAX_PAYLOAD =
                logger_entry_max_payload_native();
    }