Fix unit tests if universal_resizable_by_default is enabled
Currently WmTests declares target sdk 28. So if the test ActivityRecord is assigned with the real WmTests package name, it can adopt the legacy behavior by default. For the tests that need to use mocked package names, mock its application info directly. Bug: 357141415 Flag: com.android.window.flags.universal_resizable_by_default Test: DisplayRotationCompatPolicyTests ActivityRecordTests#testSetOrientation_restrictedByTargetSdk TransparentPolicyTest# \ testTranslucentActivitiesDontGoInSizeCompatMode Change-Id: Ic7a644f8739899f8a0578fca9878bf40940438ec
Loading
Please register or sign in to comment