导航菜单

页面标题

页面副标题

万能钥匙 v1.1.23 - BallTrigger.java 源代码

正在查看: 万能钥匙 v1.1.23 应用的 BallTrigger.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.wifitutu.desk.ball;

import android.content.BroadcastReceiver;
import android.content.Intent;
import android.content.IntentFilter;
import androidx.core.content.ContextCompat;
import com.google.android.inner_exoplayer2.PlaybackException;
import com.google.android.inner_exoplayer2.text.ttml.TtmlNode;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.sdk.plus.data.manager.RalDataManager;
import com.wifitutu.desk.floatouter.entity.FloatOuterScene;
import com.wifitutu.link.foundation.kernel.e;
import com.wifitutu.link.foundation.kernel.g;
import com.wifitutu.link.foundation.kernel.h;
import com.wifitutu.link.wifi.config.api.generate.wifi.WiFiCRHAuthConfig;
import com.wifitutu.widget.svc.wkconfig.config.api.generate.deskpop.DeskPopScene;
import com.wifitutu.widget.svc.wkconfig.config.api.generate.deskpop.DeskPopSceneTime;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.internal.f0;
import lg0.e0;
import lg0.n;
import os.g1;
import os.q0;
import qs.C0494a;
import qs.C0499d;
import qs.C0507k;
import qs.EnumC0506j;
import qs.EnumC0508l;
import qs.EnumC0509m;
import qs.d4;
import qs.f2;
import qs.h4;
import qs.l0;
import qs.q6;
import qs.r4;
import qs.t3;
import qs.y2;
import qs.z4;
import uj0.a;
import uu.g1;
import uu.h1;
import uu.w0;

