Merge "Reformat two Kotlin files I mistakenly formatted with IntelliJ" into tm-qpr-dev

This commit is contained in:
Justin Weir
2022-10-19 12:49:48 +00:00
committed by Android (Google) Code Review
2 changed files with 111 additions and 106 deletions

View File

@@ -28,7 +28,8 @@ class ShadeLogger @Inject constructor(@ShadeLog private val buffer: LogBuffer) {
log( log(
LogLevel.VERBOSE, LogLevel.VERBOSE,
{ double1 = h.toDouble() }, { double1 = h.toDouble() },
{ "onQsIntercept: move action, QS tracking enabled. h = $double1" }) { "onQsIntercept: move action, QS tracking enabled. h = $double1" }
)
} }
fun logQsTrackingNotStarted( fun logQsTrackingNotStarted(
@@ -54,9 +55,10 @@ class ShadeLogger @Inject constructor(@ShadeLog private val buffer: LogBuffer) {
bool4 = qsExpansionEnabled bool4 = qsExpansionEnabled
}, },
{ {
"QsTrackingNotStarted: initTouchY=$int1,y=$int2,h=$long1,slop=$double1,qsExpanded=" + "QsTrackingNotStarted: initTouchY=$int1,y=$int2,h=$long1,slop=$double1,qsExpanded" +
"$bool1,collapsedDown=$bool2,keyguardShowing=$bool3,qsExpansion=$bool4" "=$bool1,collapsedDown=$bool2,keyguardShowing=$bool3,qsExpansion=$bool4"
}) }
)
} }
fun logMotionEvent(event: MotionEvent, message: String) { fun logMotionEvent(event: MotionEvent, message: String) {
@@ -70,6 +72,9 @@ class ShadeLogger @Inject constructor(@ShadeLog private val buffer: LogBuffer) {
int2 = event.classification int2 = event.classification
double1 = event.y.toDouble() double1 = event.y.toDouble()
}, },
{ "$str1\neventTime=$long1,downTime=$long2,y=$double1,action=$int1,classification=$int2" }) {
"$str1\neventTime=$long1,downTime=$long2,y=$double1,action=$int1,class=$int2"
}
)
} }
} }