SeekBarWaveform.smali

.class public Lim/tpelyyftgw/ui/components/SeekBarWaveform;
.super Ljava/lang/Object;
.source "SeekBarWaveform.java"


# static fields
.field private static paintInner:Landroid/graphics/Paint;

.field private static paintOuter:Landroid/graphics/Paint;


# instance fields
.field private delegate:Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

.field private height:I

.field private innerColor:I

.field private messageObject:Lim/tpelyyftgw/messenger/MessageObject;

.field private outerColor:I

.field private parentView:Landroid/view/View;

.field private pressed:Z

.field private selected:Z

.field private selectedColor:I

.field private startDraging:Z

.field private startX:F

.field private thumbDX:I

.field private thumbX:I

.field private waveformBytes:[B

.field private width:I


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

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

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

    .line 18
    const/4 v0, 0x0

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    .line 19
    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbDX:I

    .line 21
    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->startDraging:Z

    .line 22
    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->pressed:Z

    .line 36
    sget-object v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->paintInner:Landroid/graphics/Paint;

    if-nez v0, :cond_1e

    .line 37
    new-instance v0, Landroid/graphics/Paint;

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

    sput-object v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->paintInner:Landroid/graphics/Paint;

    .line 38
    new-instance v0, Landroid/graphics/Paint;

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

    sput-object v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->paintOuter:Landroid/graphics/Paint;

    .line 40
    :cond_1e
    return-void
.end method


# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
    .registers 42
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .line 131
    move-object/from16 v0, p0

    iget-object v1, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->waveformBytes:[B

    if-eqz v1, :cond_196

    iget v1, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->width:I

    if-nez v1, :cond_c

    goto/16 :goto_196

    .line 134
    :cond_c
    const/high16 v2, 0x40400000    # 3.0f

    invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v3

    div-int/2addr v1, v3

    int-to-float v1, v1

    .line 135
    .local v1, "totalBarsCount":F
    const v3, 0x3dcccccd    # 0.1f

    cmpg-float v3, v1, v3

    if-gtz v3, :cond_1c

    .line 136
    return-void

    .line 139
    :cond_1c
    iget-object v3, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->waveformBytes:[B

    array-length v3, v3

    mul-int/lit8 v3, v3, 0x8

    const/4 v4, 0x5

    div-int/2addr v3, v4

    .line 140
    .local v3, "samplesCount":I
    int-to-float v5, v3

    div-float/2addr v5, v1

    .line 141
    .local v5, "samplesPerBar":F
    const/4 v6, 0x0

    .line 142
    .local v6, "barCounter":F
    const/4 v7, 0x0

    .line 144
    .local v7, "nextBarNum":I
    sget-object v8, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->paintInner:Landroid/graphics/Paint;

    iget-object v9, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->messageObject:Lim/tpelyyftgw/messenger/MessageObject;

    if-eqz v9, :cond_3e

    invoke-virtual {v9}, Lim/tpelyyftgw/messenger/MessageObject;->isOutOwner()Z

    move-result v9

    if-nez v9, :cond_3e

    iget-object v9, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->messageObject:Lim/tpelyyftgw/messenger/MessageObject;

    invoke-virtual {v9}, Lim/tpelyyftgw/messenger/MessageObject;->isContentUnread()Z

    move-result v9

    if-eqz v9, :cond_3e

    iget v9, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->outerColor:I

    goto :goto_47

    :cond_3e
    iget-boolean v9, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->selected:Z

    if-eqz v9, :cond_45

    iget v9, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->selectedColor:I

    goto :goto_47

    :cond_45
    iget v9, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->innerColor:I

    :goto_47
    invoke-virtual {v8, v9}, Landroid/graphics/Paint;->setColor(I)V

    .line 145
    sget-object v8, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->paintOuter:Landroid/graphics/Paint;

    iget v9, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->outerColor:I

    invoke-virtual {v8, v9}, Landroid/graphics/Paint;->setColor(I)V

    .line 147
    iget v8, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->height:I

    const/high16 v9, 0x41600000    # 14.0f

    invoke-static {v9}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v10

    sub-int/2addr v8, v10

    const/4 v10, 0x2

    div-int/2addr v8, v10

    .line 148
    .local v8, "y":I
    const/4 v11, 0x0

    .line 152
    .local v11, "barNum":I
    const/4 v12, 0x0

    .local v12, "a":I
    :goto_5e
    if-ge v12, v3, :cond_195

    .line 153
    if-eq v12, v7, :cond_6a

    .line 154
    move/from16 v22, v1

    move/from16 v25, v3

    move/from16 v32, v5

    goto/16 :goto_185

    .line 156
    :cond_6a
    const/4 v13, 0x0

    .line 157
    .local v13, "drawBarCount":I
    move v14, v7

    .line 158
    .local v14, "lastBarNum":I
    :goto_6c
    if-ne v14, v7, :cond_73

    .line 159
    add-float/2addr v6, v5

    .line 160
    float-to-int v7, v6

    .line 161
    add-int/lit8 v13, v13, 0x1

    goto :goto_6c

    .line 164
    :cond_73
    mul-int/lit8 v15, v12, 0x5

    .line 165
    .local v15, "bitPointer":I
    div-int/lit8 v16, v15, 0x8

    .line 166
    .local v16, "byteNum":I
    mul-int/lit8 v17, v16, 0x8

    sub-int v17, v15, v17

    .line 167
    .local v17, "byteBitOffset":I
    rsub-int/lit8 v9, v17, 0x8

    .line 168
    .local v9, "currentByteCount":I
    rsub-int/lit8 v19, v9, 0x5

    .line 169
    .local v19, "nextByteRest":I
    iget-object v2, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->waveformBytes:[B

    aget-byte v2, v2, v16

    shr-int v2, v2, v17

    invoke-static {v4, v9}, Ljava/lang/Math;->min(II)I

    move-result v21

    add-int/lit8 v21, v21, -0x1

    shl-int v21, v10, v21

    add-int/lit8 v21, v21, -0x1

    and-int v2, v2, v21

    int-to-byte v2, v2

    .line 170
    .local v2, "value":B
    if-lez v19, :cond_b1

    add-int/lit8 v4, v16, 0x1

    iget-object v10, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->waveformBytes:[B

    move/from16 v22, v1

    .end local v1    # "totalBarsCount":F
    .local v22, "totalBarsCount":F
    array-length v1, v10

    if-ge v4, v1, :cond_af

    .line 171
    shl-int v1, v2, v19

    int-to-byte v1, v1

    .line 172
    .end local v2    # "value":B
    .local v1, "value":B
    add-int/lit8 v2, v16, 0x1

    aget-byte v2, v10, v2

    add-int/lit8 v4, v19, -0x1

    const/4 v10, 0x2

    shl-int v4, v10, v4

    add-int/lit8 v4, v4, -0x1

    and-int/2addr v2, v4

    or-int/2addr v2, v1

    int-to-byte v2, v2

    .end local v1    # "value":B
    .restart local v2    # "value":B
    goto :goto_b3

    .line 170
    :cond_af
    const/4 v10, 0x2

    goto :goto_b3

    .end local v22    # "totalBarsCount":F
    .local v1, "totalBarsCount":F
    :cond_b1
    move/from16 v22, v1

    .line 175
    .end local v1    # "totalBarsCount":F
    .restart local v22    # "totalBarsCount":F
    :goto_b3
    const/4 v1, 0x0

    .local v1, "b":I
    :goto_b4
    if-ge v1, v13, :cond_17f

    .line 176
    const/high16 v4, 0x40400000    # 3.0f

    invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v20

    mul-int v4, v11, v20

    .line 177
    .local v4, "x":I
    iget v10, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    const/high16 v23, 0x40000000    # 2.0f

    const/high16 v24, 0x41f80000    # 31.0f

    move/from16 v25, v3

    .end local v3    # "samplesCount":I
    .local v25, "samplesCount":I
    if-ge v4, v10, :cond_108

    invoke-static/range {v23 .. v23}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v10

    add-int/2addr v10, v4

    iget v3, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    if-ge v10, v3, :cond_108

    .line 178
    int-to-float v3, v4

    int-to-float v10, v2

    const/high16 v18, 0x41600000    # 14.0f

    mul-float v10, v10, v18

    div-float v10, v10, v24

    move/from16 v32, v5

    const/high16 v5, 0x3f800000    # 1.0f

    .end local v5    # "samplesPerBar":F
    .local v32, "samplesPerBar":F
    invoke-static {v5, v10}, Ljava/lang/Math;->max(FF)F

    move-result v5

    sub-float v5, v18, v5

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    add-int/2addr v5, v8

    int-to-float v5, v5

    invoke-static/range {v23 .. v23}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v10

    add-int/2addr v10, v4

    int-to-float v10, v10

    invoke-static/range {v18 .. v18}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v23

    move/from16 v33, v6

    .end local v6    # "barCounter":F
    .local v33, "barCounter":F
    add-int v6, v8, v23

    int-to-float v6, v6

    sget-object v31, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->paintOuter:Landroid/graphics/Paint;

    move-object/from16 v26, p1

    move/from16 v27, v3

    move/from16 v28, v5

    move/from16 v29, v10

    move/from16 v30, v6

    invoke-virtual/range {v26 .. v31}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    goto :goto_171

    .line 177
    .end local v32    # "samplesPerBar":F
    .end local v33    # "barCounter":F
    .restart local v5    # "samplesPerBar":F
    .restart local v6    # "barCounter":F
    :cond_108
    move/from16 v32, v5

    move/from16 v33, v6

    .line 180
    .end local v5    # "samplesPerBar":F
    .end local v6    # "barCounter":F
    .restart local v32    # "samplesPerBar":F
    .restart local v33    # "barCounter":F
    int-to-float v3, v4

    int-to-float v5, v2

    const/high16 v6, 0x41600000    # 14.0f

    mul-float v5, v5, v6

    div-float v5, v5, v24

    const/high16 v10, 0x3f800000    # 1.0f

    invoke-static {v10, v5}, Ljava/lang/Math;->max(FF)F

    move-result v5

    sub-float v5, v6, v5

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    add-int/2addr v5, v8

    int-to-float v5, v5

    invoke-static/range {v23 .. v23}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v10

    add-int/2addr v10, v4

    int-to-float v10, v10

    invoke-static {v6}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v23

    add-int v6, v8, v23

    int-to-float v6, v6

    sget-object v39, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->paintInner:Landroid/graphics/Paint;

    move-object/from16 v34, p1

    move/from16 v35, v3

    move/from16 v36, v5

    move/from16 v37, v10

    move/from16 v38, v6

    invoke-virtual/range {v34 .. v39}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 181
    iget v3, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    if-ge v4, v3, :cond_171

    .line 182
    int-to-float v3, v4

    int-to-float v5, v2

    const/high16 v10, 0x41600000    # 14.0f

    mul-float v5, v5, v10

    div-float v5, v5, v24

    const/high16 v6, 0x3f800000    # 1.0f

    invoke-static {v6, v5}, Ljava/lang/Math;->max(FF)F

    move-result v5

    sub-float v5, v10, v5

    invoke-static {v5}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v5

    add-int/2addr v5, v8

    int-to-float v5, v5

    iget v6, v0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    int-to-float v6, v6

    invoke-static {v10}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v18

    add-int v10, v8, v18

    int-to-float v10, v10

    sget-object v31, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->paintOuter:Landroid/graphics/Paint;

    move-object/from16 v26, p1

    move/from16 v27, v3

    move/from16 v28, v5

    move/from16 v29, v6

    move/from16 v30, v10

    invoke-virtual/range {v26 .. v31}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 185
    :cond_171
    :goto_171
    nop

    .end local v4    # "x":I
    add-int/lit8 v11, v11, 0x1

    .line 175
    add-int/lit8 v1, v1, 0x1

    move/from16 v3, v25

    move/from16 v5, v32

    move/from16 v6, v33

    const/4 v10, 0x2

    goto/16 :goto_b4

    .end local v25    # "samplesCount":I
    .end local v32    # "samplesPerBar":F
    .end local v33    # "barCounter":F
    .restart local v3    # "samplesCount":I
    .restart local v5    # "samplesPerBar":F
    .restart local v6    # "barCounter":F
    :cond_17f
    move/from16 v25, v3

    move/from16 v32, v5

    move/from16 v33, v6

    .line 152
    .end local v1    # "b":I
    .end local v2    # "value":B
    .end local v3    # "samplesCount":I
    .end local v5    # "samplesPerBar":F
    .end local v9    # "currentByteCount":I
    .end local v13    # "drawBarCount":I
    .end local v14    # "lastBarNum":I
    .end local v15    # "bitPointer":I
    .end local v16    # "byteNum":I
    .end local v17    # "byteBitOffset":I
    .end local v19    # "nextByteRest":I
    .restart local v25    # "samplesCount":I
    .restart local v32    # "samplesPerBar":F
    :goto_185
    add-int/lit8 v12, v12, 0x1

    move/from16 v1, v22

    move/from16 v3, v25

    move/from16 v5, v32

    const/high16 v2, 0x40400000    # 3.0f

    const/4 v4, 0x5

    const/high16 v9, 0x41600000    # 14.0f

    const/4 v10, 0x2

    goto/16 :goto_5e

    .line 188
    .end local v12    # "a":I
    .end local v22    # "totalBarsCount":F
    .end local v25    # "samplesCount":I
    .end local v32    # "samplesPerBar":F
    .local v1, "totalBarsCount":F
    .restart local v3    # "samplesCount":I
    .restart local v5    # "samplesPerBar":F
    :cond_195
    return-void

    .line 132
    .end local v1    # "totalBarsCount":F
    .end local v3    # "samplesCount":I
    .end local v5    # "samplesPerBar":F
    .end local v6    # "barCounter":F
    .end local v7    # "nextBarNum":I
    .end local v8    # "y":I
    .end local v11    # "barNum":I
    :cond_196
    :goto_196
    return-void
.end method

.method public isDragging()Z
    .registers 2

    .line 122
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->pressed:Z

    return v0
.end method

.method public isStartDraging()Z
    .registers 2

    .line 69
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->startDraging:Z

    return v0
.end method

.method public onTouch(IFF)Z
    .registers 9
    .param p1, "action"    # I
    .param p2, "x"    # F
    .param p3, "y"    # F

    .line 73
    const/4 v0, 0x0

    const/4 v1, 0x1

    if-nez p1, :cond_2a

    .line 74
    const/4 v2, 0x0

    cmpg-float v3, v2, p2

    if-gtz v3, :cond_96

    iget v3, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->width:I

    int-to-float v3, v3

    cmpg-float v3, p2, v3

    if-gtz v3, :cond_96

    cmpl-float v2, p3, v2

    if-ltz v2, :cond_96

    iget v2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->height:I

    int-to-float v2, v2

    cmpg-float v2, p3, v2

    if-gtz v2, :cond_96

    .line 75
    iput p2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->startX:F

    .line 76
    iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->pressed:Z

    .line 77
    iget v2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    int-to-float v2, v2

    sub-float v2, p2, v2

    float-to-int v2, v2

    iput v2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbDX:I

    .line 78
    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->startDraging:Z

    .line 79
    return v1

    .line 81
    :cond_2a
    if-eq p1, v1, :cond_7f

    const/4 v2, 0x3

    if-ne p1, v2, :cond_30

    goto :goto_7f

    .line 89
    :cond_30
    const/4 v2, 0x2

    if-ne p1, v2, :cond_96

    .line 90
    iget-boolean v2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->pressed:Z

    if-eqz v2, :cond_96

    .line 91
    iget-boolean v2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->startDraging:Z

    if-eqz v2, :cond_4e

    .line 92
    iget v2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbDX:I

    int-to-float v2, v2

    sub-float v2, p2, v2

    float-to-int v2, v2

    iput v2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    .line 93
    if-gez v2, :cond_48

    .line 94
    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    goto :goto_4e

    .line 95
    :cond_48
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->width:I

    if-le v2, v0, :cond_4e

    .line 96
    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    .line 99
    :cond_4e
    :goto_4e
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->startX:F

    const/high16 v2, -0x40800000    # -1.0f

    cmpl-float v3, v0, v2

    if-eqz v3, :cond_7e

    sub-float v0, p2, v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    const v3, 0x3e4ccccd    # 0.2f

    invoke-static {v3, v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->getPixelsInCM(FZ)F

    move-result v3

    cmpl-float v0, v0, v3

    if-lez v0, :cond_7e

    .line 100
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->parentView:Landroid/view/View;

    if-eqz v0, :cond_7a

    invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_7a

    .line 101
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->parentView:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    invoke-interface {v0, v1}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    .line 103
    :cond_7a
    iput-boolean v1, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->startDraging:Z

    .line 104
    iput v2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->startX:F

    .line 106
    :cond_7e
    return v1

    .line 82
    :cond_7f
    :goto_7f
    iget-boolean v2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->pressed:Z

    if-eqz v2, :cond_96

    .line 83
    if-ne p1, v1, :cond_93

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->delegate:Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

    if-eqz v2, :cond_93

    .line 84
    iget v3, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    int-to-float v3, v3

    iget v4, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->width:I

    int-to-float v4, v4

    div-float/2addr v3, v4

    invoke-interface {v2, v3}, Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;->onSeekBarDrag(F)V

    .line 86
    :cond_93
    iput-boolean v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->pressed:Z

    .line 87
    return v1

    .line 109
    :cond_96
    return v0
.end method

.method public setColors(III)V
    .registers 4
    .param p1, "inner"    # I
    .param p2, "outer"    # I
    .param p3, "selected"    # I

    .line 47
    iput p1, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->innerColor:I

    .line 48
    iput p2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->outerColor:I

    .line 49
    iput p3, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->selectedColor:I

    .line 50
    return-void
.end method

.method public setDelegate(Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;)V
    .registers 2
    .param p1, "seekBarDelegate"    # Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

    .line 43
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->delegate:Lim/tpelyyftgw/ui/components/SeekBar$SeekBarDelegate;

    .line 44
    return-void
.end method

.method public setMessageObject(Lim/tpelyyftgw/messenger/MessageObject;)V
    .registers 2
    .param p1, "object"    # Lim/tpelyyftgw/messenger/MessageObject;

    .line 61
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->messageObject:Lim/tpelyyftgw/messenger/MessageObject;

    .line 62
    return-void
.end method

.method public setParentView(Landroid/view/View;)V
    .registers 2
    .param p1, "view"    # Landroid/view/View;

    .line 65
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->parentView:Landroid/view/View;

    .line 66
    return-void
.end method

.method public setProgress(F)V
    .registers 4
    .param p1, "progress"    # F

    .line 113
    iget v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->width:I

    int-to-float v0, v0

    mul-float v0, v0, p1

    float-to-double v0, v0

    invoke-static {v0, v1}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v0

    double-to-int v0, v0

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    .line 114
    if-gez v0, :cond_13

    .line 115
    const/4 v0, 0x0

    iput v0, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    goto :goto_19

    .line 116
    :cond_13
    iget v1, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->width:I

    if-le v0, v1, :cond_19

    .line 117
    iput v1, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->thumbX:I

    .line 119
    :cond_19
    :goto_19
    return-void
.end method

.method public setSelected(Z)V
    .registers 2
    .param p1, "value"    # Z

    .line 57
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->selected:Z

    .line 58
    return-void
.end method

.method public setSize(II)V
    .registers 3
    .param p1, "w"    # I
    .param p2, "h"    # I

    .line 126
    iput p1, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->width:I

    .line 127
    iput p2, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->height:I

    .line 128
    return-void
.end method

.method public setWaveform([B)V
    .registers 2
    .param p1, "waveform"    # [B

    .line 53
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/SeekBarWaveform;->waveformBytes:[B

    .line 54
    return-void
.end method