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

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,19 @@
package com.mbridge.msdk.nativex.view;
import android.content.Context;
import android.util.AttributeSet;
/* loaded from: classes4.dex */
public class MBMediaView extends BaseMBMediaView {
public static final /* synthetic */ int $r8$clinit = 0;
public MBMediaView(Context context) {
super(context);
this.a = true;
}
public MBMediaView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.a = true;
}
}

View File

@@ -0,0 +1,62 @@
package com.mbridge.msdk.nativex.view;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.LinearLayout;
import com.mbridge.msdk.foundation.tools.ak;
import com.mbridge.msdk.out.Frame;
import com.mbridge.msdk.out.NativeListener;
import java.util.List;
/* loaded from: classes4.dex */
public class MBNativeRollView extends LinearLayout {
private RollingBCView a;
private Context b;
private NativeListener.FilpListener c;
public interface a {
View a(Frame frame, int i);
}
public void setFilpListening(NativeListener.FilpListener filpListener) {
if (filpListener != null) {
this.c = filpListener;
this.a.setFilpListening(filpListener);
}
}
@SuppressLint({"NewApi"})
public MBNativeRollView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
public MBNativeRollView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.b = context;
RollingBCView rollingBCView = new RollingBCView(context);
this.a = rollingBCView;
addView(rollingBCView);
this.a.setLayoutParams(new LinearLayout.LayoutParams((int) (ak.j(context) * 0.9d), -2));
setClipChildren(false);
}
public MBNativeRollView(Context context) {
this(context, null);
}
public void setData(List<Frame> list, Context context, String str, a aVar) {
this.a.setData(list, context, str, aVar);
}
public void setFrameWidth(int i) {
this.a.setLayoutParams(new LinearLayout.LayoutParams(i, -2));
}
@Override // android.view.View
public boolean onTouchEvent(MotionEvent motionEvent) {
return this.a.dispatchTouchEvent(motionEvent);
}
}

View File

