Loading packages/SystemUI/log/src/com/android/systemui/log/LogcatOnlyMessageBuffer.kt +6 −6 Original line number Diff line number Diff line Loading @@ -27,14 +27,14 @@ import kotlin.collections.ArrayDeque * immediately. This defeats the intention behind [LogBuffer] and should only be used when * [LogBuffer]s are unavailable in a certain context. */ class LogcatOnlyMessageBuffer @JvmOverloads constructor( class LogcatOnlyMessageBuffer( private val targetLogLevel: LogLevel, private val maxMessageCount: Int = DEFAULT_MESSAGE_MAX_COUNT, private val maxMessageCount: Int, ): MessageBuffer { private val messages = ArrayDeque<LogMessageImpl>(maxMessageCount) constructor(targetLogLevel: LogLevel) : this(targetLogLevel, DEFAULT_MESSAGE_MAX_COUNT) override fun obtain( tag: String, level: LogLevel, Loading Loading @@ -65,6 +65,6 @@ constructor( } companion object { val DEFAULT_MESSAGE_MAX_COUNT = 4 private const val DEFAULT_MESSAGE_MAX_COUNT = 4 } } Loading
packages/SystemUI/log/src/com/android/systemui/log/LogcatOnlyMessageBuffer.kt +6 −6 Original line number Diff line number Diff line Loading @@ -27,14 +27,14 @@ import kotlin.collections.ArrayDeque * immediately. This defeats the intention behind [LogBuffer] and should only be used when * [LogBuffer]s are unavailable in a certain context. */ class LogcatOnlyMessageBuffer @JvmOverloads constructor( class LogcatOnlyMessageBuffer( private val targetLogLevel: LogLevel, private val maxMessageCount: Int = DEFAULT_MESSAGE_MAX_COUNT, private val maxMessageCount: Int, ): MessageBuffer { private val messages = ArrayDeque<LogMessageImpl>(maxMessageCount) constructor(targetLogLevel: LogLevel) : this(targetLogLevel, DEFAULT_MESSAGE_MAX_COUNT) override fun obtain( tag: String, level: LogLevel, Loading Loading @@ -65,6 +65,6 @@ constructor( } companion object { val DEFAULT_MESSAGE_MAX_COUNT = 4 private const val DEFAULT_MESSAGE_MAX_COUNT = 4 } }