package G0;

import com.seewo.sdk.event.OSEvent;
import com.seewo.sdk.eventbus.OnEventOfOS;
import com.seewo.sdk.internal.command.audio.AudioPropertyType;
import com.seewo.sdk.internal.command.audio.CmdGetAudioProperty;
import com.seewo.sdk.internal.command.audio.CmdIsMute;
import com.seewo.sdk.internal.command.audio.CmdSetAudioProperty;
import com.seewo.sdk.internal.command.audio.CmdSetMute;

/* JADX INFO: loaded from: classes.dex */
public class f {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final f f800a = new f();

    private int a(AudioPropertyType audioPropertyType) {
        return Q0.c.d(d.o().z(new CmdGetAudioProperty(audioPropertyType)));
    }

    private boolean d(AudioPropertyType audioPropertyType, int i2) {
        return Q0.c.b(d.o().z(new CmdSetAudioProperty(audioPropertyType, i2)));
    }

    @OnEventOfOS
    public void OnEvent(OSEvent.VolumeChanged volumeChanged) {
    }

    public int b() {
        return a(AudioPropertyType.VOLUME);
    }

    public boolean c() {
        return Q0.c.b(d.o().z(new CmdIsMute()));
    }

    public boolean e(boolean z2) {
        return f(z2, false);
    }

    public boolean f(boolean z2, boolean z3) {
        return Q0.c.b(d.o().z(new CmdSetMute(z2, z3)));
    }

    public boolean g(int i2) {
        return d(AudioPropertyType.VOLUME, i2);
    }
}
