[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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user