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

Commit 4e87054f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Replace launch and async with traced variants" into main

parents f76196eb dde12eb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.flow.merge
import kotlinx.coroutines.launch
import com.android.app.tracing.coroutines.launchTraced as launch

/**
 * Controller for a Clock provided by the registry and used on the keyguard. Instantiated by
+3 −3
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ import com.android.systemui.qs.tiles.ReduceBrightColorsTile
import javax.inject.Inject
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.async
import com.android.app.tracing.coroutines.asyncTraced as async
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.flow.SharedFlow
import kotlinx.coroutines.withContext
@@ -127,7 +127,7 @@ constructor(
    private suspend fun getAccessibilityTileServices(context: Context): Set<ComponentName> =
        coroutineScope {
            val a11yServiceTileServices: Deferred<Set<ComponentName>> =
                async(backgroundDispatcher) {
                async(context = backgroundDispatcher) {
                    manager.installedAccessibilityServiceList
                        .mapNotNull {
                            val packageName = it.resolveInfo.serviceInfo.packageName
@@ -143,7 +143,7 @@ constructor(
                }

            val a11yShortcutInfoTileServices: Deferred<Set<ComponentName>> =
                async(backgroundDispatcher) {
                async(context = backgroundDispatcher) {
                    manager
                        .getInstalledAccessibilityShortcutListAsUser(context, context.userId)
                        .mapNotNull {
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ import com.android.systemui.statusbar.phone.SystemUIDialog
import javax.inject.Inject
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import com.android.app.tracing.coroutines.launchTraced as launch
import kotlinx.coroutines.withContext

/** Dialog for removing Extra Dim shortcuts. */
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ import kotlin.math.hypot
import kotlin.math.max
import kotlin.math.min
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import com.android.app.tracing.coroutines.launchTraced as launch

/** Monitor for tracking touches on the DreamOverlay to bring up the bouncer. */
class BouncerSwipeTouchHandler
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ import javax.inject.Named
import javax.inject.Provider
import kotlin.math.abs
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import com.android.app.tracing.coroutines.launchTraced as launch

/**
 * [ShadeTouchHandler] is responsible for handling swipe down gestures over dream to bring down the
Loading