[Android] amit020:
viewconfigurartion.smali reject are different from view configuration.smali no line matches

viewconfiguration.smal.reject output

*** 356,361 ****

float-to-int v11, v11

iput v11, p0, Landroid/view/ViewConfiguration;->mOverscrollDistance:I

const/high16 v11, 0x40c00000 # 6.0f
--- 356,365 ----

float-to-int v11, v11

+ invoke-static {p1, v11}, Landroid/view/ViewConfigurationHelper;->getOverScrollDistance(Landroid/content/Context;I)I
+
+ move-result v11
+
iput v11, p0, Landroid/view/ViewConfiguration;->mOverscrollDistance:I

const/high16 v11, 0x40c00000 # 6.0f
***************
*** 368,373 ****

float-to-int v11, v11

iput v11, p0, Landroid/view/ViewConfiguration;->mOverflingDistance:I

iget-boolean v11, p0, Landroid/view/ViewConfiguration;->sHasPermanentMenuKeySet:Z
--- 372,381 ----

float-to-int v11, v11

+ invoke-static {p1, v11}, Landroid/view/ViewConfigurationHelper;->getOverFlingDistance(Landroid/content/Context;I)I
+
+ move-result v11
+
iput v11, p0, Landroid/view/ViewConfiguration;->mOverflingDistance:I

iget-boolean v11, p0, Landroid/view/ViewConfiguration;->sHasPermanentMenuKeySet:Z
***************
*** 506,511 ****
.param p0, "context" # Landroid/content/Context;

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

move-result-object v3
--- 514,551 ----
.param p0, "context" # Landroid/content/Context;

.prologue
+ invoke-static {p0}, Landroid/view/ViewConfigurationHelper;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;
+
+ move-result-object v0
+
+ .local v0, "cfg":Landroid/view/ViewConfiguration;
+ if-eqz v0, :cond_miui_0
+
+ move-object v1, v0
+
+ :goto_miui_0
+ return-object v1
+
+ :cond_miui_0
+ invoke-static {p0}, Landroid/view/ViewConfigurationHelper;->needMiuiConfiguration(Landroid/content/Context;)Z
+
+ move-result v4
+
+ if-eqz v4, :cond_miui_1
+
+ new-instance v0, Landroid/view/ViewConfiguration;
+
+ .end local v0 # "cfg":Landroid/view/ViewConfiguration;
+ invoke-direct {v0, p0}, Landroid/view/ViewConfiguration;-><init>(Landroid/content/Context;)V
+
+ .restart local v0 # "cfg":Landroid/view/ViewConfiguration;
+ invoke-static {p0, v0}, Landroid/view/ViewConfigurationHelper;->put(Landroid/content/Context;Landroid/view/ViewConfiguration;)V
+
+ move-object v1, v0
+
+ goto :goto_miui_0
+
+ :cond_miui_1
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v3

and viewconfiguration.smali output

.class public Landroid/view/ViewConfiguration;
.super Ljava/lang/Object;
.source "ViewConfiguration.java"

# static fields
.field private static final DEFAULT_LONG_PRESS_TIMEOUT:I = 0x1f4

.field private static final DOUBLE_TAP_MIN_TIME:I = 0x28

.field private static final DOUBLE_TAP_SLOP:I = 0x64

.field private static final DOUBLE_TAP_TIMEOUT:I = 0x12c

.field private static final DOUBLE_TAP_TOUCH_SLOP:I = 0x8

.field private static final EDGE_SLOP:I = 0xc

.field private static final FADING_EDGE_LENGTH:I = 0xc

.field private static final GLOBAL_ACTIONS_KEY_TIMEOUT:I = 0x1f4

.field private static final HOVER_TAP_SLOP:I = 0x14

.field private static final HOVER_TAP_TIMEOUT:I = 0x96

.field private static final JUMP_TAP_TIMEOUT:I = 0x1f4

