Code with Finding: |
/*
* Decompiled with CFR 0_128.
*
* Could not load the following classes:
* android.app.Activity
* android.app.ProgressDialog
* android.content.ActivityNotFoundException
* android.content.Context
* android.content.Intent
* android.content.res.TypedArray
* android.net.ConnectivityManager
* android.net.Uri
* android.os.AsyncTask
* android.os.Bundle
* android.os.Handler
* android.os.Message
* android.os.Parcelable
* android.util.AttributeSet
* android.util.DisplayMetrics
* android.util.Log
* android.view.Display
* android.view.GestureDetector
* android.view.GestureDetector$OnGestureListener
* android.view.MotionEvent
* android.view.View
* android.view.View$OnTouchListener
* android.view.ViewGroup
* android.view.ViewGroup$LayoutParams
* android.view.ViewParent
* android.view.ViewTreeObserver
* android.view.ViewTreeObserver$OnGlobalLayoutListener
* android.view.Window
* android.view.WindowManager
* android.webkit.URLUtil
* android.webkit.WebBackForwardList
* android.webkit.WebChromeClient
* android.webkit.WebSettings
* android.webkit.WebSettings$PluginState
* android.webkit.WebView
* android.webkit.WebViewClient
* android.widget.FrameLayout
* android.widget.FrameLayout$LayoutParams
* android.widget.Toast
* com.ievyhrdnoniovof.AdActionHandler
* com.ievyhrdnoniovof.AdAssetController
* com.ievyhrdnoniovof.AdBrowser
* com.ievyhrdnoniovof.AdController$Dimensions
* com.ievyhrdnoniovof.AdController$PlayerProperties
* com.ievyhrdnoniovof.AdController$Properties
* com.ievyhrdnoniovof.AdDisplayController
* com.ievyhrdnoniovof.AdEncryption
* com.ievyhrdnoniovof.AdJSInterface
* com.ievyhrdnoniovof.AdListener
* com.ievyhrdnoniovof.AdLocationController
* com.ievyhrdnoniovof.AdLog
* com.ievyhrdnoniovof.AdNetworkController
* com.ievyhrdnoniovof.AdPlayer
* com.ievyhrdnoniovof.AdPlayerListener
* com.ievyhrdnoniovof.AdSensorController
* com.ievyhrdnoniovof.AdUtilityController
* com.ievyhrdnoniovof.AdView$1
* com.ievyhrdnoniovof.AdView$2
* com.ievyhrdnoniovof.AdView$3
* com.ievyhrdnoniovof.AdView$4
* com.ievyhrdnoniovof.AdView$5
* com.ievyhrdnoniovof.AdView$6
* com.ievyhrdnoniovof.AdView$7
* com.ievyhrdnoniovof.AdView$8
* com.ievyhrdnoniovof.AdView$ACTION
* com.ievyhrdnoniovof.AdView$AdChromeClient
* com.ievyhrdnoniovof.AdView$AdViewListener
* com.ievyhrdnoniovof.AdView$LoadAsync
* com.ievyhrdnoniovof.AdView$LoadInputStream
* com.ievyhrdnoniovof.AdView$ScrollEater
* com.ievyhrdnoniovof.AdView$ViewState
*/
package com.ievyhrdnoniovof;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.res.TypedArray;
import android.net.ConnectivityManager;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.Display;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.ViewTreeObserver;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.URLUtil;
import android.webkit.WebBackForwardList;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.FrameLayout;
import android.widget.Toast;
import com.ievyhrdnoniovof.AdActionHandler;
import com.ievyhrdnoniovof.AdAssetController;
import com.ievyhrdnoniovof.AdBrowser;
import com.ievyhrdnoniovof.AdController;
import com.ievyhrdnoniovof.AdDisplayController;
import com.ievyhrdnoniovof.AdEncryption;
import com.ievyhrdnoniovof.AdJSInterface;
import com.ievyhrdnoniovof.AdListener;
import com.ievyhrdnoniovof.AdLocationController;
import com.ievyhrdnoniovof.AdLog;
import com.ievyhrdnoniovof.AdNetworkController;
import com.ievyhrdnoniovof.AdPlayer;
import com.ievyhrdnoniovof.AdPlayerListener;
import com.ievyhrdnoniovof.AdRequest;
import com.ievyhrdnoniovof.AdSensorController;
import com.ievyhrdnoniovof.AdUtilityController;
import com.ievyhrdnoniovof.AdUtils;
import com.ievyhrdnoniovof.AdView;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.util.HashSet;
import java.util.Iterator;
public class AdView
extends WebView
implements ViewTreeObserver.OnGlobalLayoutListener {
private static final /* synthetic */ String A = "AD_PATH";
private static /* synthetic */ int[] C;
public static final String D = "action";
private static /* synthetic */ String E;
private static final /* synthetic */ int F = 1003;
private static final /* synthetic */ int G = 1004;
public static final String H = "player_properties";
private static final /* synthetic */ String I = "expand_properties";
private static final /* synthetic */ int J = 1007;
private static final /* synthetic */ int K = 1000;
private static final /* synthetic */ String M = "action";
public static final int P = 102;
protected static final int Q = 100;
private static final /* synthetic */ int S = 1005;
private static final /* synthetic */ String T = "_ormma_current";
private static final /* synthetic */ String U = "message";
protected static final int V = 101;
private static final /* synthetic */ int X = 1008;
private static final /* synthetic */ int Y = 1002;
private static final /* synthetic */ int Z = 1006;
private static final /* synthetic */ String a = "resize_height";
private static /* synthetic */ String c;
public static final String cA = "expand_url";
public static final String d = "expand_dimensions";
private static final /* synthetic */ int fA = 1001;
private static final /* synthetic */ int h = 1009;
private static final /* synthetic */ String j = "resize_width";
private static final /* synthetic */ String l = "LBAdView";
private static /* synthetic */ AdPlayer u;
private static /* synthetic */ Context w;
private /* synthetic */ String B;
private /* synthetic */ ProgressDialog L;
private /* synthetic */ int N;
private /* synthetic */ AdUtilityController O;
final WebView R;
private /* synthetic */ int W;
private /* synthetic */ ViewState b;
private /* synthetic */ boolean e;
private /* synthetic */ AdViewListener f;
private /* synthetic */ Handler g;
private /* synthetic */ int i;
private /* synthetic */ boolean k;
private /* synthetic */ int m;
WebViewClient n;
private /* synthetic */ GestureDetector o;
private /* synthetic */ boolean p;
private /* synthetic */ float q;
private /* synthetic */ AdController r;
private final /* synthetic */ HashSet s;
private /* synthetic */ int t;
WebChromeClient v;
private /* synthetic */ int x;
private /* synthetic */ AdListener y;
private /* synthetic */ String z;
static {
int[] arrn;
int[] arrn2 = arrn = new int[2];
arrn2[0] = 16843039;
arrn2[1] = 16843040;
C = arrn;
}
public AdView(Context context) {
super(context);
2 var2_2 = ViewState.H;
this.b = var2_2;
this.s = var2_2 = new 2();
var2_2 = new 2(this);
this.g = var2_2;
super(this);
this.n = var2_2;
this.R = this;
Context context2 = w;
super(this, context2);
this.v = var2_2;
w = context;
this.l();
}
public AdView(Context context, AttributeSet attributeSet) {
int n = -1;
super(context, attributeSet);
2 var4_4 = ViewState.H;
this.b = var4_4;
this.s = var4_4 = new 2();
var4_4 = new 2(this);
this.g = var4_4;
super(this);
this.n = var4_4;
this.R = this;
int[] arrn = w;
super(this, (Context)arrn);
this.v = var4_4;
this.l();
var4_4 = this.getContext();
arrn = C;
var4_4 = var4_4.obtainStyledAttributes(attributeSet, arrn);
arrn = null;
int n2 = var4_4.getDimensionPixelSize(0, n);
int n3 = var4_4.getDimensionPixelSize(1, n);
if (n2 > 0 && n3 > 0) {
AdUtilityController adUtilityController = this.O;
adUtilityController.setMaxSize(n2, n3);
}
var4_4.recycle();
}
public AdView(Context context, AdController adController, AdListener adListener) {
super(context);
2 var4_4 = ViewState.H;
this.b = var4_4;
this.s = var4_4 = new 2();
var4_4 = new 2(this);
this.g = var4_4;
super(this);
this.n = var4_4;
this.R = this;
Context context2 = w;
super(this, context2);
this.v = var4_4;
w = context;
this.r = adController;
this.y = adListener;
this.l();
}
public AdView(Context context, AdViewListener adViewListener) {
super(context);
2 var3_3 = ViewState.H;
this.b = var3_3;
this.s = var3_3 = new 2();
var3_3 = new 2(this);
this.g = var3_3;
super(this);
this.n = var3_3;
this.R = this;
Context context2 = w;
super(this, context2);
this.v = var3_3;
w = context;
this.setListener(adViewListener);
this.l();
}
public AdView(Context context, String string) {
super(context);
2 var3_3 = ViewState.H;
this.b = var3_3;
this.s = var3_3 = new 2();
var3_3 = new 2(this);
this.g = var3_3;
super(this);
this.n = var3_3;
this.R = this;
Context context2 = w;
super(this, context2);
this.v = var3_3;
w = context;
this.z = string;
this.l();
}
public AdView(Context context, String string, AdViewListener adViewListener) {
super(context);
2 var4_4 = ViewState.H;
this.b = var4_4;
this.s = var4_4 = new 2();
var4_4 = new 2(this);
this.g = var4_4;
super(this);
this.n = var4_4;
this.R = this;
Context context2 = w;
super(this, context2);
this.v = var4_4;
w = context;
this.z = string;
this.setListener(adViewListener);
this.l();
}
static /* synthetic */ int A(AdView adView, int n) {
adView.x = n;
return n;
}
static /* synthetic */ AdUtilityController A(AdView adView) {
return adView.O;
}
static /* synthetic */ String A(AdView adView, String string) {
adView.B = string;
return string;
}
/*
* Enabled aggressive block sorting
*/
private /* synthetic */ void C() {
AdView adView;
ViewState viewState = this.b;
ViewState viewState2 = ViewState.E;
if (viewState == viewState2) {
this.j();
adView = this;
} else {
viewState = this.b;
viewState2 = ViewState.d;
if (viewState == viewState2) {
this.G();
}
adView = this;
}
adView.invalidate();
this.O.deleteOldAds();
this.O.stopAllListeners();
this.L();
}
static /* synthetic */ void C(AdView adView) {
adView.G();
}
static /* synthetic */ ProgressDialog D(AdView adView) {
return adView.L;
}
static /* synthetic */ String D() {
return c;
}
static /* synthetic */ ViewState F(AdView adView) {
return adView.b;
}
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
private /* synthetic */ void F() {
synchronized (this) {
String string = c;
if (string == null) {
string = l;
Object object = this.O;
String string2 = "\u0014\nI\bV\u0004Q\u0016\u0014\nI\bV\u0004\u0015\u000fH";
string2 = AdEncryption.l((String)string2);
String string3 = "\u0006 \u0004?\b8\u001a}\u0006 \u0004?\b|\u0003!";
string3 = AdRequest.l(string3);
c = object = object.copyTextFromJarIntoAssetDir(string2, string3);
object = new Object();
string2 = null;
string3 = "\bh\u0006I\fK\u0011k\u0004O\r\u001bX\u001b";
string3 = AdEncryption.l((String)string3);
object = object.insert(0, string3);
string2 = c;
object = object.append(string2);
object = object.toString();
AdLog.d((String)string, (String)object);
}
return;
}
}
static /* synthetic */ AdController G(AdView adView) {
return adView.r;
}
private /* synthetic */ void G() {
Object object = this.f;
if (object != null) {
object = this.f;
object.onResizeClose();
}
object = new Object();
String string = AdEncryption.l((String)"\u0012R\u000b_\nLKT\u0017V\bZ\u0013R\u0000LK]\fI\u0000x\rZ\u000b\\\u0000~\u0013^\u000bOM@EH\u0011Z\u0011^_\u001bB_\u0000]\u0004N\tOB\u0017EH\fA\u0000\u0001E@EL\f_\u0011S_\u001b");
object = object.insert(0, string);
int n = this.W;
object = object.append(n);
string = AdRequest.l("Er");
object = object.append(string);
string = AdEncryption.l((String)"\r^\f\\\rO_\u001b");
object = object.append(string);
n = this.x;
object = object.append(n);
string = AdRequest.l("/");
object = object.append(string);
string = AdEncryption.l((String)"FL\u0000");
object = object.append(string).toString();
CharSequence charSequence = new CharSequence();
String string2 = AdRequest.l("1\u0005=\u001a7;7\u001a;\u00137\rhI;\u00078\f1\u001d;\u0006<Sr");
charSequence = charSequence.insert(0, string2).append((String)object).toString();
AdLog.d((String)l, (String)charSequence);
this.injectJavaScript((String)object);
this.L();
}
static /* synthetic */ AdViewListener I(AdView adView) {
return adView.f;
}
static /* synthetic */ String I() {
return E;
}
static /* synthetic */ float L(AdView adView) {
return adView.q;
}
private /* synthetic */ void L() {
ViewGroup.LayoutParams layoutParams = this.getLayoutParams();
int n = this.k;
if (n != 0) {
layoutParams.height = n = this.t;
layoutParams.width = n = this.m;
}
this.setVisibility(0);
this.requestLayout();
}
static /* synthetic */ int l(AdView adView, int n) {
adView.W = n;
return n;
}
static /* synthetic */ Handler l(AdView adView) {
return adView.g;
}
/*
* Enabled aggressive block sorting
*/
private /* synthetic */ FrameLayout l(AdController.Dimensions dimensions) {
View view;
View view2;
int n;
FrameLayout.LayoutParams layoutParams;
int n2;
ViewGroup viewGroup;
block2 : {
AdView adView;
view = this.getRootView();
int n3 = 16908290;
view = (FrameLayout)view.findViewById(n3);
viewGroup = (ViewGroup)this.getParent();
int n4 = dimensions.M;
n2 = dimensions.m;
layoutParams = new FrameLayout.LayoutParams(n4, n2);
layoutParams.topMargin = n4 = dimensions.k;
layoutParams.leftMargin = n4 = dimensions.E;
n = viewGroup.getChildCount();
n4 = 0;
view2 = null;
n2 = 0;
while (n4 < n) {
view2 = viewGroup.getChildAt(n2);
if (view2 == this) {
adView = this;
break block2;
}
n2 = n4 = n2 + 1;
}
adView = this;
}
adView.i = n2;
Context context = this.getContext();
super(context);
view2.setId(100);
int n5 = this.getWidth();
int n6 = this.getHeight();
super(n5, n6);
viewGroup.addView(view2, n2, (ViewGroup.LayoutParams)context);
viewGroup.removeView((View)this);
view2 = this.getContext();
super((Context)view2);
super(this);
viewGroup.setOnTouchListener((View.OnTouchListener)view2);
n2 = -1;
super(n2, n2);
viewGroup.setId(101);
n2 = dimensions.k;
n = dimensions.E;
viewGroup.setPadding(n2, n, 0, 0);
viewGroup.addView((View)this, (ViewGroup.LayoutParams)layoutParams);
view.addView((View)viewGroup, (ViewGroup.LayoutParams)view2);
return viewGroup;
}
static /* synthetic */ ViewState l(AdView adView, ViewState viewState) {
adView.b = viewState;
return viewState;
}
private /* synthetic */ void l() {
int n;
float f;
boolean bl = true;
String string = AdEncryption.l((String)"|\nR\u000b\\EO\n\u001b\fU\fO\fZ\tR\u001f^EV3R\u0000L");
AdLog.d((String)l, (String)string);
this.setScrollContainer(false);
this.setVerticalScrollBarEnabled(false);
this.setHorizontalScrollBarEnabled(false);
super(this);
Object object = new Object((GestureDetector.OnGestureListener)string);
this.o = object;
this.setBackgroundColor(0);
super();
object = this.getContext();
Object object2 = AdRequest.l("\u001e;\u00076\u0006%");
((WindowManager)object.getSystemService((String)object2)).getDefaultDisplay().getMetrics((DisplayMetrics)string);
this.q = f = string.density;
this.e = false;
this.getSettings().setJavaScriptEnabled(bl);
object = this.getSettings();
string = WebSettings.PluginState.ON;
object.setPluginState((WebSettings.PluginState)string);
this.getSettings().setDomStorageEnabled(bl);
object = this.n;
this.setWebViewClient((WebViewClient)object);
object = this.v;
this.setWebChromeClient((WebChromeClient)object);
string = this.getContext();
super(this, (Context)string);
this.O = object;
string = this.getContext();
super(this, (Context)string);
object2 = this.getContext();
super(this, (Context)object2);
Context context = this.getContext();
super(this, context);
Context context2 = this.getContext();
super(this, context2);
Object object3 = this.getContext();
super(this, (Context)object3);
object3 = this.O;
String string2 = AdEncryption.l((String)"*i(v$n\u0011R\tR\u0011B&T\u000bO\u0017T\tW\u0000I'I\f_\u0002^");
this.addJavascriptInterface(object3, string2);
object3 = AdRequest.l("\u001d;\u001f$\u0013(!\u001a7\u001d!*=\u0007&\u001b=\u0005>\f + \u00006\u000e7");
this.addJavascriptInterface(object, (String)object3);
object = AdEncryption.l((String)"*i(v$\fH\u0015W\u0004B&T\u000bO\u0017T\tW\u0000I'I\f_\u0002^");
this.addJavascriptInterface((Object)string, (String)object);
object = AdRequest.l("\u001d;\u001f$\u0013%=\n3\u001d;\u0006<*=\u0007&\u001b=\u0005>\f + \u00006\u000e7");
this.addJavascriptInterface(object2, (String)object);
object = AdEncryption.l((String)"*i(v$u\u0000O\u0012T\u0017P&T\u000bO\u0017T\tW\u0000I'I\f_\u0002^");
this.addJavascriptInterface((Object)context, (String)object);
object = AdRequest.l("\u001d;\u001f$\u0013:7\u0007!\u0006 *=\u0007&\u001b=\u0005>\f + \u00006\u000e7");
this.addJavascriptInterface((Object)context2, (String)object);
object = (Activity)w;
object2 = this.r;
context = this.y;
super((Context)object, (AdController)object2, (AdListener)context);
object = AdEncryption.l((String)"w't0o");
this.addJavascriptInterface((Object)string, (String)object);
this.F();
this.N = n = this.m();
this.getViewTreeObserver().addOnGlobalLayoutListener((ViewTreeObserver.OnGlobalLayoutListener)this);
string = AdRequest.l("??;\f%I\u001b\u0007;\u001d;\b>\u0000(\fr\n=\u0004\"\u00057\u001d7");
AdLog.d((String)l, (String)string);
}
private /* synthetic */ void l(Bundle bundle) {
Object object = (AdController.Dimensions)bundle.getParcelable(d);
CharSequence charSequence = bundle.getString(cA);
Object object2 = (AdController.Properties)bundle.getParcelable(I);
int n = URLUtil.isValidUrl((String)charSequence);
if (n != 0) {
this.loadUrl((String)charSequence);
}
charSequence = this.l((AdController.Dimensions)object);
n = object2.k;
if (n != 0) {
n = object2.l;
float f = object2.m * 255.0f;
int n2 = (int)f;
int n3 = 268435456;
n2 = n2 * n3 | n;
charSequence.setBackgroundColor(n2);
}
object2 = new Object();
charSequence = AdRequest.l("%\u0000<\r=\u001e|\u0006 \u0004?\b$\u00007\u001e|\u000f;\u001b7*:\b<\u000e7,$\f<\u001dz\u0012r\u001a&\b&\fhIu\f*\u00193\u00076\f6N~I!\u0000(\fhI)I%\u00006\u001d:Sr");
object2 = object2.insert(0, (String)charSequence);
float f = object.M;
float f2 = this.q;
int n4 = (int)(f / f2);
object2 = object2.append(n4);
charSequence = AdEncryption.l((String)"I\u001b");
object2 = object2.append((String)charSequence);
charSequence = AdRequest.l("\u00017\u00005\u0001&Sr");
object2 = object2.append((String)charSequence);
float f3 = object.m;
f = this.q;
int n5 = (int)(f3 /= f);
object = object2.append(n5);
object2 = AdEncryption.l((String)"F");
object = object.append((String)object2);
object2 = AdRequest.l("I/@i");
object = object.append((String)object2).toString();
object2 = l;
super();
String string = AdEncryption.l((String)"_\n~\u001dK\u0004U\u0001\u0001ER\u000bQ\u0000X\u0011R\nU_\u001b");
charSequence = charSequence.insert(0, string).append((String)object).toString();
AdLog.d((String)object2, (String)charSequence);
this.injectJavaScript((String)object);
object = this.f;
if (object != null) {
object = this.f;
object.onExpand();
}
this.b = object = ViewState.E;
}
static /* synthetic */ void l(AdView adView, Bundle bundle) {
adView.l(bundle);
}
static /* synthetic */ void l(AdView adView, InputStream inputStream, String string) {
adView.l(inputStream, string);
}
static /* synthetic */ void l(AdView adView, String string) {
adView.l(string);
}
private /* synthetic */ void l(InputStream inputStream, String string) {
Object[] arrobject = new Object[]();
String string2 = AdEncryption.l((String)"W\nZ\u0001r\u000bK\u0010O6O\u0017^\u0004VI\u001b\u0001Z\u0011ZE\u0006");
arrobject = arrobject.insert(0, string2).append(string).toString();
AdLog.d((String)l, (String)arrobject);
this.C();
LoadInputStream loadInputStream = new LoadInputStream(this, inputStream, string);
arrobject = new Void[]{};
loadInputStream.execute(arrobject);
}
private /* synthetic */ void l(String string) {
super.loadUrl(string);
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
private /* synthetic */ boolean l(Uri uri) {
boolean bl;
String string = uri.getScheme();
if (string == null) {
return false;
}
Object object = this.s;
Iterator iterator = object.iterator();
do {
if (!(bl = iterator.hasNext())) return false;
} while (!(bl = (object = (String)iterator.next()).equalsIgnoreCase(string)));
return true;
}
static /* synthetic */ boolean l(AdView adView, Uri uri) {
return adView.l(uri);
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
private /* synthetic */ int m() {
View view = this.getRootView();
int n = 16908290;
if ((view = view.findViewById(n)) == null) return -1;
return view.getHeight();
}
static /* synthetic */ String m(AdView adView) {
return adView.B;
}
AdPlayer A() {
AdPlayer adPlayer = u;
if (adPlayer != null) {
adPlayer = u;
adPlayer.releasePlayer();
}
Context context = this.getContext();
u = adPlayer = new AdPlayer(context);
return u;
}
public void addJavascriptObject(Object object, String string) {
this.addJavascriptInterface(object, string);
}
public void clearView() {
this.C();
super.clearView();
}
public void close() {
Activity activity = (Activity)w;
6 var2_2 = new 6(this);
activity.runOnUiThread((Runnable)var2_2);
}
public void deregisterProtocol(String string) {
if (string != null) {
HashSet hashSet = this.s;
String string2 = string.toLowerCase();
hashSet.remove(string2);
}
}
public void dump() {
}
public void expand(AdController.Dimensions dimensions, String string, AdController.Properties properties) {
Message message = this.g.obtainMessage(1004);
Bundle bundle = new Bundle();
bundle.putParcelable(d, (Parcelable)dimensions);
bundle.putString(cA, string);
bundle.putParcelable(I, (Parcelable)properties);
message.setData(bundle);
this.g.sendMessage(message);
}
public ConnectivityManager getConnectivityManager() {
Context context = this.getContext();
String string = AdEncryption.l((String)"\u0006T\u000bU\u0000X\u0011R\u0013R\u0011B");
return (ConnectivityManager)context.getSystemService(string);
}
public String getSize() {
StringBuilder stringBuilder = new StringBuilder();
String string = AdRequest.l(")I%\u00006\u001d:Sr");
stringBuilder = stringBuilder.insert(0, string);
float f = this.getWidth();
float f2 = this.q;
int n = (int)(f / f2);
stringBuilder = stringBuilder.append(n);
String string2 = AdEncryption.l((String)"I\u001b");
stringBuilder = stringBuilder.append(string2);
string2 = AdRequest.l("\u00017\u00005\u0001&Sr");
stringBuilder = stringBuilder.append(string2);
f = this.getHeight();
f2 = this.q;
n = (int)(f / f2);
stringBuilder = stringBuilder.append(n);
string2 = AdEncryption.l((String)"F");
return stringBuilder.append(string2).toString();
}
public String getState() {
return this.b.toString().toLowerCase();
}
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public void hide() {
Class[] arrclass = "\b<\r \u0006;\r|\u001e7\u000b9\u0000&G\u0005\f0?;\f%";
try {
arrclass = AdRequest.l((String)arrclass);
Class class_ = Class.forName((String)arrclass);
arrclass = "T\u000bk\u0004N\u0016^";
String string = AdEncryption.l((String)arrclass);
arrclass = null;
arrclass = null;
class_ = class_.getMethod(string, null);
arrclass = null;
arrclass = null;
class_.invoke((Object)this, null);
}
catch (Exception exception) {}
this.g.sendEmptyMessage(1002);
}
public void injectJavaScript(String string) {
if (string != null) {
Activity activity = (Activity)w;
1 var3_3 = new 1(this, string);
activity.runOnUiThread((Runnable)var3_3);
}
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
public boolean isExpanded() {
ViewState viewState = this.b;
ViewState viewState2 = ViewState.E;
if (viewState != viewState2) return false;
return true;
}
public boolean isPageFinished() {
return this.e;
}
protected void j() {
synchronized (this) {
this.resetContents();
CharSequence charSequence = new CharSequence();
int n = 0;
String string = null;
CharSequence charSequence2 = "\u0012R\u000b_\nLKT\u0017V\bZ\u0013R\u0000LK]\fI\u0000x\rZ\u000b\\\u0000~\u0013^\u000bOM@EH\u0011Z\u0011^_\u001bB_\u0000]\u0004N\tOB\u0017EH\fA\u0000\u0001E@EL\f_\u0011S_\u001b";
charSequence2 = AdEncryption.l((String)charSequence2);
charSequence = charSequence.insert(0, (String)charSequence2);
n = this.W;
charSequence = charSequence.append(n);
string = "Er";
string = AdRequest.l(string);
charSequence = charSequence.append(string);
string = "\r^\f\\\rO_\u001b";
string = AdEncryption.l((String)string);
charSequence = charSequence.append(string);
n = this.x;
charSequence = charSequence.append(n);
string = "/";
string = AdRequest.l(string);
charSequence = charSequence.append(string);
string = "FL\u0000";
string = AdEncryption.l((String)string);
charSequence = charSequence.append(string);
charSequence = charSequence.toString();
string = l;
super();
String string2 = "\n>\u0006!\f\u0017\u0011\"\b<\r7\rhI;\u00078\f1\u001d;\u0006<Sr";
string2 = AdRequest.l(string2);
charSequence2 = charSequence2.insert(0, string2);
charSequence2 = charSequence2.append((String)charSequence);
charSequence2 = charSequence2.toString();
Log.d((String)string, (String)charSequence2);
this.injectJavaScript((String)charSequence);
charSequence = ViewState.H;
this.b = charSequence;
charSequence = this.g;
n = 1005;
charSequence.sendEmptyMessage(n);
charSequence = null;
this.setVisibility(0);
return;
}
}
protected void l(View view) {
((ViewGroup)((Activity)this.getContext()).getWindow().getDecorView()).removeView(view);
this.requestLayout();
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
public void loadFile(File file, String string) {
FileInputStream fileInputStream;
try {
fileInputStream = new FileInputStream(file);
}
catch (Exception exception) {
StringBuilder stringBuilder = new StringBuilder();
String string2 = AdEncryption.l((String)"^\u0017I\n\u001b\u0012R\u0011SEW\nZ\u0001}\fW\u0000\u001bH\u001b");
StringBuilder stringBuilder2 = stringBuilder.insert(0, string2);
String string3 = exception.getMessage();
String string4 = stringBuilder2.append(string3).toString();
AdLog.e((String)l, (String)string4);
String string5 = l;
AdLog.printStackTrace((String)string5, (Exception)exception);
return;
}
this.l(fileInputStream, string);
do {
return;
break;
} while (true);
}
public void loadHTMLWrap(String string) {
Object object = this.O;
String string2 = E;
String string3 = c;
String string4 = string;
this.B = object = object.writeHTMLToDiskWrap(string, T, true, null, string2, string3);
object = new Object();
String string5 = AdRequest.l("4\u0000>\fhF}");
object = object.insert(0, string5);
string4 = this.B;
object = object.append(string4);
string4 = File.separator;
string4 = object.append(string4).append(T).toString();
object = (Activity)w;
super(this, string4);
object.runOnUiThread((Runnable)((Object)string5));
}
public void loadUrl(String string) {
this.loadUrl(string, false, null);
}
public void loadUrl(String string, String string2) {
this.loadUrl(string, false, string2);
}
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public void loadUrl(String string, boolean bl, String string2) {
Object[] arrobject = null;
boolean bl2 = URLUtil.isValidUrl((String)string);
if (!bl2) return;
if (!bl) {
this.e = false;
try {
LoadAsync loadAsync = new LoadAsync(this, string, string2);
arrobject = null;
arrobject = new Void[]{};
loadAsync.execute(arrobject);
}
catch (Exception exception) {}
}
super.loadUrl(string);
}
protected void onAttachedToWindow() {
int n = this.k;
if (n == 0) {
int n2;
ViewGroup.LayoutParams layoutParams = this.getLayoutParams();
this.t = n2 = layoutParams.height;
this.m = n = layoutParams.width;
n = 1;
this.k = n;
}
super.onAttachedToWindow();
}
protected void onDetachedFromWindow() {
this.O.stopAllListeners();
super.onDetachedFromWindow();
}
public void onGlobalLayout() {
int n;
String string = l;
String string2 = AdRequest.l("=\u0007\u0015\u0005=\u000b3\u0005\u001e\b+\u0006'\u001dr\n3\u0005>\f6");
AdLog.d((String)string, (String)string2);
boolean bl = this.p;
int n2 = this.p;
if (n2 == 0 && (n2 = this.N) >= 0 && (n2 = this.m()) >= 0 && (n2 = this.N) != (n = this.m())) {
bl = true;
string2 = AdEncryption.l((String)"L\fU\u0001T\u0012\u0015\nI\bV\u0004M\f^\u0012\u0015\u0003R\u0017^&S\u0004U\u0002^ M\u0000U\u0011\u0013\u001e\u001b\u000e^\u001cY\nZ\u0017_6O\u0004O\u0000\u0001EO\u0017N\u0000FL\u0000");
this.injectJavaScript(string2);
}
if ((n2 = (int)(this.p ? 1 : 0)) != 0 && (n2 = this.N) >= 0 && (n2 = this.m()) >= 0 && (n2 = this.N) == (n = this.m())) {
bl = false;
string = null;
string2 = AdRequest.l("\u001e;\u00076\u0006%G=\u001b?\u00043\u001f;\f%G4\u0000 \f\u0011\u00013\u00075\f\u0017\u001f7\u0007&A)I9\f+\u000b=\b \r\u0001\u001d3\u001d7Sr\u000f3\u0005!\f/@i");
this.injectJavaScript(string2);
}
if ((n2 = this.N) < 0) {
this.N = n2 = this.m();
}
this.p = bl;
}
public boolean onTouchEvent(MotionEvent motionEvent) {
GestureDetector gestureDetector = this.o;
int n = gestureDetector.onTouchEvent(motionEvent);
if (n != 0) {
n = 3;
motionEvent.setAction(n);
}
return super.onTouchEvent(motionEvent);
}
public void open(String string, boolean bl, boolean bl2, boolean bl3) {
Context context = this.getContext();
Intent intent = new Intent(context, AdBrowser.class);
CharSequence charSequence = new CharSequence();
String string2 = AdEncryption.l((String)"T\u0015^\u000b\u0001");
charSequence = charSequence.insert(0, string2).append(string).toString();
AdLog.d((String)l, (String)charSequence);
intent.putExtra("extra_url", string);
intent.putExtra("open_show_back", bl);
intent.putExtra("open_show_forward", bl2);
intent.putExtra("open_show_refresh", bl3);
intent.addFlags(268435456);
this.getContext().startActivity(intent);
}
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public void openMap(String string, boolean bl) {
String string2 = l;
StringBuilder stringBuilder = new StringBuilder();
int n = 0;
Uri uri = null;
String string3 = AdEncryption.l((String)"*K\u0000U\fU\u0002\u001b(Z\u0015\u001b0I\t\u001b");
String string4 = stringBuilder.insert(0, string3).append(string).toString();
AdLog.d((String)string2, (String)string4);
string = AdUtils.convert(string.trim());
if (!bl) {
string2 = this.z;
if (string2 != null) return;
string2 = this.getContext();
String string5 = AdEncryption.l((String)"~\u0017I\nI_\u001b\u000bTE|\nT\u0002W\u0000\u001b(Z\u0015HEz5rEp\u0000BEK\u0017T\u0013R\u0001^\u0001\u001b\u0003T\u0017\u001b\u0000V\u0007^\u0001_\u0000_EV\u0004K");
n = 1;
string2 = Toast.makeText((Context)string2, (CharSequence)string5, (int)n);
string2.show();
return;
}
try {
String string6 = "\b<\r \u0006;\r|\u0000<\u001d7\u0007&G3\n&\u0000=\u0007|?\u001b,\u0005";
String string7 = AdRequest.l(string6);
uri = Uri.parse((String)string);
super(string7, uri);
int n2 = 268435456;
string2.setFlags(n2);
Context context = this.getContext();
context.startActivity((Intent)string2);
return;
}
catch (ActivityNotFoundException activityNotFoundException) {
activityNotFoundException.printStackTrace();
return;
}
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
public void playAudio(String string, boolean n, boolean bl, boolean bl2, boolean bl3, String string2, String string3) {
AdController.PlayerProperties playerProperties = new AdController.PlayerProperties();
int n2 = n;
playerProperties.setProperties(false, (boolean)n, bl, bl3, bl2, string2, string3);
Bundle bundle = new Bundle();
String string4 = H;
Object object = cA;
String string5 = "action";
String string6 = ACTION.M.toString();
bundle.putString(string5, string6);
bundle.putString((String)object, string);
bundle.putParcelable(string4, (Parcelable)playerProperties);
boolean bl4 = playerProperties.isFullScreen();
if (bl4) {
try {
string4 = this.getContext();
object = AdActionHandler.class;
}
catch (ActivityNotFoundException activityNotFoundException) {
activityNotFoundException.printStackTrace();
return;
}
super((Context)string4, (Class)object);
playerProperties.putExtras(bundle);
bundle = this.getContext();
bundle.startActivity((Intent)playerProperties);
do {
return;
break;
} while (true);
}
playerProperties = this.g;
n2 = 1008;
playerProperties = playerProperties.obtainMessage(n2);
playerProperties.setData(bundle);
bundle = this.g;
bundle.sendMessage((Message)playerProperties);
}
public void playAudioImpl(Bundle bundle) {
AdController.PlayerProperties playerProperties = (AdController.PlayerProperties)bundle.getParcelable(H);
String string = bundle.getString(cA);
AdPlayer adPlayer = this.A();
adPlayer.setPlayData(playerProperties, string);
int n = 1;
super(n, n);
adPlayer.setLayoutParams((ViewGroup.LayoutParams)playerProperties);
((ViewGroup)this.getParent()).addView((View)adPlayer);
adPlayer.playAudio();
}
/*
* Enabled aggressive block sorting
* Enabled unnecessary exception pruning
* Enabled aggressive exception aggregation
*/
public void playVideo(String string, boolean bl, boolean bl2, boolean bl3, boolean bl4, AdController.Dimensions dimensions, String string2, String string3) {
boolean bl5;
StringBuilder stringBuilder = new StringBuilder();
Object object = AdRequest.l("\"\u00053\u0010\u0004\u00006\f=Er?;\r7\u0006r<\u0000%rDr");
String string4 = stringBuilder.insert(0, (String)object).append(string).toString();
AdLog.i((String)l, (String)string4);
Message message = this.g.obtainMessage(1007);
AdController.PlayerProperties playerProperties = new AdController.PlayerProperties();
playerProperties.setProperties(bl, bl2, bl3, false, bl4, string2, string3);
Bundle bundle = new Bundle();
String string5 = H;
object = "action";
bundle.putString(cA, string);
String string6 = ACTION.m.toString();
bundle.putString((String)object, string6);
bundle.putParcelable(string5, (Parcelable)playerProperties);
if (dimensions != null) {
string5 = d;
bundle.putParcelable(string5, (Parcelable)dimensions);
}
if (!(bl5 = playerProperties.isFullScreen())) {
if (dimensions == null) return;
message.setData(bundle);
playerProperties = this.g;
playerProperties.sendMessage(message);
return;
}
try {
string5 = this.getContext();
object = AdActionHandler.class;
super((Context)string5, (Class)object);
playerProperties.putExtras(bundle);
Context context = this.getContext();
context.startActivity((Intent)playerProperties);
return;
}
catch (ActivityNotFoundException activityNotFoundException) {
activityNotFoundException.printStackTrace();
return;
}
}
public void playVideoImpl(Bundle bundle) {
Object object = (AdController.PlayerProperties)bundle.getParcelable(H);
AdController.Dimensions dimensions = (AdController.Dimensions)bundle.getParcelable(d);
String string = bundle.getString(cA);
AdPlayer adPlayer = this.A();
adPlayer.setPlayData((AdController.PlayerProperties)object, string);
object = new Object();
String string2 = AdRequest.l("?;\r7\u0006r<\u0000%rDr");
object = object.insert(0, string2).append(string).toString();
AdLog.i((String)l, (String)object);
int n = dimensions.M;
int n2 = dimensions.m;
object = new Object(n, n2);
object.topMargin = n = dimensions.k;
object.leftMargin = n = dimensions.E;
adPlayer.setLayoutParams((ViewGroup.LayoutParams)object);
object = this.getContext();
super((Context)object);
7 var9_9 = new 7(this);
string.setOnTouchListener((View.OnTouchListener)var9_9);
string.setId(101);
int n3 = dimensions.k;
int n4 = dimensions.E;
string.setPadding(n3, n4, 0, 0);
object = (FrameLayout)this.getRootView().findViewById(16908290);
n2 = -1;
super(n2, n2);
object.addView((View)string, (ViewGroup.LayoutParams)dimensions);
string.addView((View)adPlayer);
this.setVisibility(4);
object = new Object(this);
adPlayer.setListener((AdPlayerListener)object);
adPlayer.playVideo();
}
public void raiseError(String string, String string2) {
Message message = this.g.obtainMessage(1009);
Bundle bundle = new Bundle();
bundle.putString(U, string);
bundle.putString("action", string2);
message.setData(bundle);
this.g.sendMessage(message);
}
public void registerProtocol(String string) {
if (string != null) {
HashSet hashSet = this.s;
String string2 = string.toLowerCase();
hashSet.add(string2);
}
}
public void removeListener() {
this.f = null;
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
public void resetContents() {
int n;
View view = this.getRootView();
int n2 = 16908290;
view = (FrameLayout)view.findViewById(n2);
View view2 = this.getRootView();
int n3 = 100;
view2 = (FrameLayout)view2.findViewById(n3);
View view3 = this.getRootView();
int n4 = 101;
view3 = (FrameLayout)view3.findViewById(n4);
ViewGroup viewGroup = (ViewGroup)view2.getParent();
view3.removeView((View)this);
view.removeView(view3);
this.L();
try {
n = this.i;
}
catch (Exception exception) {
return;
}
viewGroup.addView((View)this, n);
viewGroup.removeView(view2);
viewGroup.invalidate();
do {
return;
break;
} while (true);
}
public void resize(int n, int n2) {
Message message = this.g.obtainMessage(1000);
Bundle bundle = new Bundle();
bundle.putInt(j, n);
bundle.putInt(a, n2);
message.setData(bundle);
this.g.sendMessage(message);
}
public WebBackForwardList restoreState(Bundle bundle) {
CharSequence charSequence;
this.B = charSequence = bundle.getString(A);
super();
String string = AdRequest.l("4\u0000>\fhF}");
charSequence = charSequence.insert(0, string);
String string2 = this.B;
charSequence = charSequence.append(string2);
string2 = File.separator;
charSequence = charSequence.append(string2).append(T).toString();
super.loadUrl(charSequence);
return null;
}
public WebBackForwardList saveState(Bundle bundle) {
String string = this.B;
bundle.putString(A, string);
return null;
}
public void setListener(AdViewListener adViewListener) {
this.f = adViewListener;
}
public void setMapAPIKey(String string) {
this.z = string;
}
public void setMaxSize(int n, int n2) {
this.O.setMaxSize(n, n2);
}
public void show() {
this.g.sendEmptyMessage(1003);
}
}
|