Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
package com.mbridge.msdk.nativex.view.mbfullview;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.mbridge.msdk.foundation.tools.x;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
/* loaded from: classes4.dex */
public class BaseView extends RelativeLayout {
protected RelativeLayout a;
protected RelativeLayout b;
protected RelativeLayout c;
protected ImageView d;
protected TextView e;
protected ProgressBar f;
protected FrameLayout g;
protected LinearLayout h;
protected RelativeLayout i;
public a style;
public enum a {
FULL_TOP_VIEW,
FULL_MIDDLE_VIEW
}
public RelativeLayout getMBridgeFullClose() {
return this.c;
}
public ImageView getMBridgeFullIvClose() {
return this.d;
}
public ProgressBar getMBridgeFullPb() {
return this.f;
}
public RelativeLayout getMBridgeFullPlayContainer() {
return this.a;
}
public RelativeLayout getMBridgeFullPlayerParent() {
return this.b;
}
public TextView getMBridgeFullTvInstall() {
return this.e;
}
public a getStytle() {
return this.style;
}
public FrameLayout getmAnimationContent() {
return this.g;
}
public LinearLayout getmAnimationPlayer() {
return this.h;
}
public void setStytle(a aVar) {
this.style = aVar;
}
public BaseView(Context context) {
super(context);
View inflate = LayoutInflater.from(getContext()).inflate(x.a(getContext(), "mbridge_nativex_fullbasescreen", TtmlNode.TAG_LAYOUT), this);
this.i = (RelativeLayout) inflate;
if (inflate != null) {
this.a = (RelativeLayout) inflate.findViewById(x.a(getContext(), "mbridge_full_rl_playcontainer", "id"));
this.b = (RelativeLayout) inflate.findViewById(x.a(getContext(), "mbridge_full_player_parent", "id"));
this.c = (RelativeLayout) inflate.findViewById(x.a(getContext(), "mbridge_full_rl_close", "id"));
this.d = (ImageView) inflate.findViewById(x.a(getContext(), "mbridge_full_iv_close", "id"));
this.e = (TextView) inflate.findViewById(x.a(getContext(), "mbridge_full_tv_install", "id"));
this.f = (ProgressBar) inflate.findViewById(x.a(getContext(), "mbridge_full_pb_loading", "id"));
this.g = (FrameLayout) inflate.findViewById(x.a(getContext(), "mbridge_full_animation_content", "id"));
this.h = (LinearLayout) inflate.findViewById(x.a(getContext(), "mbridge_full_animation_player", "id"));
inflate.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
}
}
}

View File

@@ -0,0 +1,10 @@
package com.mbridge.msdk.nativex.view.mbfullview;
import android.content.Context;
/* loaded from: classes4.dex */
public class MBridgeFullView extends BaseView {
public MBridgeFullView(Context context) {
super(context);
}
}

View File

@@ -0,0 +1,58 @@
package com.mbridge.msdk.nativex.view.mbfullview;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.mbridge.msdk.foundation.tools.x;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
/* loaded from: classes4.dex */
public class MBridgeTopFullView extends BaseView {
public static final String INTERFACE_RESULT = MBridgeTopFullView.class.getName() + "WithResault";
protected ImageView j;
protected TextView k;
protected TextView l;
protected StarLevelLayoutView m;
public TextView getMBridgeFullViewDisplayDscription() {
return this.l;
}
public ImageView getMBridgeFullViewDisplayIcon() {
return this.j;
}
public TextView getMBridgeFullViewDisplayTitle() {
return this.k;
}
public StarLevelLayoutView getStarLevelLayoutView() {
return this.m;
}
public MBridgeTopFullView(Context context) {
super(context);
View inflate = LayoutInflater.from(getContext()).inflate(x.a(getContext(), "mbridge_nativex_fullscreen_top", TtmlNode.TAG_LAYOUT), this.i);
if (inflate != null) {
this.j = (ImageView) inflate.findViewById(x.a(getContext(), "mbridge_full_tv_display_icon", "id"));
this.k = (TextView) inflate.findViewById(x.a(getContext(), "mbridge_full_tv_display_title", "id"));
this.l = (TextView) inflate.findViewById(x.a(getContext(), "mbridge_full_tv_display_description", "id"));
this.m = (StarLevelLayoutView) inflate.findViewById(x.a(getContext(), "mbridge_full_tv_feeds_star", "id"));
this.l.setTextColor(-7829368);
inflate.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
updateLayoutParams();
}
}
public void updateLayoutParams() {
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -1);
layoutParams.addRule(10);
this.a.setLayoutParams(layoutParams);
RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(-1, -2);
layoutParams2.addRule(10);
this.b.setLayoutParams(layoutParams2);
}
}

