feat: Add option to clear home screen in settings (#6125)

Signed-off-by: abhixv <abhi.sharma1@hotmail.com>
This commit is contained in:
Abhishek Sharma authored and Pun Butrach committed 2026-01-10 20:51:01 +07:00
1 parent 9898749619
commit 5f3a03f4fb
1577 files changed
+112559 -80244

No files matched your search

@@ -16,6 +16,7 @@
package com.android.systemui.log
import android.os.Trace
import android.util.Log
import com.android.systemui.common.buffer.RingBuffer
import com.android.systemui.log.core.LogLevel
@@ -74,7 +75,6 @@ constructor(
private val maxSize: Int,
private val logcatEchoTracker: LogcatEchoTracker,
private val systrace: Boolean = true,
private val systraceTrackName: String = DEFAULT_LOGBUFFER_TRACK_NAME,
) : MessageBuffer {
private val buffer = RingBuffer(maxSize) { LogMessageImpl.create() }
@@ -193,7 +193,7 @@ constructor(
logcatEchoTracker.isBufferLoggable(name, message.level) ||
logcatEchoTracker.isTagLoggable(message.tag, message.level)
val includeInSystrace = systrace && false
val includeInSystrace = systrace && Trace.isTagEnabled(Trace.TRACE_TAG_APP)
if (includeInLogcat || includeInSystrace) {
val strMessage = message.messagePrinter(message)
@@ -244,7 +244,11 @@ constructor(
}
private fun echoToSystrace(level: LogLevel, tag: String, strMessage: String) {
return // LC-Ignored
Trace.instantForTrack(
Trace.TRACE_TAG_APP,
"UI Events",
"$name - ${level.shortString} $tag: $strMessage"
)
}
private fun echoToLogcat(message: LogMessage, strMessage: String) {
@@ -257,10 +261,6 @@ constructor(
LogLevel.WTF -> Log.wtf(message.tag, strMessage, message.exception)
}
}
companion object {
const val DEFAULT_LOGBUFFER_TRACK_NAME = "UI Events"
}
}
private const val TAG = "LogBuffer"
@@ -19,7 +19,7 @@ package com.android.systemui.log.core
import android.util.Log
/** Enum version of @Log.Level */
enum class LogLevel(val nativeLevel: Int, val shortString: String) {
enum class LogLevel(@Log.Level val nativeLevel: Int, val shortString: String) {
VERBOSE(Log.VERBOSE, "V"),
DEBUG(Log.DEBUG, "D"),
INFO(Log.INFO, "I"),