MotionEventCompat$BaseMotionEventVersionImpl.smali

.class Lcom/dcloud/android/v4/view/MotionEventCompat$BaseMotionEventVersionImpl;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/dcloud/android/v4/view/MotionEventCompat$MotionEventVersionImpl;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/dcloud/android/v4/view/MotionEventCompat;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = "BaseMotionEventVersionImpl"
.end annotation


# direct methods
.method constructor <init>()V
    .registers 1

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

    return-void
.end method


# virtual methods
.method public findPointerIndex(Landroid/view/MotionEvent;I)I
    .registers 3

    if-nez p2, :cond_4

    const/4 p1, 0x0

    return p1

    :cond_4
    const/4 p1, -0x1

    return p1
.end method

.method public getAxisValue(Landroid/view/MotionEvent;I)F
    .registers 3

    const/4 p1, 0x0

    return p1
.end method

.method public getAxisValue(Landroid/view/MotionEvent;II)F
    .registers 4

    const/4 p1, 0x0

    return p1
.end method

.method public getPointerCount(Landroid/view/MotionEvent;)I
    .registers 2

    const/4 p1, 0x1

    return p1
.end method

.method public getPointerId(Landroid/view/MotionEvent;I)I
    .registers 3

    if-nez p2, :cond_4

    const/4 p1, 0x0

    return p1

    .line 1
    :cond_4
    new-instance p1, Ljava/lang/IndexOutOfBoundsException;

    const-string p2, "Pre-Eclair does not support multiple pointers"

    invoke-direct {p1, p2}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public getSource(Landroid/view/MotionEvent;)I
    .registers 2

    const/4 p1, 0x0

    return p1
.end method

.method public getX(Landroid/view/MotionEvent;I)F
    .registers 3

    if-nez p2, :cond_7

    .line 1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result p1

    return p1

    .line 3
    :cond_7
    new-instance p1, Ljava/lang/IndexOutOfBoundsException;

    const-string p2, "Pre-Eclair does not support multiple pointers"

    invoke-direct {p1, p2}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public getY(Landroid/view/MotionEvent;I)F
    .registers 3

    if-nez p2, :cond_7

    .line 1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    return p1

    .line 3
    :cond_7
    new-instance p1, Ljava/lang/IndexOutOfBoundsException;

    const-string p2, "Pre-Eclair does not support multiple pointers"

    invoke-direct {p1, p2}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V

    throw p1
.end method