.field private static final KEY_REPEAT_DELAY:I = 0x32

.field private static final MAXIMUM_DRAWING_CACHE_SIZE:I = 0x177000
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.end field

.field private static final MAXIMUM_FLING_VELOCITY:I = 0x1f40

.field private static final MINIMUM_FLING_VELOCITY:I = 0x32

.field private static final OVERFLING_DISTANCE:I = 0x6

.field private static final OVERSCROLL_DISTANCE:I = 0x0

.field private static final PAGING_TOUCH_SLOP:I = 0x10

.field private static final PRESSED_STATE_DURATION:I = 0x40

.field private static final SCROLL_BAR_DEFAULT_DELAY:I = 0x12c

.field private static final SCROLL_BAR_FADE_DURATION:I = 0xfa

.field private static final SCROLL_BAR_SIZE:I = 0xa

.field private static final SCROLL_FRICTION:F = 0.015f

.field private static final SEND_RECURRING_ACCESSIBILITY_EVENTS_INTERVAL_MILLIS:J = 0x64L

.field private static final TAP_TIMEOUT:I = 0xb4

.field private static final TOUCH_SLOP:I = 0x8

.field private static final WINDOW_TOUCH_SLOP:I = 0x10

.field private static final ZOOM_CONTROLS_TIMEOUT:I = 0xbb8

.field static final sConfigurations:Landroid/util/SparseArray;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroid/util/SparseArray",
"<",
"Landroid/view/ViewConfiguration;",
">;"
}
.end annotation
.end field

# instance fields
.field private final mDoubleTapSlop:I

.field private final mDoubleTapTouchSlop:I

.field private final mEdgeSlop:I

.field private final mFadingEdgeLength:I

.field private final mFadingMarqueeEnabled:Z

.field private final mMaximumDrawingCacheSize:I

.field private final mMaximumFlingVelocity:I

.field private final mMinimumFlingVelocity:I

.field private final mOverflingDistance:I

.field private final mOverscrollDistance:I

.field private final mPagingTouchSlop:I

.field private final mScrollbarSize:I

.field private final mTouchSlop:I

.field private final mWindowTouchSlop:I

# direct methods
.method static constructor <clinit>()V
.locals 2

.prologue
.line 231
new-instance v0, Landroid/util/SparseArray;

const/4 v1, 0x2

invoke-direct {v0, v1}, Landroid/util/SparseArray;-><init>(I)V

sput-object v0, Landroid/view/ViewConfiguration;->sConfigurations:Landroid/util/SparseArray;

return-void
.end method

.method public constructor <init>()V
.locals 3
.annotation runtime Ljava/lang/Deprecated;
.end annotation

.prologue
const/16 v2, 0x10

const/16 v0, 0xc

const/16 v1, 0x8

.line 238
invoke-direct {p0}, Ljava/lang/Object;-><init>()V

.line 239
iput v0, p0, Landroid/view/ViewConfiguration;->mEdgeSlop:I

.line 240
iput v0, p0, Landroid/view/ViewConfiguration;->mFadingEdgeLength:I

.line 241
const/16 v0, 0x32

iput v0, p0, Landroid/view/ViewConfiguration;->mMinimumFlingVelocity:I

.line 242
const/16 v0, 0x1f40

iput v0, p0, Landroid/view/ViewConfiguration;->mMaximumFlingVelocity:I

.line 243
const/16 v0, 0xa

iput v0, p0, Landroid/view/ViewConfiguration;->mScrollbarSize:I

.line 244
iput v1, p0, Landroid/view/ViewConfiguration;->mTouchSlop:I

.line 245
iput v1, p0, Landroid/view/ViewConfiguration;->mDoubleTapTouchSlop:I

.line 246
iput v2, p0, Landroid/view/ViewConfiguration;->mPagingTouchSlop:I

.line 247
const/16 v0, 0x64

