[Android Themes] Adi Aisiteru Reborn:
2. com/android/internal/policy/impl/PhoneWindowManager.smali

find this method and remove all line in the method

.method public setInitialDisplaySize(Landroid/view/Display;III)V
-
-
remove all
-
-
.end method

replaced with this

.method public setInitialDisplaySize(Landroid/view/Display;III)V
.registers 15
.parameter "display"
.parameter "width"
.parameter "height"
.parameter "density"

.prologue
.line 1399
iget-object v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

if-eqz v7, :cond_a

invoke-virtual {p1}, Landroid/view/Display;->getDisplayId()I

move-result v7

if-eqz v7, :cond_b

.line 1476
:cond_a
:goto_a
return-void

.line 1402
:cond_b
iput-object p1, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mDisplay:Landroid/view/Display;

.line 1404
iget-object v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

invoke-virtual {v7}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v3

.line 1406
.local v3, res:Landroid/content/res/Resources;
if-le p2, p3, :cond_c2

.line 1407
move v4, p3

.line 1408
.local v4, shortSize:I
move v0, p2

.line 1409
.local v0, longSize:I
const/4 v7, 0x0

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLandscapeRotation:I

.line 1410
const/4 v7, 0x2

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSeascapeRotation:I

.line 1411
const v7, 0x1110022

invoke-virtual {v3, v7}, Landroid/content/res/Resources;->getBoolean(I)Z

move-result v7

if-eqz v7, :cond_ba

.line 1412
const/4 v7, 0x1

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPortraitRotation:I

.line 1413
const/4 v7, 0x3

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUpsideDownRotation:I

.line 1432
:goto_2c
const v7, 0x105000c

invoke-virtual {v3, v7}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

move-result v7

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBarHeight:I

.line 1436
mul-int/lit16 v7, v4, 0xa0

div-int v5, v7, p4

.line 1437
.local v5, shortSizeDp:I
mul-int/lit16 v7, v0, 0xa0

div-int v1, v7, p4

.line 1440
.local v1, longSizeDp:I
const/16 v7, 0x258

if-ge v5, v7, :cond_e3

const/4 v7, 0x1

:goto_42
iput-boolean v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarCanMove:Z

.line 1442
iget-object v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

invoke-virtual {v7}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v7

const v8, 0x111004e

invoke-virtual {v7, v8}, Landroid/content/res/Resources;->getBoolean(I)Z

move-result v7

if-eqz v7, :cond_e6

const/4 v6, 0x1

.line 1444
.local v6, showByDefault:I
:goto_54
iget-object v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

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

move-result-object v7

const-string v8, "navigation_bar_show"

const/4 v9, -0x2

invoke-static {v7, v8, v6, v9}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v7

const/4 v8, 0x1

if-ne v7, v8, :cond_e9

const/4 v7, 0x1

:goto_65
iput-boolean v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHasNavigationBar:Z

.line 1450
const-string v7, "qemu.hw.mainkeys"

invoke-static {v7}, Landroid/os/SystemProperties;->get(Ljava/lang/String;)Ljava/lang/String;

move-result-object v2

.line 1451
.local v2, navBarOverride:Ljava/lang/String;
const-string v7, "1"

