正在查看: Housing v14.7.8 应用的 OverlayService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 OverlayService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.contentsquare.android.analytics.internal.features.clientmode.ui.overlay;
import android.R;
import android.animation.ValueAnimator;
import android.app.Application;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.view.animation.AccelerateInterpolator;
import android.widget.ImageView;
import com.contentsquare.android.analytics.internal.features.clientmode.ui.overlay.a;
import com.contentsquare.android.analytics.internal.features.clientmode.ui.overlay.a.d;
import com.facebook.gamingservices.cloudgaming.internal.SDKConstants;
import f7.b2;
import f7.f3;
import f7.p8;
import f7.s4;
import f7.ul;
import f7.va;
import java.util.concurrent.CancellationException;
import kotlin.Metadata;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.jvm.internal.r;
import kotlinx.coroutines.internal.t;
import kotlinx.coroutines.k0;
import kotlinx.coroutines.l0;
import kotlinx.coroutines.v1;
import kotlinx.coroutines.y1;
import kotlinx.coroutines.z0;
import org.jetbrains.annotations.NotNull;
import t5.k;
import t5.l;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0000\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/contentsquare/android/analytics/internal/features/clientmode/ui/overlay/OverlayService;", "Landroid/app/Service;", "<init>", "()V", "library_release"}, k = 1, mv = {1, 8, 0})
@SourceDebugExtension({"SMAP\nOverlayService.kt\nKotlin\n*S Kotlin\n*F\n+ 1 OverlayService.kt\ncom/contentsquare/android/analytics/internal/features/clientmode/ui/overlay/OverlayService\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,99:1\n1#2:100\n*E\n"})
public final class OverlayService extends Service {
@NotNull
public final com.contentsquare.android.core.features.logging.d a = new com.contentsquare.android.core.features.logging.d("OverlayService");
public b2 b;
public a c;
public final void a() {
va vaVar;
va vaVar2;
a aVar = this.c;
if (aVar == null) {
r.o("overlayLayoutManager");
throw null;
}
if (aVar.a().getWindowToken() != null) {
aVar.c.removeView(aVar.a());
}
p8 p8Var = aVar.i;
if (p8Var != null && (vaVar2 = p8Var.d) != null) {
vaVar2.dismiss();
}
aVar.i = null;
s4 s4Var = aVar.h;
if (s4Var != null && (vaVar = s4Var.c) != null) {
vaVar.dismiss();
}
aVar.h = null;
a aVar2 = this.c;
if (aVar2 == null) {
r.o("overlayLayoutManager");
throw null;
}
aVar2.l = null;
v1 v1Var = aVar2.m;
if (v1Var != null) {
v1Var.cancel((CancellationException) null);
}
aVar2.m = null;
b2 b2Var = this.b;
if (b2Var != null) {
y1.c(b2Var.k);
}
}
@Override
public final IBinder onBind(Intent intent) {
r.k(intent, SDKConstants.PARAM_INTENT);
return null;
}
@Override
public final void onCreate() {
super.onCreate();
Object systemService = getApplication().getSystemService("window");
if ((systemService instanceof WindowManager ? (WindowManager) systemService : null) == null) {
stopSelf();
return;
}
com.contentsquare.android.core.features.logging.d dVar = f3.e;
Application application = getApplication();
r.j(application, "this.application");
this.b = f3.a.a(application).d;
Application application2 = getApplication();
r.j(application2, "application");
a aVar = f3.a.a(application2).a;
aVar.getClass();
ValueAnimator valueAnimator = new ValueAnimator();
valueAnimator.setInterpolator(new AccelerateInterpolator());
valueAnimator.setDuration(250L);
aVar.g = valueAnimator;
LayoutInflater from = LayoutInflater.from(aVar.b);
r.j(from, "layoutInflater");
View inflate = from.inflate(l.contentsquare_floating_widget_layout, (ViewGroup) null, false);
WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(-2, -2, 2038, 262184, -3);
layoutParams.windowAnimations = R.style.Animation.Translucent;
layoutParams.gravity = 8388629;
aVar.f = layoutParams;
aVar.c.addView(inflate, layoutParams);
a.d dVar2 = aVar.new d();
View findViewById = inflate.findViewById(k.client_mode_icon_id);
ImageView imageView = (ImageView) findViewById;
imageView.setOnTouchListener(dVar2);
imageView.setOnClickListener(new a.b(aVar, dVar2));
imageView.setOnLongClickListener(new a.c(aVar, dVar2));
r.j(findViewById, "floatingButtonLayout.fin…uchedListener))\n }");
inflate.getViewTreeObserver().addOnGlobalLayoutListener(new ul(aVar));
aVar.e = inflate;
aVar.i = new p8(aVar.d, l6.a.INSTANCE.a(aVar.b).getPreferencesStore(), new x5.c(aVar));
aVar.h = new s4(aVar.d, new x5.d(aVar));
z0 z0Var = z0.INSTANCE;
aVar.m = kotlinx.coroutines.k.c(k0.a(t.dispatcher), (kotlin.coroutines.f) null, (l0) null, new b(aVar, null), 3);
this.c = aVar;
aVar.a().setVisibility(0);
aVar.l = new f(this);
}
@Override
public final void onDestroy() {
this.a.m("OnDestroy : ClientModeService is being destroyed");
a();
super.onDestroy();
}
@Override
public final void onTaskRemoved(Intent intent) {
r.k(intent, "rootIntent");
a();
stopSelf();
super.onTaskRemoved(intent);
}
}