iput v0, p0, Landroid/view/ViewConfiguration;->mDoubleTapSlop:I

.line 248
iput v2, p0, Landroid/view/ViewConfiguration;->mWindowTouchSlop:I

.line 250
const v0, 0x177000

iput v0, p0, Landroid/view/ViewConfiguration;->mMaximumDrawingCacheSize:I

.line 251
const/4 v0, 0x0

iput v0, p0, Landroid/view/ViewConfiguration;->mOverscrollDistance:I

.line 252
const/4 v0, 0x6

iput v0, p0, Landroid/view/ViewConfiguration;->mOverflingDistance:I

.line 253
const/4 v0, 0x1

iput-boolean v0, p0, Landroid/view/ViewConfiguration;->mFadingMarqueeEnabled:Z

.line 254
return-void
.end method

.method private constructor <init>(Landroid/content/Context;)V
.locals 11
.param p1, "context" # Landroid/content/Context;

.prologue
const/high16 v9, 0x41400000 # 12.0f

const/high16 v10, 0x3f000000 # 0.5f

.line 266
invoke-direct {p0}, Ljava/lang/Object;-><init>()V

.line 267
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v4

.line 268
.local v4, "res":Landroid/content/res/Resources;
invoke-virtual {v4}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

move-result-object v3

.line 269
.local v3, "metrics":Landroid/util/DisplayMetrics;
invoke-virtual {v4}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

move-result-object v0

.line 270
.local v0, "config":Landroid/content/res/Configuration;
iget v1, v3, Landroid/util/DisplayMetrics;->density:F

.line 272
.local v1, "density":F
const/4 v8, 0x4

invoke-virtual {v0, v8}, Landroid/content/res/Configuration;->isLayoutSizeAtLeast(I)Z

move-result v8

if-eqz v8, :cond_0

.line 273
const/high16 v8, 0x3fc00000 # 1.5f

mul-float v6, v1, v8

.line 278
.local v6, "sizeAndDensity":F
:goto_0
mul-float v8, v6, v9

add-float/2addr v8, v10

float-to-int v8, v8

iput v8, p0, Landroid/view/ViewConfiguration;->mEdgeSlop:I

.line 279
mul-float v8, v6, v9

add-float/2addr v8, v10

float-to-int v8, v8

iput v8, p0, Landroid/view/ViewConfiguration;->mFadingEdgeLength:I

.line 280
const/high16 v8, 0x42480000 # 50.0f

mul-float/2addr v8, v1

add-float/2addr v8, v10

float-to-int v8, v8

iput v8, p0, Landroid/view/ViewConfiguration;->mMinimumFlingVelocity:I

.line 281
const/high16 v8, 0x45fa0000 # 8000.0f

mul-float/2addr v8, v1

add-float/2addr v8, v10

float-to-int v8, v8

iput v8, p0, Landroid/view/ViewConfiguration;->mMaximumFlingVelocity:I

.line 282
const/high16 v8, 0x41200000 # 10.0f

mul-float/2addr v8, v1

add-float/2addr v8, v10

float-to-int v8, v8

iput v8, p0, Landroid/view/ViewConfiguration;->mScrollbarSize:I

.line 283
const/high16 v8, 0x42c80000 # 100.0f

mul-float/2addr v8, v6

add-float/2addr v8, v10

float-to-int v8, v8

iput v8, p0, Landroid/view/ViewConfiguration;->mDoubleTapSlop:I

.line 284
const/high16 v8, 0x41800000 # 16.0f

mul-float/2addr v8, v6

add-float/2addr v8, v10

float-to-int v8, v8

iput v8, p0, Landroid/view/ViewConfiguration;->mWindowTouchSlop:I

.line 287
const-string/jumbo v8, "window"

invoke-virtual {p1, v8}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v7

check-cast v7, Landroid/view/WindowManager;

.line 288
.local v7, "win":Landroid/view/WindowManager;
invoke-interface {v7}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

