[Android General] a.raul:
[MENTION=6666032]JavixKGD[/MENTION] the method as it was uploaded by the partner [MENTION=5405448]thereassaad[/MENTION], I did not work in Oreo, at least I had to retouch it as I was caught, and also check the public framework-res.apk ...

This is the method of

.method public adjustWindowParamsLw(Landroid/view/WindowManager$LayoutParams;)V
.locals 12
.param p1, "attrs" # Landroid/view/WindowManager$LayoutParams;

.prologue
const-wide/16 v10, 0xdac

const/4 v8, -0x1

const v7, -0x10000001

const/high16 v6, -0x80000000

.line 3041
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->type:I

sparse-switch v1, :sswitch_data_0

.line 3081
:cond_0
:goto_0
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->type:I

const/16 v2, 0x7d0

if-eq v1, v2, :cond_1

.line 3083
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->privateFlags:I

and-int/lit16 v1, v1, -0x401

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->privateFlags:I

.line 3085
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->samsungFlags:I

and-int/2addr v1, v7

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->samsungFlags:I

.line 3089
:cond_1
invoke-static {}, Landroid/app/ActivityManager;->isHighEndGfx()Z

move-result v1

if-eqz v1, :cond_4

.line 3090
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->flags:I

and-int/2addr v1, v6

if-eqz v1, :cond_2

.line 3091
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->subtreeSystemUiVisibility:I

or-int/lit16 v1, v1, 0x200

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->subtreeSystemUiVisibility:I

.line 3094
:cond_2
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->privateFlags:I

const/high16 v2, 0x20000

and-int/2addr v1, v2

if-eqz v1, :cond_8

const/4 v0, 0x1

.line 3096
.local v0, "forceWindowDrawsStatusBarBackground":Z
:goto_1
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->flags:I

and-int/2addr v1, v6

if-nez v1, :cond_3

.line 3097
if-eqz v0, :cond_4

.line 3098
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->height:I

if-ne v1, v8, :cond_4

iget v1, p1, Landroid/view/WindowManager$LayoutParams;->width:I

if-ne v1, v8, :cond_4

.line 3099
:cond_3
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->subtreeSystemUiVisibility:I

or-int/lit16 v1, v1, 0x400

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->subtreeSystemUiVisibility:I

.line 3102
.end local v0 # "forceWindowDrawsStatusBarBackground":Z
:cond_4
return-void

.line 3045
:sswitch_0
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->flags:I

or-int/lit8 v1, v1, 0x18

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->flags:I

.line 3047
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->flags:I

const v2, -0x40001

and-int/2addr v1, v2

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->flags:I

goto :goto_0

.line 3055
:sswitch_1
iget-boolean v1, p0, Lcom/android/server/policy/PhoneWindowManager;->mKeyguardOccluded:Z

if-eqz v1, :cond_5

.line 3056
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->flags:I

const v2, -0x100001

and-int/2addr v1, v2

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->flags:I

.line 3057
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->privateFlags:I

and-int/lit16 v1, v1, -0x401

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->privateFlags:I

.line 3059
:cond_5
iget-object v1, p0, Lcom/android/server/policy/PhoneWindowManager;->mSPWM:Lcom/android/server/policy/IPhoneWindowManagerBridge;

invoke-interface {v1}, Lcom/android/server/policy/IPhoneWindowManagerBridge;->getHideSViewCoverWindowState()Landroid/view/WindowManagerPolicy$WindowState;

move-result-object v1

if-eqz v1, :cond_0

.line 3060
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->samsungFlags:I

and-int/2addr v1, v7

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->samsungFlags:I

goto :goto_0

.line 3065
:sswitch_2
iget v1, p1, Landroid/view/WindowManager$LayoutParams;->flags:I

or-int/lit8 v1, v1, 0x8

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->flags:I

goto :goto_0

.line 3073
:sswitch_3
iget-wide v2, p1, Landroid/view/WindowManager$LayoutParams;->hideTimeoutMilliseconds:J

const-wide/16 v4, 0x0

cmp-long v1, v2, v4

if-ltz v1, :cond_6

.line 3074
iget-wide v2, p1, Landroid/view/WindowManager$LayoutParams;->hideTimeoutMilliseconds:J

cmp-long v1, v2, v10

if-lez v1, :cond_7

.line 3075
:cond_6
iput-wide v10, p1, Landroid/view/WindowManager$LayoutParams;->hideTimeoutMilliseconds:J

.line 3077
:cond_7
iget-object v1, p0, Lcom/android/server/policy/PhoneWindowManager;->mContext:Landroid/content/Context;

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string/jumbo v2, "toast_animation"

const/4 v3, 0x1

invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

packed-switch v1, :pswitch_data_0

goto/16 :goto_0

:pswitch_0
iput v8, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_1
const v1, 0x1030004 ### <public type="style" name="Animation.Toast" id="0x01030004" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_2
const v1, 0x1030545 ### <public type="style" name="Animation.Toast.Fade" id="0x01030545" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_3
const v1, 0x1030546 ### <public type="style" name="Animation.Toast.SlideRight" id="0x01030546" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_4
const v1, 0x1030547 ### <public type="style" name="Animation.Toast.SlideLeft" id="0x01030547" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_5
const v1, 0x1030548 ###	<public type="style" name="Animation.Toast.Xylon" id="0x01030548" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_6
const v1, 0x1030549 ### <public type="style" name="Animation.Toast.Toko" id="0x01030549" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_7
const v1, 0x103054a ### <public type="style" name="Animation.Toast.Tn" id="0x0103054a" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_8
const v1, 0x103054b ### <public type="style" name="Animation.Toast.Honami" id="0x0103054b" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_9
const v1, 0x103054c ### <public type="style" name="Animation.Toast.FastFade" id="0x0103054c" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_a
const v1, 0x103054d ### <public type="style" name="Animation.Toast.GrowFade" id="0x0103054d" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_b
const v1, 0x103054e ### <public type="style" name="Animation.Toast.GrowFadeCenter" id="0x0103054e" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_c
const v1, 0x103054f ### <public type="style" name="Animation.Toast.GrowFadeBottom" id="0x0103054f" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_d
const v1, 0x1030550 ### <public type="style" name="Animation.Toast.Translucent" id="0x01030550" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_e
const v1, 0x1030551 ### <public type="style" name="Animation.Toast.SlideLeftRight" id="0x01030551" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

:pswitch_f
const v1, 0x1030552 ### <public type="style" name="Animation.Toast.SlideRightLeft" id="0x01030552" />

iput v1, p1, Landroid/view/WindowManager$LayoutParams;->windowAnimations:I

goto/16 :goto_0

.line 3094
:cond_8
const/4 v0, 0x0

.restart local v0 # "forceWindowDrawsStatusBarBackground":Z
goto/16 :goto_1

.line 3041
:sswitch_data_0
.sparse-switch
0x7d0 -> :sswitch_1
0x7d5 -> :sswitch_3
0x7d6 -> :sswitch_0
0x7df -> :sswitch_0
0x7f4 -> :sswitch_2
.end sparse-switch

:pswitch_data_0
.packed-switch 0x0
:pswitch_0
:pswitch_1
:pswitch_2
:pswitch_3
:pswitch_4
:pswitch_5
:pswitch_6
:pswitch_7
:pswitch_8
:pswitch_9
:pswitch_a
:pswitch_b
:pswitch_c
:pswitch_d
:pswitch_e
:pswitch_f
.end packed-switch
.end method