@@ -0,0 +1,975 @@
package com.mbridge.msdk.nativex.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.SurfaceTexture;
import android.graphics.drawable.AnimationDrawable;
import android.os.Handler;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.Surface;
import android.view.TextureView;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.DecelerateInterpolator;
import android.webkit.URLUtil;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import com.iab.omid.library.mmadbridge.adsession.AdSession;
import com.iab.omid.library.mmadbridge.adsession.FriendlyObstructionPurpose;
import com.iab.omid.library.mmadbridge.adsession.media.MediaEvents;
import com.mbridge.msdk.foundation.controller.c;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.ap;
import com.mbridge.msdk.foundation.tools.x;
import com.mbridge.msdk.out.Campaign;
import com.mbridge.msdk.playercommon.VideoNativePlayer;
import com.mbridge.msdk.playercommon.VideoPlayerStatusListener;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import com.mbridge.msdk.videocommon.view.MyImageView;
import java.io.File;
import java.util.Timer;
import java.util.TimerTask;
/* loaded from: classes4.dex */
public class MediaViewPlayerView extends LinearLayout implements VideoPlayerStatusListener {
private static Handler F = new Handler();
private String A;
private String B;
private CampaignEx C;
private com.mbridge.msdk.nativex.listener.a D;
private Timer E;
private com.mbridge.msdk.videocommon.download.a G;
private VideoNativePlayer H;
private a I;
private AdSession J;
private MediaEvents K;
private boolean L;
private boolean a;
private boolean b;
private boolean c;
private boolean d;
private boolean e;
private boolean f;
private boolean g;
private boolean h;
private boolean i;
private boolean j;
private boolean k;
private volatile int l;
private boolean m;
private boolean n;
private TextureView o;
private LinearLayout p;
private Surface q;
private ProgressBar r;
private MyImageView s;
private ImageView t;
private ImageView u;
private ImageView v;
private ImageView w;
private View x;
private AnimationDrawable y;
private AlphaAnimation z;
public boolean curIsFullScreen() {
return this.d;
}
public Campaign getCampaign() {
return this.C;
}
public boolean getIsActiviePause() {
return this.e;
}
@Override // com.mbridge.msdk.playercommon.VideoPlayerStatusListener
public void onBufferingEnd() {
}
@Override // com.mbridge.msdk.playercommon.VideoPlayerStatusListener
public void onBufferingStart(String str) {
}
public void setAllowLoopPlay(boolean z) {
this.j = z;
}
public void setIsActivePause(boolean z) {
this.e = z;
}
public void setMediaViewPlayListener(a aVar) {
this.I = aVar;
}
public void setOnMediaViewPlayerViewListener(com.mbridge.msdk.nativex.listener.a aVar) {
this.D = aVar;
}
public void setVideoEvents(MediaEvents mediaEvents) {
this.K = mediaEvents;
}
public MediaViewPlayerView(Context context) {
super(context);
this.a = false;
this.b = false;
this.c = false;
this.d = false;
this.e = false;
this.f = false;
this.g = false;
this.h = true;
this.i = false;
this.j = true;
this.k = false;
this.l = -1;
this.m = true;
this.n = true;
this.J = null;
this.K = null;
this.L = false;
a();
}
public MediaViewPlayerView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.a = false;
this.b = false;
this.c = false;
this.d = false;
this.e = false;
this.f = false;
this.g = false;
this.h = true;
this.i = false;
this.j = true;
this.k = false;
this.l = -1;
this.m = true;
this.n = true;
this.J = null;
this.K = null;
this.L = false;
a();
}
private void a() {
try {
c();
b();
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
}
}
private void b() {
VideoNativePlayer videoNativePlayer = new VideoNativePlayer();
this.H = videoNativePlayer;
videoNativePlayer.setSelfVideoFeedsPlayerListener(this);
}
private void c() {
try {
View inflate = LayoutInflater.from(getContext()).inflate(x.a(getContext(), "mbridge_nativex_playerview", TtmlNode.TAG_LAYOUT), (ViewGroup) null);
if (inflate != null) {
this.p = (LinearLayout) inflate.findViewById(x.a(getContext(), "mbridge_ll_loading", "id"));
TextureView textureView = (TextureView) inflate.findViewById(x.a(getContext(), "mbridge_textureview", "id"));
this.o = textureView;
textureView.setKeepScreenOn(true);
this.o.setSurfaceTextureListener(new b());
this.r = (ProgressBar) inflate.findViewById(x.a(getContext(), "mbridge_progress", "id"));
this.s = (MyImageView) inflate.findViewById(x.a(getContext(), "mbridge_iv_playend_pic", "id"));
this.t = (ImageView) inflate.findViewById(x.a(getContext(), "mbridge_iv_play", "id"));
this.u = (ImageView) inflate.findViewById(x.a(getContext(), "mbridge_iv_pause", "id"));
this.v = (ImageView) inflate.findViewById(x.a(getContext(), "mbridge_iv_sound", "id"));
this.x = inflate.findViewById(x.a(getContext(), "mbridge_view_cover", "id"));
ImageView imageView = (ImageView) inflate.findViewById(x.a(getContext(), "mbridge_iv_sound_animation", "id"));
this.w = imageView;
AnimationDrawable animationDrawable = (AnimationDrawable) imageView.getDrawable();
this.y = animationDrawable;
animationDrawable.start();
d();
addView(inflate, -1, -1);
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
public boolean initPlayerViewData(String str, CampaignEx campaignEx, boolean z, VideoPlayerStatusListener videoPlayerStatusListener, com.mbridge.msdk.videocommon.download.a aVar, String str2) {
try {
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
this.a = false;
}
if (TextUtils.isEmpty(str) || campaignEx == null) {
return false;
}
this.B = str;
this.b = z;
this.C = campaignEx;
this.G = aVar;
this.A = str2;
this.H.initParameter(campaignEx.getVideoUrlEncode(), true, this.j, this.s, videoPlayerStatusListener);
try {
CampaignEx campaignEx2 = this.C;
if (campaignEx2 != null) {
String imageUrl = campaignEx2.getImageUrl();
if (!ap.a(imageUrl) && getContext() != null) {
if (com.mbridge.msdk.foundation.same.c.b.a(getContext()).b(imageUrl)) {
Bitmap a2 = com.mbridge.msdk.foundation.same.c.b.a(c.m().c()).a(imageUrl);
MyImageView myImageView = this.s;
if (myImageView != null && a2 != null) {
myImageView.setImageUrl(imageUrl);
this.s.setImageBitmap(a2);
this.s.setVisibility(0);
}
} else {
com.mbridge.msdk.foundation.same.c.b.a(getContext()).a(imageUrl, new com.mbridge.msdk.foundation.same.c.c() { // from class: com.mbridge.msdk.nativex.view.MediaViewPlayerView.6
@Override // com.mbridge.msdk.foundation.same.c.c
public final void onFailedLoad(String str3, String str4) {
}
@Override // com.mbridge.msdk.foundation.same.c.c
public final void onSuccessLoad(Bitmap bitmap, String str3) {
if (MediaViewPlayerView.this.s == null || bitmap == null) {
return;
}
MediaViewPlayerView.this.s.setImageUrl(str3);
MediaViewPlayerView.this.s.setImageBitmap(bitmap);
}
});
}
}
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
this.a = true;
return true;
}
public void playVideo() {
MediaEvents mediaEvents;
try {
if (this.a && this.H != null) {
if (!this.g) {
e();
return;
}
if ((!TextUtils.isEmpty(this.B) && this.B.startsWith("http")) || this.B.startsWith("https")) {
this.B = m();
}
f();
this.H.play(getContext(), this.B, this.q);
if ((this.f || this.e) && (mediaEvents = this.K) != null) {
this.f = false;
mediaEvents.resume();
}
if (this.k) {
this.H.openSound();
} else {
this.H.closeSound();
}
this.c = false;
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
public void startOrPlayVideo() {
MediaEvents mediaEvents;
try {
if (!this.g) {
e();
return;
}
if (!hasPrepare()) {
playVideo();
return;
}
try {
if (this.H == null) {
return;
}
f();
if (this.i) {
this.H.start(this.q);
this.i = false;
} else {
this.H.start();
}
if ((this.f || this.e) && (mediaEvents = this.K) != null) {
this.f = false;
mediaEvents.resume();
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage(), th);
}
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
}
}
public void pause() {
try {
VideoNativePlayer videoNativePlayer = this.H;
if (videoNativePlayer != null) {
videoNativePlayer.pause();
this.f = true;
}
if (this.K != null) {
af.b("omsdk", "mediaviewplayerview pause");
this.K.pause();
}
h();
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
public void stop() {
try {
VideoNativePlayer videoNativePlayer = this.H;
if (videoNativePlayer != null) {
videoNativePlayer.stop();
}
h();
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
}
}
public void release() {
try {
VideoNativePlayer videoNativePlayer = this.H;
if (videoNativePlayer != null) {
videoNativePlayer.releasePlayer();
this.H = null;
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
public boolean hasPrepare() {
try {
VideoNativePlayer videoNativePlayer = this.H;
if (videoNativePlayer != null) {
return videoNativePlayer.hasPrepare();
}
return false;
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
return false;
}
}
public boolean isComplete() {
try {
VideoNativePlayer videoNativePlayer = this.H;
if (videoNativePlayer != null) {
return videoNativePlayer.isComplete();
}
return false;
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
return false;
}
}
public boolean isPlaying() {
try {
VideoNativePlayer videoNativePlayer = this.H;
if (videoNativePlayer != null) {
return videoNativePlayer.isPlaying();
}
return false;
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
return false;
}
}
public void openSound() {
this.k = true;
try {
if (this.H != null) {
this.v.setImageResource(x.a(getContext(), "mbridge_nativex_sound_open", "drawable"));
this.H.openSound();
}
try {
MediaEvents mediaEvents = this.K;
if (mediaEvents != null) {
mediaEvents.volumeChange(1.0f);
}
} catch (IllegalArgumentException e) {
af.a("OMSDK", e.getMessage());
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
public void closeSound() {
this.k = false;
try {
if (this.H != null) {
this.v.setImageResource(x.a(getContext(), "mbridge_nativex_sound_close", "drawable"));
this.H.closeSound();
}
try {
MediaEvents mediaEvents = this.K;
if (mediaEvents != null) {
mediaEvents.volumeChange(0.0f);
}
} catch (IllegalArgumentException e) {
af.a("OMSDK", e.getMessage());
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
public void setIsFrontDesk(boolean z) {
try {
VideoNativePlayer videoNativePlayer = this.H;
if (videoNativePlayer != null) {
videoNativePlayer.setIsFrontDesk(z);
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
public boolean halfLoadingViewisVisible() {
try {
VideoNativePlayer videoNativePlayer = this.H;
if (videoNativePlayer != null) {
return videoNativePlayer.loadingViewIsVisible();
}
return false;
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
return false;
}
}
public void setIsComplete(boolean z) {
try {
VideoNativePlayer videoNativePlayer = this.H;
if (videoNativePlayer != null) {
videoNativePlayer.setIsComplete(z);
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
public void setEnterFullScreen() {
try {
af.c("MediaViewPlayerView", "setEnterFullScreen");
this.d = true;
this.h = true;
this.v.setVisibility(0);
h();
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage(), th);
}
}
public void setExitFullScreen() {
try {
this.d = false;
this.c = false;
this.v.setVisibility(8);
g();
f();
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage(), th);
}
}
private void d() {
this.v.setOnClickListener(new View.OnClickListener() { // from class: com.mbridge.msdk.nativex.view.MediaViewPlayerView.1
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
try {
if (MediaViewPlayerView.this.k) {
MediaViewPlayerView.this.closeSound();
if (MediaViewPlayerView.this.D != null) {
MediaViewPlayerView.this.D.a();
}
} else {
MediaViewPlayerView.this.openSound();
if (MediaViewPlayerView.this.D != null) {
MediaViewPlayerView.this.D.b();
}
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
});
this.u.setOnClickListener(new View.OnClickListener() { // from class: com.mbridge.msdk.nativex.view.MediaViewPlayerView.2
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
try {
MediaViewPlayerView.this.pause();
MediaViewPlayerView.this.t.setVisibility(0);
MediaViewPlayerView.this.i();
MediaViewPlayerView.this.k();
if (MediaViewPlayerView.this.D != null) {
MediaViewPlayerView.this.D.c();
}
MediaViewPlayerView.this.e = true;
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage(), th);
}
}
});
this.t.setOnClickListener(new View.OnClickListener() { // from class: com.mbridge.msdk.nativex.view.MediaViewPlayerView.3
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
MediaViewPlayerView.this.onClickPlayButton();
}
});
}
public void onClickPlayButton() {
com.mbridge.msdk.nativex.listener.a aVar;
try {
f();
j();
setIsComplete(false);
if (this.f) {
this.H.play();
} else if (hasPrepare() && !this.c) {
af.c("MediaViewPlayerView", "startOrPlayVideo() hasPrepare():" + hasPrepare() + " mIsNeedToRepeatPrepare:" + this.c);
startOrPlayVideo();
} else {
af.c("MediaViewPlayerView", "点击播放 playVideo()");
this.H.replaySameSource(getContext(), this.B, this.q);
}
if (this.e && (aVar = this.D) != null) {
aVar.d();
}
this.e = false;
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage(), th);
}
}
public void onClickPlayerView() {
ImageView imageView;
try {
MyImageView myImageView = this.s;
if ((myImageView == null || myImageView.getVisibility() != 0) && isPlaying() && (imageView = this.u) != null) {
if (imageView.getVisibility() == 0) {
gonePauseView();
l();
return;
}
AlphaAnimation alphaAnimation = this.z;
if (alphaAnimation != null) {
alphaAnimation.cancel();
}
AlphaAnimation alphaAnimation2 = new AlphaAnimation(0.0f, 1.0f);
this.z = alphaAnimation2;
alphaAnimation2.setDuration(300L);
this.z.setInterpolator(new DecelerateInterpolator());
this.z.setAnimationListener(new Animation.AnimationListener() { // from class: com.mbridge.msdk.nativex.view.MediaViewPlayerView.4
@Override // android.view.animation.Animation.AnimationListener
public final void onAnimationRepeat(Animation animation) {
}
@Override // android.view.animation.Animation.AnimationListener
public final void onAnimationStart(Animation animation) {
}
@Override // android.view.animation.Animation.AnimationListener
public final void onAnimationEnd(Animation animation) {
MediaViewPlayerView.this.u.setVisibility(0);
MediaViewPlayerView.g(MediaViewPlayerView.this);
}
});
i();
this.x.startAnimation(this.z);
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
public void showPlayView() {
this.t.setVisibility(0);
}
public void gonePauseView() {
Handler handler = F;
if (handler != null) {
handler.post(new Runnable() { // from class: com.mbridge.msdk.nativex.view.MediaViewPlayerView.5
@Override // java.lang.Runnable
public final void run() {
try {
MediaViewPlayerView.this.k();
MediaViewPlayerView.this.j();
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
}
}
});
}
}
/* JADX INFO: Access modifiers changed from: private */
public void e() {
try {
this.s.setVisibility(0);
this.t.setVisibility(0);
i();
k();
this.r.setVisibility(8);
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
private void f() {
try {
this.s.setVisibility(8);
this.t.setVisibility(8);
j();
showProgressView(this.n);
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
private void g() {
ImageView imageView;
if (this.d || (imageView = this.w) == null || imageView.getVisibility() == 0 || !this.m) {
return;
}
this.w.setVisibility(0);
}
private void h() {
if (this.w.getVisibility() == 0) {
this.w.setVisibility(8);
}
}
public void showProgressView(boolean z) {
this.n = z;
ProgressBar progressBar = this.r;
if (progressBar != null) {
progressBar.setVisibility(z ? 0 : 4);
}
}
public void showSoundIndicator(boolean z) {
this.m = z;
if (z) {
g();
} else {
h();
}
}
/* JADX INFO: Access modifiers changed from: private */
public void i() {
this.x.setVisibility(0);
}
/* JADX INFO: Access modifiers changed from: private */
public void j() {
if (this.t.getVisibility() != 0) {
this.x.setVisibility(8);
}
}
/* JADX INFO: Access modifiers changed from: private */
public void k() {
this.u.setVisibility(8);
}
@Override // com.mbridge.msdk.playercommon.VideoPlayerStatusListener
public void onPlayStarted(int i) {
if (this.D == null || TextUtils.isEmpty(this.B)) {
return;
}
this.D.a(this.B);
}
@Override // com.mbridge.msdk.playercommon.VideoPlayerStatusListener
public void onPlayProgress(int i, int i2) {
try {
f();
g();
this.e = false;
this.c = false;
this.l = i;
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage(), th);
}
}
@Override // com.mbridge.msdk.playercommon.VideoPlayerStatusListener
public void onPlayCompleted() {
if (this.D != null && !TextUtils.isEmpty(this.B)) {
this.D.b(this.B);
}
a aVar = this.I;
if (aVar != null) {
aVar.a();
return;
}
try {
if (this.j) {
return;
}
this.c = true;
e();
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
}
}
@Override // com.mbridge.msdk.playercommon.VideoPlayerStatusListener
public void onPlayError(String str) {
try {
this.c = true;
e();
if (this.L) {
return;
}
this.H.play(getContext(), this.B, this.q);
this.L = true;
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
}
}
private void l() {
try {
Handler handler = F;
if (handler != null) {
handler.removeCallbacksAndMessages(null);
}
Timer timer = this.E;
if (timer != null) {
timer.cancel();
}
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
}
}
private String m() {
CampaignEx campaignEx;
String str;
try {
campaignEx = this.C;
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
}
if (campaignEx == null) {
return null;
}
try {
if (this.G == null) {
if (campaignEx.getAdType() != 287 && this.C.getAdType() != 94) {
str = this.C.getId() + this.C.getVideoUrlEncode() + this.C.getBidToken();
this.G = com.mbridge.msdk.videocommon.download.b.getInstance().a(this.A, str);
}
str = this.C.getRequestId() + this.C.getId() + this.C.getVideoUrlEncode();
this.G = com.mbridge.msdk.videocommon.download.b.getInstance().a(this.A, str);
}
} catch (Exception e2) {
af.b("MediaViewPlayerView", e2.getMessage());
}
com.mbridge.msdk.videocommon.download.a aVar = this.G;
if (aVar != null && aVar.k() == 5) {
String h = this.G.h();
if (new File(h).exists()) {
return h;
}
}
String videoUrlEncode = this.C.getVideoUrlEncode();
if (ap.b(videoUrlEncode)) {
return videoUrlEncode;
}
return null;
}
public static class a {
private MediaViewPlayerView a;
public a(MediaViewPlayerView mediaViewPlayerView) {
this.a = mediaViewPlayerView;
}
public void a() {
try {
MediaViewPlayerView mediaViewPlayerView = this.a;
if (mediaViewPlayerView == null || mediaViewPlayerView.j) {
return;
}
af.c("MediaViewPlayerView", "play end and display endcardView");
this.a.e();
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
}
}
}
public class b implements TextureView.SurfaceTextureListener {
@Override // android.view.TextureView.SurfaceTextureListener
public final void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {
}
private b() {
}
@Override // android.view.TextureView.SurfaceTextureListener
public final void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i2) {
try {
MediaViewPlayerView.this.q = new Surface(surfaceTexture);
MediaViewPlayerView.this.g = true;
MediaViewPlayerView.this.i = true;
if (MediaViewPlayerView.this.d) {
if (MediaViewPlayerView.this.h) {
MediaViewPlayerView.this.c = false;
MediaViewPlayerView.this.h = false;
}
if (!MediaViewPlayerView.this.isComplete() && !MediaViewPlayerView.this.e) {
MediaViewPlayerView.this.startOrPlayVideo();
return;
}
MediaViewPlayerView.this.e();
return;
}
if (MediaViewPlayerView.this.b) {
if (MediaViewPlayerView.this.hasPrepare() && MediaViewPlayerView.this.isComplete()) {
MediaViewPlayerView.this.e();
return;
}
MediaViewPlayerView.this.startOrPlayVideo();
return;
}
if (MediaViewPlayerView.this.hasPrepare() && !MediaViewPlayerView.this.isComplete()) {
MediaViewPlayerView.this.startOrPlayVideo();
return;
}
MediaViewPlayerView.this.e();
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
}
}
@Override // android.view.TextureView.SurfaceTextureListener
public final void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int i, int i2) {
af.c("MediaViewPlayerView", "onSurfaceTextureSizeChanged ");
}
@Override // android.view.TextureView.SurfaceTextureListener
public final boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) {
try {
if (MediaViewPlayerView.this.H != null && MediaViewPlayerView.this.H.isPlayIng()) {
MediaViewPlayerView.this.pause();
}
MediaViewPlayerView.this.c = true;
MediaViewPlayerView.this.g = false;
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
return true;
}
}
public void registerView(AdSession adSession) {
this.J = adSession;
if (adSession != null) {
adSession.registerAdView(this);
LinearLayout linearLayout = this.p;
FriendlyObstructionPurpose friendlyObstructionPurpose = FriendlyObstructionPurpose.OTHER;
adSession.addFriendlyObstruction(linearLayout, friendlyObstructionPurpose, null);
adSession.addFriendlyObstruction(this.r, friendlyObstructionPurpose, null);
MyImageView myImageView = this.s;
FriendlyObstructionPurpose friendlyObstructionPurpose2 = FriendlyObstructionPurpose.VIDEO_CONTROLS;
adSession.addFriendlyObstruction(myImageView, friendlyObstructionPurpose2, null);
adSession.addFriendlyObstruction(this.t, friendlyObstructionPurpose2, null);
adSession.addFriendlyObstruction(this.u, friendlyObstructionPurpose2, null);
adSession.addFriendlyObstruction(this.v, friendlyObstructionPurpose, null);
}
}
public void unregisterView() {
AdSession adSession = this.J;
if (adSession != null) {
adSession.removeAllFriendlyObstructions();
}
}
@Override // com.mbridge.msdk.playercommon.VideoPlayerStatusListener
public void onPlayProgressMS(int i, int i2) {
try {
ProgressBar progressBar = this.r;
if (progressBar == null || progressBar.getVisibility() != 0) {
return;
}
if (i2 > 0) {
this.r.setMax(i2);
}
if (i >= 0) {
this.r.setProgress(i + 1);
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
}
@Override // com.mbridge.msdk.playercommon.VideoPlayerStatusListener
public void onPlaySetDataSourceError(String str) {
try {
this.c = true;
try {
if (!URLUtil.isNetworkUrl(this.B)) {
String videoUrlEncode = this.C.getVideoUrlEncode();
if (ap.b(videoUrlEncode)) {
this.B = videoUrlEncode;
}
}
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage());
}
} catch (Exception e) {
af.b("MediaViewPlayerView", e.getMessage());
}
}
public static /* synthetic */ void g(MediaViewPlayerView mediaViewPlayerView) {
mediaViewPlayerView.l();
mediaViewPlayerView.E = new Timer();
mediaViewPlayerView.E.schedule(new TimerTask() { // from class: com.mbridge.msdk.nativex.view.MediaViewPlayerView.7
@Override // java.util.TimerTask, java.lang.Runnable
public final void run() {
try {
MediaViewPlayerView.this.gonePauseView();
} catch (Throwable th) {
af.b("MediaViewPlayerView", th.getMessage(), th);
}
}
}, 2000L);
}
}

View File

@@ -0,0 +1,85 @@
package com.mbridge.msdk.nativex.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import androidx.viewpager.widget.ViewPager;
import com.mbridge.msdk.nativex.adapter.RollingAdapter;
import com.mbridge.msdk.nativex.listener.RollingPagerListenrt;
import com.mbridge.msdk.nativex.view.MBNativeRollView;
import com.mbridge.msdk.out.Frame;
import com.mbridge.msdk.out.NativeListener;
import java.util.List;
/* loaded from: classes4.dex */
public class RollingBCView extends ViewPager {
private NativeListener.FilpListener FilpListening;
private boolean isReport;
private RollingPagerListenrt listenrt;
private MBNativeRollView.a mvinterface;
public void setFilpListening(NativeListener.FilpListener filpListener) {
this.FilpListening = filpListener;
}
private RollingBCView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.isReport = true;
this.listenrt = new RollingPagerListenrt();
setOffscreenPageLimit(1);
setClipChildren(false);
}
public RollingBCView(Context context) {
super(context);
this.isReport = true;
this.listenrt = new RollingPagerListenrt();
}
@Override // androidx.viewpager.widget.ViewPager, android.view.View
public void onMeasure(int i, int i2) {
if (View.MeasureSpec.getMode(i2) == Integer.MIN_VALUE) {
int i3 = 0;
for (int i4 = 0; i4 < getChildCount(); i4++) {
View childAt = getChildAt(i4);
childAt.measure(i, View.MeasureSpec.makeMeasureSpec(0, 0));
int measuredHeight = childAt.getMeasuredHeight();
if (measuredHeight > i3) {
i3 = measuredHeight;
}
if (measuredHeight > 10 && this.isReport) {
this.listenrt.reportRollBC(0);
this.isReport = false;
}
}
i2 = View.MeasureSpec.makeMeasureSpec(i3, 1073741824);
}
super.onMeasure(i, i2);
}
@Override // android.view.View
public void onWindowVisibilityChanged(int i) {
super.onWindowVisibilityChanged(i);
}
public void setData(List<Frame> list, Context context, String str, MBNativeRollView.a aVar) {
if (list == null || list.size() == 0) {
throw new NegativeArraySizeException("ad date is null or size is 0");
}
RollingAdapter rollingAdapter = new RollingAdapter(list);
if (aVar != null) {
rollingAdapter.setMvinterface(aVar);
}
setAdapter(rollingAdapter);
this.listenrt.setCampList(list, context, str);
NativeListener.FilpListener filpListener = this.FilpListening;
if (filpListener != null) {
this.listenrt.setFilpListening(filpListener);
}
setOnPageChangeListener(this.listenrt);
if (this.isReport) {
this.listenrt.reportRollBC(0);
this.isReport = false;
}
}
}

View File

@@ -0,0 +1,92 @@
package com.mbridge.msdk.nativex.view;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Base64;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.webkit.WebView;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.entity.n;
import com.mbridge.msdk.mbsignalcommon.windvane.WindVaneWebView;
import com.mbridge.msdk.mbsignalcommon.windvane.g;
import com.mbridge.msdk.nativex.listener.b;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class WindVaneWebViewForNV extends WindVaneWebView {
private static String e = "WindVaneWebViewForNV";
private b f;
private boolean g;
public void setBackListener(b bVar) {
this.f = bVar;
}
public void setInterceptTouch(boolean z) {
this.g = z;
}
public WindVaneWebViewForNV(Context context) {
super(context);
this.g = false;
}
public WindVaneWebViewForNV(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.g = false;
}
public WindVaneWebViewForNV(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
this.g = false;
}
@Override // com.mbridge.msdk.mbsignalcommon.windvane.WindVaneWebView, android.webkit.WebView, android.view.View
public boolean onTouchEvent(MotionEvent motionEvent) {
if (this.g) {
return false;
}
return super.onTouchEvent(motionEvent);
}
@Override // android.webkit.WebView, android.view.View, android.view.KeyEvent.Callback
public boolean onKeyDown(int i, KeyEvent keyEvent) {
b bVar;
if (i == 4 && (bVar = this.f) != null) {
bVar.a();
return true;
}
return super.onKeyDown(i, keyEvent);
}
public void webViewShow(CampaignEx campaignEx, String str) {
try {
g.a().a((WebView) this, "webviewshow", "");
n nVar = new n();
nVar.f(campaignEx.getRequestId());
nVar.g(campaignEx.getRequestIdNotice());
if (getContext() != null && getContext().getApplicationContext() != null) {
nVar.e(campaignEx.getId());
nVar.d(campaignEx.isMraid() ? n.a : n.b);
com.mbridge.msdk.foundation.same.report.g.d(nVar, getContext().getApplicationContext(), str);
}
} catch (Exception e2) {
e2.printStackTrace();
}
}
public void orientation(boolean z) {
try {
JSONObject jSONObject = new JSONObject();
if (z) {
jSONObject.put("orientation", "landscape");
} else {
jSONObject.put("orientation", "portrait");
}
g.a().a((WebView) this, "orientation", Base64.encodeToString(jSONObject.toString().getBytes(), 2));
} catch (Exception e2) {
e2.printStackTrace();
}
}
}

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);
}
}