move-result-object v2

.line 289
.local v2, "display":Landroid/view/Display;
new-instance v5, Landroid/graphics/Point;

invoke-direct {v5}, Landroid/graphics/Point;-><init>()V

.line 290
.local v5, "size":Landroid/graphics/Point;
invoke-virtual {v2, v5}, Landroid/view/Display;->getRealSize(Landroid/graphics/Point;)V

.line 291
iget v8, v5, Landroid/graphics/Point;->x:I

mul-int/lit8 v8, v8, 0x4

iget v9, v5, Landroid/graphics/Point;->y:I

mul-int/2addr v8, v9

iput v8, p0, Landroid/view/ViewConfiguration;->mMaximumDrawingCacheSize:I

.line 293
const/4 v8, 0x0

mul-float/2addr v8, v6

add-float/2addr v8, v10

float-to-int v11, v11

invoke-static {p1, v11}, Landroid/view/ViewConfigurationHelper;->getOverScrollDistance(Landroid/content/Context;I)I

move-result v11

iput v11, p0, Landroid/view/ViewConfiguration;->mOverscrollDistance:I

.line 294
const/high16 v11, 0x40c00000 # 6.0f

mul-float/2addr v8, v6

add-float/2addr v8, v10

float-to-int v8, v8

iput v8, p0, Landroid/view/ViewConfiguration;->mOverflingDistance:I

.line 296
const v8, 0x1110013

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

move-result v8

iput-boolean v8, p0, Landroid/view/ViewConfiguration;->mFadingMarqueeEnabled:Z

.line 298
const v8, 0x1050008

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

move-result v8

iput v8, p0, Landroid/view/ViewConfiguration;->mTouchSlop:I

.line 300
iget v8, p0, Landroid/view/ViewConfiguration;->mTouchSlop:I

mul-int/lit8 v8, v8, 0x2

iput v8, p0, Landroid/view/ViewConfiguration;->mPagingTouchSlop:I

.line 302
iget v8, p0, Landroid/view/ViewConfiguration;->mTouchSlop:I

iput v8, p0, Landroid/view/ViewConfiguration;->mDoubleTapTouchSlop:I

.line 303
return-void

.line 275
.end local v2 # "display":Landroid/view/Display;
.end local v5 # "size":Landroid/graphics/Point;
.end local v6 # "sizeAndDensity":F
.end local v7 # "win":Landroid/view/WindowManager;
:cond_0
move v6, v1

.restart local v6 # "sizeAndDensity":F
goto :goto_0
.end method

.method public static get(Landroid/content/Context;)Landroid/view/ViewConfiguration;
.locals 5
.param p0, "context" # Landroid/content/Context;

.prologue
.line 313
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v3

invoke-virtual {v3}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

move-result-object v2

.line 314
.local v2, "metrics":Landroid/util/DisplayMetrics;
const/high16 v3, 0x42c80000 # 100.0f

iget v4, v2, Landroid/util/DisplayMetrics;->density:F

mul-float/2addr v3, v4

float-to-int v1, v3

.line 316
.local v1, "density":I
sget-object v3, Landroid/view/ViewConfiguration;->sConfigurations:Landroid/util/SparseArray;

