147 lines
3.7 KiB
Smali
147 lines
3.7 KiB
Smali
.class public abstract Landroidx/media/VolumeProviderCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "VolumeProviderCompat.java"
|
|
|
|
|
|
# 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 public mCallback:Landroidx/media/VolumeProviderCompat$Callback;
|
|
|
|
.field public final mControlType:I
|
|
|
|
.field public mCurrentVolume:I
|
|
|
|
.field public final mMaxVolume:I
|
|
|
|
.field public 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
|
|
|
|
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 1
|
|
|
|
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
|
|
|
|
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
|