invoke-virtual {v7, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v7

if-eqz v7, :cond_ec

.line 1452
const/4 v7, 0x0

iput-boolean v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHasNavigationBar:Z

.line 1453
const/4 v7, 0x1

iput-boolean v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mOverWriteHasNavigationBar:Z

.line 1461
:cond_7b
:goto_7b
const-string v7, "portrait"

const-string v8, "persist.demo.hdmirotation"

invoke-static {v8}, Landroid/os/SystemProperties;->get(Ljava/lang/String;)Ljava/lang/String;

move-result-object v8

invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v7

if-eqz v7, :cond_fb

.line 1462
iget v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPortraitRotation:I

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mDemoHdmiRotation:I

.line 1466
:goto_8d
const-string v7, "persist.demo.hdmirotationlock"

const/4 v8, 0x0

invoke-static {v7, v8}, Landroid/os/SystemProperties;->getBoolean(Ljava/lang/String;Z)Z

move-result v7

iput-boolean v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mDemoHdmiRotationLock:Z

.line 1470
const/16 v7, 0x3c0

if-lt v1, v7, :cond_100

const/16 v7, 0x2d0

if-lt v5, v7, :cond_100

const v7, 0x1110061

invoke-virtual {v3, v7}, Landroid/content/res/Resources;->getBoolean(I)Z

move-result v7

if-eqz v7, :cond_100

const-string v7, "true"

const-string v8, "config.override_forced_orient"

invoke-static {v8}, Landroid/os/SystemProperties;->get(Ljava/lang/String;)Ljava/lang/String;

move-result-object v8

invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v7

if-nez v7, :cond_100

const/4 v7, 0x1

:goto_b6
iput-boolean v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mForceDefaultOrientation:Z

goto/16 :goto_a

.line 1415
.end local v1 #longSizeDp:I
.end local v2 #navBarOverride:Ljava/lang/String;
.end local v5 #shortSizeDp:I
.end local v6 #showByDefault:I
:cond_ba
const/4 v7, 0x3

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPortraitRotation:I

.line 1416
const/4 v7, 0x1

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUpsideDownRotation:I

goto/16 :goto_2c

.line 1419
.end local v0 #longSize:I
.end local v4 #shortSize:I
:cond_c2
move v4, p2

.line 1420
.restart local v4 #shortSize:I
move v0, p3

.line 1421
.restart local v0 #longSize:I
const/4 v7, 0x0

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPortraitRotation:I

.line 1422
const/4 v7, 0x2

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUpsideDownRotation:I

.line 1423
const v7, 0x1110022

invoke-virtual {v3, v7}, Landroid/content/res/Resources;->getBoolean(I)Z

move-result v7

if-eqz v7, :cond_db

.line 1424
const/4 v7, 0x3

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLandscapeRotation:I

.line 1425
const/4 v7, 0x1

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSeascapeRotation:I

goto/16 :goto_2c

.line 1427
:cond_db
const/4 v7, 0x1

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLandscapeRotation:I

.line 1428
const/4 v7, 0x3

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSeascapeRotation:I

goto/16 :goto_2c

.line 1440
.restart local v1 #longSizeDp:I
.restart local v5 #shortSizeDp:I
:cond_e3
const/4 v7, 0x0

goto/16 :goto_42

.line 1442
:cond_e6
const/4 v6, 0x0

goto/16 :goto_54

.line 1444
.restart local v6 #showByDefault:I
:cond_e9
const/4 v7, 0x0

goto/16 :goto_65

.line 1454
.restart local v2 #navBarOverride:Ljava/lang/String;
:cond_ec
const-string v7, "0"

invoke-virtual {v7, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v7

if-eqz v7, :cond_7b

.line 1455
const/4 v7, 0x1

iput-boolean v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHasNavigationBar:Z

.line 1456
const/4 v7, 0x1

iput-boolean v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mOverWriteHasNavigationBar:Z

goto :goto_7b

.line 1464
:cond_fb
iget v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLandscapeRotation:I

iput v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mDemoHdmiRotation:I

goto :goto_8d

.line 1470
:cond_100
const/4 v7, 0x0

goto :goto_b6
.end method

next find this method

and re move all line in the method

.method public updateSettings()V
-
-
remove all
-
-
.end method

and replaced with this

.method public updateSettings()V
.registers 28

.prologue
.line 1502
move-object/from16 v0, p0

iget-object v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

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

move-result-object v4

.line 1503
.local v4, resolver:Landroid/content/ContentResolver;
const/4 v6, 0x0

.line 1504
.local v6, updateRotation:Z
move-object/from16 v0, p0

iget-object v10, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLock:Ljava/lang/Object;

monitor-enter v10

.line 1505
:try_start_e
const-string v9, "end_button_behavior"

const/4 v11, 0x2

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

move-object/from16 v0, p0

iput v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mEndcallBehavior:I

.line 1509
const-string v9, "incall_power_button_behavior"

const/4 v11, 0x1

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$Secure;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

move-object/from16 v0, p0

iput v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mIncallPowerBehavior:I

.line 1513
const-string v9, "ring_home_button_behavior"

const/4 v11, 0x1

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$Secure;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

move-object/from16 v0, p0

iput v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mRingHomeBehavior:I

.line 1517
const-string v9, "home_wake_screen"

const/4 v11, 0x1

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

const/4 v11, 0x1

if-ne v9, v11, :cond_1a5

const/4 v9, 0x1

:goto_3e
move-object/from16 v0, p0

iput-boolean v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeWakeScreen:Z

.line 1519
const-string v9, "volume_wake_screen"

const/4 v11, 0x0

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

const/4 v11, 0x1

if-ne v9, v11, :cond_1a8

const/4 v9, 0x1

:goto_4e
move-object/from16 v0, p0

iput-boolean v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mVolumeWakeScreen:Z

.line 1521
const-string v9, "volbtn_music_controls"

const/4 v11, 0x1

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

const/4 v11, 0x1

if-ne v9, v11, :cond_1ab

const/4 v9, 0x1

:goto_5e
move-object/from16 v0, p0

iput-boolean v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mVolBtnMusicControls:Z

.line 1524
const-string v9, "expanded_desktop_style"

const/4 v11, 0x0

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

move-object/from16 v0, p0

iput v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mExpandedDesktopStyle:I

.line 1526
const-string v9, "expanded_desktop_state"

const/4 v11, 0x0

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

if-nez v9, :cond_7d

.line 1528
const/4 v9, 0x0

move-object/from16 v0, p0

iput v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mExpandedDesktopStyle:I

.line 1531
:cond_7d
invoke-direct/range {p0 .. p0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->updateKeyAssignments()V

.line 1534
const-string v9, "user_rotation"

const/4 v11, 0x0

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v7

.line 1538
.local v7, userRotation:I
move-object/from16 v0, p0

iget v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUserRotation:I

if-eq v9, v7, :cond_93

.line 1539
move-object/from16 v0, p0

iput v7, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUserRotation:I

.line 1540
const/4 v6, 0x1

.line 1542
:cond_93
const-string v9, "accelerometer_rotation"

const/4 v11, 0x0

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

if-eqz v9, :cond_1ae

const/4 v8, 0x0

.line 1546
.local v8, userRotationMode:I
:goto_9e
move-object/from16 v0, p0

iget v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUserRotationMode:I

if-eq v9, v8, :cond_ac

.line 1547
move-object/from16 v0, p0

iput v8, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUserRotationMode:I

.line 1548
const/4 v6, 0x1

.line 1549
invoke-virtual/range {p0 .. p0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->updateOrientationListenerLp()V

.line 1552
:cond_ac
const-string v9, "accelerometer_rotation_angles"

const/4 v11, -0x1

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

move-object/from16 v0, p0

iput v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUserRotationAngles:I

.line 1556
move-object/from16 v0, p0

iget-object v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

invoke-virtual {v9}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v9

const v11, 0x111004e

invoke-virtual {v9, v11}, Landroid/content/res/Resources;->getBoolean(I)Z

move-result v9

if-eqz v9, :cond_1b1

const/4 v5, 0x1

.line 1558
.local v5, showByDefault:I
:goto_ca
const-string v9, "navigation_bar_show"

const/4 v11, -0x2

invoke-static {v4, v9, v5, v11}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

const/4 v11, 0x1

if-ne v9, v11, :cond_1b4

const/4 v9, 0x1

:goto_d5
move-object/from16 v0, p0

iput-boolean v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHasNavigationBar:Z

.line 1562
move-object/from16 v0, p0

iget-boolean v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHasNavigationBar:Z

if-nez v9, :cond_1b7

.line 1564
move-object/from16 v0, p0

iget-object v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarWidthForRotation:[I

move-object/from16 v0, p0

iget v11, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPortraitRotation:I

move-object/from16 v0, p0

iget-object v12, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarWidthForRotation:[I

move-object/from16 v0, p0

iget v13, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUpsideDownRotation:I

move-object/from16 v0, p0

iget-object v14, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarWidthForRotation:[I

move-object/from16 v0, p0

iget v15, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLandscapeRotation:I

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarWidthForRotation:[I

move-object/from16 v16, v0

move-object/from16 v0, p0

iget v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSeascapeRotation:I

move/from16 v17, v0

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarHeightForRotation:[I

move-object/from16 v18, v0

move-object/from16 v0, p0

iget v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPortraitRotation:I

move/from16 v19, v0

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarHeightForRotation:[I

move-object/from16 v20, v0

move-object/from16 v0, p0

iget v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUpsideDownRotation:I

move/from16 v21, v0

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarHeightForRotation:[I

move-object/from16 v22, v0

move-object/from16 v0, p0

iget v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLandscapeRotation:I

move/from16 v23, v0

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarHeightForRotation:[I

move-object/from16 v24, v0

move-object/from16 v0, p0

iget v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSeascapeRotation:I

move/from16 v25, v0

const/16 v26, 0x0

aput v26, v24, v25

aput v26, v22, v23

aput v26, v20, v21

aput v26, v18, v19

aput v26, v16, v17

aput v26, v14, v15

aput v26, v12, v13

aput v26, v9, v11

.line 1598
:goto_145
move-object/from16 v0, p0

iget-boolean v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemReady:Z

if-eqz v9, :cond_167

.line 1599
const-string v9, "pointer_location"

const/4 v11, 0x0

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v3

.line 1601
.local v3, pointerLocation:I
move-object/from16 v0, p0

iget v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPointerLocationMode:I

if-eq v9, v3, :cond_167

.line 1602
move-object/from16 v0, p0

iput v3, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPointerLocationMode:I

.line 1603
move-object/from16 v0, p0

iget-object v11, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;

if-eqz v3, :cond_240

const/4 v9, 0x1

:goto_164
invoke-virtual {v11, v9}, Landroid/os/Handler;->sendEmptyMessage(I)Z

.line 1609
.end local v3 #pointerLocation:I
:cond_167
const-string v9, "screen_off_timeout"

const/4 v11, 0x0

const/4 v12, -0x2

invoke-static {v4, v9, v11, v12}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v9

move-object/from16 v0, p0

iput v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLockScreenTimeout:I

.line 1611
const-string v9, "default_input_method"

const/4 v11, -0x2

invoke-static {v4, v9, v11}, Landroid/provider/Settings$Secure;->getStringForUser(Landroid/content/ContentResolver;Ljava/lang/String;I)Ljava/lang/String;

move-result-object v2

.line 1613
.local v2, imId:Ljava/lang/String;
if-eqz v2, :cond_243

invoke-virtual {v2}, Ljava/lang/String;->length()I

move-result v9

if-lez v9, :cond_243

const/4 v1, 0x1

.line 1614
.local v1, hasSoftInput:Z
:goto_183
move-object/from16 v0, p0

iget-boolean v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHasSoftInput:Z

if-eq v9, v1, :cond_18e

.line 1615
move-object/from16 v0, p0

iput-boolean v1, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHasSoftInput:Z

.line 1616
const/4 v6, 0x1

.line 1618
:cond_18e
move-object/from16 v0, p0

iget-object v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mImmersiveModeConfirmation:Lcom/android/internal/policy/impl/ImmersiveModeConfirmation;

if-eqz v9, :cond_19b

.line 1619
move-object/from16 v0, p0

iget-object v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mImmersiveModeConfirmation:Lcom/android/internal/policy/impl/ImmersiveModeConfirmation;

invoke-virtual {v9}, Lcom/android/internal/policy/impl/ImmersiveModeConfirmation;->loadSetting()V

.line 1621
:cond_19b
monitor-exit v10
:try_end_19c
.catchall {:try_start_e .. :try_end_19c} :catchall_23d

.line 1623
if-eqz v6, :cond_1a4

.line 1624
const/4 v9, 0x1

move-object/from16 v0, p0

invoke-virtual {v0, v9}, Lcom/android/internal/policy/impl/PhoneWindowManager;->updateRotation(Z)V

.line 1626
:cond_1a4
return-void

.line 1517
.end local v1 #hasSoftInput:Z
.end local v2 #imId:Ljava/lang/String;
.end local v5 #showByDefault:I
.end local v7 #userRotation:I
.end local v8 #userRotationMode:I
:cond_1a5
const/4 v9, 0x0

goto/16 :goto_3e

.line 1519
:cond_1a8
const/4 v9, 0x0

goto/16 :goto_4e

.line 1521
:cond_1ab
const/4 v9, 0x0

goto/16 :goto_5e

.line 1542
.restart local v7 #userRotation:I
:cond_1ae
const/4 v8, 0x1

goto/16 :goto_9e

.line 1556
.restart local v8 #userRotationMode:I
:cond_1b1
const/4 v5, 0x0

goto/16 :goto_ca

.line 1558
.restart local v5 #showByDefault:I
:cond_1b4
const/4 v9, 0x0

goto/16 :goto_d5

.line 1574
:cond_1b7
:try_start_1b7
move-object/from16 v0, p0

iget-object v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarHeightForRotation:[I

move-object/from16 v0, p0

iget v11, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPortraitRotation:I

move-object/from16 v0, p0

iget-object v12, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarHeightForRotation:[I

move-object/from16 v0, p0

iget v13, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUpsideDownRotation:I

move-object/from16 v0, p0

iget-object v14, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

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

move-result-object v14

const-string v15, "navigation_bar_height"

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

move-object/from16 v16, v0

invoke-virtual/range {v16 .. v16}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v16

const v17, 0x105000d

invoke-virtual/range {v16 .. v17}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

move-result v16

const/16 v17, -0x2

invoke-static/range {v14 .. v17}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v14

aput v14, v12, v13

aput v14, v9, v11

.line 1585
move-object/from16 v0, p0

iget-object v9, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarWidthForRotation:[I

move-object/from16 v0, p0

iget v11, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPortraitRotation:I

move-object/from16 v0, p0

iget-object v12, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarWidthForRotation:[I

move-object/from16 v0, p0

iget v13, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mUpsideDownRotation:I

move-object/from16 v0, p0

iget-object v14, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarWidthForRotation:[I

move-object/from16 v0, p0

iget v15, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLandscapeRotation:I

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBarWidthForRotation:[I

move-object/from16 v16, v0

move-object/from16 v0, p0

iget v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSeascapeRotation:I

move/from16 v17, v0

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

move-object/from16 v18, v0

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

move-result-object v18

const-string v19, "navigation_bar_width"

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

move-object/from16 v20, v0

invoke-virtual/range {v20 .. v20}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v20

const v21, 0x105000f

invoke-virtual/range {v20 .. v21}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

move-result v20

const/16 v21, -0x2

invoke-static/range {v18 .. v21}, Landroid/provider/Settings$System;->getIntForUser(Landroid/content/ContentResolver;Ljava/lang/String;II)I

move-result v18

aput v18, v16, v17

aput v18, v14, v15

aput v18, v12, v13

aput v18, v9, v11

goto/16 :goto_145

.line 1621
.end local v5 #showByDefault:I
.end local v7 #userRotation:I
.end local v8 #userRotationMode:I
:catchall_23d
move-exception v9

monitor-exit v10
:try_end_23f
.catchall {:try_start_1b7 .. :try_end_23f} :catchall_23d

throw v9

.line 1603
.restart local v3 #pointerLocation:I
.restart local v5 #showByDefault:I
.restart local v7 #userRotation:I
.restart local v8 #userRotationMode:I
:cond_240
const/4 v9, 0x2

goto/16 :goto_164

.line 1613
.end local v3 #pointerLocation:I
.restart local v2 #imId:Ljava/lang/String;
:cond_243
const/4 v1, 0x0

goto/16 :goto_183
.end method

Done , Enjoy !

proof & screenshot http://xdaforums.com/showthread.php?t=2557122