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

Commit ac57bac3 authored by Yining Liu's avatar Yining Liu Committed by Android (Google) Code Review
Browse files

Merge "Add traces for notification inflation performance improvement targets" into main

parents ca1685bf 0af5c445
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import com.android.systemui.statusbar.notification.collection.coordinator.dagger
import com.android.systemui.statusbar.notification.row.NotificationGutsManager
import com.android.systemui.statusbar.policy.ConfigurationController
import com.android.systemui.util.Compile
import com.android.systemui.util.traceSection
import javax.inject.Inject

/**
@@ -122,10 +123,12 @@ class ViewConfigCoordinator @Inject internal constructor(

    private fun updateNotificationsOnUiModeChanged() {
        log { "ViewConfigCoordinator.updateNotificationsOnUiModeChanged()" }
        traceSection("updateNotifOnUiModeChanged") {
            mPipeline?.allNotifs?.forEach { entry ->
                entry.row?.onUiModeChanged()
            }
        }
    }

    private fun updateNotificationsOnDensityOrFontScaleChanged() {
        mPipeline?.allNotifs?.forEach { entry ->
+12 −6
Original line number Diff line number Diff line
@@ -231,19 +231,25 @@ private class ShadeNode(val controller: NodeController) {
    fun getChildCount(): Int = controller.getChildCount()

    fun addChildAt(child: ShadeNode, index: Int) {
        traceSection("ShadeNode#addChildAt") {
            controller.addChildAt(child.controller, index)
            child.controller.onViewAdded()
        }
    }

    fun moveChildTo(child: ShadeNode, index: Int) {
        traceSection("ShadeNode#moveChildTo") {
            controller.moveChildTo(child.controller, index)
            child.controller.onViewMoved()
        }
    }

    fun removeChild(child: ShadeNode, isTransfer: Boolean) {
        traceSection("ShadeNode#removeChild") {
            controller.removeChild(child.controller, isTransfer)
            child.controller.onViewRemoved()
        }
    }

    fun offerToKeepInParentForAnimation(): Boolean {
        return controller.offerToKeepInParentForAnimation()