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

Commit 1ecbfe15 authored by Fengjiang Li's avatar Fengjiang Li
Browse files

[3/n] Update StartupLatencyLogger's @VisibleForTesting

Change to use (otherwise = VisibleForTesting.PROTECTED)

Bug: Bug: 278092752
Test: print launcher startup latency logs locally
Flag: not needed
Change-Id: I19630cc3436370e4d6a846e58dee002e5d28d5d7
parent 64ee67c6
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -21,14 +21,13 @@ open class StartupLatencyLogger(val latencyType: LatencyType) {
        const val UNSET_LONG = -1L
    }

    @VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
    @VisibleForTesting(otherwise = VisibleForTesting.PROTECTED)
    val startTimeByEvent = SparseLongArray()
    @VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
    @VisibleForTesting(otherwise = VisibleForTesting.PROTECTED)
    val endTimeByEvent = SparseLongArray()

    @VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
    var cardinality: Int = UNSET_INT
    @VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
    @VisibleForTesting(otherwise = VisibleForTesting.PROTECTED) var cardinality: Int = UNSET_INT
    @VisibleForTesting(otherwise = VisibleForTesting.PROTECTED)
    var workspaceLoadStartTime: Long = UNSET_LONG

    private var isInTest = false