@Metadata(d1 = {"\u0000\u0090\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0010\t\n\u0002\b\u0016\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0010%\n\u0002\b\t\b\u0016\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0006\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00050\u0004H\u0002¢\u0006\u0004\b\u0006\u0010\u0007J\u0017\u0010\u000b\u001a\u00020\n2\u0006\u0010\t\u001a\u00020\bH\u0002¢\u0006\u0004\b\u000b\u0010\fJ\u0017\u0010\r\u001a\u00020\n2\u0006\u0010\t\u001a\u00020\bH\u0002¢\u0006\u0004\b\r\u0010\fJ\u000f\u0010\u000e\u001a\u00020\nH\u0016¢\u0006\u0004\b\u000e\u0010\u0003J\r\u0010\u000f\u001a\u00020\n¢\u0006\u0004\b\u000f\u0010\u0003J\u0015\u0010\u0010\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00050\u0004¢\u0006\u0004\b\u0010\u0010\u0007J\r\u0010\u0012\u001a\u00020\u0011¢\u0006\u0004\b\u0012\u0010\u0013J\u000f\u0010\u0014\u001a\u0004\u0018\u00010\u0005¢\u0006\u0004\b\u0014\u0010\u0015J!\u0010\u001a\u001a\u000e\u0012\u0004\u0012\u00020\u0011\u0012\u0004\u0012\u00020\u00190\u00182\u0006\u0010\u0017\u001a\u00020\u0016¢\u0006\u0004\b\u001a\u0010\u001bJ\u0015\u0010\u001c\u001a\u00020\u00112\u0006\u0010\t\u001a\u00020\b¢\u0006\u0004\b\u001c\u0010\u001dJ\u0019\u0010 \u001a\u00020\n2\b\u0010\u001f\u001a\u0004\u0018\u00010\u001eH\u0016¢\u0006\u0004\b \u0010!J\u0015\u0010$\u001a\u00020\n2\u0006\u0010#\u001a\u00020\"¢\u0006\u0004\b$\u0010%J\u000f\u0010&\u001a\u00020\nH\u0000¢\u0006\u0004\b&\u0010\u0003J\u0011\u0010(\u001a\u0004\u0018\u00010'H\u0016¢\u0006\u0004\b(\u0010)J+\u0010.\u001a\u00020\u00112\b\u0010+\u001a\u0004\u0018\u00010*2\b\u0010,\u001a\u0004\u0018\u00010*2\u0006\u0010-\u001a\u00020\u0019H\u0016¢\u0006\u0004\b.\u0010/R\"\u00107\u001a\u0002008\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b1\u00102\u001a\u0004\b3\u00104\"\u0004\b5\u00106R\"\u0010;\u001a\u0002008\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b8\u00102\u001a\u0004\b9\u00104\"\u0004\b:\u00106R\"\u0010?\u001a\u0002008\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b<\u00102\u001a\u0004\b=\u00104\"\u0004\b>\u00106R$\u0010F\u001a\u0004\u0018\u00010*8\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b@\u0010A\u001a\u0004\bB\u0010C\"\u0004\bD\u0010ER\u0018\u0010J\u001a\u0004\u0018\u00010G8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bH\u0010IR\u0018\u0010L\u001a\u0004\u0018\u00010G8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bK\u0010IR\"\u0010Q\u001a\u00020\u00118\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\bM\u0010N\u001a\u0004\bO\u0010\u0013\"\u0004\b2\u0010PR\u001c\u0010V\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010S0R8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\bT\u0010UR!\u0010]\u001a\b\u0012\u0004\u0012\u00020X0W8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bY\u0010Z\u001a\u0004\b[\u0010\\R$\u0010b\u001a\u0004\u0018\u00010\u00058\u0006@\u0006X\u0086\u000e¢\u0006\u0012\n\u0004\b\u0010\u0010^\u001a\u0004\b_\u0010\u0015\"\u0004\b`\u0010aR\u0016\u0010c\u001a\u00020\u00118\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b \u0010NR)\u0010g\u001a\u0010\u0012\u0006\u0012\u0004\u0018\u00010*\u0012\u0004\u0012\u00020\u00190d8FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b.\u0010Z\u001a\u0004\be\u0010fR0\u0010l\u001a\u0010\u0012\u0006\u0012\u0004\u0018\u00010*\u0012\u0004\u0012\u00020'0d8\u0016@\u0016X\u0096\u000e¢\u0006\u0012\n\u0004\b(\u0010h\u001a\u0004\bi\u0010f\"\u0004\bj\u0010k¨\u0006m"}, d2 = {"Lcom/wifitutu/desk/ball/BallTrigger;", "Lpq/a;", "<init>", "()V", "Lcom/wifitutu/link/foundation/kernel/g;", "Lru/c;", "y", "()Lcom/wifitutu/link/foundation/kernel/g;", "Landroid/content/Intent;", "intent", "Llg0/e0;", "D", "(Landroid/content/Intent;)V", "F", "L", "H", "m", "", "B", "()Z", "u", "()Lru/c;", "Lcom/wifitutu/desk/floatouter/entity/FloatOuterScene;", "outerScene", "Lkotlin/Pair;", "", "A", "(Lcom/wifitutu/desk/floatouter/entity/FloatOuterScene;)Lkotlin/Pair;", "z", "(Landroid/content/Intent;)Z", "Lpq/k;", "actionParam", "n", "(Lpq/k;)V", "Lqq/a;", "message", "G", "(Lqq/a;)V", "K", "Lcom/wifitutu/widget/svc/wkconfig/config/api/generate/deskpop/DeskPopScene;", TtmlNode.TAG_P, "()Lcom/wifitutu/widget/svc/wkconfig/config/api/generate/deskpop/DeskPopScene;", "", "category", "scene", "interval", "o", "(Ljava/lang/String;Ljava/lang/String;I)Z", "", "d", "J", "getDeskpop_interval_time", "()J", "setDeskpop_interval_time", "(J)V", "deskpop_interval_time", "e", "s", "setDeskpop_textshow_time", "deskpop_textshow_time", "f", RalDataManager.DB_TIME, "setDesktop_auto_hidden", "desktop_auto_hidden", "g", "Ljava/lang/String;", "r", "()Ljava/lang/String;", "setDeskpop_default_icon", "(Ljava/lang/String;)V", "deskpop_default_icon", "Landroid/content/BroadcastReceiver;", "h", "Landroid/content/BroadcastReceiver;", "mActionsReceiver", mk.i.x, "mActionsReceiverWithScheme", "j", "Z", "C", "(Z)V", "isMessageProcessing", "", "Lcom/wifitutu/link/foundation/kernel/e;", "k", "Ljava/util/List;", "proxys", "Lcom/wifitutu/link/foundation/kernel/a;", "Lqs/r4;", "l", "Llg0/h;", "q", "()Lcom/wifitutu/link/foundation/kernel/a;", "ballConnectStatus", "Lru/c;", "w", "I", "(Lru/c;)V", "lastAuthExtInfo", "isGTExclusiveMode", "", "x", "()Ljava/util/Map;", "messagesCount", "Ljava/util/Map;", "v", "setGtMessages", "(Ljava/util/Map;)V", "gtMessages", "wakeup-ball_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public class BallTrigger extends C0494a {
    public static ChangeQuickRedirect changeQuickRedirect;

    public long deskpop_interval_time;

    public long deskpop_textshow_time;

    public long desktop_auto_hidden;

    public String deskpop_default_icon;

    public BroadcastReceiver mActionsReceiver;

    public BroadcastReceiver mActionsReceiverWithScheme;

    public boolean isMessageProcessing;

    public final List<com.wifitutu.link.foundation.kernel.e> proxys;

    public final lg0.h ballConnectStatus;

    public ru.c lastAuthExtInfo;

    public boolean isGTExclusiveMode;

    public final lg0.h messagesCount;

    public Map<String, DeskPopScene> gtMessages;

    @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lcom/wifitutu/link/foundation/kernel/a;", "Lqs/r4;", "a", "()Lcom/wifitutu/link/foundation/kernel/a;"}, k = 3, mv = {1, 8, 0})
    public static final class a extends kotlin.jvm.internal.p implements ah0.a<com.wifitutu.link.foundation.kernel.a<r4>> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public static final a s = new a();

        public a() {
            super(0);
        }

        public final com.wifitutu.link.foundation.kernel.a<r4> a() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3023, new Class[0], com.wifitutu.link.foundation.kernel.a.class);
            return proxy.isSupported ? (com.wifitutu.link.foundation.kernel.a) proxy.result : new com.wifitutu.link.foundation.kernel.a<>();
        }

        public Object invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3024, new Class[0], Object.class);
            return proxy.isSupported ? proxy.result : a();
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u0002*\n\u0012\u0006\u0012\u0004\u0018\u00010\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lcom/wifitutu/link/foundation/kernel/a;", "Lru/c;", "Llg0/e0;", "a", "(Lcom/wifitutu/link/foundation/kernel/a;)V"}, k = 3, mv = {1, 8, 0})
    public static final class b extends kotlin.jvm.internal.p implements ah0.l<com.wifitutu.link.foundation.kernel.a<ru.c>, e0> {
        public static ChangeQuickRedirect changeQuickRedirect;

        @Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042\b\u0010\u0001\u001a\u0004\u0018\u00010\u00002\u000e\u0010\u0003\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00000\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lru/c;", "data", "Lqs/z4;", "<anonymous parameter 1>", "Llg0/e0;", "a", "(Lru/c;Lqs/z4;)V"}, k = 3, mv = {1, 8, 0})
        public static final class a extends kotlin.jvm.internal.p implements ah0.p<ru.c, z4<ru.c>, e0> {
            public static ChangeQuickRedirect changeQuickRedirect;
            public final BallTrigger s;
            public final com.wifitutu.link.foundation.kernel.a<ru.c> t;

            public a(BallTrigger ballTrigger, com.wifitutu.link.foundation.kernel.a<ru.c> aVar) {
                super(2);
                this.s = ballTrigger;
                this.t = aVar;
            }

            public final void a(ru.c cVar, z4<ru.c> z4Var) {
                if (PatchProxy.proxy(new Object[]{cVar, z4Var}, this, changeQuickRedirect, false, 3027, new Class[]{ru.c.class, z4.class}, Void.TYPE).isSupported) {
                    return;
                }
                this.s.isGTExclusiveMode = cVar != null;
                h.a.a(this.t, cVar, false, 0L, 6, (Object) null);
            }

            public Object invoke(Object obj, Object obj2) {
                PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj, obj2}, this, changeQuickRedirect, false, 3028, new Class[]{Object.class, Object.class}, Object.class);
                if (proxy.isSupported) {
                    return proxy.result;
                }
                a((ru.c) obj, (z4) obj2);
                return e0.a;
            }
        }

        @Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0001\u001a\u00020\u00002\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00000\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lqs/r4;", "<anonymous parameter 0>", "Lqs/z4;", "<anonymous parameter 1>", "Llg0/e0;", "a", "(Lqs/r4;Lqs/z4;)V"}, k = 3, mv = {1, 8, 0})
        public static final class C0095b extends kotlin.jvm.internal.p implements ah0.p<r4, z4<r4>, e0> {
            public static ChangeQuickRedirect changeQuickRedirect;
            public final BallTrigger s;
            public final com.wifitutu.link.foundation.kernel.a<ru.c> t;

            @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
            public static final class a extends kotlin.jvm.internal.p implements ah0.a<Object> {
                public static ChangeQuickRedirect changeQuickRedirect;
                public static final a s = new a();

                public a() {
                    super(0);
                }

                public final Object invoke() {
                    return "网络信息变化";
                }
            }

            @Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042\b\u0010\u0001\u001a\u0004\u0018\u00010\u00002\u000e\u0010\u0003\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00000\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lru/c;", "data", "Lqs/z4;", "<anonymous parameter 1>", "Llg0/e0;", "a", "(Lru/c;Lqs/z4;)V"}, k = 3, mv = {1, 8, 0})
            public static final class C0096b extends kotlin.jvm.internal.p implements ah0.p<ru.c, z4<ru.c>, e0> {
                public static ChangeQuickRedirect changeQuickRedirect;
                public final BallTrigger s;
                public final com.wifitutu.link.foundation.kernel.a<ru.c> t;

                public C0096b(BallTrigger ballTrigger, com.wifitutu.link.foundation.kernel.a<ru.c> aVar) {
                    super(2);
                    this.s = ballTrigger;
                    this.t = aVar;
                }

                public final void a(ru.c cVar, z4<ru.c> z4Var) {
                    if (PatchProxy.proxy(new Object[]{cVar, z4Var}, this, changeQuickRedirect, false, 3031, new Class[]{ru.c.class, z4.class}, Void.TYPE).isSupported) {
                        return;
                    }
                    this.s.isGTExclusiveMode = cVar != null;
                    h.a.a(this.t, cVar, false, 0L, 6, (Object) null);
                }

                public Object invoke(Object obj, Object obj2) {
                    PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj, obj2}, this, changeQuickRedirect, false, 3032, new Class[]{Object.class, Object.class}, Object.class);
                    if (proxy.isSupported) {
                        return proxy.result;
                    }
                    a((ru.c) obj, (z4) obj2);
                    return e0.a;
                }
            }

            public C0095b(BallTrigger ballTrigger, com.wifitutu.link.foundation.kernel.a<ru.c> aVar) {
                super(2);
                this.s = ballTrigger;
                this.t = aVar;
            }

            public final void a(r4 r4Var, z4<r4> z4Var) {
                if (PatchProxy.proxy(new Object[]{r4Var, z4Var}, this, changeQuickRedirect, false, 3029, new Class[]{r4.class, z4.class}, Void.TYPE).isSupported) {
                    return;
                }
                h4.l().y("HOVERBALL", a.s);
                g.a.b(BallTrigger.i(this.s), (f2) null, new C0096b(this.s, this.t), 1, (Object) null);
            }

            public Object invoke(Object obj, Object obj2) {
                PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj, obj2}, this, changeQuickRedirect, false, 3030, new Class[]{Object.class, Object.class}, Object.class);
                if (proxy.isSupported) {
                    return proxy.result;
                }
                a((r4) obj, (z4) obj2);
                return e0.a;
            }
        }

        public b() {
            super(1);
        }

        public final void a(com.wifitutu.link.foundation.kernel.a<ru.c> aVar) {
            if (PatchProxy.proxy(new Object[]{aVar}, this, changeQuickRedirect, false, 3025, new Class[]{com.wifitutu.link.foundation.kernel.a.class}, Void.TYPE).isSupported) {
                return;
            }
            com.wifitutu.link.foundation.kernel.g i = BallTrigger.i(BallTrigger.this);
            BallTrigger ballTrigger = BallTrigger.this;
            ballTrigger.proxys.add(g.a.b(i, (f2) null, new a(ballTrigger, aVar), 1, (Object) null));
            com.wifitutu.link.foundation.kernel.a g = BallTrigger.g(BallTrigger.this);
            BallTrigger ballTrigger2 = BallTrigger.this;
            ballTrigger2.proxys.add(g.a.b(g, (f2) null, new C0095b(ballTrigger2, aVar), 1, (Object) null));
        }

        public Object invoke(Object obj) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 3026, new Class[]{Object.class}, Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            a((com.wifitutu.link.foundation.kernel.a) obj);
            return e0.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0003\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Llg0/e0;", "invoke", "()V", "<anonymous>"}, k = 3, mv = {1, 8, 0})
    public static final class c extends kotlin.jvm.internal.p implements ah0.a<e0> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final f0<String> s;
        public final BallTrigger t;

        public c(f0<String> f0Var, BallTrigger ballTrigger) {
            super(0);
            this.s = f0Var;
            this.t = ballTrigger;
        }

        public Object invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3034, new Class[0], Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            m125invoke();
            return e0.a;
        }

        public final void m125invoke() {
            if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3033, new Class[0], Void.TYPE).isSupported) {
                return;
            }
            f0<String> f0Var = this.s;
            WiFiCRHAuthConfig a = com.wifitutu.link.wifi.config.api.generate.wifi.c.a(q0.a(os.f2.d()));
            ru.c w = this.t.w();
            f0Var.a = qv.l.a(a, w != null ? w.a() : null);
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u0002*\n\u0012\u0006\u0012\u0004\u0018\u00010\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lcom/wifitutu/link/foundation/kernel/a;", "Lru/c;", "Llg0/e0;", "a", "(Lcom/wifitutu/link/foundation/kernel/a;)V"}, k = 3, mv = {1, 8, 0})
    public static final class d extends kotlin.jvm.internal.p implements ah0.l<com.wifitutu.link.foundation.kernel.a<ru.c>, e0> {
        public static ChangeQuickRedirect changeQuickRedirect;

        @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
        public static final class a extends kotlin.jvm.internal.p implements ah0.a<Object> {
            public static ChangeQuickRedirect changeQuickRedirect;
            public static final a s = new a();

            public a() {
                super(0);
            }

            public final Object invoke() {
                return "没有WiFi连接信息";
            }
        }

        @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
        public static final class b extends kotlin.jvm.internal.p implements ah0.a<Object> {
            public static ChangeQuickRedirect changeQuickRedirect;
            public final com.wifitutu.link.foundation.kernel.m s;
            public final boolean t;

            public b(com.wifitutu.link.foundation.kernel.m mVar, boolean z) {
                super(0);
                this.s = mVar;
                this.t = z;
            }

            public final Object invoke() {
                PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3037, new Class[0], Object.class);
                if (proxy.isSupported) {
                    return proxy.result;
                }
                return "WiFi信息 ssid=" + this.s.b() + " 是否高铁WiFi=" + this.t;
            }
        }

        @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
        public static final class c extends kotlin.jvm.internal.p implements ah0.a<Object> {
            public static ChangeQuickRedirect changeQuickRedirect;
            public final BallTrigger s;

            public c(BallTrigger ballTrigger) {
                super(0);
                this.s = ballTrigger;
            }

            public final Object invoke() {
                PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3038, new Class[0], Object.class);
                if (proxy.isSupported) {
                    return proxy.result;
                }
                return "该热点是高铁WiFi,已拥有权益信息" + this.s.w();
            }
        }

        @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
        public static final class C0097d extends kotlin.jvm.internal.p implements ah0.a<Object> {
            public static ChangeQuickRedirect changeQuickRedirect;
            public static final C0097d s = new C0097d();

            public C0097d() {
                super(0);
            }

            public final Object invoke() {
                return "同步应用内正在展示的高铁WiFi权益信息,不再请求";
            }
        }

        @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
        public static final class e extends kotlin.jvm.internal.p implements ah0.a<Object> {
            public static ChangeQuickRedirect changeQuickRedirect;
            public static final e s = new e();

            public e() {
                super(0);
            }

            public final Object invoke() {
                return "请求高铁WiFi权益";
            }
        }

        @Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042\b\u0010\u0001\u001a\u0004\u0018\u00010\u00002\u000e\u0010\u0003\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00000\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lru/c;", "data", "Lqs/z4;", "<anonymous parameter 1>", "Llg0/e0;", "a", "(Lru/c;Lqs/z4;)V"}, k = 3, mv = {1, 8, 0})
        public static final class f extends kotlin.jvm.internal.p implements ah0.p<ru.c, z4<ru.c>, e0> {
            public static ChangeQuickRedirect changeQuickRedirect;
            public final dt.a s;
            public final BallTrigger t;
            public final com.wifitutu.link.foundation.kernel.a<ru.c> u;

            @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
            public static final class a extends kotlin.jvm.internal.p implements ah0.a<Object> {
                public static ChangeQuickRedirect changeQuickRedirect;
                public final ru.c s;

                public a(ru.c cVar) {
                    super(0);
                    this.s = cVar;
                }

                public final Object invoke() {
                    PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3041, new Class[0], Object.class);
                    if (proxy.isSupported) {
                        return proxy.result;
                    }
                    return "新的高铁WiFi权益 data=" + this.s;
                }
            }

            @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
            public static final class b extends kotlin.jvm.internal.p implements ah0.a<Object> {
                public static ChangeQuickRedirect changeQuickRedirect;
                public static final b s = new b();

                public b() {
                    super(0);
                }

                public final Object invoke() {
                    return "新的高铁WiFi权益 有效";
                }
            }

            @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
            public static final class c extends kotlin.jvm.internal.p implements ah0.a<Object> {
                public static ChangeQuickRedirect changeQuickRedirect;
                public static final c s = new c();

                public c() {
                    super(0);
                }

                public final Object invoke() {
                    return "新的高铁WiFi权益 无效";
                }
            }

            public f(dt.a aVar, BallTrigger ballTrigger, com.wifitutu.link.foundation.kernel.a<ru.c> aVar2) {
                super(2);
                this.s = aVar;
                this.t = ballTrigger;
                this.u = aVar2;
            }

            public final void a(ru.c cVar, z4<ru.c> z4Var) {
                if (PatchProxy.proxy(new Object[]{cVar, z4Var}, this, changeQuickRedirect, false, 3039, new Class[]{ru.c.class, z4.class}, Void.TYPE).isSupported) {
                    return;
                }
                h4.l().y("HOVERBALL", new a(cVar));
                if (!kotlin.jvm.internal.n.d(cVar != null ? cVar.u() : null, this.s.b()) || !cVar.z()) {
                    h4.l().y("HOVERBALL", c.s);
                    com.wifitutu.link.foundation.kernel.c.j(this.u, (Object) null);
                } else {
                    h4.l().y("HOVERBALL", b.s);
                    this.t.I(cVar);
                    com.wifitutu.link.foundation.kernel.c.j(this.u, this.t.w());
                }
            }

            public Object invoke(Object obj, Object obj2) {
                PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj, obj2}, this, changeQuickRedirect, false, 3040, new Class[]{Object.class, Object.class}, Object.class);
                if (proxy.isSupported) {
                    return proxy.result;
                }
                a((ru.c) obj, (z4) obj2);
                return e0.a;
            }
        }

        public d() {
            super(1);
        }

        public final void a(com.wifitutu.link.foundation.kernel.a<ru.c> aVar) {
            if (PatchProxy.proxy(new Object[]{aVar}, this, changeQuickRedirect, false, 3035, new Class[]{com.wifitutu.link.foundation.kernel.a.class}, Void.TYPE).isSupported) {
                return;
            }
            if (com.wifitutu.link.foundation.core.a.c(os.f2.d()).V5() == null) {
                h4.l().y("HOVERBALL", a.s);
                com.wifitutu.link.foundation.kernel.c.j(aVar, (Object) null);
                return;
            }
            dt.a V5 = com.wifitutu.link.foundation.core.a.c(os.f2.d()).V5();
            if (V5 != null) {
                BallTrigger ballTrigger = BallTrigger.this;
                com.wifitutu.link.foundation.kernel.m b2 = V5.b();
                boolean y0 = w0.b(g1.a(os.f2.d())).y0(b2.b());
                h4.l().y("HOVERBALL", new b(b2, y0));
                if (!y0) {
                    com.wifitutu.link.foundation.kernel.c.j(aVar, (Object) null);
                    return;
                }
                com.wifitutu.link.foundation.kernel.m b3 = V5.b();
                ru.c w = ballTrigger.w();
                if (kotlin.jvm.internal.n.d(b3, w != null ? w.u() : null)) {
                    h4.l().y("HOVERBALL", new c(ballTrigger));
                    com.wifitutu.link.foundation.kernel.c.j(aVar, ballTrigger.w());
                    return;
                }
                ru.c tc = h1.b(os.f2.d()).tc();
                if (tc != null && kotlin.jvm.internal.n.d(tc.u(), b2) && tc.z()) {
                    h4.l().y("HOVERBALL", C0097d.s);
                    ballTrigger.I(tc);
                    com.wifitutu.link.foundation.kernel.c.j(aVar, ballTrigger.w());
                } else {
                    h4.l().y("HOVERBALL", e.s);
                    ballTrigger.proxys.add(g.a.b(h1.b(os.f2.d()).A7(), (f2) null, new f(V5, ballTrigger, aVar), 1, (Object) null));
                    g1.a.a(h1.b(os.f2.d()), (String) null, 1, (Object) null);
                }
            }
        }

        public Object invoke(Object obj) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 3036, new Class[]{Object.class}, Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            a((com.wifitutu.link.foundation.kernel.a) obj);
            return e0.a;
        }
    }

    @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010%\n\u0002\u0010\u000e\n\u0002\u0010\b\n\u0000\u0010\u0000\u001a\u0010\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0004\u0012\u00020\u00030\u0001H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", "", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
    public static final class e extends kotlin.jvm.internal.p implements ah0.a<Map<String, Integer>> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public static final e s = new e();

        public e() {
            super(0);
        }

        public Object invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3043, new Class[0], Object.class);
            return proxy.isSupported ? proxy.result : m126invoke();
        }

        public final Map<String, Integer> m126invoke() {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3042, new Class[0], Map.class);
            if (proxy.isSupported) {
                return (Map) proxy.result;
            }
            LinkedHashMap linkedHashMap = new LinkedHashMap();
            List<DeskPopSceneTime> a = m.a.v().a();
            if (a != null) {
                for (DeskPopSceneTime deskPopSceneTime : a) {
                    linkedHashMap.put(deskPopSceneTime.getCategory(), Integer.valueOf(deskPopSceneTime.getTime()));
                }
            }
            return linkedHashMap;
        }
    }

    @Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lqs/t3;", "it", "Llg0/e0;", "a", "(Lqs/t3;)V"}, k = 3, mv = {1, 8, 0})
    public static final class f extends kotlin.jvm.internal.p implements ah0.l<t3, e0> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final Intent t;

        public f(Intent intent) {
            super(1);
            this.t = intent;
        }

        public final void a(t3 t3Var) {
            if (PatchProxy.proxy(new Object[]{t3Var}, this, changeQuickRedirect, false, 3044, new Class[]{t3.class}, Void.TYPE).isSupported) {
                return;
            }
            BallTrigger.k(BallTrigger.this, this.t);
        }

        public Object invoke(Object obj) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 3045, new Class[]{Object.class}, Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            a((t3) obj);
            return e0.a;
        }
    }

    @Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042\b\u0010\u0001\u001a\u0004\u0018\u00010\u00002\u000e\u0010\u0003\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00000\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lpq/k;", "param", "Lqs/z4;", "<anonymous parameter 1>", "Llg0/e0;", "a", "(Lpq/k;Lqs/z4;)V"}, k = 3, mv = {1, 8, 0})
    public static final class g extends kotlin.jvm.internal.p implements ah0.p<C0507k, z4<C0507k>, e0> {
        public static ChangeQuickRedirect changeQuickRedirect;

        public g() {
            super(2);
        }

        public final void a(C0507k c0507k, z4<C0507k> z4Var) {
            if (PatchProxy.proxy(new Object[]{c0507k, z4Var}, this, changeQuickRedirect, false, 3046, new Class[]{C0507k.class, z4.class}, Void.TYPE).isSupported) {
                return;
            }
            BallTrigger.this.n(c0507k);
        }

        public Object invoke(Object obj, Object obj2) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj, obj2}, this, changeQuickRedirect, false, 3047, new Class[]{Object.class, Object.class}, Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            a((C0507k) obj, (z4) obj2);
            return e0.a;
        }
    }

    @Metadata(d1 = {"\u0000\u0016\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0001\u001a\u00020\u00002\u0006\u0010\u0002\u001a\u00020\u00002\u0006\u0010\u0004\u001a\u00020\u0003H\n¢\u0006\u0004\b\u0006\u0010\u0007"}, d2 = {"", "first", "last", "", "action", "Llg0/e0;", "a", "(ZZLjava/lang/String;)V"}, k = 3, mv = {1, 8, 0})
    public static final class h extends kotlin.jvm.internal.p implements ah0.q<Boolean, Boolean, String, e0> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public final IntentFilter s;
        public final IntentFilter t;

        public h(IntentFilter intentFilter, IntentFilter intentFilter2) {
            super(3);
            this.s = intentFilter;
            this.t = intentFilter2;
        }

        public final void a(boolean z, boolean z2, String str) {
            CharSequence charSequence;
            Object[] objArr = {new Byte(z ? (byte) 1 : (byte) 0), new Byte(z2 ? (byte) 1 : (byte) 0), str};
            ChangeQuickRedirect changeQuickRedirect2 = changeQuickRedirect;
            Class cls = Boolean.TYPE;
            if (PatchProxy.proxy(objArr, this, changeQuickRedirect2, false, 3052, new Class[]{cls, cls, String.class}, Void.TYPE).isSupported) {
                return;
            }
            h4.l().debug("HOVERBALL", "addAction " + str);
            List D0 = tj0.u.D0(str, new String[]{"@"}, false, 0, 6, (Object) null);
            if (D0.size() <= 1 || (charSequence = (CharSequence) D0.get(1)) == null || charSequence.length() == 0) {
                this.s.addAction(str);
            } else {
                this.t.addAction((String) D0.get(0));
                this.t.addDataScheme((String) D0.get(1));
            }
        }

        public Object invoke(Object obj, Object obj2, Object obj3) {
            PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj, obj2, obj3}, this, changeQuickRedirect, false, 3053, new Class[]{Object.class, Object.class, Object.class}, Object.class);
            if (proxy.isSupported) {
                return proxy.result;
            }
            a(((Boolean) obj).booleanValue(), ((Boolean) obj2).booleanValue(), (String) obj3);
            return e0.a;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0000\n\u0000\u0010\u0000\u001a\u0004\u0018\u00010\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 8, 0}, xi = 48)
    public static final class i extends kotlin.jvm.internal.p implements ah0.a<Object> {
        public static ChangeQuickRedirect changeQuickRedirect;
        public static final i s = new i();

        public i() {
            super(0);
        }

        public final Object invoke() {
            return "高铁WiFi 尝试计算剩余体验时长";
        }
    }

    public BallTrigger() {
        h4.l().debug("HOVERBALL", "悬浮球触发器创建," + getClass().getSimpleName());
        a.a aVar = uj0.a.b;
        m mVar = m.a;
        this.deskpop_interval_time = uj0.a.t(uj0.c.p(mVar.v().d(), uj0.d.f));
        int q = mVar.v().q();
        uj0.d dVar = uj0.d.e;
        this.deskpop_textshow_time = uj0.a.t(uj0.c.p(q, dVar));
        this.desktop_auto_hidden = uj0.a.t(uj0.c.p(mVar.v().l(), dVar));
        this.deskpop_default_icon = mVar.v().n();
        this.proxys = new ArrayList();
        this.ballConnectStatus = lg0.i.a(a.s);
        this.messagesCount = lg0.i.a(e.s);
        this.gtMessages = new LinkedHashMap();
    }

    public static final void E(BallTrigger ballTrigger, Intent intent) {
        if (PatchProxy.proxy(new Object[]{ballTrigger, intent}, null, changeQuickRedirect, true, 3018, new Class[]{BallTrigger.class, Intent.class}, Void.TYPE).isSupported) {
            return;
        }
        if (ballTrigger.z(intent)) {
            ballTrigger.isMessageProcessing = false;
        } else {
            ballTrigger.F(intent);
        }
    }

    public static final com.wifitutu.link.foundation.kernel.a g(BallTrigger ballTrigger) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{ballTrigger}, null, changeQuickRedirect, true, 3020, new Class[]{BallTrigger.class}, com.wifitutu.link.foundation.kernel.a.class);
        return proxy.isSupported ? (com.wifitutu.link.foundation.kernel.a) proxy.result : ballTrigger.q();
    }

    public static final com.wifitutu.link.foundation.kernel.g i(BallTrigger ballTrigger) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{ballTrigger}, null, changeQuickRedirect, true, 3019, new Class[]{BallTrigger.class}, com.wifitutu.link.foundation.kernel.g.class);
        return proxy.isSupported ? (com.wifitutu.link.foundation.kernel.g) proxy.result : ballTrigger.y();
    }

    public static final void j(BallTrigger ballTrigger, Intent intent) {
        if (PatchProxy.proxy(new Object[]{ballTrigger, intent}, null, changeQuickRedirect, true, 3022, new Class[]{BallTrigger.class, Intent.class}, Void.TYPE).isSupported) {
            return;
        }
        ballTrigger.D(intent);
    }

    public static final void k(BallTrigger ballTrigger, Intent intent) {
        if (PatchProxy.proxy(new Object[]{ballTrigger, intent}, null, changeQuickRedirect, true, 3021, new Class[]{BallTrigger.class, Intent.class}, Void.TYPE).isSupported) {
            return;
        }
        E(ballTrigger, intent);
    }

    public final Pair<Boolean, Integer> A(FloatOuterScene outerScene) {
        int i2;
        boolean z = true;
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{outerScene}, this, changeQuickRedirect, false, 3010, new Class[]{FloatOuterScene.class}, Pair.class);
        if (proxy.isSupported) {
            return (Pair) proxy.result;
        }
        String str = "";
        if (tj0.t.y("") && m.a.f0()) {
            str = EnumC0509m.SCREEN_LANDSCRAPE.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
            i2 = 1;
        } else {
            i2 = 0;
        }
        if (tj0.t.y(str) && b50.k.b(os.g1.a(os.f2.d())).uf()) {
            str = EnumC0509m.SCREEN_FULL.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
            i2 = 2;
        }
        if (tj0.t.y(str) && C0499d.a.D()) {
            str = EnumC0509m.BALL_QUIETMODE.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
            i2 = 3;
        }
        if (tj0.t.y(str) && this.isGTExclusiveMode) {
            str = EnumC0509m.BALL_GTMODE.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
            i2 = 4;
        }
        if (tj0.t.y(str) && b50.s.a(os.f2.d()).t9()) {
            str = EnumC0509m.MSG_SHOWING.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
            i2 = 5;
        }
        long currentTimeMillis = System.currentTimeMillis();
        boolean z2 = currentTimeMillis >= outerScene.getSt() && currentTimeMillis <= outerScene.getEt();
        boolean d0 = m.a.d0(outerScene);
        if (outerScene.getSleepuser() && C0499d.a.E()) {
            z = false;
        }
        if (tj0.t.y(str) && (!z2 || !d0)) {
            str = EnumC0509m.DATETIME_NOT.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
            i2 = 6;
        }
        if (tj0.t.y(str) && !z) {
            str = EnumC0509m.TODAY_OPEN.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
            i2 = 7;
        }
        if (str.length() <= 0) {
            return new Pair<>(Boolean.FALSE, Integer.valueOf(i2));
        }
        h4.l().debug("HOVERBALL", "悬浮球透传 消息不处理 原因=" + str);
        return new Pair<>(Boolean.TRUE, Integer.valueOf(i2));
    }

    public final boolean getIsGTExclusiveMode() {
        return this.isGTExclusiveMode;
    }

    public final boolean getIsMessageProcessing() {
        return this.isMessageProcessing;
    }

    public final void D(Intent intent) {
        if (PatchProxy.proxy(new Object[]{intent}, this, changeQuickRedirect, false, 3012, new Class[]{Intent.class}, Void.TYPE).isSupported) {
            return;
        }
        if (getIsGTExclusiveMode()) {
            K();
            return;
        }
        String action = intent.getAction();
        if (this.isMessageProcessing) {
            h4.l().debug("HOVERBALL", action + " 消息不处理 原因=有消息处理中");
            return;
        }
        this.isMessageProcessing = true;
        h4.l().debug("HOVERBALL", "onActionReceive action:" + action);
        m mVar = m.a;
        if (!m.a0(mVar, null, 1, null)) {
            E(this, intent);
        } else {
            a.a aVar = uj0.a.b;
            q6.d(uj0.c.p(mVar.y() + 1, uj0.d.e), false, false, new f(intent), 6, (Object) null);
        }
    }

    public final void F(Intent intent) {
        if (PatchProxy.proxy(new Object[]{intent}, this, changeQuickRedirect, false, 3013, new Class[]{Intent.class}, Void.TYPE).isSupported) {
            return;
        }
        C0507k c0507k = new C0507k(null, null, null, null, null, null, 63, null);
        c0507k.e(intent.getAction());
        String action = intent.getAction();
        if (action != null && action.hashCode() == 558168269 && action.equals("app::action:hover::ball::attach::window")) {
            n(c0507k);
        } else {
            g.a.b(f(intent), (f2) null, new g(), 1, (Object) null);
        }
    }

    public final void G(qq.a message) {
        if (PatchProxy.proxy(new Object[]{message}, this, changeQuickRedirect, false, 3014, new Class[]{qq.a.class}, Void.TYPE).isSupported) {
            return;
        }
        yl0.c.d().m(message);
    }

    public final void H() {
        Object b2;
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3007, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        List<String> r = m.a.v().r();
        h4.l().debug("HOVERBALL", getClass().getSimpleName() + " registerReceiver " + r);
        if (r != null) {
            this.mActionsReceiver = new BallTrigger$registerReceiver$1$1(this);
            this.mActionsReceiverWithScheme = new BallTrigger$registerReceiver$1$2(this);
            IntentFilter intentFilter = new IntentFilter();
            IntentFilter intentFilter2 = new IntentFilter();
            l0.d(r, new h(intentFilter, intentFilter2));
            intentFilter.addAction("app::action:hover::ball::attach::window");
            try {
                n.a aVar = lg0.n.b;
                if (intentFilter.countActions() > 0) {
                    ContextCompat.registerReceiver(os.f2.b(os.f2.d()), this.mActionsReceiver, intentFilter, 4);
                }
                if (intentFilter2.countActions() > 0) {
                    ContextCompat.registerReceiver(os.f2.b(os.f2.d()), this.mActionsReceiverWithScheme, intentFilter2, 4);
                }
                b2 = lg0.n.b(e0.a);
            } catch (Throwable th) {
                n.a aVar2 = lg0.n.b;
                b2 = lg0.n.b(lg0.o.a(th));
            }
            lg0.n.a(b2);
        }
    }

    public final void I(ru.c cVar) {
        this.lastAuthExtInfo = cVar;
    }

    public final void J(boolean z) {
        this.isMessageProcessing = z;
    }

    public final void K() {
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3015, new Class[0], Void.TYPE).isSupported || this.isMessageProcessing) {
            return;
        }
        this.isMessageProcessing = true;
        h4.l().y("HOVERBALL", i.s);
        C0507k c0507k = new C0507k(null, null, null, null, null, null, 63, null);
        c0507k.g(EnumC0506j.CATEGORY_GTWIFI.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String());
        n(c0507k);
    }

    public void L() {
        Object b2;
        Object b3;
        if (PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3006, new Class[0], Void.TYPE).isSupported) {
            return;
        }
        for (com.wifitutu.link.foundation.kernel.e eVar : this.proxys) {
            if (eVar != null) {
                e.a.a(eVar, (f2) null, 1, (Object) null);
            }
        }
        h4.l().debug("HOVERBALL", getClass().getSimpleName() + " unregisterReceiver");
        this.proxys.clear();
        BroadcastReceiver broadcastReceiver = this.mActionsReceiver;
        if (broadcastReceiver != null) {
            try {
                n.a aVar = lg0.n.b;
                os.f2.b(os.f2.d()).unregisterReceiver(broadcastReceiver);
                b2 = lg0.n.b(e0.a);
            } catch (Throwable th) {
                n.a aVar2 = lg0.n.b;
                b2 = lg0.n.b(lg0.o.a(th));
            }
            lg0.n.a(b2);
        }
        BroadcastReceiver broadcastReceiver2 = this.mActionsReceiverWithScheme;
        if (broadcastReceiver2 != null) {
            try {
                n.a aVar3 = lg0.n.b;
                os.f2.b(os.f2.d()).unregisterReceiver(broadcastReceiver2);
                b3 = lg0.n.b(e0.a);
            } catch (Throwable th2) {
                n.a aVar4 = lg0.n.b;
                b3 = lg0.n.b(lg0.o.a(th2));
            }
            lg0.n.a(b3);
        }
    }

    public final com.wifitutu.link.foundation.kernel.g<ru.c> m() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3008, new Class[0], com.wifitutu.link.foundation.kernel.g.class);
        return proxy.isSupported ? (com.wifitutu.link.foundation.kernel.g) proxy.result : (com.wifitutu.link.foundation.kernel.g) q6.o(new com.wifitutu.link.foundation.kernel.a(), 0L, false, new b(), 3, (Object) null);
    }

    public void n(C0507k actionParam) {
    }

    public boolean o(String category, String scene, int interval) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{category, scene, new Integer(interval)}, this, changeQuickRedirect, false, 3017, new Class[]{String.class, String.class, Integer.TYPE}, Boolean.TYPE);
        if (proxy.isSupported) {
            return ((Boolean) proxy.result).booleanValue();
        }
        String str = category + '@' + scene;
        C0499d c0499d = C0499d.a;
        int q = c0499d.q(category);
        Integer num = x().get(category);
        if (q < (num != null ? num.intValue() : 4)) {
            long currentTimeMillis = System.currentTimeMillis() - c0499d.l(str);
            a.a aVar = uj0.a.b;
            if (currentTimeMillis > uj0.a.t(uj0.c.p(interval, uj0.d.f))) {
                return true;
            }
            h4.l().debug("HOVERBALL", "消息" + str + " 不可用, 间隔时间受控");
        } else {
            h4.l().debug("HOVERBALL", "消息" + str + " 不可用, 展示总次数受控");
        }
        return false;
    }

    public DeskPopScene p() {
        ru.c cVar;
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3016, new Class[0], DeskPopScene.class);
        if (proxy.isSupported) {
            return (DeskPopScene) proxy.result;
        }
        if (getIsGTExclusiveMode() && (cVar = this.lastAuthExtInfo) != null) {
            boolean y = cVar.y();
            boolean z = cVar.C() > 60;
            boolean w = cVar.w();
            h4.l().debug("HOVERBALL", "findGTWiFiTruthMessage isCRHRight=" + y + " isRemaining=" + z + " isCRHTimeRealOver=" + w);
            DeskPopScene deskPopScene = y ? v().get(EnumC0508l.GT_HASRIGHTS.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String()) : w ? v().get(EnumC0508l.GT_REMAINOVER.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String()) : !z ? v().get(EnumC0508l.GT_REMAINTIP.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String()) : v().get(EnumC0508l.GT_REMAINING.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String());
            if (deskPopScene != null) {
                f0 f0Var = new f0();
                ru.c cVar2 = this.lastAuthExtInfo;
                String l = cVar2 != null ? cVar2.l() : null;
                f0Var.a = l;
                String str = l;
                d4.J(str == null || tj0.t.y(str), new c(f0Var, this));
                String C0 = m.a.C0((String) f0Var.a);
                f0Var.a = C0;
                deskPopScene.setUrl(C0);
                C0499d c0499d = C0499d.a;
                String scene = deskPopScene.getScene();
                ru.c cVar3 = this.lastAuthExtInfo;
                String o = cVar3 != null ? cVar3.o() : null;
                ru.c cVar4 = this.lastAuthExtInfo;
                String p = cVar4 != null ? cVar4.p() : null;
                ru.c cVar5 = this.lastAuthExtInfo;
                if (!c0499d.u(scene, o, p, cVar5 != null ? cVar5.q() : null)) {
                    return deskPopScene;
                }
                y2 l2 = h4.l();
                StringBuilder sb = new StringBuilder();
                sb.append("findGTWiFiTruthMessage 已展示过 scene=");
                sb.append(deskPopScene.getScene());
                sb.append(" trainDate=");
                ru.c cVar6 = this.lastAuthExtInfo;
                sb.append(cVar6 != null ? cVar6.o() : null);
                sb.append(" trainId=");
                ru.c cVar7 = this.lastAuthExtInfo;
                sb.append(cVar7 != null ? cVar7.p() : null);
                sb.append(" trainNum=");
                ru.c cVar8 = this.lastAuthExtInfo;
                sb.append(cVar8 != null ? cVar8.q() : null);
                l2.debug("HOVERBALL", sb.toString());
                DeskPopScene deskPopScene2 = new DeskPopScene();
                deskPopScene2.setCategory(deskPopScene.getCategory());
                deskPopScene2.setInterval(deskPopScene.getInterval());
                deskPopScene2.setWeight(deskPopScene.getWeight());
                deskPopScene2.setScene(deskPopScene.getScene());
                deskPopScene2.setUrl(deskPopScene.getUrl());
                deskPopScene2.setIcon(deskPopScene.getIcon());
                return deskPopScene2;
            }
        }
        return null;
    }

    public final com.wifitutu.link.foundation.kernel.a<r4> q() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, PlaybackException.ERROR_CODE_PARSING_MANIFEST_UNSUPPORTED, new Class[0], com.wifitutu.link.foundation.kernel.a.class);
        return proxy.isSupported ? (com.wifitutu.link.foundation.kernel.a) proxy.result : (com.wifitutu.link.foundation.kernel.a) this.ballConnectStatus.getValue();
    }

    public final String getDeskpop_default_icon() {
        return this.deskpop_default_icon;
    }

    public final long getDeskpop_textshow_time() {
        return this.deskpop_textshow_time;
    }

    public final long getDesktop_auto_hidden() {
        return this.desktop_auto_hidden;
    }

    public final ru.c getLastAuthExtInfo() {
        return this.lastAuthExtInfo;
    }

    public Map<String, DeskPopScene> v() {
        return this.gtMessages;
    }

    public final ru.c w() {
        return this.lastAuthExtInfo;
    }

    public final Map<String, Integer> x() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3005, new Class[0], Map.class);
        return proxy.isSupported ? (Map) proxy.result : (Map) this.messagesCount.getValue();
    }

    public final com.wifitutu.link.foundation.kernel.g<ru.c> y() {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 3009, new Class[0], com.wifitutu.link.foundation.kernel.g.class);
        return proxy.isSupported ? (com.wifitutu.link.foundation.kernel.g) proxy.result : (com.wifitutu.link.foundation.kernel.g) q6.o(new com.wifitutu.link.foundation.kernel.a(), 0L, false, new d(), 3, (Object) null);
    }

    public final boolean z(Intent intent) {
        PatchProxyResult proxy = PatchProxy.proxy(new Object[]{intent}, this, changeQuickRedirect, false, 3011, new Class[]{Intent.class}, Boolean.TYPE);
        if (proxy.isSupported) {
            return ((Boolean) proxy.result).booleanValue();
        }
        String str = "";
        if (tj0.t.y("") && com.wifitutu.link.foundation.kernel.d.d().r().k()) {
            str = EnumC0509m.APP_FOREGROUNDING.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
        }
        if (tj0.t.y(str) && System.currentTimeMillis() - C0499d.a.i() < this.deskpop_interval_time) {
            str = EnumC0509m.TIME_INTERVALING.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
        }
        if (tj0.t.y(str) && !m.a.e0()) {
            str = EnumC0509m.TIME_INTERVALING_BY_FLOATPOP.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
        }
        if (tj0.t.y(str) && m.a.f0()) {
            str = EnumC0509m.SCREEN_LANDSCRAPE.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
        }
        if (tj0.t.y(str) && C0499d.a.D()) {
            str = EnumC0509m.BALL_QUIETMODE.getCom.sdk.plus.data.manager.RalDataManager.DB_VALUE java.lang.String();
        }
        if (str.length() <= 0) {
            return false;
        }
        h4.l().debug("HOVERBALL", intent.getAction() + " 消息不处理 原因=" + str);
        return true;
    }
}