View File

@@ -0,0 +1,44 @@
package com.mbridge.msdk.nativex.view.mbfullview;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.mbridge.msdk.foundation.tools.ak;
import com.mbridge.msdk.foundation.tools.x;
/* loaded from: classes4.dex */
public class StarLevelLayoutView extends LinearLayout {
public StarLevelLayoutView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public StarLevelLayoutView(Context context) {
super(context);
}
@SuppressLint({"NewApi"})
public StarLevelLayoutView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
public void setRating(int i) {
removeAllViews();
if (i == 0) {
i = 5;
}
for (int i2 = 0; i2 < 5; i2++) {
View imageView = new ImageView(getContext());
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
if (i2 < i) {
imageView.setBackgroundResource(x.a(getContext(), "mbridge_demo_star_sel", "drawable"));
} else {
imageView.setBackgroundResource(x.a(getContext(), "mbridge_demo_star_nor", "drawable"));
}
layoutParams.leftMargin = ak.a(getContext(), 7.0f);
addView(imageView, layoutParams);
}
}
}

View File

@@ -0,0 +1,223 @@
package com.mbridge.msdk.nativex.view.mbfullview;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.RectF;
import android.os.Handler;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.LinearInterpolator;
import android.widget.RelativeLayout;
import androidx.core.view.InputDeviceCompat;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.same.c.b;
import com.mbridge.msdk.foundation.same.c.c;
import com.mbridge.msdk.foundation.tools.ak;
import com.mbridge.msdk.foundation.tools.e;
import com.mbridge.msdk.foundation.tools.x;
import com.mbridge.msdk.nativex.view.mbfullview.BaseView;
import java.lang.ref.WeakReference;
/* loaded from: classes4.dex */
public class a {
private static volatile a b;
private WeakReference<Context> a;
private a(Context context) {
this.a = new WeakReference<>(context);
}
public static a a(Context context) {
if (b == null) {
synchronized (a.class) {
try {
if (b == null) {
b = new a(context);
}
} finally {
}
}
}
return b;
}
/* renamed from: com.mbridge.msdk.nativex.view.mbfullview.a$a, reason: collision with other inner class name */
public class C0212a implements c {
private WeakReference<MBridgeTopFullView> b;
@Override // com.mbridge.msdk.foundation.same.c.c
public final void onFailedLoad(String str, String str2) {
}
public C0212a(MBridgeTopFullView mBridgeTopFullView) {
this.b = new WeakReference<>(mBridgeTopFullView);
}
@Override // com.mbridge.msdk.foundation.same.c.c
public final void onSuccessLoad(Bitmap bitmap, String str) {
WeakReference<MBridgeTopFullView> weakReference = this.b;
if (weakReference == null || weakReference.get() == null) {
return;
}
this.b.get().getMBridgeFullViewDisplayIcon().setImageBitmap(a.a(a.this, bitmap, 25));
}
}
/* renamed from: com.mbridge.msdk.nativex.view.mbfullview.a$2, reason: invalid class name */
public static /* synthetic */ class AnonymousClass2 {
static final /* synthetic */ int[] a;
static {
int[] iArr = new int[BaseView.a.values().length];
a = iArr;
try {
iArr[BaseView.a.FULL_TOP_VIEW.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
a[BaseView.a.FULL_MIDDLE_VIEW.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}
public final void a(BaseView.a aVar, CampaignEx campaignEx, BaseView baseView) {
int i = AnonymousClass2.a[aVar.ordinal()];
if (i != 1) {
if (i != 2) {
return;
}
baseView.getMBridgeFullTvInstall().setText(campaignEx.getAdCall());
return;
}
MBridgeTopFullView mBridgeTopFullView = (MBridgeTopFullView) baseView;
if (mBridgeTopFullView != null) {
Context context = this.a.get();
if (context != null) {
b.a(context).a(campaignEx.getIconUrl(), new C0212a(mBridgeTopFullView));
}
mBridgeTopFullView.getMBridgeFullViewDisplayTitle().setText(campaignEx.getAppName());
mBridgeTopFullView.getMBridgeFullViewDisplayDscription().setText(campaignEx.getAppDesc());
mBridgeTopFullView.getMBridgeFullTvInstall().setText(campaignEx.getAdCall());
mBridgeTopFullView.getStarLevelLayoutView().setRating((int) campaignEx.getRating());
}
}
public final void a(boolean z, BaseView baseView, int i) {
RelativeLayout.LayoutParams layoutParams;
Context context = this.a.get();
if (context != null) {
if (z) {
layoutParams = new RelativeLayout.LayoutParams((int) (a(z) / 3.0f), ak.a(context, 45.0f));
layoutParams.addRule(11);
layoutParams.addRule(12);
layoutParams.bottomMargin = ak.a(context, 10.0f);
layoutParams.rightMargin = (e.a(context) && i == 0) ? ak.c(context) + ak.a(context, 8.0f) : ak.a(context, 8.0f);
} else {
layoutParams = new RelativeLayout.LayoutParams(-1, ak.a(context, 45.0f));
layoutParams.addRule(12);
}
baseView.getmAnimationContent().setLayoutParams(layoutParams);
}
}
private float a(boolean z) {
try {
Context context = this.a.get();
if (context == null) {
return 0.0f;
}
float h = ak.h(context);
return z ? h + ak.c(context) : h;
} catch (Throwable th) {
th.printStackTrace();
return 0.0f;
}
}
public final void a(final boolean z, boolean z2, final BaseView baseView) {
int parseColor = Color.parseColor("#ff264870");
baseView.getmAnimationPlayer().setBackgroundColor(parseColor);
Context context = this.a.get();
if (!z) {
if (baseView.style != BaseView.a.FULL_MIDDLE_VIEW) {
if (context != null) {
baseView.getmAnimationContent().setBackgroundResource(x.a(context, "mbridge_nativex_cta_por_pre", "drawable"));
baseView.getmAnimationPlayer().setBackgroundResource(x.a(context, "mbridge_nativex_cta_por_pre", "drawable"));
return;
}
return;
}
} else {
if (baseView.style == BaseView.a.FULL_TOP_VIEW && context != null) {
baseView.getmAnimationContent().setBackgroundResource(x.a(context, "mbridge_nativex_fullview_background", "drawable"));
baseView.getmAnimationPlayer().setBackgroundColor(parseColor);
}
if (z2) {
baseView.getmAnimationPlayer().getBackground().setAlpha(80);
} else {
baseView.getmAnimationPlayer().setBackgroundColor(Color.parseColor("#ff4c8fdf"));
baseView.getmAnimationPlayer().getBackground().setAlpha(200);
}
}
if (z2) {
new Handler().postDelayed(new Runnable() { // from class: com.mbridge.msdk.nativex.view.mbfullview.a.1
@Override // java.lang.Runnable
public final void run() {
baseView.getmAnimationPlayer().setBackgroundColor(Color.parseColor("#ff4c8fdf"));
baseView.getmAnimationPlayer().getBackground().setAlpha(z ? 200 : 255);
a.a(a.this, baseView.getmAnimationPlayer());
}
}, 1000L);
}
}
public final void a(View view, BaseView baseView) {
if (view == null || baseView == null) {
return;
}
view.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
baseView.i.addView(view);
}
public final void a(BaseView baseView, boolean z) {
if (baseView != null) {
baseView.setSystemUiVisibility(z ? 0 : InputDeviceCompat.SOURCE_TOUCHSCREEN);
}
}
public static /* synthetic */ Bitmap a(a aVar, Bitmap bitmap, int i) {
Bitmap createBitmap = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(createBitmap);
Paint paint = new Paint();
Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());
RectF rectF = new RectF(rect);
paint.setAntiAlias(true);
canvas.drawARGB(0, 0, 0, 0);
paint.setColor(-12434878);
bitmap.getWidth();
float f = i;
canvas.drawRoundRect(rectF, f, f, paint);
paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));
canvas.drawBitmap(bitmap, rect, rect, paint);
return createBitmap;
}
public static /* synthetic */ void a(a aVar, View view) {
if (view == null) {
return;
}
AlphaAnimation alphaAnimation = new AlphaAnimation(0.2f, 1.0f);
alphaAnimation.setDuration(800L);
alphaAnimation.setInterpolator(new LinearInterpolator());
alphaAnimation.setRepeatCount(2);
alphaAnimation.setRepeatMode(1);
view.startAnimation(alphaAnimation);
}
}