- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
854 lines
21 KiB
Smali
854 lines
21 KiB
Smali
.class public abstract Lcom/mbridge/msdk/video/module/MBridgeBaseView;
|
|
.super Landroid/widget/RelativeLayout;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final TAG:Ljava/lang/String; = "MBridgeBaseView"
|
|
|
|
|
|
# instance fields
|
|
.field protected a:Landroid/content/Context;
|
|
|
|
.field protected b:Lcom/mbridge/msdk/foundation/entity/CampaignEx;
|
|
|
|
.field protected c:Landroid/view/LayoutInflater;
|
|
|
|
.field protected d:I
|
|
|
|
.field protected e:Z
|
|
|
|
.field protected f:F
|
|
|
|
.field protected g:F
|
|
|
|
.field protected h:Z
|
|
|
|
.field protected i:I
|
|
|
|
.field protected j:Z
|
|
|
|
.field protected k:I
|
|
|
|
.field protected l:I
|
|
|
|
.field public notifyListener:Lcom/mbridge/msdk/video/module/a/a;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 53
|
|
invoke-direct {p0, p1, v0}, Lcom/mbridge/msdk/video/module/MBridgeBaseView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
.line 69
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 p2, 0x1
|
|
|
|
iput p2, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->d:I
|
|
|
|
.line 39
|
|
new-instance v0, Lcom/mbridge/msdk/video/module/a/a/f;
|
|
|
|
invoke-direct {v0}, Lcom/mbridge/msdk/video/module/a/a/f;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->notifyListener:Lcom/mbridge/msdk/video/module/a/a;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->e:Z
|
|
|
|
iput p2, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->k:I
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->l:I
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->a:Landroid/content/Context;
|
|
|
|
.line 71
|
|
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->c:Landroid/view/LayoutInflater;
|
|
|
|
.line 72
|
|
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->init(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;ZIZII)V
|
|
.locals 1
|
|
|
|
.line 57
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 p2, 0x1
|
|
|
|
iput p2, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->d:I
|
|
|
|
.line 39
|
|
new-instance v0, Lcom/mbridge/msdk/video/module/a/a/f;
|
|
|
|
invoke-direct {v0}, Lcom/mbridge/msdk/video/module/a/a/f;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->notifyListener:Lcom/mbridge/msdk/video/module/a/a;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->e:Z
|
|
|
|
iput p2, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->k:I
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->l:I
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->a:Landroid/content/Context;
|
|
|
|
.line 59
|
|
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->c:Landroid/view/LayoutInflater;
|
|
|
|
iput-boolean p3, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->h:Z
|
|
|
|
iput p4, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->i:I
|
|
|
|
iput-boolean p5, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->j:Z
|
|
|
|
iput p6, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->k:I
|
|
|
|
iput p7, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->l:I
|
|
|
|
.line 65
|
|
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->init(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(I)Lorg/json/JSONObject;
|
|
.locals 4
|
|
|
|
.line 264
|
|
new-instance v0, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
|
|
|
|
.line 266
|
|
:try_start_0
|
|
new-instance v1, Lorg/json/JSONObject;
|
|
|
|
invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V
|
|
:try_end_0
|
|
.catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_2
|
|
|
|
.line 267
|
|
:try_start_1
|
|
sget-object v0, Lcom/mbridge/msdk/foundation/same/a;->h:Ljava/lang/String;
|
|
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/mbridge/msdk/foundation/controller/a;->c()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->f:F
|
|
|
|
invoke-static {v2, v3}, Lcom/mbridge/msdk/foundation/tools/ak;->b(Landroid/content/Context;F)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
|
|
|
|
.line 268
|
|
sget-object v0, Lcom/mbridge/msdk/foundation/same/a;->i:Ljava/lang/String;
|
|
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/mbridge/msdk/foundation/controller/a;->c()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
iget v3, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->g:F
|
|
|
|
invoke-static {v2, v3}, Lcom/mbridge/msdk/foundation/tools/ak;->b(Landroid/content/Context;F)I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
|
|
|
|
.line 270
|
|
sget-object v0, Lcom/mbridge/msdk/foundation/same/a;->m:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v0, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
|
|
:try_end_1
|
|
.catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
.line 272
|
|
:try_start_2
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object p1
|
|
|
|
iget p1, p1, Landroid/content/res/Configuration;->orientation:I
|
|
|
|
iput p1, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->d:I
|
|
:try_end_2
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 274
|
|
:try_start_3
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V
|
|
|
|
.line 276
|
|
:goto_0
|
|
sget-object p1, Lcom/mbridge/msdk/foundation/same/a;->k:Ljava/lang/String;
|
|
|
|
iget v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->d:I
|
|
|
|
invoke-virtual {v1, p1, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
|
|
|
|
.line 277
|
|
sget-object p1, Lcom/mbridge/msdk/foundation/same/a;->l:Ljava/lang/String;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/mbridge/msdk/foundation/tools/ak;->d(Landroid/content/Context;)F
|
|
|
|
move-result v0
|
|
|
|
float-to-double v2, v0
|
|
|
|
invoke-virtual {v1, p1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;D)Lorg/json/JSONObject;
|
|
:try_end_3
|
|
.catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_1
|
|
|
|
goto :goto_2
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
move-object v0, v1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_2
|
|
move-exception p1
|
|
|
|
.line 279
|
|
:goto_1
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V
|
|
|
|
move-object v1, v0
|
|
|
|
:goto_2
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final d()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 260
|
|
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->a(I)Lorg/json/JSONObject;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public defaultShow()V
|
|
.locals 2
|
|
|
|
const-string v0, "MBridgeBaseView"
|
|
|
|
const-string v1, "defaultShow"
|
|
|
|
.line 176
|
|
invoke-static {v0, v1}, Lcom/mbridge/msdk/foundation/tools/af;->a(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public filterFindViewId(ZLjava/lang/String;)I
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 113
|
|
invoke-virtual {p0, p2}, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->findDyID(Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
goto :goto_0
|
|
|
|
.line 115
|
|
:cond_0
|
|
invoke-virtual {p0, p2}, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->findID(Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public findColor(Ljava/lang/String;)I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->a:Landroid/content/Context;
|
|
|
|
.line 127
|
|
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "color"
|
|
|
|
invoke-static {v0, p1, v1}, Lcom/mbridge/msdk/foundation/tools/x;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public findDrawable(Ljava/lang/String;)I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->a:Landroid/content/Context;
|
|
|
|
.line 131
|
|
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "drawable"
|
|
|
|
invoke-static {v0, p1, v1}, Lcom/mbridge/msdk/foundation/tools/x;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public findDyID(Ljava/lang/String;)I
|
|
.locals 1
|
|
|
|
.line 103
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 104
|
|
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const/4 p1, -0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public findID(Ljava/lang/String;)I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->a:Landroid/content/Context;
|
|
|
|
.line 99
|
|
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "id"
|
|
|
|
invoke-static {v0, p1, v1}, Lcom/mbridge/msdk/foundation/tools/x;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public findLayout(Ljava/lang/String;)I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->a:Landroid/content/Context;
|
|
|
|
.line 123
|
|
invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "layout"
|
|
|
|
invoke-static {v0, p1, v1}, Lcom/mbridge/msdk/foundation/tools/x;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getCampaign()Lcom/mbridge/msdk/foundation/entity/CampaignEx;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->b:Lcom/mbridge/msdk/foundation/entity/CampaignEx;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getParentLinearLayoutParams()Landroid/widget/LinearLayout$LayoutParams;
|
|
.locals 2
|
|
|
|
.line 241
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
.line 242
|
|
instance-of v1, v0, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 243
|
|
check-cast v0, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getParentRelativeLayoutParams()Landroid/widget/RelativeLayout$LayoutParams;
|
|
.locals 2
|
|
|
|
.line 234
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
.line 235
|
|
instance-of v1, v0, Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 236
|
|
check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public abstract init(Landroid/content/Context;)V
|
|
.end method
|
|
|
|
.method public isLandscape()Z
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->a:Landroid/content/Context;
|
|
|
|
.line 180
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object v0
|
|
|
|
iget v0, v0, Landroid/content/res/Configuration;->orientation:I
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public varargs isNotNULL([Landroid/view/View;)Z
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 137
|
|
array-length v1, p1
|
|
|
|
move v2, v0
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_0
|
|
|
|
aget-object v3, p1, v2
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, v3
|
|
|
|
:cond_1
|
|
return v0
|
|
.end method
|
|
|
|
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
.locals 2
|
|
|
|
.line 77
|
|
iget v0, p1, Landroid/content/res/Configuration;->orientation:I
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->d:I
|
|
|
|
.line 78
|
|
invoke-super {p0, p1}, Landroid/view/View;->onConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
|
|
.line 79
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "onConfigurationChanged:"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget p1, p1, Landroid/content/res/Configuration;->orientation:I
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 1
|
|
|
|
.line 254
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->f:F
|
|
|
|
.line 255
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->g:F
|
|
|
|
.line 256
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onSelfConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
.locals 2
|
|
|
|
.line 83
|
|
iget v0, p1, Landroid/content/res/Configuration;->orientation:I
|
|
|
|
iput v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->d:I
|
|
|
|
.line 84
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "onSelfConfigurationChanged:"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget p1, p1, Landroid/content/res/Configuration;->orientation:I
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCampaign(Lcom/mbridge/msdk/foundation/entity/CampaignEx;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->b:Lcom/mbridge/msdk/foundation/entity/CampaignEx;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLayoutCenter(II)V
|
|
.locals 3
|
|
|
|
.line 184
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->getParentRelativeLayoutParams()Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
.line 185
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->getParentLinearLayoutParams()Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
const/16 v2, -0x3e7
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/16 v1, 0xd
|
|
|
|
.line 187
|
|
invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
if-eq p1, v2, :cond_0
|
|
|
|
.line 189
|
|
iput p1, v0, Landroid/widget/RelativeLayout$LayoutParams;->width:I
|
|
|
|
:cond_0
|
|
if-eq p2, v2, :cond_1
|
|
|
|
.line 192
|
|
iput p2, v0, Landroid/widget/RelativeLayout$LayoutParams;->height:I
|
|
|
|
.line 194
|
|
:cond_1
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-eqz v1, :cond_5
|
|
|
|
const/16 v0, 0x11
|
|
|
|
.line 196
|
|
iput v0, v1, Landroid/widget/LinearLayout$LayoutParams;->gravity:I
|
|
|
|
if-eq p1, v2, :cond_3
|
|
|
|
.line 198
|
|
iput p1, v1, Landroid/widget/LinearLayout$LayoutParams;->width:I
|
|
|
|
:cond_3
|
|
if-eq p2, v2, :cond_4
|
|
|
|
.line 201
|
|
iput p2, v1, Landroid/widget/LinearLayout$LayoutParams;->height:I
|
|
|
|
.line 203
|
|
:cond_4
|
|
invoke-virtual {p0, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
:cond_5
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLayoutParam(IIII)V
|
|
.locals 3
|
|
|
|
.line 208
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->getParentRelativeLayoutParams()Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
.line 209
|
|
invoke-virtual {p0}, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->getParentLinearLayoutParams()Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
move-result-object v1
|
|
|
|
const/16 v2, -0x3e7
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 211
|
|
iput p2, v0, Landroid/widget/RelativeLayout$LayoutParams;->topMargin:I
|
|
|
|
.line 212
|
|
iput p1, v0, Landroid/widget/RelativeLayout$LayoutParams;->leftMargin:I
|
|
|
|
if-eq p3, v2, :cond_0
|
|
|
|
.line 214
|
|
iput p3, v0, Landroid/widget/RelativeLayout$LayoutParams;->width:I
|
|
|
|
:cond_0
|
|
if-eq p4, v2, :cond_1
|
|
|
|
.line 217
|
|
iput p4, v0, Landroid/widget/RelativeLayout$LayoutParams;->height:I
|
|
|
|
.line 219
|
|
:cond_1
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 221
|
|
iput p2, v1, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I
|
|
|
|
.line 222
|
|
iput p1, v1, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I
|
|
|
|
if-eq p3, v2, :cond_3
|
|
|
|
.line 224
|
|
iput p3, v1, Landroid/widget/LinearLayout$LayoutParams;->width:I
|
|
|
|
:cond_3
|
|
if-eq p4, v2, :cond_4
|
|
|
|
.line 227
|
|
iput p4, v1, Landroid/widget/LinearLayout$LayoutParams;->height:I
|
|
|
|
.line 229
|
|
:cond_4
|
|
invoke-virtual {p0, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
:cond_5
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMatchParent()V
|
|
.locals 2
|
|
|
|
.line 150
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 152
|
|
new-instance v0, Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
invoke-direct {v0, v1, v1}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
|
|
|
|
.line 153
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 155
|
|
:cond_0
|
|
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
.line 156
|
|
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setNotifyListener(Lcom/mbridge/msdk/video/module/a/a;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->notifyListener:Lcom/mbridge/msdk/video/module/a/a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setWrapContent()V
|
|
.locals 2
|
|
|
|
.line 160
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, -0x2
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 162
|
|
new-instance v0, Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
invoke-direct {v0, v1, v1}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V
|
|
|
|
.line 163
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 165
|
|
:cond_0
|
|
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
.line 166
|
|
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|