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

Commit 6400bf63 authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

Apply new code formatting to tracinglib

Apply ktfmt 0.49 formatting to tracinglib/**/*.kt

Test: atest tracinglib-host-test
Flag: NONE Code formatting
Change-Id: I18e1af8c7f87d368c32a6e378a6cedfe7e3a8478
parent 1ca2971f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ private var isCoroutineTracingFlagEnabledForTests = true

object Flags {
    fun coroutineTracing() = isCoroutineTracingFlagEnabledForTests

    fun disableCoroutineTracing() {
        isCoroutineTracingFlagEnabledForTests = false
    }
+6 −0
Original line number Diff line number Diff line
@@ -19,10 +19,16 @@ package android.util
@Suppress("UNUSED_PARAMETER")
object Log {
    const val VERBOSE: Int = 2

    fun v(tag: String, msg: String) {}

    fun d(tag: String, msg: String) {}

    fun i(tag: String, msg: String) {}

    fun w(tag: String, msg: String) {}

    fun e(tag: String, msg: String) {}

    fun isLoggable(tag: String, level: Int) = true
}
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ internal actual fun traceCounter(counterName: String, counterValue: Int) {
object FakeTraceState {

    private val allThreadStates = hashMapOf<Long, MutableList<String>>()

    fun begin(sectionName: String) {
        val threadId = Thread.currentThread().id
        synchronized(allThreadStates) {
+1 −0
Original line number Diff line number Diff line
@@ -22,5 +22,6 @@ interface Experiment {
        get() = "Experiment:${this::class.simpleName}"

    fun getDescription(): String

    suspend fun run()
}
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ constructor(
    @IO private var ioContext: CoroutineContext,
) : Experiment {
    override fun getDescription(): String = "launch{launch{launch{launch{}}}}"

    override suspend fun run(): Unit = coroutineScope {
        launch("launch(fixedThreadContext1)", fixedThreadContext1) {
            doWork()
Loading