Picsart v24.6版本的 MD5 值为:21a61631d94e54da68d2ad9268b8b9d9
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.applovin.impl.sdk.ad;
import android.graphics.Point;
import android.net.Uri;
import android.os.Bundle;
import android.view.MotionEvent;
import com.applovin.impl.adview.aa;
import com.applovin.impl.adview.j;
import com.applovin.impl.adview.m;
import com.applovin.impl.adview.w;
import com.applovin.impl.sdk.AppLovinAdBase;
import com.applovin.impl.sdk.af;
import com.applovin.impl.sdk.n;
import com.applovin.impl.sdk.utils.AppLovinSdkExtraParameterKey;
import com.applovin.impl.sdk.utils.CollectionUtils;
import com.applovin.impl.sdk.utils.JsonUtils;
import com.applovin.impl.sdk.utils.StringUtils;
import com.applovin.impl.sdk.utils.t;
import com.applovin.impl.sdk.x;
import com.applovin.sdk.AppLovinAdType;
import com.applovin.sdk.AppLovinSdkUtils;
import com.iab.omid.library.applovin.adsession.VerificationScriptResource;
import com.picsart.studio.apiv3.model.onboarding.OnBoardingComponentView;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public abstract class e extends AppLovinAdImpl {
private List<com.applovin.impl.sdk.d.a> aHA;
private List<com.applovin.impl.sdk.d.a> aHB;
private List<com.applovin.impl.sdk.d.a> aHC;
private List<com.applovin.impl.sdk.d.a> aHD;
private c aHE;
private final List<Uri> aHw;
private final AtomicBoolean aHx;
private final AtomicBoolean aHy;
private final AtomicReference<com.applovin.impl.sdk.b.c> aHz;
public enum a {
UNSPECIFIED,
DISMISS,
DO_NOT_DISMISS
}
public enum b {
DEFAULT,
ACTIVITY_PORTRAIT,
ACTIVITY_LANDSCAPE
}
public class c {
public final int aHN;
public final int aHO;
public final int aHP;
public final int aHQ;
public final int aHR;
private c() {
this.aHN = AppLovinSdkUtils.dpToPx(n.getApplicationContext(), e.this.Hw());
this.aHO = AppLovinSdkUtils.dpToPx(n.getApplicationContext(), e.this.Hx());
this.aHP = AppLovinSdkUtils.dpToPx(n.getApplicationContext(), e.this.Hy());
this.aHQ = AppLovinSdkUtils.dpToPx(n.getApplicationContext(), ((Integer) ((AppLovinAdBase) e.this).sdk.a(com.applovin.impl.sdk.c.b.aNV)).intValue());
this.aHR = AppLovinSdkUtils.dpToPx(n.getApplicationContext(), ((Integer) ((AppLovinAdBase) e.this).sdk.a(com.applovin.impl.sdk.c.b.aNU)).intValue());
}
}
public enum d {
RESIZE_ASPECT,
TOP,
BOTTOM,
LEFT,
RIGHT
}
public e(JSONObject jSONObject, JSONObject jSONObject2, com.applovin.impl.sdk.ad.b bVar, n nVar) {
super(jSONObject, jSONObject2, bVar, nVar);
this.aHw = CollectionUtils.synchronizedList();
this.aHx = new AtomicBoolean();
this.aHy = new AtomicBoolean();
this.aHz = new AtomicReference<>();
}
private List<Integer> GM() {
return getIntegerListFromAdObject("multi_close_style", null);
}
private String HT() {
String stringFromAdObject = getStringFromAdObject("video_end_url", null);
if (stringFromAdObject != null) {
return stringFromAdObject.replace("{CLCODE}", getClCode());
}
return null;
}
private j.a aQ(boolean z) {
return z ? j.a.WHITE_ON_TRANSPARENT : j.a.WHITE_ON_BLACK;
}
private String b(MotionEvent motionEvent, boolean z, boolean z2) {
String stringFromAdObject = getStringFromAdObject("click_tracking_url", null);
Map<String, String> c2 = c(motionEvent, z, z2);
if (stringFromAdObject != null) {
return StringUtils.replace(stringFromAdObject, c2);
}
return null;
}
private Map<String, String> c(MotionEvent motionEvent, boolean z, boolean z2) {
Point Y = com.applovin.impl.sdk.utils.h.Y(n.getApplicationContext());
HashMap hashMap = new HashMap(7);
hashMap.put("{CLCODE}", getClCode());
hashMap.put("{CLICK_X}", String.valueOf(motionEvent != null ? motionEvent.getRawX() : -1.0f));
hashMap.put("{CLICK_Y}", String.valueOf(motionEvent != null ? motionEvent.getRawY() : -1.0f));
hashMap.put("{SCREEN_WIDTH}", String.valueOf(Y.x));
hashMap.put("{SCREEN_HEIGHT}", String.valueOf(Y.y));
hashMap.put("{IS_VIDEO_CLICK}", String.valueOf(z));
hashMap.put("{IS_INSTALL}", String.valueOf(z2));
return hashMap;
}
public b GF() {
b bVar = b.DEFAULT;
String upperCase = getStringFromAdObject("ad_target", bVar.toString()).toUpperCase(Locale.ENGLISH);
return "ACTIVITY_PORTRAIT".equalsIgnoreCase(upperCase) ? b.ACTIVITY_PORTRAIT : "ACTIVITY_LANDSCAPE".equalsIgnoreCase(upperCase) ? b.ACTIVITY_LANDSCAPE : bVar;
}
public long GG() {
return getLongFromAdObject("close_delay", 0L);
}
public long GH() {
return TimeUnit.SECONDS.toMillis(getLongFromAdObject("close_delay_max_buffering_time_seconds", 5L));
}
public long GI() {
List<Integer> GJ = GJ();
long longFromAdObject = getLongFromAdObject("close_delay_graphic", (GJ == null || GJ.size() <= 0) ? 0L : GJ.get(0).intValue());
if (longFromAdObject == -1 || longFromAdObject == -2) {
return 0L;
}
return longFromAdObject;
}
public List<Integer> GJ() {
return getIntegerListFromAdObject("multi_close_delay_graphic", null);
}
public j.a GK() {
List<Integer> GM = GM();
int intFromAdObject = getIntFromAdObject("close_style", (GM == null || GM.size() <= 0) ? -1 : GM.get(0).intValue());
return intFromAdObject == -1 ? aQ(hasVideoUrl()) : gC(intFromAdObject);
}
public List<j.a> GL() {
List<Integer> GM = GM();
if (GM != null) {
ArrayList arrayList = new ArrayList(GM.size());
for (Integer num : GM) {
arrayList.add(gC(num.intValue()));
}
return arrayList;
}
return null;
}
public j.a GN() {
int intFromAdObject = getIntFromAdObject("skip_style", -1);
return intFromAdObject == -1 ? GK() : gC(intFromAdObject);
}
public boolean GO() {
return getBooleanFromAdObject("dismiss_on_skip", Boolean.FALSE);
}
public boolean GP() {
return getBooleanFromAdObject("fire_postbacks_from_webview", Boolean.FALSE);
}
public List<Uri> GQ() {
return this.aHw;
}
public String GR() {
return JsonUtils.getString(getJsonObjectFromAdObject("video_button_properties", null), "video_button_html_url", "");
}
public boolean GS() {
return JsonUtils.getBoolean(getJsonObjectFromAdObject("video_button_properties", null), "should_cache_video_button_html_url_contents", Boolean.FALSE).booleanValue();
}
public boolean GT() {
return JsonUtils.getBoolean(getJsonObjectFromAdObject("video_button_properties", null), "should_respect_whitelist_when_retrieving_video_button_html_from_url", Boolean.FALSE).booleanValue();
}
public String GU() {
JSONObject jsonObjectFromAdObject = getJsonObjectFromAdObject("video_button_properties", null);
return jsonObjectFromAdObject != null ? JsonUtils.getString(jsonObjectFromAdObject, "video_button_html", "") : "";
}
public boolean GV() {
return JsonUtils.getBoolean(getJsonObjectFromAdObject("video_button_properties", null), "should_cache_video_button_html_assets", Boolean.FALSE).booleanValue();
}
public w GW() {
return new w(getJsonObjectFromAdObject("video_button_properties", null), this.sdk);
}
public boolean GX() {
return getBooleanFromAdObject("video_clickable", Boolean.FALSE);
}
public boolean GY() {
return getBooleanFromAdObject("lock_current_orientation", Boolean.FALSE);
}
public boolean GZ() {
return getBooleanFromAdObject("bvde", (Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aSm));
}
public abstract void Gb();
public abstract String Gh();
public boolean Gj() {
this.sdk.Ci();
if (x.FL()) {
this.sdk.Ci().i("DirectAd", "Attempting to invoke isVideoStream() from base ad class");
return false;
}
return false;
}
public Uri Gm() {
this.sdk.Ci();
if (x.FL()) {
this.sdk.Ci().i("DirectAd", "Attempting to invoke getVideoUri() from base ad class");
return null;
}
return null;
}
public Uri Go() {
this.sdk.Ci();
if (x.FL()) {
this.sdk.Ci().i("DirectAd", "Attempting to invoke getClickDestinationUri() from base ad class");
return null;
}
return null;
}
public Uri Gp() {
this.sdk.Ci();
if (x.FL()) {
this.sdk.Ci().i("DirectAd", "Attempting to invoke getVideoClickDestinationUri() from base ad class");
return null;
}
return null;
}
public boolean HA() {
return getBooleanFromAdObject("lhs_skip_button", (Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aOH));
}
public long HB() {
long longFromAdObject = getLongFromAdObject("report_reward_duration", -1L);
if (longFromAdObject >= 0) {
return TimeUnit.SECONDS.toMillis(longFromAdObject);
}
return -1L;
}
public int HC() {
return getIntFromAdObject("report_reward_percent", -1);
}
public boolean HD() {
return getBooleanFromAdObject("report_reward_percent_include_close_delay", Boolean.TRUE);
}
public AtomicBoolean HE() {
return this.aHx;
}
public boolean HF() {
return getBooleanFromAdObject("respect_adview_fully_watched", Boolean.FALSE);
}
public boolean HG() {
return getBooleanFromAdObject("show_nia", Boolean.FALSE);
}
public String HH() {
return getStringFromAdObject("nia_title", "");
}
public String HI() {
return getStringFromAdObject("nia_message", "");
}
public String HJ() {
return getStringFromAdObject("nia_button_title", "");
}
public boolean HK() {
return getBooleanFromAdObject("avoms", Boolean.FALSE);
}
public boolean HL() {
return getBooleanFromAdObject("show_rewarded_interstitial_overlay_alert", Boolean.valueOf(AppLovinAdType.AUTO_INCENTIVIZED == getType()));
}
public String HM() {
return getStringFromAdObject("text_rewarded_inter_alert_title", "Watch a video to earn a reward!");
}
public String HN() {
return getStringFromAdObject("text_rewarded_inter_alert_body", "");
}
public String HO() {
return getStringFromAdObject("text_rewarded_inter_alert_ok_action", "OK!");
}
public List<com.applovin.impl.sdk.d.a> HP() {
List<com.applovin.impl.sdk.d.a> a2;
List<com.applovin.impl.sdk.d.a> list = this.aHA;
if (list != null) {
return list;
}
synchronized (this.adObjectLock) {
a2 = t.a("video_end_urls", this.adObject, getClCode(), HT(), this.sdk);
this.aHA = a2;
}
return a2;
}
public List<com.applovin.impl.sdk.d.a> HQ() {
List<com.applovin.impl.sdk.d.a> a2;
List<com.applovin.impl.sdk.d.a> list = this.aHB;
if (list != null) {
return list;
}
synchronized (this.adObjectLock) {
a2 = t.a("ad_closed_urls", this.adObject, getClCode(), (String) null, this.sdk);
this.aHB = a2;
}
return a2;
}
public List<com.applovin.impl.sdk.d.a> HR() {
List<com.applovin.impl.sdk.d.a> a2;
List<com.applovin.impl.sdk.d.a> list = this.aHC;
if (list != null) {
return list;
}
synchronized (this.adObjectLock) {
a2 = t.a("app_killed_urls", this.adObject, getClCode(), (String) null, this.sdk);
this.aHC = a2;
}
return a2;
}
public List<com.applovin.impl.sdk.d.a> HS() {
List<com.applovin.impl.sdk.d.a> a2;
List<com.applovin.impl.sdk.d.a> list = this.aHD;
if (list != null) {
return list;
}
synchronized (this.adObjectLock) {
a2 = t.a("imp_urls", this.adObject, getClCode(), null, null, HU(), GP(), this.sdk);
this.aHD = a2;
}
return a2;
}
public Map<String, String> HU() {
HashMap hashMap = new HashMap();
try {
hashMap.putAll(JsonUtils.toStringMap(getJsonObjectFromAdObject("http_headers_for_postbacks", new JSONObject())));
} catch (JSONException e) {
this.sdk.Ci();
if (x.FL()) {
this.sdk.Ci().c("DirectAd", "Failed to retrieve http headers forx postbacks", e);
}
}
if (getBooleanFromAdObject("use_webview_ua_for_postbacks", Boolean.FALSE)) {
hashMap.put("User-Agent", af.FW());
}
return hashMap;
}
public boolean HV() {
return getBooleanFromAdObject("playback_requires_user_action", Boolean.TRUE);
}
public String HW() {
String stringFromAdObject = getStringFromAdObject("base_url", "/");
if ("null".equalsIgnoreCase(stringFromAdObject)) {
return null;
}
return stringFromAdObject;
}
public String HX() {
return JsonUtils.getString(getJsonObjectFromAdObject("video_button_properties", null), "video_button_base_url", "/");
}
public boolean HY() {
return getBooleanFromAdObject("web_contents_debugging_enabled", Boolean.valueOf(t.al(n.getApplicationContext()) || t.ak(n.getApplicationContext()) || ((Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aSB)).booleanValue()));
}
public aa HZ() {
JSONObject jsonObjectFromAdObject = getJsonObjectFromAdObject("web_view_settings", null);
if (jsonObjectFromAdObject != null) {
return new aa(jsonObjectFromAdObject);
}
return null;
}
public int Ha() {
return getIntFromAdObject("countdown_length", 0);
}
public int Hb() {
return getColorFromAdObject("countdown_color", -922746881);
}
public a Hc() {
String stringFromAdObject = getStringFromAdObject("poststitial_dismiss_type", null);
if (StringUtils.isValidString(stringFromAdObject)) {
if ("dismiss".equalsIgnoreCase(stringFromAdObject)) {
return a.DISMISS;
}
if ("no_dismiss".equalsIgnoreCase(stringFromAdObject)) {
return a.DO_NOT_DISMISS;
}
}
return a.UNSPECIFIED;
}
public List<String> Hd() {
String stringFromAdObject = getStringFromAdObject("required_html_resources", null);
return stringFromAdObject != null ? CollectionUtils.explode(stringFromAdObject) : Collections.emptyList();
}
public List<String> He() {
String stringFromAdObject = getStringFromAdObject("resource_cache_prefix", null);
return stringFromAdObject != null ? CollectionUtils.explode(stringFromAdObject) : this.sdk.b(com.applovin.impl.sdk.c.b.aNq);
}
public boolean Hf() {
return getBooleanFromAdObject("sruifwvc", Boolean.FALSE);
}
public boolean Hg() {
return getBooleanFromAdObject("require_interaction_for_click", Boolean.FALSE);
}
public List<String> Hh() {
return getStringListFromAdObject("substrings_for_disabled_click_logic", Collections.emptyList());
}
public boolean Hi() {
return getBooleanFromAdObject("sscomt", Boolean.FALSE);
}
public String Hj() {
return getStringFromFullResponse("event_id", null);
}
public boolean Hk() {
return getBooleanFromAdObject("progress_bar_enabled", Boolean.FALSE);
}
public int Hl() {
return getColorFromAdObject("progress_bar_color", -922746881);
}
public int Hm() {
int V;
synchronized (this.adObjectLock) {
V = t.V(this.adObject);
}
return V;
}
public int Hn() {
synchronized (this.adObjectLock) {
try {
int i = JsonUtils.getInt(this.adObject, "graphic_completion_percent", -1);
if (i < 0 || i > 100) {
return 90;
}
return i;
} catch (Throwable th) {
throw th;
}
}
}
public int Ho() {
return getColorFromAdObject("postitial_progress_bar_color", -922746881);
}
public long Hp() {
return getLongFromAdObject("postitial_progress_bar_total_ms", -1L);
}
public int Hq() {
return getIntFromAdObject("poststitial_shown_forward_delay_millis", -1);
}
public int Hr() {
return getIntFromAdObject("poststitial_dismiss_forward_delay_millis", -1);
}
public boolean Hs() {
return getBooleanFromAdObject("should_apply_mute_setting_to_poststitial", Boolean.FALSE);
}
public boolean Ht() {
return getBooleanFromAdObject("should_forward_close_button_tapped_to_poststitial", Boolean.FALSE);
}
public boolean Hu() {
return getBooleanFromAdObject("forward_lifecycle_events_to_webview", Boolean.FALSE);
}
public c Hv() {
if (this.aHE == null) {
this.aHE = new c();
}
return this.aHE;
}
public int Hw() {
return getIntFromAdObject("close_button_size", ((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aOw)).intValue());
}
public int Hx() {
return getIntFromAdObject("close_button_top_margin", ((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aOx)).intValue());
}
public int Hy() {
return getIntFromAdObject("close_button_horizontal_margin", ((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aOv)).intValue());
}
public boolean Hz() {
return getBooleanFromAdObject("lhs_close_button", (Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aOu));
}
public int Ia() {
return getIntFromAdObject("whalt", t.c(getSize()) ? 1 : ((Boolean) this.sdk.a(com.applovin.impl.sdk.c.b.aSg)).booleanValue() ? 0 : -1);
}
public List<String> Ib() {
return CollectionUtils.explode(getStringFromAdObject("wls", ""));
}
public List<String> Ic() {
return CollectionUtils.explode(getStringFromAdObject("wlh", null));
}
public boolean Id() {
return getBooleanFromAdObject("custom_tabs_enabled", Boolean.FALSE);
}
public boolean Ie() {
return getBooleanFromAdObject("custom_tabs_client_warmup_enabled", Boolean.FALSE);
}
public List<String> If() {
return getStringListFromAdObject("custom_tabs_warmup_urls", Collections.emptyList());
}
public boolean Ig() {
return getBooleanFromAdObject("custom_tabs_should_track_events", Boolean.FALSE);
}
public m Ih() {
JSONObject jsonObjectFromAdObject = getJsonObjectFromAdObject("custom_tabs_settings", null);
if (jsonObjectFromAdObject != null) {
return new m(jsonObjectFromAdObject);
}
return null;
}
public Bundle Ii() {
Map hashMap = new HashMap();
try {
hashMap = JsonUtils.toStringMap(getJsonObjectFromAdObject("custom_tabs_http_headers", new JSONObject()));
} catch (JSONException e) {
this.sdk.Ci();
if (x.FL()) {
this.sdk.Ci().c("DirectAd", "Failed to retrieve http headers for Custom Tabs", e);
}
}
Bundle bundle = new Bundle();
for (Map.Entry entry : hashMap.entrySet()) {
bundle.putString((String) entry.getKey(), (String) entry.getValue());
}
if (getBooleanFromAdObject("custom_tabs_should_use_webview_ua", Boolean.FALSE)) {
bundle.putString("User-Agent", af.FW());
}
return bundle;
}
public List<com.applovin.impl.sdk.d.a> Ij() {
List<com.applovin.impl.sdk.d.a> a2;
synchronized (this.adObjectLock) {
a2 = t.a("custom_tabs_navigation_started_urls", this.adObject, getClCode(), (String) null, this.sdk);
}
return a2;
}
public List<com.applovin.impl.sdk.d.a> Ik() {
List<com.applovin.impl.sdk.d.a> a2;
synchronized (this.adObjectLock) {
a2 = t.a("custom_tabs_navigation_finished_urls", this.adObject, getClCode(), (String) null, this.sdk);
}
return a2;
}
public List<com.applovin.impl.sdk.d.a> Il() {
List<com.applovin.impl.sdk.d.a> a2;
synchronized (this.adObjectLock) {
a2 = t.a("custom_tabs_navigation_failed_urls", this.adObject, getClCode(), (String) null, this.sdk);
}
return a2;
}
public List<com.applovin.impl.sdk.d.a> Im() {
List<com.applovin.impl.sdk.d.a> a2;
synchronized (this.adObjectLock) {
a2 = t.a("custom_tabs_navigation_aborted_urls", this.adObject, getClCode(), (String) null, this.sdk);
}
return a2;
}
public List<com.applovin.impl.sdk.d.a> In() {
List<com.applovin.impl.sdk.d.a> a2;
synchronized (this.adObjectLock) {
a2 = t.a("custom_tabs_tab_shown_urls", this.adObject, getClCode(), (String) null, this.sdk);
}
return a2;
}
public List<com.applovin.impl.sdk.d.a> Io() {
List<com.applovin.impl.sdk.d.a> a2;
synchronized (this.adObjectLock) {
a2 = t.a("custom_tabs_tab_hidden_urls", this.adObject, getClCode(), (String) null, this.sdk);
}
return a2;
}
public Uri Ip() {
String stringFromAdObject = getStringFromAdObject("play_image", null);
if (StringUtils.isValidString(stringFromAdObject)) {
return Uri.parse(stringFromAdObject);
}
return null;
}
public Uri Iq() {
String stringFromAdObject = getStringFromAdObject("pause_image", null);
if (StringUtils.isValidString(stringFromAdObject)) {
return Uri.parse(stringFromAdObject);
}
return null;
}
public Uri Ir() {
String stringFromAdObject = getStringFromAdObject("mute_image", "https://assets.applovin.com/sound_off.png");
if (StringUtils.isValidString(stringFromAdObject)) {
return Uri.parse(stringFromAdObject);
}
return null;
}
public Uri Is() {
String stringFromAdObject = getStringFromAdObject("unmute_image", "https://assets.applovin.com/sound_on.png");
if (StringUtils.isValidString(stringFromAdObject)) {
return Uri.parse(stringFromAdObject);
}
return null;
}
public boolean It() {
String str = (String) myobfuscated.b0.b.n(this.sdk, AppLovinSdkExtraParameterKey.SHOULD_USE_EXOPLAYER);
return StringUtils.isValidString(str) ? Boolean.parseBoolean(str) : getBooleanFromAdObject("suep", Boolean.FALSE);
}
public boolean Iu() {
return getBooleanFromAdObject("upiosp", Boolean.FALSE);
}
public boolean Iv() {
return getBooleanFromAdObject("web_video", Boolean.FALSE);
}
public d Iw() {
String stringFromAdObject = getStringFromAdObject("video_gravity", null);
return OnBoardingComponentView.GRAVITY_TOP.equals(stringFromAdObject) ? d.TOP : OnBoardingComponentView.GRAVITY_BOTTOM.equals(stringFromAdObject) ? d.BOTTOM : OnBoardingComponentView.GRAVITY_LEFT.equals(stringFromAdObject) ? d.LEFT : OnBoardingComponentView.GRAVITY_RIGHT.equals(stringFromAdObject) ? d.RIGHT : d.RESIZE_ASPECT;
}
public List<com.applovin.impl.sdk.d.a> a(MotionEvent motionEvent, boolean z) {
List<com.applovin.impl.sdk.d.a> a2;
synchronized (this.adObjectLock) {
a2 = t.a("video_click_tracking_urls", this.adObject, c(motionEvent, true, z), null, HU(), GP(), this.sdk);
}
return a2.isEmpty() ? a(motionEvent, true, z) : a2;
}
public List<com.applovin.impl.sdk.d.a> a(MotionEvent motionEvent, boolean z, boolean z2) {
List<com.applovin.impl.sdk.d.a> a2;
synchronized (this.adObjectLock) {
a2 = t.a("click_tracking_urls", this.adObject, c(motionEvent, z, z2), b(motionEvent, z, z2), HU(), GP(), this.sdk);
}
return a2;
}
public void a(com.applovin.impl.sdk.b.c cVar) {
this.aHz.set(cVar);
}
public void aP(boolean z) {
try {
synchronized (this.adObjectLock) {
this.adObject.put("html_resources_cached", z);
}
} catch (Throwable unused) {
}
}
public void cV(String str) {
synchronized (this.adObjectLock) {
JsonUtils.putString(getJsonObjectFromAdObject("video_button_properties", null), "video_button_html", str);
}
}
public List<String> d(MotionEvent motionEvent, boolean z, boolean z2) {
List<String> stringListFromAdObject = getStringListFromAdObject("privacy_sandbox_click_attribution_urls", Collections.emptyList());
if (stringListFromAdObject.isEmpty()) {
return stringListFromAdObject;
}
Map<String, String> c2 = c(motionEvent, z, z2);
ArrayList arrayList = new ArrayList(stringListFromAdObject.size());
for (String str : stringListFromAdObject) {
arrayList.add(StringUtils.replace(str, c2));
}
return arrayList;
}
public j.a gC(int i) {
return i == 1 ? j.a.WHITE_ON_TRANSPARENT : i == 2 ? j.a.INVISIBLE : i == 3 ? j.a.TRANSPARENT_SKIP : j.a.WHITE_ON_BLACK;
}
public abstract com.applovin.impl.sdk.a.b getAdEventTracker();
public String getCachePrefix() {
return getStringFromAdObject("cache_prefix", null);
}
@Override
public Bundle getDirectDownloadParameters() {
return JsonUtils.toBundle(getJsonObjectFromAdObject("ah_parameters", null));
}
@Override
public String getDirectDownloadToken() {
return getStringFromAdObject("ah_dd_token", null);
}
@Override
public String getOpenMeasurementContentUrl() {
return getStringFromAdObject("omid_content_url", null);
}
@Override
public String getOpenMeasurementCustomReferenceData() {
return getStringFromAdObject("omid_custom_ref_data", "");
}
@Override
public List<VerificationScriptResource> getOpenMeasurementVerificationScriptResources() {
ArrayList arrayList = new ArrayList();
synchronized (this.adObjectLock) {
try {
JSONArray jSONArray = JsonUtils.getJSONArray(this.adObject, "omid_verification_script_resources", null);
if (jSONArray != null) {
for (int i = 0; i < jSONArray.length(); i++) {
JSONObject jSONObject = JsonUtils.getJSONObject(jSONArray, i, (JSONObject) null);
URL url = new URL(JsonUtils.getString(jSONObject, "url", null));
String string = JsonUtils.getString(jSONObject, "vendor_key", null);
String string2 = JsonUtils.getString(jSONObject, "parameters", null);
if (StringUtils.isValidString(string) && StringUtils.isValidString(string2)) {
arrayList.add(VerificationScriptResource.createVerificationScriptResourceWithParameters(string, url, string2));
} else {
arrayList.add(VerificationScriptResource.createVerificationScriptResourceWithoutParameters(url));
}
}
}
} catch (Throwable th) {
throw th;
}
}
return arrayList;
}
public List<String> getPrivacySandboxImpressionAttributionUrls() {
List<String> stringListFromAdObject = getStringListFromAdObject("privacy_sandbox_impression_attribution_urls", Collections.emptyList());
if (stringListFromAdObject.isEmpty()) {
return stringListFromAdObject;
}
ArrayList arrayList = new ArrayList(stringListFromAdObject.size());
String clCode = getClCode();
for (String str : stringListFromAdObject) {
arrayList.add(str.replace("{CLCODE}", clCode));
}
return arrayList;
}
@Override
public boolean isDirectDownloadEnabled() {
return StringUtils.isValidString(getDirectDownloadToken());
}
@Override
public abstract boolean isOpenMeasurementEnabled();
public void k(Uri uri) {
this.aHw.add(uri);
}
public void l(Uri uri) {
synchronized (this.adObjectLock) {
JsonUtils.putString(this.adObject, "play_image", uri.toString());
}
}
public void m(Uri uri) {
synchronized (this.adObjectLock) {
JsonUtils.putString(this.adObject, "pause_image", uri.toString());
}
}
public void n(Uri uri) {
synchronized (this.adObjectLock) {
JsonUtils.putString(this.adObject, "mute_image", uri.toString());
}
}
public void o(Uri uri) {
synchronized (this.adObjectLock) {
JsonUtils.putObject(this.adObject, "unmute_image", uri);
}
}
public boolean yw() {
return this.aHy.get();
}
public void yx() {
this.aHy.set(true);
}
public com.applovin.impl.sdk.b.c yy() {
return this.aHz.getAndSet(null);
}
}