invoke-virtual {v3, v1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

move-result-object v0

check-cast v0, Landroid/view/ViewConfiguration;

.line 317
.local v0, "configuration":Landroid/view/ViewConfiguration;
if-nez v0, :cond_0

.line 318
new-instance v0, Landroid/view/ViewConfiguration;

.end local v0 # "configuration":Landroid/view/ViewConfiguration;
invoke-direct {v0, p0}, Landroid/view/ViewConfiguration;-><init>(Landroid/content/Context;)V

.line 319
.restart local v0 # "configuration":Landroid/view/ViewConfiguration;
sget-object v3, Landroid/view/ViewConfiguration;->sConfigurations:Landroid/util/SparseArray;

invoke-virtual {v3, v1, v0}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

.line 322
:cond_0
return-object v0
.end method

.method public static getDoubleTapMinTime()I
.locals 1

.prologue
.line 441
const/16 v0, 0x28

return v0
.end method

.method public static getDoubleTapSlop()I
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation

.prologue
.line 526
const/16 v0, 0x64

return v0
.end method

.method public static getDoubleTapTimeout()I
.locals 1

.prologue
.line 430
const/16 v0, 0x12c

return v0
.end method

.method public static getEdgeSlop()I
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation

.prologue
.line 472
const/16 v0, 0xc

return v0
.end method

.method public static getFadingEdgeLength()I
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation

.prologue
.line 365
const/16 v0, 0xc

return v0
.end method

.method public static getGlobalActionKeyTimeout()J
.locals 2

.prologue
.line 661
const-wide/16 v0, 0x1f4

return-wide v0
.end method

.method public static getHoverTapSlop()I
.locals 1

.prologue
.line 461
const/16 v0, 0x14

return v0
.end method

.method public static getHoverTapTimeout()I
.locals 1

.prologue
.line 451
const/16 v0, 0x96

return v0
.end method

.method public static getJumpTapTimeout()I
.locals 1

.prologue
.line 421
const/16 v0, 0x1f4

return v0
.end method

.method public static getKeyRepeatDelay()I
.locals 1

.prologue
.line 403
const/16 v0, 0x32

return v0
.end method

.method public static getKeyRepeatTimeout()I
.locals 1

.prologue
.line 396
invoke-static {}, Landroid/view/ViewConfiguration;->getLongPressTimeout()I

move-result v0

return v0
.end method

.method public static getLongPressTimeout()I
.locals 2

.prologue
.line 388
const-string v0, "long_press_timeout"

const/16 v1, 0x1f4

invoke-static {v0, v1}, Landroid/app/AppGlobals;->getIntCoreSetting(Ljava/lang/String;I)I

move-result v0

return v0
.end method

.method public static getMaximumDrawingCacheSize()I
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation

.prologue
.line 614
const v0, 0x177000

return v0
.end method

.method public static getMaximumFlingVelocity()I
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation

.prologue
.line 594
const/16 v0, 0x1f40

return v0
.end method

.method public static getMinimumFlingVelocity()I
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation

.prologue
.line 577
const/16 v0, 0x32

return v0
.end method

.method public static getPressedStateDuration()I
.locals 1

.prologue
.line 380
const/16 v0, 0x40

return v0
.end method

.method public static getScrollBarFadeDuration()I
.locals 1

.prologue
.line 348
const/16 v0, 0xfa

return v0
.end method

.method public static getScrollBarSize()I
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation

.prologue
.line 333
const/16 v0, 0xa

return v0
.end method

.method public static getScrollDefaultDelay()I
.locals 1

.prologue
.line 355
const/16 v0, 0x12c

return v0
.end method

.method public static getScrollFriction()F
.locals 1

.prologue
.line 671
const v0, 0x3c75c28f # 0.015f

return v0
.end method

.method public static getSendRecurringAccessibilityEventsInterval()J
.locals 2

.prologue
.line 547
const-wide/16 v0, 0x64

return-wide v0
.end method

.method public static getTapTimeout()I
.locals 1

.prologue
.line 412
const/16 v0, 0xb4

return v0
.end method

.method public static getTouchSlop()I
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation

.prologue
.line 490
const/16 v0, 0x8

return v0
.end method

.method public static getWindowTouchSlop()I
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation

.prologue
.line 559
const/16 v0, 0x10

return v0
.end method

.method public static getZoomControlsTimeout()J
.locals 2

.prologue
.line 650
const-wide/16 v0, 0xbb8

return-wide v0
.end method

# virtual methods
.method public getScaledDoubleTapSlop()I
.locals 1

.prologue
.line 534
iget v0, p0, Landroid/view/ViewConfiguration;->mDoubleTapSlop:I

return v0
.end method

.method public getScaledDoubleTapTouchSlop()I
.locals 1

.prologue
.line 506
iget v0, p0, Landroid/view/ViewConfiguration;->mDoubleTapTouchSlop:I

return v0
.end method

.method public getScaledEdgeSlop()I
.locals 1

.prologue
.line 480
iget v0, p0, Landroid/view/ViewConfiguration;->mEdgeSlop:I

return v0
.end method

.method public getScaledFadingEdgeLength()I
.locals 1

.prologue
.line 372
iget v0, p0, Landroid/view/ViewConfiguration;->mFadingEdgeLength:I

return v0
.end method

.method public getScaledMaximumDrawingCacheSize()I
.locals 1

.prologue
.line 623
iget v0, p0, Landroid/view/ViewConfiguration;->mMaximumDrawingCacheSize:I

return v0
.end method

.method public getScaledMaximumFlingVelocity()I
.locals 1

.prologue
.line 601
iget v0, p0, Landroid/view/ViewConfiguration;->mMaximumFlingVelocity:I

return v0
.end method

.method public getScaledMinimumFlingVelocity()I
.locals 1

.prologue
.line 584
iget v0, p0, Landroid/view/ViewConfiguration;->mMinimumFlingVelocity:I

return v0
.end method

.method public getScaledOverflingDistance()I
.locals 1

.prologue
.line 639
iget v0, p0, Landroid/view/ViewConfiguration;->mOverflingDistance:I

return v0
.end method

.method public getScaledOverscrollDistance()I
.locals 1

.prologue
.line 631
iget v0, p0, Landroid/view/ViewConfiguration;->mOverscrollDistance:I

return v0
.end method

.method public getScaledPagingTouchSlop()I
.locals 1

.prologue
.line 514
iget v0, p0, Landroid/view/ViewConfiguration;->mPagingTouchSlop:I

return v0
.end method

.method public getScaledScrollBarSize()I
.locals 1

.prologue
.line 341
iget v0, p0, Landroid/view/ViewConfiguration;->mScrollbarSize:I

return v0
.end method

.method public getScaledTouchSlop()I
.locals 1

.prologue
.line 497
iget v0, p0, Landroid/view/ViewConfiguration;->mTouchSlop:I

return v0
.end method

.method public getScaledWindowTouchSlop()I
.locals 1

.prologue
.line 567
iget v0, p0, Landroid/view/ViewConfiguration;->mWindowTouchSlop:I

return v0
.end method

.method public hasPermanentMenuKey()Z
.locals 3

.prologue
.line 687
invoke-static {}, Landroid/view/WindowManagerGlobal;->getWindowManagerService()Landroid/view/IWindowManager;

move-result-object v1

.line 690
.local v1, "wm":Landroid/view/IWindowManager;
:try_start_0
invoke-interface {v1}, Landroid/view/IWindowManager;->hasNavigationBar()Z
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

move-result v2

if-eqz v2, :cond_0

.line 691
const/4 v2, 0x0

.line 701
:goto_0
return v2

.line 693
:catch_0
move-exception v2

.line 699
:cond_0
:try_start_1
invoke-interface {v1}, Landroid/view/IWindowManager;->hasMenuKeyEnabled()Z
:try_end_1
.catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_1

move-result v2

goto :goto_0

.line 700
:catch_1
move-exception v0

.line 701
.local v0, "ex":Landroid/os/RemoteException;
const/4 v2, 0x1

goto :goto_0
.end method

.method public isFadingMarqueeEnabled()Z
.locals 1

.prologue
.line 710
iget-boolean v0, p0, Landroid/view/ViewConfiguration;->mFadingMarqueeEnabled:Z

return v0
.end method

please help me to solve this reject, and do i need to fix each reject , and sorry for my bad english