@@ -169,6 +169,11 @@ public class MainActivity extends AppCompatActivity implements PreferenceFragmen
publicstaticvolatilebooleantest_preview_want_no_limits;// test flag, if set to true then instead use test_preview_want_no_limits_value; needs to be static, as it needs to be set before activity is created to take effect
publicvolatilebooleantest_set_show_under_navigation;// test flag, the value of enable for the last call of showUnderNavigation() (or false if not yet called)
publicstaticvolatilebooleantest_force_system_orientation;// test flag, if set to true, that getSystemOrientation() returns test_system_orientation
publicstaticvolatilebooleantest_force_window_insets;// test flag, if set to true, then the OnApplyWindowInsetsListener will read from the following flags
publicstaticvolatileInsetstest_insets;// test insets for WindowInsets.Type.navigationBars() | WindowInsets.Type.displayCutout()
publicstaticvolatileInsetstest_cutout_insets;// test insets for WindowInsets.Type.displayCutout()
// whether this is a multi-camera device (note, this isn't simply having more than 1 camera, but also having more than one with the same facing)
// note that in most cases, code should check the MultiCamButtonPreferenceKey preference as well as the is_multi_cam flag,
@@ -1835,6 +1840,9 @@ public class MainActivity extends AppCompatActivity implements PreferenceFragmen
* getDefaultDisplay().getRotation() changes after the configuration changes.
*/
publicSystemOrientationgetSystemOrientation(){
if(test_force_system_orientation){
returntest_system_orientation;
}
if(lock_to_landscape){
returnSystemOrientation.LANDSCAPE;
}
@@ -3825,6 +3833,10 @@ public class MainActivity extends AppCompatActivity implements PreferenceFragmen