Loading packages/SystemUI/shared/src/com/android/systemui/util/TraceUtils.kt +2 −2 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ class TraceUtils { * under a single track. */ inline fun <T> traceAsync(method: String, block: () -> T): T = traceAsync(method, "AsyncTraces", block) traceAsync("AsyncTraces", method, block) /** * Creates an async slice in a track with [trackName] while [block] runs. Loading @@ -76,7 +76,7 @@ class TraceUtils { * [trackName] of the track. The track is one of the rows visible in a perfetto trace inside * SystemUI process. */ inline fun <T> traceAsync(method: String, trackName: String, block: () -> T): T { inline fun <T> traceAsync(trackName: String, method: String, block: () -> T): T { val cookie = lastCookie.incrementAndGet() Trace.asyncTraceForTrackBegin(Trace.TRACE_TAG_APP, trackName, method, cookie) try { Loading packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractor.kt +1 −1 Original line number Diff line number Diff line Loading @@ -414,7 +414,7 @@ constructor( } private suspend fun isFeatureDisabledByDevicePolicy(): Boolean = traceAsync("isFeatureDisabledByDevicePolicy", TAG) { traceAsync(TAG, "isFeatureDisabledByDevicePolicy") { withContext(backgroundDispatcher) { devicePolicyManager.areKeyguardShortcutsDisabled(userId = userTracker.userId) } Loading Loading
packages/SystemUI/shared/src/com/android/systemui/util/TraceUtils.kt +2 −2 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ class TraceUtils { * under a single track. */ inline fun <T> traceAsync(method: String, block: () -> T): T = traceAsync(method, "AsyncTraces", block) traceAsync("AsyncTraces", method, block) /** * Creates an async slice in a track with [trackName] while [block] runs. Loading @@ -76,7 +76,7 @@ class TraceUtils { * [trackName] of the track. The track is one of the rows visible in a perfetto trace inside * SystemUI process. */ inline fun <T> traceAsync(method: String, trackName: String, block: () -> T): T { inline fun <T> traceAsync(trackName: String, method: String, block: () -> T): T { val cookie = lastCookie.incrementAndGet() Trace.asyncTraceForTrackBegin(Trace.TRACE_TAG_APP, trackName, method, cookie) try { Loading
packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/KeyguardQuickAffordanceInteractor.kt +1 −1 Original line number Diff line number Diff line Loading @@ -414,7 +414,7 @@ constructor( } private suspend fun isFeatureDisabledByDevicePolicy(): Boolean = traceAsync("isFeatureDisabledByDevicePolicy", TAG) { traceAsync(TAG, "isFeatureDisabledByDevicePolicy") { withContext(backgroundDispatcher) { devicePolicyManager.areKeyguardShortcutsDisabled(userId = userTracker.userId) } Loading