apkfuckery/com.discord/smali/androidx/media/VolumeProviderCompat.smali

160 lines
3.9 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public abstract Landroidx/media/VolumeProviderCompat;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "VolumeProviderCompat.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/media/VolumeProviderCompat$Callback;,
Landroidx/media/VolumeProviderCompat$ControlType;
}
.end annotation
# static fields
.field public static final VOLUME_CONTROL_ABSOLUTE:I = 0x2
.field public static final VOLUME_CONTROL_FIXED:I = 0x0
.field public static final VOLUME_CONTROL_RELATIVE:I = 0x1
# instance fields
.field private mCallback:Landroidx/media/VolumeProviderCompat$Callback;
.field private final mControlType:I
.field private mCurrentVolume:I
.field private final mMaxVolume:I
.field private mVolumeProviderObj:Ljava/lang/Object;
# direct methods
.method public constructor <init>(III)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput p1, p0, Landroidx/media/VolumeProviderCompat;->mControlType:I
iput p2, p0, Landroidx/media/VolumeProviderCompat;->mMaxVolume:I
iput p3, p0, Landroidx/media/VolumeProviderCompat;->mCurrentVolume:I
return-void
.end method
# virtual methods
.method public final getCurrentVolume()I
.locals 1
iget v0, p0, Landroidx/media/VolumeProviderCompat;->mCurrentVolume:I
return v0
.end method
.method public final getMaxVolume()I
.locals 1
iget v0, p0, Landroidx/media/VolumeProviderCompat;->mMaxVolume:I
return v0
.end method
.method public final getVolumeControl()I
.locals 1
iget v0, p0, Landroidx/media/VolumeProviderCompat;->mControlType:I
return v0
.end method
.method public getVolumeProvider()Ljava/lang/Object;
.locals 4
iget-object v0, p0, Landroidx/media/VolumeProviderCompat;->mVolumeProviderObj:Ljava/lang/Object;
if-nez v0, :cond_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-lt v0, v1, :cond_0
iget v0, p0, Landroidx/media/VolumeProviderCompat;->mControlType:I
iget v1, p0, Landroidx/media/VolumeProviderCompat;->mMaxVolume:I
iget v2, p0, Landroidx/media/VolumeProviderCompat;->mCurrentVolume:I
new-instance v3, Landroidx/media/VolumeProviderCompat$1;
invoke-direct {v3, p0}, Landroidx/media/VolumeProviderCompat$1;-><init>(Landroidx/media/VolumeProviderCompat;)V
invoke-static {v0, v1, v2, v3}, Landroidx/media/VolumeProviderCompatApi21;->createVolumeProvider(IIILandroidx/media/VolumeProviderCompatApi21$Delegate;)Ljava/lang/Object;
move-result-object v0
iput-object v0, p0, Landroidx/media/VolumeProviderCompat;->mVolumeProviderObj:Ljava/lang/Object;
:cond_0
iget-object v0, p0, Landroidx/media/VolumeProviderCompat;->mVolumeProviderObj:Ljava/lang/Object;
return-object v0
.end method
.method public onAdjustVolume(I)V
.locals 0
return-void
.end method
.method public onSetVolumeTo(I)V
.locals 0
return-void
.end method
.method public setCallback(Landroidx/media/VolumeProviderCompat$Callback;)V
.locals 0
iput-object p1, p0, Landroidx/media/VolumeProviderCompat;->mCallback:Landroidx/media/VolumeProviderCompat$Callback;
return-void
.end method
.method public final setCurrentVolume(I)V
.locals 3
iput p1, p0, Landroidx/media/VolumeProviderCompat;->mCurrentVolume:I
invoke-virtual {p0}, Landroidx/media/VolumeProviderCompat;->getVolumeProvider()Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_0
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x15
if-lt v1, v2, :cond_0
invoke-static {v0, p1}, Landroidx/media/VolumeProviderCompatApi21;->setCurrentVolume(Ljava/lang/Object;I)V
:cond_0
iget-object p1, p0, Landroidx/media/VolumeProviderCompat;->mCallback:Landroidx/media/VolumeProviderCompat$Callback;
if-eqz p1, :cond_1
invoke-virtual {p1, p0}, Landroidx/media/VolumeProviderCompat$Callback;->onVolumeChanged(Landroidx/media/VolumeProviderCompat;)V
:cond_1
return-void
.end method