Loading packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java +20 −9 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.os.RemoteException; import android.os.Trace; import android.provider.DeviceConfig; import android.telecom.TelecomManager; import android.text.TextUtils; Loading Loading @@ -736,9 +737,16 @@ public class NavigationBar extends ViewController<NavigationBarView> implements } public void destroyView() { Trace.beginSection("NavigationBar#destroyView"); try { setAutoHideController(/* autoHideController */ null); mCommandQueue.removeCallback(this); Trace.beginSection("NavigationBar#removeViewImmediate"); try { mWindowManager.removeViewImmediate(mView.getRootView()); } finally { Trace.endSection(); } mNavigationModeController.removeListener(mModeChangedListener); mEdgeBackGestureHandler.setStateChangeCallback(null); Loading @@ -747,6 +755,9 @@ public class NavigationBar extends ViewController<NavigationBarView> implements mDeviceConfigProxy.removeOnPropertiesChangedListener(mOnPropertiesChangedListener); mTaskStackChangeListeners.unregisterTaskStackListener(mTaskStackListener); } finally { Trace.endSection(); } } @Override Loading packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java +28 −21 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ import android.hardware.display.DisplayManager; import android.inputmethodservice.InputMethodService; import android.os.IBinder; import android.os.RemoteException; import android.os.Trace; import android.util.Log; import android.view.Display; import android.view.View; Loading Loading @@ -229,6 +230,8 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, } public void init(int displayId) { Trace.beginSection("TaskbarDelegate#init"); try { if (mInitialized) { return; } Loading @@ -248,9 +251,13 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, mLightBarController.setNavigationBar(mLightBarTransitionsController); mPipOptional.ifPresent(this::addPipExclusionBoundsChangeListener); mEdgeBackGestureHandler.setBackAnimation(mBackAnimation); mEdgeBackGestureHandler.onConfigurationChanged(mContext.getResources().getConfiguration()); mEdgeBackGestureHandler.onConfigurationChanged( mContext.getResources().getConfiguration()); mTaskStackChangeListeners.registerTaskStackListener(mTaskStackListener); mInitialized = true; } finally { Trace.endSection(); } } public void destroy() { Loading packages/SystemUI/src/com/android/systemui/navigationbar/gestural/EdgeBackGestureHandler.java +9 −4 Original line number Diff line number Diff line Loading @@ -578,10 +578,15 @@ public class EdgeBackGestureHandler implements PluginListener<NavigationEdgeBack * @see NavigationModeController.ModeChangedListener#onNavigationModeChanged */ public void onNavigationModeChanged(int mode) { Trace.beginSection("EdgeBackGestureHandler#onNavigationModeChanged"); try { mUsingThreeButtonNav = QuickStepContract.isLegacyMode(mode); mInGestureNavMode = QuickStepContract.isGesturalMode(mode); updateIsEnabled(); updateCurrentUserResources(); } finally { Trace.endSection(); } } public void onNavBarTransientStateChanged(boolean isTransient) { Loading packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt +2 −1 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ import android.widget.LinearLayout import android.widget.Switch import android.widget.TextView import androidx.annotation.VisibleForTesting import com.android.app.tracing.traceSection import com.android.settingslib.Utils import com.android.systemui.FontSizeUtils import com.android.systemui.animation.LaunchableView Loading Loading @@ -707,7 +708,7 @@ open class QSTileViewImpl @JvmOverloads constructor( inner class StateChangeRunnable(private val state: QSTile.State) : Runnable { override fun run() { handleStateChanged(state) traceSection("QSTileViewImpl#handleStateChanged") { handleStateChanged(state) } } // We want all instances of this runnable to be equal to each other, so they can be used to Loading packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +2 −0 Original line number Diff line number Diff line Loading @@ -1302,6 +1302,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump @Override public void updateResources() { Trace.beginSection("NSSLC#updateResources"); final boolean newSplitShadeEnabled = mSplitShadeStateController.shouldUseSplitNotificationShade(mResources); final boolean splitShadeChanged = mSplitShadeEnabled != newSplitShadeEnabled; Loading @@ -1318,6 +1319,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump mSplitShadeFullTransitionDistance = mResources.getDimensionPixelSize(R.dimen.split_shade_full_transition_distance); Trace.endSection(); } private void onSplitShadeEnabledChanged() { Loading Loading
packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBar.java +20 −9 Original line number Diff line number Diff line Loading @@ -72,6 +72,7 @@ import android.os.Bundle; import android.os.Handler; import android.os.IBinder; import android.os.RemoteException; import android.os.Trace; import android.provider.DeviceConfig; import android.telecom.TelecomManager; import android.text.TextUtils; Loading Loading @@ -736,9 +737,16 @@ public class NavigationBar extends ViewController<NavigationBarView> implements } public void destroyView() { Trace.beginSection("NavigationBar#destroyView"); try { setAutoHideController(/* autoHideController */ null); mCommandQueue.removeCallback(this); Trace.beginSection("NavigationBar#removeViewImmediate"); try { mWindowManager.removeViewImmediate(mView.getRootView()); } finally { Trace.endSection(); } mNavigationModeController.removeListener(mModeChangedListener); mEdgeBackGestureHandler.setStateChangeCallback(null); Loading @@ -747,6 +755,9 @@ public class NavigationBar extends ViewController<NavigationBarView> implements mDeviceConfigProxy.removeOnPropertiesChangedListener(mOnPropertiesChangedListener); mTaskStackChangeListeners.unregisterTaskStackListener(mTaskStackListener); } finally { Trace.endSection(); } } @Override Loading
packages/SystemUI/src/com/android/systemui/navigationbar/TaskbarDelegate.java +28 −21 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ import android.hardware.display.DisplayManager; import android.inputmethodservice.InputMethodService; import android.os.IBinder; import android.os.RemoteException; import android.os.Trace; import android.util.Log; import android.view.Display; import android.view.View; Loading Loading @@ -229,6 +230,8 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, } public void init(int displayId) { Trace.beginSection("TaskbarDelegate#init"); try { if (mInitialized) { return; } Loading @@ -248,9 +251,13 @@ public class TaskbarDelegate implements CommandQueue.Callbacks, mLightBarController.setNavigationBar(mLightBarTransitionsController); mPipOptional.ifPresent(this::addPipExclusionBoundsChangeListener); mEdgeBackGestureHandler.setBackAnimation(mBackAnimation); mEdgeBackGestureHandler.onConfigurationChanged(mContext.getResources().getConfiguration()); mEdgeBackGestureHandler.onConfigurationChanged( mContext.getResources().getConfiguration()); mTaskStackChangeListeners.registerTaskStackListener(mTaskStackListener); mInitialized = true; } finally { Trace.endSection(); } } public void destroy() { Loading
packages/SystemUI/src/com/android/systemui/navigationbar/gestural/EdgeBackGestureHandler.java +9 −4 Original line number Diff line number Diff line Loading @@ -578,10 +578,15 @@ public class EdgeBackGestureHandler implements PluginListener<NavigationEdgeBack * @see NavigationModeController.ModeChangedListener#onNavigationModeChanged */ public void onNavigationModeChanged(int mode) { Trace.beginSection("EdgeBackGestureHandler#onNavigationModeChanged"); try { mUsingThreeButtonNav = QuickStepContract.isLegacyMode(mode); mInGestureNavMode = QuickStepContract.isGesturalMode(mode); updateIsEnabled(); updateCurrentUserResources(); } finally { Trace.endSection(); } } public void onNavBarTransientStateChanged(boolean isTransient) { Loading
packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSTileViewImpl.kt +2 −1 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ import android.widget.LinearLayout import android.widget.Switch import android.widget.TextView import androidx.annotation.VisibleForTesting import com.android.app.tracing.traceSection import com.android.settingslib.Utils import com.android.systemui.FontSizeUtils import com.android.systemui.animation.LaunchableView Loading Loading @@ -707,7 +708,7 @@ open class QSTileViewImpl @JvmOverloads constructor( inner class StateChangeRunnable(private val state: QSTile.State) : Runnable { override fun run() { handleStateChanged(state) traceSection("QSTileViewImpl#handleStateChanged") { handleStateChanged(state) } } // We want all instances of this runnable to be equal to each other, so they can be used to Loading
packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +2 −0 Original line number Diff line number Diff line Loading @@ -1302,6 +1302,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump @Override public void updateResources() { Trace.beginSection("NSSLC#updateResources"); final boolean newSplitShadeEnabled = mSplitShadeStateController.shouldUseSplitNotificationShade(mResources); final boolean splitShadeChanged = mSplitShadeEnabled != newSplitShadeEnabled; Loading @@ -1318,6 +1319,7 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump mSplitShadeFullTransitionDistance = mResources.getDimensionPixelSize(R.dimen.split_shade_full_transition_distance); Trace.endSection(); } private void onSplitShadeEnabledChanged() { Loading