package hanson.xyz.vpnhotspotmod.manage;

@kotlin.Metadata(mv = {1, 9, 0}, k = 1, xi = 48, d1 = {"\u0000d\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u0003\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u0000 ,2\u00020\u00012\u00020\u0002:\u0001,B#\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\t0\b\u00a2\u0006\u0002\u0010\nJ\b\u0010\u001e\u001a\u00020\tH\u0016J\u000e\u0010\u001f\u001a\u00020\t2\u0006\u0010\u0003\u001a\u00020\u0004J\u0018\u0010 \u001a\u00020\t2\u0006\u0010!\u001a\u00020\"2\u0006\u0010#\u001a\u00020\u0017H\u0016J\u0010\u0010$\u001a\u00020\t2\u0006\u0010!\u001a\u00020\"H\u0016J\u0018\u0010%\u001a\u00020\t2\u0006\u0010&\u001a\u00020\'2\u0006\u0010\u0003\u001a\u00020\u0004H\u0007J\u001e\u0010(\u001a\u00020\t2\u0016\u0010&\u001a\u0012\u0012\b\u0012\u00060*j\u0002`+\u0012\u0004\u0012\u00020\t0)R\u0013\u0010\u000b\u001a\u0004\u0018\u00010\f8F\u00a2\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u001c\u0010\u000f\u001a\u0004\u0018\u00010\u0010X\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0011\u0010\u0012\"\u0004\b\u0013\u0010\u0014R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0015\u001a\u00020\fX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0016\u001a\u0004\u0018\u00010\u0017X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0018\u001a\u00020\fX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0019\u001a\u00020\u001aX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0017\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\t0\b\u00a2\u0006\b\n\u0000\u001a\u0004\b\u001b\u0010\u001cR\u000e\u0010\u001d\u001a\u00020\fX\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006-"}, d2 = {"Lhanson/xyz/vpnhotspotmod/manage/BluetoothTethering;", "Landroid/bluetooth/BluetoothProfile$ServiceListener;", "Ljava/lang/AutoCloseable;", "context", "Landroid/content/Context;", "adapter", "Landroid/bluetooth/BluetoothAdapter;", "stateListener", "Lkotlin/Function0;", "", "(Landroid/content/Context;Landroid/bluetooth/BluetoothAdapter;Lkotlin/jvm/functions/Function0;)V", "active", "", "getActive", "()Ljava/lang/Boolean;", "activeFailureCause", "", "getActiveFailureCause", "()Ljava/lang/Throwable;", "setActiveFailureCause", "(Ljava/lang/Throwable;)V", "connected", "pan", "Landroid/bluetooth/BluetoothProfile;", "proxyCreated", "receiver", "Landroid/content/BroadcastReceiver;", "getStateListener", "()Lkotlin/jvm/functions/Function0;", "stoppedByUser", "close", "ensureInit", "onServiceConnected", "profile", "", "proxy", "onServiceDisconnected", "start", "callback", "Lhanson/xyz/vpnhotspotmod/net/TetheringManager$StartTetheringCallback;", "stop", "Lkotlin/Function1;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "Companion", "mobile_freedomDebug"})
public final class BluetoothTethering implements android.bluetooth.BluetoothProfile.ServiceListener, java.lang.AutoCloseable {
    @org.jetbrains.annotations.NotNull
    private final android.bluetooth.BluetoothAdapter adapter = null;
    @org.jetbrains.annotations.NotNull
    private final kotlin.jvm.functions.Function0<kotlin.Unit> stateListener = null;
    
    /**
     * PAN Profile
     */
    private static final int PAN = 5;
    @org.jetbrains.annotations.NotNull
    private static final kotlin.Lazy<?> clazz$delegate = null;
    @org.jetbrains.annotations.NotNull
    private static final kotlin.Lazy<?> isTetheringOn$delegate = null;
    @org.jetbrains.annotations.Nullable
    private static hanson.xyz.vpnhotspotmod.net.TetheringManager.StartTetheringCallback pendingCallback;
    private boolean proxyCreated = false;
    private boolean connected = false;
    @org.jetbrains.annotations.Nullable
    private android.bluetooth.BluetoothProfile pan;
    private boolean stoppedByUser = false;
    @org.jetbrains.annotations.Nullable
    private java.lang.Throwable activeFailureCause;
    @org.jetbrains.annotations.NotNull
    private final android.content.BroadcastReceiver receiver = null;
    @org.jetbrains.annotations.NotNull
    public static final hanson.xyz.vpnhotspotmod.manage.BluetoothTethering.Companion Companion = null;
    
    public BluetoothTethering(@org.jetbrains.annotations.NotNull
    android.content.Context context, @org.jetbrains.annotations.NotNull
    android.bluetooth.BluetoothAdapter adapter, @org.jetbrains.annotations.NotNull
    kotlin.jvm.functions.Function0<kotlin.Unit> stateListener) {
        super();
    }
    
    @org.jetbrains.annotations.NotNull
    public final kotlin.jvm.functions.Function0<kotlin.Unit> getStateListener() {
        return null;
    }
    
    @org.jetbrains.annotations.Nullable
    public final java.lang.Throwable getActiveFailureCause() {
        return null;
    }
    
    public final void setActiveFailureCause(@org.jetbrains.annotations.Nullable
    java.lang.Throwable p0) {
    }
    
    @org.jetbrains.annotations.Nullable
    public final java.lang.Boolean getActive() {
        return null;
    }
    
    public final void ensureInit(@org.jetbrains.annotations.NotNull
    android.content.Context context) {
    }
    
    @java.lang.Override
    public void onServiceDisconnected(int profile) {
    }
    
    @java.lang.Override
    public void onServiceConnected(int profile, @org.jetbrains.annotations.NotNull
    android.bluetooth.BluetoothProfile proxy) {
    }
    
    /**
     * https://android.googlesource.com/platform/packages/apps/Settings/+/b1af85d/src/com/android/settings/TetherSettings.java#384
     */
    @android.annotation.SuppressLint(value = {"MissingPermission"})
    public final void start(@org.jetbrains.annotations.NotNull
    hanson.xyz.vpnhotspotmod.net.TetheringManager.StartTetheringCallback callback, @org.jetbrains.annotations.NotNull
    android.content.Context context) {
    }
    
    public final void stop(@org.jetbrains.annotations.NotNull
    kotlin.jvm.functions.Function1<? super java.lang.Exception, kotlin.Unit> callback) {
    }
    
    @java.lang.Override
    public void close() {
    }
    
    @kotlin.Metadata(mv = {1, 9, 0}, k = 1, xi = 48, d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002\u00a2\u0006\u0002\u0010\u0002J\u001c\u0010\u0015\u001a\u00020\u00162\b\u0010\u0017\u001a\u0004\u0018\u00010\u00182\b\u0010\u0019\u001a\u0004\u0018\u00010\u001aH\u0016J\u0012\u0010\u001b\u001a\u0004\u0018\u00010\u001a2\u0006\u0010\u001c\u001a\u00020\u0001H\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R+\u0010\u0005\u001a\u0012\u0012\u0002\b\u0003 \u0007*\b\u0012\u0002\b\u0003\u0018\u00010\u00060\u00068BX\u0082\u0084\u0002\u00a2\u0006\f\n\u0004\b\n\u0010\u000b\u001a\u0004\b\b\u0010\tR#\u0010\f\u001a\n \u0007*\u0004\u0018\u00010\r0\r8BX\u0082\u0084\u0002\u00a2\u0006\f\n\u0004\b\u000f\u0010\u000b\u001a\u0004\b\f\u0010\u000eR\u0010\u0010\u0010\u001a\u0004\u0018\u00010\u0011X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0018\u0010\f\u001a\u00020\u0012*\u00020\u00138BX\u0082\u0004\u00a2\u0006\u0006\u001a\u0004\b\f\u0010\u0014\u00a8\u0006\u001d"}, d2 = {"Lhanson/xyz/vpnhotspotmod/manage/BluetoothTethering$Companion;", "Landroid/content/BroadcastReceiver;", "()V", "PAN", "", "clazz", "Ljava/lang/Class;", "kotlin.jvm.PlatformType", "getClazz", "()Ljava/lang/Class;", "clazz$delegate", "Lkotlin/Lazy;", "isTetheringOn", "Ljava/lang/reflect/Method;", "()Ljava/lang/reflect/Method;", "isTetheringOn$delegate", "pendingCallback", "Lhanson/xyz/vpnhotspotmod/net/TetheringManager$StartTetheringCallback;", "", "Landroid/bluetooth/BluetoothProfile;", "(Landroid/bluetooth/BluetoothProfile;)Z", "onReceive", "", "context", "Landroid/content/Context;", "intent", "Landroid/content/Intent;", "registerBluetoothStateListener", "receiver", "mobile_freedomDebug"})
    public static final class Companion extends android.content.BroadcastReceiver {
        
        private Companion() {
            super();
        }
        
        private final java.lang.Class<?> getClazz() {
            return null;
        }
        
        private final java.lang.reflect.Method isTetheringOn() {
            return null;
        }
        
        private final boolean isTetheringOn(android.bluetooth.BluetoothProfile $this$isTetheringOn) {
            return false;
        }
        
        private final android.content.Intent registerBluetoothStateListener(android.content.BroadcastReceiver receiver) {
            return null;
        }
        
        /**
         * https://android.googlesource.com/platform/packages/apps/Settings/+/b1af85d/src/com/android/settings/TetherSettings.java#215
         */
        @java.lang.Override
        public void onReceive(@org.jetbrains.annotations.Nullable
        android.content.Context context, @org.jetbrains.annotations.Nullable
        android.content.Intent intent) {
        }
    }
}