正在查看: OLX India v19.42.007 应用的 C2552p5.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 C2552p5.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.inmobi.media;
import android.R;
import android.app.Activity;
import android.content.Context;
import android.media.AudioManager;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.os.SystemClock;
import android.util.Log;
import android.webkit.JavascriptInterface;
import android.webkit.URLUtil;
import android.widget.FrameLayout;
import com.google.ads.mediation.inmobi.InMobiNetworkValues;
import com.google.android.exoplayer2.text.ttml.TtmlNode;
import com.google.android.exoplayer2.util.MimeTypes;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.ScheduledExecutorService;
import kotlin.TuplesKt;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
import net.pubnative.lite.sdk.models.RemoteConfigFeature;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public final class C2552p5 {
public final S9 a;
public final int b;
public C2405e9 c;
public A4 d;
public C2552p5(int i, S9 s9) {
this.a = s9;
this.b = i;
}
public static final void a(C2552p5 c2552p5, String str, String str2) {
try {
c2552p5.a.e(str);
} catch (Exception e) {
c2552p5.a.a(str2, "Unexpected error", "expand");
Z5.a((byte) 1, "InMobi", "Failed to expand ad; SDK encountered an unexpected error");
A4 a4 = c2552p5.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).b(str3, Cc.a(e, A5.a(str3, "access$getTAG$p(...)", "SDK encountered unexpected error in handling expand() request; ")));
}
}
}
public static final void b(C2552p5 c2552p5, String str, String str2) {
c2552p5.a.getLandingPageHandler().a("open", str, str2, true);
}
public static final void c(C2552p5 c2552p5, String str, String str2) {
try {
c2552p5.a.getLandingPageHandler().e("openEmbedded", str, str2);
} catch (Exception e) {
c2552p5.a.a(str, "Unexpected error", "openEmbedded");
Z5.a((byte) 1, "InMobi", "Failed to open URL; SDK encountered unexpected error");
A4 a4 = c2552p5.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).b(str3, Cc.a(e, A5.a(str3, "access$getTAG$p(...)", "SDK encountered unexpected error in handling openEmbedded() request from creative; ")));
}
}
}
public static final void d(C2552p5 c2552p5, String str, String str2) {
c2552p5.a.getLandingPageHandler().a("openWithoutTracker", str, str2, true);
}
public static final void e(C2552p5 c2552p5, String str, String str2) {
try {
S9 s9 = c2552p5.a;
int length = str2.length() - 1;
int i = 0;
boolean z = false;
while (i <= length) {
boolean z2 = Intrinsics.e(str2.charAt(!z ? i : length), 32) <= 0;
if (z) {
if (!z2) {
break;
} else {
length--;
}
} else if (z2) {
i++;
} else {
z = true;
}
}
s9.b(str, str2.subSequence(i, length + 1).toString());
} catch (Exception e) {
c2552p5.a.a(str, "Unexpected error", "playVideo");
Z5.a((byte) 1, "InMobi", "Error playing video; SDK encountered an unexpected error");
A4 a4 = c2552p5.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).b(str3, Cc.a(e, A5.a(str3, "access$getTAG$p(...)", "SDK encountered unexpected error in handling playVideo() request from creative; ")));
}
}
}
@JavascriptInterface
public final void asyncPing(String str, String str2) {
A4 a4 = this.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "asyncPing called: ", str2));
}
if (!URLUtil.isValidUrl(str2)) {
this.a.a(str, "Invalid url", "asyncPing");
return;
}
try {
G8 g8 = new G8(str2, this.d);
g8.x = false;
g8.t = false;
g8.u = false;
g8.a(new Z0(new C2341a1(g8, new C2539o5(this))));
} catch (Exception e) {
this.a.a(str, "Unexpected error", "asyncPing");
A4 a42 = this.d;
if (a42 != null) {
String str4 = AbstractC2565q5.a;
((B4) a42).b(str4, Cc.a(e, A5.a(str4, "access$getTAG$p(...)", "SDK encountered internal error in handling asyncPing() request from creative; ")));
}
}
}
@JavascriptInterface
public final void cancelSaveContent(String str, String str2) {
A4 a4 = this.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "cancelSaveContent called. mediaId:", str2));
}
}
@JavascriptInterface
public final void close(final String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "close called");
}
new Handler(this.a.getContainerContext().getMainLooper()).post(new Runnable() {
@Override
public final void run() {
C2552p5.a(C2552p5.this, str);
}
});
}
@JavascriptInterface
public final void closeAll(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "closeAll is called");
}
S9 s9 = this.a;
A4 a42 = s9.j;
if (a42 != null) {
String str2 = S9.O0;
((B4) a42).a(str2, G9.a(s9, str2, "TAG", "closeAll "));
}
K k = s9.d0;
if (k != null) {
k.b();
}
Activity activity = (Activity) s9.m.get();
if (activity != null) {
activity.finish();
}
}
@JavascriptInterface
public final void closeCustomExpand(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "closeCustomExpand called.");
}
if (this.b != 1) {
A4 a42 = this.d;
if (a42 != null) {
String str2 = AbstractC2565q5.a;
StringBuilder a = A5.a(str2, "access$getTAG$p(...)", "closeCustomExpand called in incorrect Ad type: ");
a.append(this.b);
((B4) a42).b(str2, a.toString());
return;
}
return;
}
if (this.a != null) {
new Handler(this.a.getContainerContext().getMainLooper()).post(new Runnable() {
@Override
public final void run() {
C2552p5.a(C2552p5.this);
}
});
return;
}
A4 a43 = this.d;
if (a43 != null) {
((B4) a43).b(AbstractC2565q5.a, "Found a null instance of render view!");
}
}
@JavascriptInterface
public final void customExpand(final String str, final String str2, final int i, final float f, boolean z, final boolean z2) {
Map m;
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "customExpand called");
}
if (this.b != 1) {
A4 a42 = this.d;
if (a42 != null) {
String str3 = AbstractC2565q5.a;
StringBuilder a = A5.a(str3, "access$getTAG$p(...)", "customExpand called in incorrect Ad type: ");
a.append(this.b);
((B4) a42).b(str3, a.toString());
return;
}
return;
}
if (str2 != null) {
int length = str2.length() - 1;
int i2 = 0;
boolean z3 = false;
while (i2 <= length) {
boolean z4 = Intrinsics.e(str2.charAt(!z3 ? i2 : length), 32) <= 0;
if (z3) {
if (!z4) {
break;
} else {
length--;
}
} else if (z4) {
i2++;
} else {
z3 = true;
}
}
if (str2.subSequence(i2, length + 1).toString().length() != 0) {
if (i < 0 || i >= EnumC2524n3.values().length) {
this.a.a(str, "Invalid inputType", "customExpand");
return;
}
if (f < 0.0f || f > 1.0f) {
this.a.a(str, "Invalid screenPercentage", "customExpand");
return;
}
String a2 = this.a.getLandingPageHandler().a(str2);
D5 landingPageHandler = this.a.getLandingPageHandler();
m = kotlin.collections.v.m(TuplesKt.a("trigger", a2));
landingPageHandler.a("clickStartCalled", m);
new Handler(this.a.getContainerContext().getMainLooper()).post(new Runnable() {
@Override
public final void run() {
C2552p5.a(C2552p5.this, str2, i, str, f, z2);
}
});
return;
}
}
this.a.a(str, "Invalid " + i, "customExpand");
}
@JavascriptInterface
public final void disableBackButton(String str, boolean z) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "disableBackButton called");
}
S9 s9 = this.a;
if (s9 != null) {
s9.setDisableBackButton(z);
return;
}
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
}
}
@JavascriptInterface
public final void disableCloseRegion(final String str, final boolean z) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "disableCloseRegion called");
}
if (this.a != null) {
new Handler(this.a.getContainerContext().getMainLooper()).post(new Runnable() {
@Override
public final void run() {
C2552p5.a(C2552p5.this, z, str);
}
});
return;
}
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
}
}
@JavascriptInterface
public final void expand(final String str, final String str2) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "expand called");
}
if (this.b != 1) {
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
if (!s9.k()) {
this.a.a("expand");
return;
}
A4 a43 = this.d;
if (a43 != null) {
String str3 = AbstractC2565q5.a;
((B4) a43).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "expand called. Url:", str2));
}
S9 s92 = this.a;
if (s92.E != oc.c) {
s92.a(str, "Creative is not visible. Ignoring request.", "expand");
return;
}
if (str2 != null && str2.length() > 0 && !kotlin.text.m.O(str2, "http", false, 2, null)) {
this.a.a(str, "Invalid URL", "expand");
return;
}
if (URLUtil.isValidUrl(str2)) {
this.a.i();
}
new Handler(this.a.getContainerContext().getMainLooper()).post(new Runnable() {
@Override
public final void run() {
C2552p5.a(C2552p5.this, str2, str);
}
});
}
}
@JavascriptInterface
public final void fireAdFailed(String str) {
try {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "fireAdFailed called.");
}
S9 s9 = this.a;
Z9 z9 = s9.T;
if (z9 != null) {
Map a = z9.a();
long j = z9.b;
ScheduledExecutorService scheduledExecutorService = Vb.a;
a.put("latency", Long.valueOf(SystemClock.elapsedRealtime() - j));
C2407eb c2407eb = C2407eb.a;
C2407eb.b("FireAdFailed", a, EnumC2477jb.a);
}
s9.getListener().g(s9);
} catch (Exception e) {
this.a.a(str, "Unexpected error", "fireAdFailed");
A4 a42 = this.d;
if (a42 != null) {
String str2 = AbstractC2565q5.a;
((B4) a42).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling fireAdFailed() signal from creative; ")));
}
}
}
@JavascriptInterface
public final void fireAdReady(String str) {
try {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "fireAdReady called.");
}
this.a.h();
} catch (Exception e) {
this.a.a(str, "Unexpected error", "fireAdReady");
A4 a42 = this.d;
if (a42 != null) {
String str2 = AbstractC2565q5.a;
((B4) a42).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling fireAdReady() signal from creative; ")));
}
}
}
@JavascriptInterface
public final void fireComplete(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "fireComplete is called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
A4 a43 = s9.j;
if (a43 != null) {
String str2 = S9.O0;
((B4) a43).c(str2, G9.a(s9, str2, "TAG", "completeFromInterActive "));
}
A2 a2 = s9.H0;
if (a2 != null && !a2.g.get()) {
a2.d.i = 1;
}
A4 a44 = s9.j;
if (a44 != null) {
((B4) a44).a(S9.O0, "completeFromInterActive");
}
}
@JavascriptInterface
public final void fireSkip(String str) {
A4 a4;
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).a(AbstractC2565q5.a, "fireSkip is called");
}
if (this.a == null && (a4 = this.d) != null) {
((B4) a4).b(AbstractC2565q5.a, "Found a null instance of render view!");
}
S9 s9 = this.a;
A4 a43 = s9.j;
if (a43 != null) {
String str2 = S9.O0;
((B4) a43).c(str2, G9.a(s9, str2, "TAG", "skipFromInterActive "));
}
A2 a2 = s9.H0;
if (a2 != null && !a2.g.get()) {
a2.d.h = 1;
}
A4 a44 = s9.j;
if (a44 != null) {
((B4) a44).a(S9.O0, "skipFromInterActive");
}
}
@JavascriptInterface
public final String getAdContext(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getAdContext is called");
}
K adPodHandler = this.a.getAdPodHandler();
if (adPodHandler != null) {
return ((AbstractC2637w0) adPodHandler).K();
}
return null;
}
@JavascriptInterface
public final void getBlob(String str, String str2) {
F1 f1;
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getBlob is called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
A4 a43 = s9.j;
if (a43 != null) {
((B4) a43).a(S9.O0, "getBlob");
}
if (str == null || str2 == null || (f1 = s9.W) == null) {
return;
}
((AbstractC2637w0) f1).a(str, str2, s9, s9.getImpressionId());
}
@JavascriptInterface
public final String getCurrentPosition(String str) {
S9 s9;
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getCurrentPosition called");
}
S9 s92 = this.a;
if (s92 == null) {
A4 a42 = this.d;
if (a42 == null) {
return "";
}
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return "";
}
synchronized (s92.getCurrentPositionMonitor()) {
this.a.B = true;
new Handler(this.a.getContainerContext().getMainLooper()).post(new Runnable() {
@Override
public final void run() {
C2552p5.b(C2552p5.this);
}
});
while (true) {
s9 = this.a;
if (s9.B) {
try {
s9.getCurrentPositionMonitor().wait();
} catch (InterruptedException unused) {
}
} else {
Unit unit = Unit.a;
}
}
}
return s9.getCurrentPosition();
}
@JavascriptInterface
public final int getCurrentRenderingIndex(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getCurrentRenderingIndex is called");
}
return this.a.getCurrentRenderingPodAdIndex();
}
@JavascriptInterface
public final String getDefaultPosition(String str) {
S9 s9;
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getDefaultPosition called");
}
S9 s92 = this.a;
if (s92 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
}
return new JSONObject().toString();
}
synchronized (s92.getDefaultPositionMonitor()) {
this.a.A = true;
new Handler(this.a.getContainerContext().getMainLooper()).post(new Runnable() {
@Override
public final void run() {
C2552p5.c(C2552p5.this);
}
});
while (true) {
s9 = this.a;
if (s9.A) {
try {
s9.getDefaultPositionMonitor().wait();
} catch (InterruptedException unused) {
}
} else {
Unit unit = Unit.a;
}
}
}
return s9.getDefaultPosition();
}
@JavascriptInterface
public final int getDeviceVolume(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getDeviceVolume called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
}
return -1;
}
try {
C2669y6 mediaProcessor = s9.getMediaProcessor();
if (mediaProcessor != null) {
return mediaProcessor.a();
}
} catch (Exception e) {
this.a.a(str, "Unexpected error", "getDeviceVolume");
A4 a43 = this.d;
if (a43 != null) {
String str2 = AbstractC2565q5.a;
((B4) a43).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling getDeviceVolume() request from creative; ")));
}
}
return -1;
}
@JavascriptInterface
public final String getExpandProperties(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getExpandedProperties called");
}
S9 s9 = this.a;
if (s9 != null) {
return s9.getExpandProperties().b;
}
A4 a42 = this.d;
if (a42 == null) {
return "";
}
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return "";
}
@JavascriptInterface
public final int getMaxDeviceVolume(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getMaxDeviceVolume called");
}
try {
return C2357b3.a.m();
} catch (Exception e) {
this.a.a(str, "Unexpected error", "getMaxDeviceVolume");
A4 a42 = this.d;
if (a42 == null) {
return 0;
}
String str2 = AbstractC2565q5.a;
((B4) a42).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling getMaxDeviceVolume() request from creative; ")));
return 0;
}
}
@JavascriptInterface
public final String getMaxSize(String str) {
int i;
int i2;
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getMaxSize called");
}
JSONObject jSONObject = new JSONObject();
try {
Activity fullScreenActivity = this.a.getFullScreenActivity();
if (fullScreenActivity == null) {
Context containerContext = this.a.getContainerContext();
if ((containerContext instanceof Activity ? (Activity) containerContext : null) == null) {
return getScreenSize(str);
}
fullScreenActivity = (Activity) this.a.getContainerContext();
}
FrameLayout frameLayout = (FrameLayout) fullScreenActivity.findViewById(R.id.content);
int a = AbstractC2483k3.a(frameLayout.getWidth());
int a2 = AbstractC2483k3.a(frameLayout.getHeight());
if (this.a.getFullScreenActivity() != null && (a == 0 || a2 == 0)) {
ViewTreeObserverOnGlobalLayoutListenerC2526n5 viewTreeObserverOnGlobalLayoutListenerC2526n5 = new ViewTreeObserverOnGlobalLayoutListenerC2526n5(frameLayout, this.d);
frameLayout.getViewTreeObserver().addOnGlobalLayoutListener(viewTreeObserverOnGlobalLayoutListenerC2526n5);
Boolean bool = Boolean.FALSE;
synchronized (bool) {
try {
bool.wait();
} catch (InterruptedException unused) {
}
i = viewTreeObserverOnGlobalLayoutListenerC2526n5.c;
i2 = viewTreeObserverOnGlobalLayoutListenerC2526n5.d;
Unit unit = Unit.a;
}
a2 = i2;
a = i;
}
try {
jSONObject.put(InMobiNetworkValues.WIDTH, a);
jSONObject.put(InMobiNetworkValues.HEIGHT, a2);
} catch (JSONException e) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).a(AbstractC2565q5.a, "Error while creating max size Json.", e);
}
}
A4 a43 = this.d;
if (a43 != null) {
((B4) a43).a(AbstractC2565q5.a, "getMaxSize called:" + jSONObject);
}
} catch (Exception e2) {
this.a.a(str, "Unexpected error", "getMaxSize");
A4 a44 = this.d;
if (a44 != null) {
String str2 = AbstractC2565q5.a;
((B4) a44).b(str2, Cc.a(e2, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling getMaxSize() request from creative; ")));
}
}
return jSONObject.toString();
}
@JavascriptInterface
public final String getOrientation(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getOrientation called");
}
byte g = AbstractC2483k3.g();
return g == 1 ? "0" : g == 3 ? "90" : g == 2 ? "180" : g == 4 ? "270" : "-1";
}
@JavascriptInterface
public final String getOrientationProperties(String str) {
C2405e9 c2405e9 = this.c;
String str2 = c2405e9 != null ? c2405e9.d : null;
A4 a4 = this.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "getOrientationProperties called: ", str2));
}
return str2;
}
@JavascriptInterface
public final String getPlacementType(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getPlacementType called");
}
return 1 == this.b ? RemoteConfigFeature.AdFormat.INTERSTITIAL : "inline";
}
@JavascriptInterface
public final String getPlatform(String str) {
A4 a4 = this.d;
if (a4 == null) {
return "android";
}
((B4) a4).a(AbstractC2565q5.a, "getPlatform. Platform:android");
return "android";
}
@JavascriptInterface
public final String getPlatformVersion(String str) {
String valueOf = String.valueOf(Build.VERSION.SDK_INT);
A4 a4 = this.d;
if (a4 != null) {
String str2 = AbstractC2565q5.a;
((B4) a4).a(str2, AbstractC2681z5.a(str2, "access$getTAG$p(...)", "getPlatformVersion. Version:", valueOf));
}
return valueOf;
}
@JavascriptInterface
public final String getRenderableAdIndexes(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getRenderableAdIndexes is called");
}
JSONArray renderableAdIndexes = this.a.getRenderableAdIndexes();
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).a(AbstractC2565q5.a, "renderableAdIndexes called:" + renderableAdIndexes);
}
return renderableAdIndexes.toString();
}
@JavascriptInterface
public final String getResizeProperties(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getResizeProperties called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
}
return "";
}
C2504la resizeProperties = s9.getResizeProperties();
if (resizeProperties == null) {
return "";
}
JSONObject a = new C2513m5().a(resizeProperties);
String jSONObject = a != null ? a.toString() : null;
return jSONObject == null ? "" : jSONObject;
}
@JavascriptInterface
public final String getSafeArea(String str) {
S9 s9 = this.a;
if (!s9.D0) {
return null;
}
Integer navBarTypeViaSettings = s9.getNavBarTypeViaSettings();
if (navBarTypeViaSettings == null) {
navBarTypeViaSettings = this.a.getNavBarTypeViaInsets();
}
JSONObject jSONObject = this.a.getSafeArea().get(navBarTypeViaSettings);
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getSafeArea called:" + jSONObject);
}
if (jSONObject != null) {
return jSONObject.toString();
}
return null;
}
@JavascriptInterface
public final String getScreenSize(String str) {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put(InMobiNetworkValues.WIDTH, AbstractC2483k3.h().a);
jSONObject.put(InMobiNetworkValues.HEIGHT, AbstractC2483k3.h().b);
} catch (JSONException unused) {
} catch (Exception e) {
this.a.a(str, "Unexpected error", "getScreenSize");
A4 a4 = this.d;
if (a4 != null) {
String str2 = AbstractC2565q5.a;
((B4) a4).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error while getting screen dimensions; ")));
}
}
String jSONObject2 = jSONObject.toString();
A4 a42 = this.d;
if (a42 != null) {
String str3 = AbstractC2565q5.a;
((B4) a42).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "getScreenSize called:", jSONObject2));
}
return jSONObject2;
}
@JavascriptInterface
public final String getSdkVersion(String str) {
A4 a4 = this.d;
if (a4 == null) {
return "10.7.8";
}
((B4) a4).a(AbstractC2565q5.a, "getSdkVersion called. Version:10.7.8");
return "10.7.8";
}
@JavascriptInterface
public final long getShowTimeStamp(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "getShowTimeStamp is called");
}
long showTimeStamp = this.a.getShowTimeStamp();
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).a(AbstractC2565q5.a, "getShowTimeStamp is " + showTimeStamp);
}
return showTimeStamp;
}
@JavascriptInterface
public final String getState(String str) {
String lowerCase = this.a.getViewState().toLowerCase(Locale.ENGLISH);
A4 a4 = this.d;
if (a4 != null) {
String str2 = AbstractC2565q5.a;
((B4) a4).c(str2, AbstractC2681z5.a(str2, "access$getTAG$p(...)", "getState called:", lowerCase));
}
return lowerCase;
}
@JavascriptInterface
public final String getVersion(String str) {
A4 a4 = this.d;
if (a4 == null) {
return "2.0";
}
((B4) a4).a(AbstractC2565q5.a, "getVersion called. Version:2.0");
return "2.0";
}
@JavascriptInterface
public final void impressionFired(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "impressionFired is called");
}
S9 s9 = this.a;
A4 a42 = s9.j;
if (a42 != null) {
String str2 = S9.O0;
((B4) a42).a(str2, G9.a(s9, str2, "TAG", "onImpressionFired "));
}
A4 a43 = s9.j;
if (a43 != null) {
String str3 = S9.O0;
((B4) a43).a(str3, G9.a(s9, str3, "TAG", "recordContextualData "));
}
A2 a2 = s9.H0;
if (a2 != null) {
a2.a();
}
s9.getListener().a(s9.getTelemetryOnAdImpression());
}
@JavascriptInterface
public final void incentCompleted(String str, String str2) {
A4 a4 = this.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "incentCompleted called. IncentData:", str2));
}
if (str2 == null) {
try {
this.a.getListener().b(new HashMap());
return;
} catch (Exception e) {
this.a.a(str, "Unexpected error", "incentCompleted");
A4 a42 = this.d;
if (a42 != null) {
String str4 = AbstractC2565q5.a;
((B4) a42).b(str4, Cc.a(e, A5.a(str4, "access$getTAG$p(...)", "SDK encountered unexpected error in handling onUserInteraction() signal from creative; ")));
return;
}
return;
}
}
try {
JSONObject jSONObject = new JSONObject(str2);
HashMap hashMap = new HashMap();
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
hashMap.put(next, jSONObject.get(next));
}
try {
try {
this.a.getListener().b(hashMap);
} catch (Exception e2) {
this.a.a(str, "Unexpected error", "incentCompleted");
A4 a43 = this.d;
if (a43 != null) {
((B4) a43).b(AbstractC2565q5.a, "SDK encountered unexpected error in handling onUserInteraction() signal from creative; " + e2.getMessage());
}
}
} catch (Exception e3) {
this.a.a(str, "Unexpected error", "incentCompleted");
A4 a44 = this.d;
if (a44 != null) {
String str5 = AbstractC2565q5.a;
((B4) a44).b(str5, Cc.a(e3, A5.a(str5, "access$getTAG$p(...)", "SDK encountered unexpected error in handling onUserInteraction() signal from creative; ")));
}
}
} catch (JSONException unused) {
this.a.getListener().b(new HashMap());
}
}
@JavascriptInterface
public final boolean isBackButtonDisabled(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "isBackButtonDisabled called");
}
S9 s9 = this.a;
if (s9 != null) {
return s9.G;
}
A4 a42 = this.d;
if (a42 == null) {
return false;
}
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return false;
}
@JavascriptInterface
public final String isDeviceMuted(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "isDeviceMuted called");
}
if (this.a == null) {
A4 a42 = this.d;
if (a42 == null) {
return "false";
}
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return "false";
}
A4 a43 = this.d;
if (a43 != null) {
((B4) a43).a(AbstractC2565q5.a, "JavaScript called: isDeviceMuted()");
}
boolean z = false;
try {
A4 a44 = this.a.getMediaProcessor().b;
if (a44 != null) {
((B4) a44).c("MraidMediaProcessor", "isVolumeMuted");
}
Context d = Ha.d();
if (d != null) {
Object systemService = d.getSystemService(MimeTypes.BASE_TYPE_AUDIO);
AudioManager audioManager = systemService instanceof AudioManager ? (AudioManager) systemService : null;
if (audioManager != null) {
if (2 != audioManager.getRingerMode()) {
z = true;
}
}
}
} catch (Exception e) {
A4 a45 = this.d;
if (a45 != null) {
String str2 = AbstractC2565q5.a;
((B4) a45).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in checking if device is muted; ")));
}
}
return String.valueOf(z);
}
@JavascriptInterface
public final String isHeadphonePlugged(String str) {
boolean z;
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "isHeadphonePlugged called");
}
if (this.a == null) {
A4 a42 = this.d;
if (a42 == null) {
return "false";
}
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return "false";
}
A4 a43 = this.d;
if (a43 != null) {
((B4) a43).a(AbstractC2565q5.a, "JavaScript called: isHeadphonePlugged()");
}
try {
this.a.getMediaProcessor().getClass();
z = C2669y6.b();
} catch (Exception e) {
A4 a44 = this.d;
if (a44 != null) {
String str2 = AbstractC2565q5.a;
((B4) a44).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in checking if headphones are plugged-in; ")));
}
z = false;
}
return String.valueOf(z);
}
@JavascriptInterface
public final boolean isViewable(String str) {
String str2 = AbstractC2565q5.a;
S9 s9 = this.a;
if (s9 != null) {
return s9.E == oc.c;
}
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).b(str2, "Found a null instance of render view!");
}
return false;
}
@JavascriptInterface
public final void loadAd(String str, int i) {
}
@JavascriptInterface
public final void log(String str, String str2) {
A4 a4 = this.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).c(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "Log called. Message:", str2));
}
S9 s9 = this.a;
s9.getClass();
K9 k9 = S9.M0;
k9.getClass();
if (!((Boolean) S9.P0.getValue(k9, K9.a[0])).booleanValue() || str2 == null) {
return;
}
s9.getListener().a(str2);
}
@JavascriptInterface
public final void logTelemetryEvent(String str, String str2, String str3) {
Z9 z9;
Map m;
if (str2 == null) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).b(AbstractC2565q5.a, "eventType is null");
return;
}
return;
}
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).a(AbstractC2565q5.a, "logTelemetryEvent is called: ".concat(str2));
}
S9 s9 = this.a;
s9.getClass();
z9 = s9.T;
if (z9 == null || z9.f.get()) {
return;
}
if (z9.e.decrementAndGet() <= 0) {
z9.f.set(true);
Map a = z9.a();
long j = z9.b;
ScheduledExecutorService scheduledExecutorService = Vb.a;
a.put("latency", Long.valueOf(SystemClock.elapsedRealtime() - j));
C2407eb c2407eb = C2407eb.a;
C2407eb.b("TemplateEventDropped", a, EnumC2477jb.a);
return;
}
if (str3 != null) {
try {
} catch (JSONException e) {
Log.e(C2407eb.b, "Error parsing JSON: " + e);
}
}
m = kotlin.collections.v.m(TuplesKt.a("plType", String.valueOf(z9.a.a.m())), TuplesKt.a("markupType", z9.a.b), TuplesKt.a("networkType", C2357b3.q()));
if (str3 != null) {
m.put("payload", str3);
}
if (z9.a.c.length() > 0) {
m.put("metadataBlob", z9.a.c);
}
C2407eb.b(str2, m, EnumC2477jb.b);
str3 = null;
m = kotlin.collections.v.m(TuplesKt.a("plType", String.valueOf(z9.a.a.m())), TuplesKt.a("markupType", z9.a.b), TuplesKt.a("networkType", C2357b3.q()));
if (str3 != null) {
}
if (z9.a.c.length() > 0) {
}
C2407eb.b(str2, m, EnumC2477jb.b);
}
@JavascriptInterface
public final void onAudioStateChanged(String str, int i) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "onAudioStateChanged is called: " + i);
}
EnumC2439h1.b.getClass();
EnumC2439h1 enumC2439h1 = (EnumC2439h1) EnumC2439h1.c.get(i);
if (enumC2439h1 == null) {
enumC2439h1 = EnumC2439h1.d;
}
if (enumC2439h1 != EnumC2439h1.d) {
this.a.getListener().a(enumC2439h1);
}
}
@JavascriptInterface
public final void onOrientationChange(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, ">>> onOrientationChange() >>> This API is deprecated!");
}
}
@JavascriptInterface
public final void onUserAudioMuteInteraction(String str, boolean z) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "onAudioMuteInteraction is called: " + z);
}
this.a.getListener().a(z);
}
@JavascriptInterface
public final void onUserInteraction(String str, String str2) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "onUserInteraction called");
}
S9 s9 = this.a;
if (s9 != null && !s9.k()) {
this.a.a("onUserInteraction");
return;
}
A4 a42 = this.d;
if (a42 != null) {
String str3 = AbstractC2565q5.a;
((B4) a42).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "onUserInteraction called. Params:", str2));
}
if (str2 == null) {
try {
this.a.getListener().a(new HashMap());
return;
} catch (Exception e) {
this.a.a(str, "Unexpected error", "onUserInteraction");
A4 a43 = this.d;
if (a43 != null) {
String str4 = AbstractC2565q5.a;
((B4) a43).b(str4, Cc.a(e, A5.a(str4, "access$getTAG$p(...)", "SDK encountered unexpected error in handling onUserInteraction() signal from creative; ")));
return;
}
return;
}
}
try {
try {
JSONObject jSONObject = new JSONObject(str2);
HashMap hashMap = new HashMap();
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
hashMap.put(next, jSONObject.get(next));
}
try {
this.a.getListener().a(hashMap);
} catch (Exception e2) {
this.a.a(str, "Unexpected error", "onUserInteraction");
A4 a44 = this.d;
if (a44 != null) {
((B4) a44).b(AbstractC2565q5.a, "SDK encountered unexpected error in handling onUserInteraction() signal from creative; " + e2.getMessage());
}
}
} catch (JSONException unused) {
this.a.getListener().a(new HashMap());
}
} catch (Exception e3) {
this.a.a(str, "Unexpected error", "onUserInteraction");
A4 a45 = this.d;
if (a45 != null) {
String str5 = AbstractC2565q5.a;
((B4) a45).b(str5, Cc.a(e3, A5.a(str5, "access$getTAG$p(...)", "SDK encountered unexpected error in handling onUserInteraction() signal from creative; ")));
}
}
}
@JavascriptInterface
public final void open(final String str, final String str2) {
Map m;
Map m2;
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "open called");
}
String a = this.a.getLandingPageHandler().a(str2);
D5 landingPageHandler = this.a.getLandingPageHandler();
m = kotlin.collections.v.m(TuplesKt.a("trigger", a));
landingPageHandler.a("clickStartCalled", m);
if (this.a.k()) {
this.a.i();
AbstractC2365bb.a(new Runnable() {
@Override
public final void run() {
C2552p5.b(C2552p5.this, str, str2);
}
});
} else {
this.a.a("open");
D5 landingPageHandler2 = this.a.getLandingPageHandler();
m2 = kotlin.collections.v.m(TuplesKt.a("errorCode", 8), TuplesKt.a("trigger", a));
landingPageHandler2.a("landingsStartFailed", m2);
}
}
@JavascriptInterface
public final void openEmbedded(final String str, final String str2) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "openEmbedded called");
}
if (!this.a.k()) {
this.a.a("openEmbedded");
} else {
this.a.i();
AbstractC2365bb.a(new Runnable() {
@Override
public final void run() {
C2552p5.c(C2552p5.this, str, str2);
}
});
}
}
@JavascriptInterface
public final void openExternal(String str, String str2, String str3) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "open External");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
if (!s9.k()) {
this.a.a("openExternal");
return;
}
this.a.i();
A4 a43 = this.d;
if (a43 != null) {
String str4 = AbstractC2565q5.a;
((B4) a43).a(str4, AbstractC2681z5.a(str4, "access$getTAG$p(...)", "openExternal called with url: ", str2));
}
D5 landingPageHandler = this.a.getLandingPageHandler();
landingPageHandler.getClass();
if (str2 != null) {
landingPageHandler.f(str, str2, str3);
return;
}
if (str3 != null) {
landingPageHandler.f(str, str3, null);
return;
}
O9 o9 = landingPageHandler.d;
if (o9 != null) {
o9.a.a(str, "Empty url and fallback url", "openExternal");
}
A4 a44 = landingPageHandler.g;
if (a44 != null) {
((B4) a44).b("D5", "Empty deeplink and fallback urls");
}
}
@JavascriptInterface
public final void openWithoutTracker(final String str, final String str2) {
Map m;
Map m2;
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "openWithoutTracker called");
}
String a = this.a.getLandingPageHandler().a(str2);
this.a.getLandingPageHandler().a("clickStartCalled", new HashMap());
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
}
D5 landingPageHandler = this.a.getLandingPageHandler();
m2 = kotlin.collections.v.m(TuplesKt.a("errorCode", 11), TuplesKt.a("trigger", a));
landingPageHandler.a("landingsStartFailed", m2);
return;
}
if (s9.k()) {
AbstractC2365bb.a(new Runnable() {
@Override
public final void run() {
C2552p5.d(C2552p5.this, str, str2);
}
});
return;
}
this.a.a("openWithoutTracker");
D5 landingPageHandler2 = this.a.getLandingPageHandler();
m = kotlin.collections.v.m(TuplesKt.a("errorCode", 8), TuplesKt.a("trigger", a));
landingPageHandler2.a("landingsStartFailed", m);
}
@JavascriptInterface
public final void ping(String str, String str2, boolean z) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "ping called");
}
if (this.a == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
if (str2 != null) {
int length = str2.length() - 1;
int i = 0;
boolean z2 = false;
while (i <= length) {
boolean z3 = Intrinsics.e(str2.charAt(!z2 ? i : length), 32) <= 0;
if (z2) {
if (!z3) {
break;
} else {
length--;
}
} else if (z3) {
i++;
} else {
z2 = true;
}
}
if (str2.subSequence(i, length + 1).toString().length() != 0 && URLUtil.isValidUrl(str2)) {
A4 a43 = this.d;
if (a43 != null) {
((B4) a43).a(AbstractC2565q5.a, "JavaScript called ping() URL: >>> " + str2 + " <<<");
}
try {
Y1.a.a(str2, z, this.d);
return;
} catch (Exception e) {
this.a.a(str, "Unexpected error", "ping");
Z5.a((byte) 1, "InMobi", "Failed to fire ping; SDK encountered unexpected error");
A4 a44 = this.d;
if (a44 != null) {
String str3 = AbstractC2565q5.a;
((B4) a44).b(str3, Cc.a(e, A5.a(str3, "access$getTAG$p(...)", "SDK encountered unexpected error in handling ping() request from creative; ")));
return;
}
return;
}
}
}
this.a.a(str, "Invalid URL:" + str2, "ping");
}
@JavascriptInterface
public final void pingInWebView(String str, String str2, boolean z) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "openInWebView called");
}
if (this.a == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
if (str2 != null) {
int length = str2.length() - 1;
int i = 0;
boolean z2 = false;
while (i <= length) {
boolean z3 = Intrinsics.e(str2.charAt(!z2 ? i : length), 32) <= 0;
if (z2) {
if (!z3) {
break;
} else {
length--;
}
} else if (z3) {
i++;
} else {
z2 = true;
}
}
if (str2.subSequence(i, length + 1).toString().length() != 0 && URLUtil.isValidUrl(str2)) {
A4 a43 = this.d;
if (a43 != null) {
((B4) a43).a(AbstractC2565q5.a, "JavaScript called pingInWebView() URL: >>> " + str2 + " <<<");
}
try {
Y1.a.b(str2, z, this.d);
return;
} catch (Exception e) {
this.a.a(str, "Unexpected error", "pingInWebView");
Z5.a((byte) 1, "InMobi", "Failed to fire ping; SDK encountered unexpected error");
A4 a44 = this.d;
if (a44 != null) {
String str3 = AbstractC2565q5.a;
((B4) a44).b(str3, Cc.a(e, A5.a(str3, "access$getTAG$p(...)", "SDK encountered unexpected error in handling pingInWebView() request from creative; ")));
return;
}
return;
}
}
}
this.a.a(str, "Invalid URL:" + str2, "pingInWebView");
}
@JavascriptInterface
public final void playVideo(final String str, final String str2) {
if (this.a == null) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
if (str2 != null) {
int length = str2.length() - 1;
int i = 0;
boolean z = false;
while (i <= length) {
boolean z2 = Intrinsics.e(str2.charAt(!z ? i : length), 32) <= 0;
if (z) {
if (!z2) {
break;
} else {
length--;
}
} else if (z2) {
i++;
} else {
z = true;
}
}
if (str2.subSequence(i, length + 1).toString().length() != 0 && kotlin.text.m.O(str2, "http", false, 2, null) && (kotlin.text.m.A(str2, "mp4", false, 2, null) || kotlin.text.m.A(str2, "avi", false, 2, null) || kotlin.text.m.A(str2, "m4v", false, 2, null))) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).a(AbstractC2565q5.a, "JavaScript called: playVideo (" + str2 + ')');
}
new Handler(this.a.getContainerContext().getMainLooper()).post(new Runnable() {
@Override
public final void run() {
C2552p5.e(C2552p5.this, str, str2);
}
});
return;
}
}
this.a.a(str, "Null or empty or invalid media playback URL supplied", "playVideo");
}
@JavascriptInterface
public final void registerBackButtonPressedEventListener(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "registerBackButtonPressedEventListener called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
try {
A4 a43 = s9.j;
if (a43 != null) {
((B4) a43).a(S9.O0, "registerBackButtonPressedEventListener " + s9);
}
s9.H = str;
} catch (Exception e) {
this.a.a(str, "Unexpected error", "registerBackButtonPressedEventListener");
A4 a44 = this.d;
if (a44 != null) {
String str2 = AbstractC2565q5.a;
((B4) a44).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling registerBackButtonPressedEventListener() request from creative; ")));
}
}
}
@JavascriptInterface
public final void registerDeviceMuteEventListener(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "registerDeviceMuteEventListener called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
if (str != null) {
try {
C2669y6 mediaProcessor = s9.getMediaProcessor();
if (mediaProcessor == null || mediaProcessor.d != null) {
return;
}
C2472j6 c2472j6 = new C2472j6(new C2630v6(mediaProcessor, str));
mediaProcessor.d = c2472j6;
c2472j6.b();
} catch (Exception e) {
this.a.a(str, "Unexpected error", "registerDeviceMuteEventListener");
A4 a43 = this.d;
if (a43 != null) {
String str2 = AbstractC2565q5.a;
((B4) a43).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling registerDeviceMuteEventListener() request from creative; ")));
}
}
}
}
@JavascriptInterface
public final void registerDeviceVolumeChangeEventListener(String str) {
Context d;
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "registerDeviceVolumeChangeEventListener called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
if (str != null) {
try {
C2669y6 mediaProcessor = s9.getMediaProcessor();
if (mediaProcessor == null || (d = Ha.d()) == null || mediaProcessor.e != null) {
return;
}
C2472j6 c2472j6 = new C2472j6(new C2643w6(mediaProcessor, str, d, new Handler(Looper.getMainLooper())));
mediaProcessor.e = c2472j6;
c2472j6.b();
} catch (Exception e) {
this.a.a(str, "Unexpected error", "registerDeviceVolumeChangeEventListener");
A4 a43 = this.d;
if (a43 != null) {
String str2 = AbstractC2565q5.a;
((B4) a43).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling registerDeviceVolumeChangeEventListener() request from creative; ")));
}
}
}
}
@JavascriptInterface
public final void registerHeadphonePluggedEventListener(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "registerHeadphonePluggedEventListener called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
if (str != null) {
try {
C2669y6 mediaProcessor = s9.getMediaProcessor();
if (mediaProcessor == null || mediaProcessor.f != null) {
return;
}
C2472j6 c2472j6 = new C2472j6(new C2617u6(mediaProcessor, str));
mediaProcessor.f = c2472j6;
c2472j6.b();
} catch (Exception e) {
this.a.a(str, "Unexpected error", "registerHeadphonePluggedEventListener");
A4 a43 = this.d;
if (a43 != null) {
String str2 = AbstractC2565q5.a;
((B4) a43).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling registerHeadphonePluggedEventListener() request from creative; ")));
}
}
}
}
@JavascriptInterface
public final void resize(final String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "resize called");
}
if (this.b != 1) {
if (this.a != null) {
new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override
public final void run() {
C2552p5.b(C2552p5.this, str);
}
});
return;
}
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
}
}
}
@JavascriptInterface
public final void saveBlob(String str, String str2) {
F1 f1;
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "saveBlob is called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
A4 a43 = s9.j;
if (a43 != null) {
((B4) a43).a(S9.O0, "saveBlob");
}
if (str2 == null || (f1 = s9.W) == null) {
return;
}
((AbstractC2637w0) f1).a(str2, s9.getImpressionId());
}
@JavascriptInterface
public final void saveContent(String str, String str2, String str3) {
String K;
if (str2 != null && str2.length() != 0 && str3 != null && str3.length() != 0) {
try {
this.a.b(str, str2, str3);
return;
} catch (Exception e) {
this.a.a(str, "Unexpected error", "saveContent");
A4 a4 = this.d;
if (a4 != null) {
String str4 = AbstractC2565q5.a;
((B4) a4).b(str4, Cc.a(e, A5.a(str4, "access$getTAG$p(...)", "SDK encountered unexpected error in handling saveContent() request from creative; ")));
return;
}
return;
}
}
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).a(AbstractC2565q5.a, "saveContent called with invalid parameters");
}
JSONObject jSONObject = new JSONObject();
if (str3 == null) {
str3 = "";
}
try {
jSONObject.put("url", str3);
jSONObject.put("reason", 8);
} catch (JSONException unused) {
}
K = kotlin.text.m.K(jSONObject.toString(), "\"", "\\\"", false, 4, null);
StringBuilder sb = new StringBuilder("sendSaveContentResult(\"saveContent_");
if (str2 == null) {
str2 = "";
}
sb.append(str2);
sb.append("\", 'failed', \"");
sb.append(K);
sb.append("\");");
this.a.a(str, sb.toString());
}
@JavascriptInterface
public final void setAdContext(String str, String str2) {
A4 a4 = this.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "setAdContext is called ", str2));
}
K adPodHandler = this.a.getAdPodHandler();
if (adPodHandler != null) {
((AbstractC2637w0) adPodHandler).d(str2);
}
}
@JavascriptInterface
public final void setCloseEndCardTracker(String str, String str2) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "setCloseEndCardTracker is called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
try {
s9.setCloseEndCardTracker(str2);
} catch (Exception e) {
this.a.a(str, "Unexpected error", "getDownloadStatus");
A4 a43 = this.d;
if (a43 != null) {
String str3 = AbstractC2565q5.a;
((B4) a43).b(str3, Cc.a(e, A5.a(str3, "access$getTAG$p(...)", "SDK encountered unexpected error in handling getDownloadStatus() request from creative; ")));
}
}
}
@JavascriptInterface
public final void setExpandProperties(String str, String str2) {
A4 a4 = this.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "setExpandProperties called. Params:", str2));
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
if (Intrinsics.d("Expanded", s9.getViewState())) {
A4 a43 = this.d;
if (a43 != null) {
((B4) a43).b(AbstractC2565q5.a, "setExpandProperties can't be called on an already expanded ad.");
return;
}
return;
}
try {
this.a.setExpandProperties(H3.a(str2));
} catch (Exception e) {
this.a.a(str, "Unexpected error", "setExpandProperties");
A4 a44 = this.d;
if (a44 != null) {
String str4 = AbstractC2565q5.a;
((B4) a44).b(str4, Cc.a(e, A5.a(str4, "access$getTAG$p(...)", "SDK encountered unexpected error in setExpandProperties(); ")));
}
}
}
@JavascriptInterface
public final void setOrientationProperties(String str, final String str2) {
A4 a4 = this.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "setOrientationProperties called: ", str2));
}
new Handler(this.a.getContainerContext().getMainLooper()).post(new Runnable() {
@Override
public final void run() {
C2552p5.c(C2552p5.this, str2);
}
});
}
@JavascriptInterface
public final void setResizeProperties(String str, String str2) {
C2504la c2504la;
String str3;
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "setResizeProperties called");
}
if (this.a == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
A4 a43 = this.d;
if (a43 != null) {
String str4 = AbstractC2565q5.a;
((B4) a43).a(str4, AbstractC2681z5.a(str4, "access$getTAG$p(...)", "setResizeProperties called. Properties:", str2));
}
C2504la resizeProperties = this.a.getResizeProperties();
C2504la.Companion.getClass();
try {
c2504la = (C2504la) new C2513m5().a(new JSONObject(str2), C2504la.class);
} catch (JSONException unused) {
}
if (c2504la != null) {
if (c2504la.b() == null) {
if (resizeProperties == null || (str3 = resizeProperties.b()) == null) {
str3 = C2504la.DEFAULT_POSITION;
}
c2504la.a(str3);
}
c2504la.a(resizeProperties != null ? resizeProperties.a() : true);
if (c2504la == null) {
this.a.a(str, "setResizeProperties", "All mandatory fields are not present");
}
this.a.setResizeProperties(c2504la);
}
c2504la = null;
if (c2504la == null) {
}
this.a.setResizeProperties(c2504la);
}
@JavascriptInterface
public final void showAd(String str, int i) {
}
@JavascriptInterface
public final void showAlert(String str, String str2) {
A4 a4 = this.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "showAlert: ", str2));
}
}
@JavascriptInterface
public final void showEndCard(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "showEndCard is called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
A4 a43 = s9.j;
if (a43 != null) {
((B4) a43).a(S9.O0, "showEndCardFromInterActive");
}
r referenceContainer = s9.getReferenceContainer();
if (referenceContainer instanceof M6) {
((M6) referenceContainer).p();
}
}
@JavascriptInterface
public final void storePicture(String str, String str2) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "storePicture is deprecated and no-op. ");
}
}
@JavascriptInterface
public final void submitAdReport(String str, String str2, String str3, String str4) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "submitAdReport called");
}
this.a.a(str2, str4, Intrinsics.d(str3, "1"));
}
@JavascriptInterface
public final String supports(String str, String str2) {
A4 a4 = this.d;
if (a4 != null) {
String str3 = AbstractC2565q5.a;
((B4) a4).a(str3, AbstractC2681z5.a(str3, "access$getTAG$p(...)", "Checking support for: ", str2));
}
return String.valueOf(this.a.f(str2));
}
@JavascriptInterface
public final long timeSinceShow(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "timeSinceShow is called");
}
S9 s9 = this.a;
A4 a42 = s9.j;
if (a42 != null) {
String str2 = S9.O0;
((B4) a42).c(str2, G9.a(s9, str2, "TAG", "timeSincePodShow "));
}
K k = s9.d0;
if (k != null) {
return ((AbstractC2637w0) k).A0();
}
return 0L;
}
@JavascriptInterface
public final void unregisterBackButtonPressedEventListener(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "unregisterBackButtonPressedEventListener called");
}
S9 s9 = this.a;
if (s9 == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
try {
A4 a43 = s9.j;
if (a43 != null) {
((B4) a43).a(S9.O0, "unregisterBackButtonPressedEventListener " + s9);
}
s9.H = null;
} catch (Exception e) {
this.a.a(str, "Unexpected error", "unregisterBackButtonPressedEventListener");
A4 a44 = this.d;
if (a44 != null) {
String str2 = AbstractC2565q5.a;
((B4) a44).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling unregisterBackButtonPressedEventListener() request from creative; ")));
}
}
}
@JavascriptInterface
public final void unregisterDeviceMuteEventListener(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "unregisterDeviceMuteEventListener called");
}
if (this.a == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
A4 a43 = this.d;
if (a43 != null) {
((B4) a43).a(AbstractC2565q5.a, "Unregister device mute event listener ...");
}
try {
C2669y6 mediaProcessor = this.a.getMediaProcessor();
if (mediaProcessor != null) {
C2472j6 c2472j6 = mediaProcessor.d;
if (c2472j6 != null) {
c2472j6.a();
}
mediaProcessor.d = null;
}
} catch (Exception e) {
this.a.a(str, "Unexpected error", "unRegisterDeviceMuteEventListener");
A4 a44 = this.d;
if (a44 != null) {
String str2 = AbstractC2565q5.a;
((B4) a44).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling unregisterDeviceMuteEventListener() request from creative; ")));
}
}
}
@JavascriptInterface
public final void unregisterDeviceVolumeChangeEventListener(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "unregisterDeviceVolumeChangeEventListener called");
}
if (this.a == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
A4 a43 = this.d;
if (a43 != null) {
((B4) a43).a(AbstractC2565q5.a, "Unregister device volume change listener ...");
}
try {
C2669y6 mediaProcessor = this.a.getMediaProcessor();
if (mediaProcessor != null) {
C2472j6 c2472j6 = mediaProcessor.e;
if (c2472j6 != null) {
c2472j6.a();
}
mediaProcessor.e = null;
}
} catch (Exception e) {
this.a.a(str, "Unexpected error", "unregisterDeviceVolumeChangeEventListener");
A4 a44 = this.d;
if (a44 != null) {
String str2 = AbstractC2565q5.a;
((B4) a44).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling unregisterDeviceVolumeChangeEventListener() request from creative; ")));
}
}
}
@JavascriptInterface
public final void unregisterHeadphonePluggedEventListener(String str) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "unregisterHeadphonePluggedEventListener called");
}
if (this.a == null) {
A4 a42 = this.d;
if (a42 != null) {
((B4) a42).b(AbstractC2565q5.a, "Found a null instance of render view!");
return;
}
return;
}
A4 a43 = this.d;
if (a43 != null) {
((B4) a43).a(AbstractC2565q5.a, "Unregister headphone plugged event listener ...");
}
try {
C2669y6 mediaProcessor = this.a.getMediaProcessor();
if (mediaProcessor != null) {
C2472j6 c2472j6 = mediaProcessor.f;
if (c2472j6 != null) {
c2472j6.a();
}
mediaProcessor.f = null;
}
} catch (Exception e) {
this.a.a(str, "Unexpected error", "unregisterHeadphonePluggedEventListener");
A4 a44 = this.d;
if (a44 != null) {
String str2 = AbstractC2565q5.a;
((B4) a44).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling unregisterHeadphonePluggedEventListener() request from creative; ")));
}
}
}
@JavascriptInterface
public final void useCustomClose(final String str, final boolean z) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "useCustomClose called:" + z);
}
new Handler(this.a.getContainerContext().getMainLooper()).post(new Runnable() {
@Override
public final void run() {
C2552p5.b(C2552p5.this, z, str);
}
});
}
@JavascriptInterface
public final void zoom(String str, final int i) {
A4 a4 = this.d;
if (a4 != null) {
((B4) a4).a(AbstractC2565q5.a, "zoom is called " + str + ' ' + i);
}
AbstractC2365bb.a(new Runnable() {
@Override
public final void run() {
C2552p5.a(C2552p5.this, i);
}
});
}
public static final void b(C2552p5 c2552p5) {
try {
c2552p5.a.n();
} catch (Exception e) {
A4 a4 = c2552p5.d;
if (a4 != null) {
String str = AbstractC2565q5.a;
((B4) a4).b(str, Cc.a(e, A5.a(str, "access$getTAG$p(...)", "SDK encountered unexpected error in getting/setting current position; ")));
}
}
}
public static final void a(C2552p5 c2552p5, String str, int i, String str2, float f, boolean z) {
try {
if (c2552p5.a.getEmbeddedBrowserJSCallbacks() == null) {
A4 a4 = c2552p5.d;
if (a4 != null) {
((B4) a4).b(AbstractC2565q5.a, "Found a null instance of EmbeddedBrowserJSCallback instance to customExpand");
return;
}
return;
}
A4 a42 = c2552p5.d;
if (a42 != null) {
((B4) a42).a(AbstractC2565q5.a, "Custom expand called. Url: " + str);
}
EnumC2524n3 enumC2524n3 = EnumC2524n3.values()[i];
if (enumC2524n3 == EnumC2524n3.a) {
if (c2552p5.a.getLandingPageHandler().a(str2, str) == 3) {
InterfaceC2537o3 embeddedBrowserJSCallbacks = c2552p5.a.getEmbeddedBrowserJSCallbacks();
if (embeddedBrowserJSCallbacks != null) {
((C2470j4) embeddedBrowserJSCallbacks).a(str, enumC2524n3, f, z, c2552p5.a.getViewTouchTimestamp(), c2552p5.a.m());
return;
}
return;
}
InterfaceC2537o3 embeddedBrowserJSCallbacks2 = c2552p5.a.getEmbeddedBrowserJSCallbacks();
if (embeddedBrowserJSCallbacks2 != null) {
C2498l4.a(((C2470j4) embeddedBrowserJSCallbacks2).a);
return;
}
return;
}
InterfaceC2537o3 embeddedBrowserJSCallbacks3 = c2552p5.a.getEmbeddedBrowserJSCallbacks();
if (embeddedBrowserJSCallbacks3 != null) {
((C2470j4) embeddedBrowserJSCallbacks3).a(str, enumC2524n3, f, z, c2552p5.a.getViewTouchTimestamp(), c2552p5.a.m());
}
} catch (Exception e) {
c2552p5.a.a(str2, "Unexpected error", "customExpand");
Z5.a((byte) 1, "InMobi", "Failed to custom expand ad; SDK encountered an unexpected error");
A4 a43 = c2552p5.d;
if (a43 != null) {
String str3 = AbstractC2565q5.a;
((B4) a43).b(str3, Cc.a(e, A5.a(str3, "access$getTAG$p(...)", "SDK encountered unexpected error in handling customExpand() request; ")));
}
}
}
public static final void b(C2552p5 c2552p5, String str) {
try {
c2552p5.a.l();
} catch (Exception e) {
c2552p5.a.a(str, "Unexpected error", "resize");
String str2 = AbstractC2565q5.a;
Z5.a((byte) 1, str2, "Could not resize ad; SDK encountered an unexpected error");
A4 a4 = c2552p5.d;
if (a4 != null) {
((B4) a4).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered an unexpected error in handling resize() request; ")));
}
}
}
public static final void c(C2552p5 c2552p5) {
try {
c2552p5.a.o();
} catch (Exception e) {
A4 a4 = c2552p5.d;
if (a4 != null) {
String str = AbstractC2565q5.a;
((B4) a4).b(str, Cc.a(e, A5.a(str, "access$getTAG$p(...)", "SDK encountered unexpected error in getting/setting default position; ")));
}
}
}
public static final void c(C2552p5 c2552p5, String str) {
C2405e9 orientationProperties = c2552p5.a.getOrientationProperties();
if (orientationProperties != null) {
C2405e9 c2405e9 = new C2405e9();
c2405e9.d = str;
try {
JSONObject jSONObject = new JSONObject(str);
c2405e9.b = jSONObject.optString("forceOrientation", orientationProperties.b);
c2405e9.a = jSONObject.optBoolean("allowOrientationChange", orientationProperties.a);
c2405e9.c = jSONObject.optString("direction", orientationProperties.c);
if (!Intrinsics.d(c2405e9.b, "portrait") && !Intrinsics.d(c2405e9.b, "landscape")) {
c2405e9.b = "none";
}
if (!Intrinsics.d(c2405e9.c, TtmlNode.LEFT) && !Intrinsics.d(c2405e9.c, "right")) {
c2405e9.c = "right";
}
} catch (JSONException unused) {
c2405e9 = null;
}
c2552p5.c = c2405e9;
}
C2405e9 c2405e92 = c2552p5.c;
if (c2405e92 != null) {
c2552p5.a.setOrientationProperties(c2405e92);
}
}
public static final void b(C2552p5 c2552p5, boolean z, String str) {
try {
c2552p5.a.e(z);
} catch (Exception e) {
c2552p5.a.a(str, "Unexpected error", "useCustomClose");
A4 a4 = c2552p5.d;
if (a4 != null) {
String str2 = AbstractC2565q5.a;
((B4) a4).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered internal error in handling useCustomClose() request from creative; ")));
}
}
}
public static final void a(C2552p5 c2552p5) {
if (c2552p5.a.getEmbeddedBrowserJSCallbacks() == null) {
A4 a4 = c2552p5.d;
if (a4 != null) {
((B4) a4).b(AbstractC2565q5.a, "Found a null instance of EmbeddedBrowserJSCallback instance to closeCustomExpand");
return;
}
return;
}
InterfaceC2537o3 embeddedBrowserJSCallbacks = c2552p5.a.getEmbeddedBrowserJSCallbacks();
if (embeddedBrowserJSCallbacks != null) {
C2498l4.a(((C2470j4) embeddedBrowserJSCallbacks).a);
}
}
public static final void a(C2552p5 c2552p5, String str) {
try {
r referenceContainer = c2552p5.a.getReferenceContainer();
if (referenceContainer != null) {
referenceContainer.a();
}
} catch (Exception e) {
c2552p5.a.a(str, "Unexpected error", "close");
Z5.a((byte) 1, "InMobi", "Failed to close ad; SDK encountered an unexpected error");
A4 a4 = c2552p5.d;
if (a4 != null) {
String str2 = AbstractC2565q5.a;
((B4) a4).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered an expected error in handling the close() request from creative; ")));
}
}
}
public static final void a(C2552p5 c2552p5, boolean z, String str) {
try {
c2552p5.a.d(z);
} catch (Exception e) {
c2552p5.a.a(str, "Unexpected error", "disableCloseRegion");
A4 a4 = c2552p5.d;
if (a4 != null) {
String str2 = AbstractC2565q5.a;
((B4) a4).b(str2, Cc.a(e, A5.a(str2, "access$getTAG$p(...)", "SDK encountered unexpected error in handling disableCloseRegion() request from creative; ")));
}
}
}
public static final void a(C2552p5 c2552p5, int i) {
c2552p5.a.setInitialScale(i);
}
}