Improve compat mode logging
- Dump shouldCreateAppCompatDisplayInsets() for SCM-eligible apps because currently you can tell if an app is eligible for SCM or not from activity dump only after mSizeCompatScale or mSizeCompatBounds is created (a bit error prone for manual testers) - Dump DCM info Dump (i) whether an app is eligible for DCM and (ii) the app is currently in DCM. To achieve this, this change also refactors AppCompatDisplayCompatModePolicy() so dynamic and static factors are clearly seperated in getDisplayCompatModeConfigMask(). Flag: com.android.window.flags.enable_display_compat_mode Bug: 413176299 Test: adb shell dumpsys activity top-resumed Change-Id: Ifcbf9522aefc14935f915c519a66d3ee781d3651
Loading
Please register or sign in to comment