package hanson.xyz.vpnhotspotmod.net.monitor;

@kotlin.Metadata(mv = {1, 9, 0}, k = 1, xi = 48, d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\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\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u0000 \u00102\u00020\u0001:\u0001\u0010B\'\u0012\b\b\u0002\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0005\u0012\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007\u00a2\u0006\u0002\u0010\tJ\b\u0010\u000e\u001a\u00020\bH\u0016J\u000e\u0010\u000f\u001a\u00020\b2\u0006\u0010\n\u001a\u00020\u000bR\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u000bX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\f\u001a\u0004\u0018\u00010\rX\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0011"}, d2 = {"Lhanson/xyz/vpnhotspotmod/net/monitor/TetherTimeoutMonitor;", "Ljava/lang/AutoCloseable;", "timeout", "", "context", "Lkotlin/coroutines/CoroutineContext;", "onTimeout", "Lkotlin/Function0;", "", "(JLkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function0;)V", "noClient", "", "timeoutJob", "Lkotlinx/coroutines/Job;", "close", "onClientsChanged", "Companion", "mobile_freedomDebug"})
public final class TetherTimeoutMonitor implements java.lang.AutoCloseable {
    private final long timeout = 0L;
    @org.jetbrains.annotations.NotNull
    private final kotlin.coroutines.CoroutineContext context = null;
    @org.jetbrains.annotations.NotNull
    private final kotlin.jvm.functions.Function0<kotlin.Unit> onTimeout = null;
    
    /**
     * Whether soft AP will shut down after a timeout period when no devices are connected.
     *
     * Type: int (0 for false, 1 for true)
     */
    @org.jetbrains.annotations.NotNull
    private static final java.lang.String SOFT_AP_TIMEOUT_ENABLED = "soft_ap_timeout_enabled";
    
    /**
     * Minimum limit to use for timeout delay if the value from overlay setting is too small.
     */
    private static final int MIN_SOFT_AP_TIMEOUT_DELAY_MS = 600000;
    private boolean noClient = true;
    @org.jetbrains.annotations.Nullable
    private kotlinx.coroutines.Job timeoutJob;
    @org.jetbrains.annotations.NotNull
    public static final hanson.xyz.vpnhotspotmod.net.monitor.TetherTimeoutMonitor.Companion Companion = null;
    
    public TetherTimeoutMonitor(long timeout, @org.jetbrains.annotations.NotNull
    kotlin.coroutines.CoroutineContext context, @org.jetbrains.annotations.NotNull
    kotlin.jvm.functions.Function0<kotlin.Unit> onTimeout) {
        super();
    }
    
    @java.lang.Override
    public void close() {
    }
    
    public final void onClientsChanged(boolean noClient) {
    }
    
    /**
     * config_wifi_framework_soft_ap_timeout_delay was introduced in Android 9.
     *
     * Source: https://android.googlesource.com/platform/frameworks/opt/net/wifi/+/87ed136/service/java/com/android/server/wifi/SoftApManager.java
     */
    @kotlin.Metadata(mv = {1, 9, 0}, k = 1, xi = 48, d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002\u00a2\u0006\u0002\u0010\u0002J\u0019\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\rH\u0087@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u0014R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082T\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u0007\u001a\u00020\u00048F\u00a2\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0011\u0010\n\u001a\u00020\u00048G\u00a2\u0006\u0006\u001a\u0004\b\u000b\u0010\tR\u001a\u0010\f\u001a\u00020\r8FX\u0087\u0004\u00a2\u0006\f\u0012\u0004\b\u000e\u0010\u0002\u001a\u0004\b\u000f\u0010\u0010\u0082\u0002\u0004\n\u0002\b\u0019\u00a8\u0006\u0015"}, d2 = {"Lhanson/xyz/vpnhotspotmod/net/monitor/TetherTimeoutMonitor$Companion;", "", "()V", "MIN_SOFT_AP_TIMEOUT_DELAY_MS", "", "SOFT_AP_TIMEOUT_ENABLED", "", "defaultTimeout", "getDefaultTimeout", "()I", "defaultTimeoutBridged", "getDefaultTimeoutBridged", "enabled", "", "getEnabled$annotations", "getEnabled", "()Z", "setEnabled", "", "value", "(ZLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "mobile_freedomDebug"})
    public static final class Companion {
        
        private Companion() {
            super();
        }
        
        @java.lang.Deprecated
        public static void getEnabled$annotations() {
        }
        
        @java.lang.Deprecated
        public final boolean getEnabled() {
            return false;
        }
        
        @org.jetbrains.annotations.Nullable
        @java.lang.Deprecated
        public final java.lang.Object setEnabled(boolean value, @org.jetbrains.annotations.NotNull
        kotlin.coroutines.Continuation<? super kotlin.Unit> $completion) {
            return null;
        }
        
        public final int getDefaultTimeout() {
            return 0;
        }
        
        @androidx.annotation.RequiresApi(value = 31)
        public final int getDefaultTimeoutBridged() {
            return 0;
        }
    }
}