整点视频 v3.3.0版本的 MD5 值为:cba0457dc37421eed445b30f92de25d3
以下内容为反编译后的 ODInformation.java 源代码,内容仅作参考
package com.kc.openset.sdk.dsp.information;
import android.app.Activity;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import com.jiagu.sdk.OSETSDKProtected;
import com.kc.openset.sdk.dsp.util.ODData;
import com.kc.openset.sdk.dsp.util.ODInformationListener;
import com.kc.openset.sdk.dsp.util.StateListener;
import com.kc.openset.sdk.dsp.util.g;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;
public class ODInformation {
private Activity a;
private int b;
private ODInformationListener c;
private int d;
private List<View> e;
private boolean f;
private final Handler g = new c(Looper.getMainLooper());
class a implements StateListener {
static {
OSETSDKProtected.interface11(674);
}
a() {
}
@Override
public native void isClick();
}
class b implements Callback {
final Activity a;
static {
OSETSDKProtected.interface11(675);
}
b(Activity activity) {
this.a = activity;
}
@Override
public native void onFailure(Call call, IOException iOException);
@Override
public native void onResponse(Call call, Response response);
}
class c extends Handler {
class a implements ViewTreeObserver.OnGlobalLayoutListener {
final View a;
final ODData.ODAdInfoBean b;
final int c;
static {
OSETSDKProtected.interface11(676);
}
a(View view, ODData.ODAdInfoBean oDAdInfoBean, int i) {
this.a = view;
this.b = oDAdInfoBean;
this.c = i;
}
@Override
public native void onGlobalLayout();
}
class b implements View.OnClickListener {
final ODData.ODAdInfoBean a;
final View b;
static {
OSETSDKProtected.interface11(677);
}
b(ODData.ODAdInfoBean oDAdInfoBean, View view) {
this.a = oDAdInfoBean;
this.b = view;
}
@Override
public native void onClick(View view);
}
c(Looper looper) {
super(looper);
}
@Override
public void handleMessage(Message message) {
super.handleMessage(message);
int i = message.what;
if (i == 1) {
for (int i2 = 0; i2 < ODInformation.d(ODInformation.this); i2++) {
ODData.ODAdInfoBean oDAdInfoBean = (ODData.ODAdInfoBean) message.obj;
ODInformation oDInformation = ODInformation.this;
View a2 = ODInformation.a(oDInformation, oDAdInfoBean, ODInformation.e(oDInformation), 3);
ODInformation.c(ODInformation.this).add(a2);
((View) ODInformation.c(ODInformation.this).get(i2)).getViewTreeObserver().addOnGlobalLayoutListener(new a(a2, oDAdInfoBean, i2));
((View) ODInformation.c(ODInformation.this).get(i2)).setOnClickListener(new b(oDAdInfoBean, a2));
}
ODInformation.f(ODInformation.this).loadSuccess(ODInformation.c(ODInformation.this));
} else if (i == 2) {
ODInformationListener f = ODInformation.f(ODInformation.this);
f.onError("" + message.arg1, (String) message.obj);
} else if (i == 3 && ((View) ODInformation.c(ODInformation.this).get(message.arg1)).getParent() != null) {
ODData.ODAdInfoBean oDAdInfoBean2 = (ODData.ODAdInfoBean) message.obj;
Map<String, Object> map = com.kc.openset.sdk.dsp.util.a.e;
if (map.get(oDAdInfoBean2.getMatId() + "show") == null) {
com.kc.openset.sdk.dsp.util.b.a().a("http://dsp.shenshiads.com/event/show", (ODData.ODAdInfoBean) message.obj);
g.a().a(oDAdInfoBean2, "曝光");
}
Map<String, Object> map2 = com.kc.openset.sdk.dsp.util.a.e;
map2.put(oDAdInfoBean2.getMatId() + "show", "111");
}
}
}
class d implements View.OnClickListener {
final ODData.ODAdInfoBean a;
final View b;
static {
OSETSDKProtected.interface11(679);
}
d(ODData.ODAdInfoBean oDAdInfoBean, View view) {
this.a = oDAdInfoBean;
this.b = view;
}
@Override
public native void onClick(View view);
}
static {
OSETSDKProtected.interface11(680);
}
private ODInformation() {
}
static native View a(ODInformation oDInformation, ODData.ODAdInfoBean oDAdInfoBean, int i, int i2);
private native View a(ODData.ODAdInfoBean oDAdInfoBean, int i, int i2);
private native ViewGroup.LayoutParams a(View view, int i, int i2, double d2, double d3, int i3);
static native List a(ODInformation oDInformation, List list);
private native void a(Activity activity, ODData.ODAdInfoBean oDAdInfoBean, View view);
static native void a(ODInformation oDInformation, Activity activity, ODData.ODAdInfoBean oDAdInfoBean, View view);
static native boolean a(ODInformation oDInformation);
static native boolean a(ODInformation oDInformation, boolean z);
static native Handler b(ODInformation oDInformation);
static native List c(ODInformation oDInformation);
static native int d(ODInformation oDInformation);
static native int e(ODInformation oDInformation);
static native ODInformationListener f(ODInformation oDInformation);
static native Activity g(ODInformation oDInformation);
public static native ODInformation getInstance();
public native void showInformation(Activity activity, int i, String str, int i2, ODInformationListener oDInformationListener);
}