Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    2. News

    1. Red Dead Redemption 2

      1. News
      2. Red Dead Online
      3. The Armadillo Inn
    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

MarjinaL -TR

[LCS Android] Resource Decoded | "Working Tree"

Recommended Posts

MarjinaL -TR

Documention for coder&modders... (maybe helpful..) - Some obcodes in the text.

 

How to change screen resolution and draw distance to Android GTA:LCS (?) And.. Radar&Hud's size? (why can't changing?) This game very sh*t... R*'s big fail... very buggy...

 

ActivityWrapper.smali

 

 

 

.class public Lcom/rockstargames/hal/ActivityWrapper;

.super Ljava/lang/Object;

 

 

# static fields

.field private static applicationContext:Landroid/content/Context;

 

.field private static atlasCache:Lcom/rockstargames/hal/TextureAtlasCache;

 

.field private static instance:Lcom/rockstargames/hal/ActivityWrapper;

 

.field private static layout:Lcom/rockstargames/hal/ContainerLayout;

 

.field private static linkedAccountResult:Ljava/lang/String;

 

.field private static mainActivity:Landroid/app/Activity;

 

.field private static scale:F

 

.field private static transitioning:Z

 

.field private static windowHeight:I

 

.field private static windowWidth:I

 

 

# direct methods

.method static constructor <clinit>()V

.registers 1

 

const/4 v0, 0x0

 

sput-boolean v0, Lcom/rockstargames/hal/ActivityWrapper;->transitioning:Z

 

const/high16 v0, 0x3f800000 # 1.0f

 

sput v0, Lcom/rockstargames/hal/ActivityWrapper;->scale:F

 

return-void

.end method

 

.method public constructor <init>()V

.registers 1

 

invoke-direct {p0}, Ljava/lang/Object;-><init>()V

 

return-void

.end method

 

.method public static IsDeviceAndroidTV()Z

.registers 2

 

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getActivity()Landroid/app/Activity;

 

move-result-object v0

 

const-string v1, "uimode"

 

invoke-virtual {v0, v1}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

 

move-result-object v0

 

check-cast v0, Landroid/app/UiModeManager;

 

invoke-virtual {v0}, Landroid/app/UiModeManager;->getCurrentModeType()I

 

move-result v0

 

const/4 v1, 0x4

 

if-ne v0, v1, :cond_15

 

const/4 v0, 0x1

 

:goto_14

return v0

 

:cond_15

const/4 v0, 0x0

 

goto :goto_14

.end method

 

.method public static SetLinkedAccountResult(Ljava/lang/String;)V

.registers 1

 

sput-object p0, Lcom/rockstargames/hal/ActivityWrapper;->linkedAccountResult:Ljava/lang/String;

 

return-void

.end method

 

.method static synthetic access$000(Lcom/rockstargames/hal/ActivityWrapper;)V

.registers 1

 

invoke-direct {p0}, Lcom/rockstargames/hal/ActivityWrapper;->runUpdateCallback()V

 

return-void

.end method

 

.method public static addUpdateCallback()V

.registers 4

 

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getActivity()Landroid/app/Activity;

 

move-result-object v0

 

invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

 

move-result-object v0

 

invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

 

move-result-object v0

 

new-instance v1, Lcom/rockstargames/hal/b;

 

invoke-direct {v1}, Lcom/rockstargames/hal/b;-><init>()V

 

const-wide/16 v2, 0x1e

 

invoke-virtual {v0, v1, v2, v3}, Landroid/view/View;->postDelayed(Ljava/lang/Runnable;J)Z

 

return-void

.end method

 

.method public static getActivity()Landroid/app/Activity;

.registers 1

 

sget-object v0, Lcom/rockstargames/hal/ActivityWrapper;->mainActivity:Landroid/app/Activity;

 

return-object v0

.end method

 

.method public static getApplicationContext()Landroid/content/Context;

.registers 1

 

sget-object v0, Lcom/rockstargames/hal/ActivityWrapper;->applicationContext:Landroid/content/Context;

 

return-object v0

.end method

 

.method public static getFreeMemoryBytes()J

.registers 2

 

invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

 

move-result-object v0

 

invoke-virtual {v0}, Ljava/lang/Runtime;->freeMemory()J

 

move-result-wide v0

 

return-wide v0

.end method

 

.method public static getInstance()Lcom/rockstargames/hal/ActivityWrapper;

.registers 1

 

sget-object v0, Lcom/rockstargames/hal/ActivityWrapper;->instance:Lcom/rockstargames/hal/ActivityWrapper;

 

if-nez v0, :cond_b

 

new-instance v0, Lcom/rockstargames/hal/ActivityWrapper;

 

invoke-direct {v0}, Lcom/rockstargames/hal/ActivityWrapper;-><init>()V

 

sput-object v0, Lcom/rockstargames/hal/ActivityWrapper;->instance:Lcom/rockstargames/hal/ActivityWrapper;

 

:cond_b

sget-object v0, Lcom/rockstargames/hal/ActivityWrapper;->instance:Lcom/rockstargames/hal/ActivityWrapper;

 

return-object v0

.end method

 

.method public static getLayout()Landroid/view/ViewGroup;

.registers 1

 

sget-object v0, Lcom/rockstargames/hal/ActivityWrapper;->layout:Lcom/rockstargames/hal/ContainerLayout;

 

return-object v0

.end method

 

.method public static getManagedStaticCounts()Ljava/lang/String;

.registers 2

 

new-instance v0, Ljava/lang/StringBuilder;

 

invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

 

invoke-static {}, Lcom/rockstargames/hal/TextureAtlas;->getBitmapStats()Ljava/lang/String;

 

move-result-object v1

 

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

 

move-result-object v0

 

const-string v1, " "

 

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

 

move-result-object v0

 

invoke-static {}, Lcom/rockstargames/hal/andViewManager;->getStaticCounts()Ljava/lang/String;

 

move-result-object v1

 

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

 

move-result-object v0

 

invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

 

move-result-object v0

 

return-object v0

.end method

 

.method public static getScale()F

.registers 1

 

sget v0, Lcom/rockstargames/hal/ActivityWrapper;->scale:F

 

return v0

.end method

 

.method public static getTextureAtlasCache()Lcom/rockstargames/hal/TextureAtlasCache;

.registers 1

 

sget-object v0, Lcom/rockstargames/hal/ActivityWrapper;->atlasCache:Lcom/rockstargames/hal/TextureAtlasCache;

 

return-object v0

.end method

 

.method public static getTotalMemoryBytes()J

.registers 2

 

invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

 

move-result-object v0

 

invoke-virtual {v0}, Ljava/lang/Runtime;->maxMemory()J

 

move-result-wide v0

 

return-wide v0

.end method

 

.method public static getTransitioning()Z

.registers 1

 

sget-boolean v0, Lcom/rockstargames/hal/ActivityWrapper;->transitioning:Z

 

return v0

.end method

 

.method public static getUsedMemoryBytes()J

.registers 2

 

invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

 

move-result-object v0

 

invoke-virtual {v0}, Ljava/lang/Runtime;->totalMemory()J

 

move-result-wide v0

 

return-wide v0

.end method

 

.method public static getVersion()Ljava/lang/String;

.registers 4

 

const-string v0, "nope"

 

:try_start_2

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getActivity()Landroid/app/Activity;

 

move-result-object v1

 

invoke-virtual {v1}, Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager;

 

move-result-object v1

 

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getActivity()Landroid/app/Activity;

 

move-result-object v2

 

invoke-virtual {v2}, Landroid/app/Activity;->getPackageName()Ljava/lang/String;

 

move-result-object v2

 

const/4 v3, 0x0

 

invoke-virtual {v1, v2, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

 

move-result-object v1

 

iget-object v0, v1, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

:try_end_19

.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_2 .. :try_end_19} :catch_1a

 

:goto_19

return-object v0

 

:catch_1a

move-exception v1

 

goto :goto_19

.end method

 

.method public static getWindowHeight()I

.registers 1

 

sget v0, Lcom/rockstargames/hal/ActivityWrapper;->windowHeight:I

 

return v0

.end method

 

.method public static getWindowWidth()I

.registers 1

 

sget v0, Lcom/rockstargames/hal/ActivityWrapper;->windowWidth:I

 

return v0

.end method

 

.method public static handleException(Ljava/lang/Exception;)V

.registers 4

 

:try_start_0

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getActivity()Landroid/app/Activity;

 

move-result-object v0

 

new-instance v1, Lcom/rockstargames/hal/a;

 

invoke-direct {v1, p0}, Lcom/rockstargames/hal/a;-><init>(Ljava/lang/Exception;)V

 

invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

:try_end_c

.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_c} :catch_d

 

:goto_c

return-void

 

:catch_d

move-exception v0

 

const-string v1, "ActivityWrapper"

 

const-string v2, "Unable to report error as toast!"

 

invoke-static {v1, v2, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

 

goto :goto_c

.end method

 

.method public static logError(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V

.registers 3

 

return-void

.end method

 

.method private native main()V

.end method

 

.method public static onDestroyCallback()V

.registers 1

 

const/4 v0, 0x0

 

sput-object v0, Lcom/rockstargames/hal/ActivityWrapper;->atlasCache:Lcom/rockstargames/hal/TextureAtlasCache;

 

return-void

.end method

 

.method private native onPauseApp()V

.end method

 

.method public static onPauseCallback()V

.registers 1

 

const/4 v0, 0x1

 

invoke-static {v0}, Lcom/rockstargames/hal/andAudio;->MuteAllAudio(Z)V

 

invoke-static {}, Lcom/rockstargames/hal/andVideo;->Suspend()V

 

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getInstance()Lcom/rockstargames/hal/ActivityWrapper;

 

move-result-object v0

 

invoke-direct {v0}, Lcom/rockstargames/hal/ActivityWrapper;->onPauseApp()V

 

const/4 v0, 0x0

 

invoke-static {v0}, Lcom/rockstargames/hal/andThread;->setRunning(Z)V

 

return-void

.end method

 

.method public static onRestartCallback()V

.registers 1

 

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getInstance()Lcom/rockstargames/hal/ActivityWrapper;

 

move-result-object v0

 

invoke-direct {v0}, Lcom/rockstargames/hal/ActivityWrapper;->onStartApp()V

 

return-void

.end method

 

.method private native onResumeApp(Ljava/lang/String;)V

.end method

 

.method public static onResumeCallback()V

.registers 2

 

const/4 v0, 0x0

 

invoke-static {v0}, Lcom/rockstargames/hal/andAudio;->MuteAllAudio(Z)V

 

invoke-static {}, Lcom/rockstargames/hal/andVideo;->Resume()V

 

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getInstance()Lcom/rockstargames/hal/ActivityWrapper;

 

move-result-object v0

 

sget-object v1, Lcom/rockstargames/hal/ActivityWrapper;->linkedAccountResult:Ljava/lang/String;

 

invoke-direct {v0, v1}, Lcom/rockstargames/hal/ActivityWrapper;->onResumeApp(Ljava/lang/String;)V

 

invoke-static {}, Lcom/rockstargames/hal/andViewManager;->invalidateHierarchy()V

 

const/4 v0, 0x1

 

invoke-static {v0}, Lcom/rockstargames/hal/andThread;->setRunning(Z)V

 

return-void

.end method

 

.method private native onStartApp()V

.end method

 

.method public static onStartCallback()V

.registers 1

 

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getInstance()Lcom/rockstargames/hal/ActivityWrapper;

 

move-result-object v0

 

invoke-direct {v0}, Lcom/rockstargames/hal/ActivityWrapper;->onStartApp()V

 

return-void

.end method

 

.method public static onStopCallback()V

.registers 0

 

return-void

.end method

 

.method public static runMain(II)V

.registers 6

 

if-ge p0, p1, :cond_44

 

:goto_2

sput p1, Lcom/rockstargames/hal/ActivityWrapper;->windowWidth:I

 

sput p0, Lcom/rockstargames/hal/ActivityWrapper;->windowHeight:I

 

const-string v0, "HAL"

 

new-instance v1, Ljava/lang/StringBuilder;

 

const-string v2, "Using window size of "

 

invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

 

sget v2, Lcom/rockstargames/hal/ActivityWrapper;->windowWidth:I

 

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

 

move-result-object v1

 

const-string v2, "x"

 

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

 

move-result-object v1

 

sget v2, Lcom/rockstargames/hal/ActivityWrapper;->windowHeight:I

 

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

 

move-result-object v1

 

invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

 

move-result-object v1

 

invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

 

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getInstance()Lcom/rockstargames/hal/ActivityWrapper;

 

move-result-object v0

 

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->setupLocale()V

 

invoke-static {}, Lcom/rockstargames/hal/andWebView;->getUserAgent()Ljava/lang/String;

 

move-result-object v1

 

invoke-direct {v0, v1}, Lcom/rockstargames/hal/ActivityWrapper;->setUserAgent(Ljava/lang/String;)V

 

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getVersion()Ljava/lang/String;

 

move-result-object v1

 

invoke-direct {v0, v1}, Lcom/rockstargames/hal/ActivityWrapper;->setVersionNumber(Ljava/lang/String;)V

 

invoke-virtual {v0, p1, p0}, Lcom/rockstargames/hal/ActivityWrapper;->setCurrentScreenSize(II)V

 

invoke-direct {v0}, Lcom/rockstargames/hal/ActivityWrapper;->main()V

 

return-void

 

:cond_44

move v3, p1

 

move p1, p0

 

move p0, v3

 

goto :goto_2

.end method

 

.method private native runUpdateCallback()V

.end method

 

.method public static setActivity(Landroid/app/Activity;)V

.registers 5

 

sput-object p0, Lcom/rockstargames/hal/ActivityWrapper;->mainActivity:Landroid/app/Activity;

 

invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

 

move-result-object v0

 

sput-object v0, Lcom/rockstargames/hal/ActivityWrapper;->applicationContext:Landroid/content/Context;

 

new-instance v0, Lcom/rockstargames/hal/ContainerLayout;

 

invoke-direct {v0, p0}, Lcom/rockstargames/hal/ContainerLayout;-><init>(Landroid/content/Context;)V

 

sput-object v0, Lcom/rockstargames/hal/ActivityWrapper;->layout:Lcom/rockstargames/hal/ContainerLayout;

 

const/high16 v1, -0x1000000

 

invoke-virtual {v0, v1}, Lcom/rockstargames/hal/ContainerLayout;->setBackgroundColor(I)V

 

sget-object v0, Lcom/rockstargames/hal/ActivityWrapper;->layout:Lcom/rockstargames/hal/ContainerLayout;

 

invoke-virtual {p0, v0}, Landroid/app/Activity;->setContentView(Landroid/view/View;)V

 

invoke-static {p0}, Lcom/rockstargames/hal/andSecureData;->Init(Landroid/content/Context;)V

 

sget-object v0, Lcom/rockstargames/hal/ActivityWrapper;->atlasCache:Lcom/rockstargames/hal/TextureAtlasCache;

 

if-nez v0, :cond_36

 

invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

 

move-result-object v0

 

invoke-virtual {v0}, Ljava/lang/Runtime;->maxMemory()J

 

move-result-wide v0

 

const-wide/16 v2, 0x32

 

mul-long/2addr v0, v2

 

const-wide/16 v2, 0x64

 

div-long/2addr v0, v2

 

long-to-int v0, v0

 

new-instance v1, Lcom/rockstargames/hal/TextureAtlasCache;

 

invoke-direct {v1, v0}, Lcom/rockstargames/hal/TextureAtlasCache;-><init>(I)V

 

sput-object v1, Lcom/rockstargames/hal/ActivityWrapper;->atlasCache:Lcom/rockstargames/hal/TextureAtlasCache;

 

:cond_36

return-void

.end method

 

.method public static setApplicationContext(Landroid/content/Context;)V

.registers 1

 

sput-object p0, Lcom/rockstargames/hal/ActivityWrapper;->applicationContext:Landroid/content/Context;

 

return-void

.end method

 

.method private native setLanguage(Ljava/lang/String;Ljava/lang/String;)V

.end method

 

.method public static setTransitioning(Z)V

.registers 1

 

sput-boolean p0, Lcom/rockstargames/hal/ActivityWrapper;->transitioning:Z

 

return-void

.end method

 

.method private native setUserAgent(Ljava/lang/String;)V

.end method

 

.method private native setVersionNumber(Ljava/lang/String;)V

.end method

 

.method public static setupLocale()V

.registers 3

 

invoke-static {}, Lcom/rockstargames/hal/ActivityWrapper;->getInstance()Lcom/rockstargames/hal/ActivityWrapper;

 

move-result-object v0

 

invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

 

move-result-object v1

 

invoke-virtual {v1}, Ljava/util/Locale;->getLanguage()Ljava/lang/String;

 

move-result-object v1

 

invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

 

move-result-object v2

 

invoke-virtual {v2}, Ljava/util/Locale;->getCountry()Ljava/lang/String;

 

move-result-object v2

 

invoke-direct {v0, v1, v2}, Lcom/rockstargames/hal/ActivityWrapper;->setLanguage(Ljava/lang/String;Ljava/lang/String;)V

 

return-void

.end method

 

.method public static showToast(Ljava/lang/String;Z)V

.registers 2

 

return-void

.end method

 

 

# virtual methods

.method public native PressSelectedItem()V

.end method

 

.method public native SelectNextItem(ZZZZ)V

.end method

 

.method public native getLocalisedString(Ljava/lang/String;)Ljava/lang/String;

.end method

 

.method public native onBackPressed()V

.end method

 

.method public native setCurrentScreenSize(II)V

.end method

 

 

GTAJNIlib.smali (setGameFilesDir?)

 

 

.class public Lcom/rockstargames/gtalcs/GTAJNIlib;

.super Ljava/lang/Object;

 

 

# direct methods

.method static constructor <clinit>()V

.registers 1

 

const-string v0, "openal"

 

invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V

 

const-string v0, "mpg123"

 

invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V

 

const-string v0, "GTALcs"

 

invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V

 

return-void

.end method

 

.method public constructor <init>()V

.registers 1

 

invoke-direct {p0}, Ljava/lang/Object;-><init>()V

 

return-void

.end method

 

.method public static native TestJNI()V

.end method

 

.method public static native callSocialClubSignOut()V

.end method

 

.method public static native callSocialClubUpdate()V

.end method

 

.method public static native getGameBuildType()Ljava/lang/String;

.end method

 

.method public static native isOnMainMenuScreen()Z

.end method

 

.method public static native onBackButtonPressed()V

.end method

 

.method public static native onJoyButtonDown(II)V

.end method

 

.method public static native onJoyButtonUp(II)V

.end method

 

.method public static native onTouchEnd(IFF)V

.end method

 

.method public static native onTouchMove(IFF)V

.end method

 

.method public static native onTouchStart(IFF)V

.end method

 

.method public static native setAccelerometer(FFF)V

.end method

 

.method public static native setAssetManager(Landroid/content/res/AssetManager;)V

.end method

 

.method public static native setDeviceInfo(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

.end method

 

.method public static native setDisplaySize(II)V

.end method

 

.method public static native setGameFilesDir(Ljava/lang/String;)V

.end method

 

.method public static native setIsTVDevice(Z)V

.end method

 

.method public static native setJoyAxis(IIF)V

.end method

 

.method public static native setNoJoysticks(I)V

.end method

 

.method public static native setOSVersion(I)V

.end method

 

.method public static native setPrivateFilesDir(Ljava/lang/String;)V

.end method

 

.method public static native viewOnDrawFrame(F)V

.end method

 

.method public static native viewOnInit()V

.end method

 

.method public static native viewOnPause()V

.end method

 

.method public static native viewOnResume()V

.end method

 

 

GTAActivityBase.smali

 

.class public abstract Lcom/rockstargames/gtalcs/GTAActivityBase;

.super Landroid/app/Activity;

 

 

# static fields

.field private static TAG:Ljava/lang/String;

 

 

# instance fields

.field bUseSmallLoadBarAssets:Z

 

.field private mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

.field mImageView:Landroid/widget/ImageView;

 

.field mLoadingBarBackgroundView:Landroid/widget/ImageView;

 

.field mLoadingBarProgressView:Landroid/widget/ImageView;

 

.field protected mMoviePlaying:Z

 

.field protected m_assetManager:Landroid/content/res/AssetManager;

 

.field protected m_dataLocation:Lcom/rockstargames/gtalcs/l;

 

 

# direct methods

.method static constructor <clinit>()V

.registers 1

 

const-string v0, "GTAActivityBase"

 

sput-object v0, Lcom/rockstargames/gtalcs/GTAActivityBase;->TAG:Ljava/lang/String;

 

return-void

.end method

 

.method public constructor <init>()V

.registers 4

 

const/4 v2, 0x0

 

const/4 v1, 0x0

 

invoke-direct {p0}, Landroid/app/Activity;-><init>()V

 

iput-boolean v2, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mMoviePlaying:Z

 

sget-object v0, Lcom/rockstargames/gtalcs/l;->a:Lcom/rockstargames/gtalcs/l;

 

iput-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->m_dataLocation:Lcom/rockstargames/gtalcs/l;

 

iput-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->m_assetManager:Landroid/content/res/AssetManager;

 

iput-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

iput-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

iput-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarBackgroundView:Landroid/widget/ImageView;

 

iput-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarProgressView:Landroid/widget/ImageView;

 

iput-boolean v2, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->bUseSmallLoadBarAssets:Z

 

return-void

.end method

 

.method public static randInt(II)I

.registers 4

 

new-instance v0, Ljava/util/Random;

 

invoke-direct {v0}, Ljava/util/Random;-><init>()V

 

sub-int v1, p1, p0

 

add-int/lit8 v1, v1, 0x1

 

invoke-virtual {v0, v1}, Ljava/util/Random;->nextInt(I)I

 

move-result v0

 

add-int/2addr v0, p0

 

return v0

.end method

 

 

# virtual methods

.method protected CallSocialClubSignOut()V

.registers 1

 

invoke-static {}, Lcom/rockstargames/gtalcs/GTAJNIlib;->callSocialClubSignOut()V

 

return-void

.end method

 

.method protected CallSocialClubUpdate()V

.registers 1

 

invoke-static {}, Lcom/rockstargames/gtalcs/GTAJNIlib;->callSocialClubUpdate()V

 

return-void

.end method

 

.method protected HideLoadingScreen()V

.registers 3

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

const/16 v1, 0x8

 

invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v0}, Lcom/rockstargames/gtalcs/GTAGLview;->bringToFront()V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

const/4 v1, 0x0

 

invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setKeepScreenOn(Z)V

 

return-void

.end method

 

.method public MinimiseApp()V

.registers 2

 

const/4 v0, 0x1

 

invoke-virtual {p0, v0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->moveTaskToBack(Z)Z

 

return-void

.end method

 

.method protected MovieStopedPlaying()V

.registers 2

 

const/4 v0, 0x0

 

iput-boolean v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mMoviePlaying:Z

 

return-void

.end method

 

.method protected SetFrameRateLock(Z)V

.registers 3

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

if-eqz v0, :cond_9

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v0, p1}, Lcom/rockstargames/gtalcs/GTAGLview;->setFrameRateLock(Z)V

 

:cond_9

return-void

.end method

 

.method protected ShowLoadingBar(F)V

.registers 7

 

const/4 v4, 0x0

 

const/high16 v0, 0x3f800000 # 1.0f

 

const/4 v1, 0x0

 

cmpl-float v1, p1, v1

 

if-lez v1, :cond_61

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getWindowManager()Landroid/view/WindowManager;

 

move-result-object v1

 

invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

 

move-result-object v1

 

new-instance v2, Landroid/graphics/Point;

 

invoke-direct {v2}, Landroid/graphics/Point;-><init>()V

 

invoke-virtual {v1, v2}, Landroid/view/Display;->getSize(Landroid/graphics/Point;)V

 

cmpl-float v1, p1, v0

 

if-lez v1, :cond_1d

 

move p1, v0

 

:cond_1d

iget-boolean v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->bUseSmallLoadBarAssets:Z

 

if-eqz v0, :cond_62

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getResources()Landroid/content/res/Resources;

 

move-result-object v0

 

const v1, 0x7f050004

 

invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

 

move-result-object v0

 

:goto_2c

invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

 

move-result v1

 

int-to-float v1, v1

 

mul-float/2addr v1, p1

 

float-to-int v1, v1

 

invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

 

move-result v3

 

invoke-static {v0, v4, v4, v1, v3}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIII)Landroid/graphics/Bitmap;

 

move-result-object v0

 

iget-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarProgressView:Landroid/widget/ImageView;

 

invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

 

iget v0, v2, Landroid/graphics/Point;->x:I

 

iget-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarBackgroundView:Landroid/widget/ImageView;

 

invoke-virtual {v1}, Landroid/widget/ImageView;->getWidth()I

 

move-result v1

 

sub-int/2addr v0, v1

 

div-int/lit8 v0, v0, 0x2

 

iget-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarBackgroundView:Landroid/widget/ImageView;

 

int-to-float v2, v0

 

invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setX(F)V

 

iget-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarProgressView:Landroid/widget/ImageView;

 

int-to-float v0, v0

 

invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setX(F)V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarBackgroundView:Landroid/widget/ImageView;

 

invoke-virtual {v0}, Landroid/widget/ImageView;->bringToFront()V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarProgressView:Landroid/widget/ImageView;

 

invoke-virtual {v0}, Landroid/widget/ImageView;->bringToFront()V

 

:cond_61

return-void

 

:cond_62

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getResources()Landroid/content/res/Resources;

 

move-result-object v0

 

const v1, 0x7f050003

 

invoke-static {v0, v1}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

 

move-result-object v0

 

goto :goto_2c

.end method

 

.method protected ShowLoadingScreen()V

.registers 4

 

const v1, 0x7f050006

 

const/4 v2, 0x1

 

const/4 v0, 0x4

 

invoke-static {v2, v0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->randInt(II)I

 

move-result v0

 

packed-switch v0, :pswitch_data_44

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

 

:goto_11

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

const/4 v1, 0x0

 

invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

invoke-virtual {v0}, Landroid/widget/ImageView;->bringToFront()V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setKeepScreenOn(Z)V

 

return-void

 

:pswitch_22

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

 

goto :goto_11

 

:pswitch_28

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

const v1, 0x7f050007

 

invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

 

goto :goto_11

 

:pswitch_31

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

const v1, 0x7f050008

 

invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

 

goto :goto_11

 

:pswitch_3a

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

const v1, 0x7f050009

 

invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

 

goto :goto_11

 

nop

 

:pswitch_data_44

.packed-switch 0x1

:pswitch_22

:pswitch_28

:pswitch_31

:pswitch_3a

.end packed-switch

.end method

 

.method public createView()V

.registers 4

 

const/4 v2, -0x1

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAActivityBase;->TAG:Ljava/lang/String;

 

const-string v1, "Creating View"

 

invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

new-instance v0, Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-direct {v0, p0}, Lcom/rockstargames/gtalcs/GTAGLview;-><init>(Landroid/content/Context;)V

 

iput-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

new-instance v1, Landroid/view/ViewGroup$LayoutParams;

 

invoke-direct {v1, v2, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

 

invoke-virtual {p0, v0, v1}, Lcom/rockstargames/gtalcs/GTAActivityBase;->addContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v0}, Lcom/rockstargames/gtalcs/GTAGLview;->bringToFront()V

 

return-void

.end method

 

.method protected hideSystemUI()V

.registers 3

 

sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

 

const/16 v1, 0x13

 

if-lt v0, v1, :cond_14

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getWindow()Landroid/view/Window;

 

move-result-object v0

 

invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

 

move-result-object v0

 

const/16 v1, 0x1706

 

invoke-virtual {v0, v1}, Landroid/view/View;->setSystemUiVisibility(I)V

 

:goto_13

return-void

 

:cond_14

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getWindow()Landroid/view/Window;

 

move-result-object v0

 

invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

 

move-result-object v0

 

const/4 v1, 0x1

 

invoke-virtual {v0, v1}, Landroid/view/View;->setSystemUiVisibility(I)V

 

goto :goto_13

.end method

 

.method protected isMoviePlaying()Z

.registers 2

 

iget-boolean v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mMoviePlaying:Z

 

return v0

.end method

 

.method public onBackPressed()V

.registers 2

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

if-eqz v0, :cond_9

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v0}, Lcom/rockstargames/gtalcs/GTAGLview;->onBackPressed()V

 

:cond_9

invoke-static {}, Lcom/rockstargames/gtalcs/GTAJNIlib;->isOnMainMenuScreen()Z

 

move-result v0

 

if-eqz v0, :cond_12

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->MinimiseApp()V

 

:cond_12

return-void

.end method

 

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V

.registers 7

 

invoke-super {p0, p1}, Landroid/app/Activity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->setDeviceOrientation()V

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAActivityBase;->TAG:Ljava/lang/String;

 

const-string v1, "onConfigurationChanged mode %d"

 

const/4 v2, 0x1

 

new-array v2, v2, [Ljava/lang/Object;

 

const/4 v3, 0x0

 

iget v4, p1, Landroid/content/res/Configuration;->orientation:I

 

invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

 

move-result-object v4

 

aput-object v4, v2, v3

 

invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

 

move-result-object v1

 

invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

 

return-void

.end method

 

.method public onCreate(Landroid/os/Bundle;)V

.registers 9

 

const/4 v6, 0x4

 

const/4 v1, 0x1

 

const/4 v2, 0x0

 

const/4 v4, -0x1

 

const/4 v5, -0x2

 

invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->setDeviceOrientation()V

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->hideSystemUI()V

 

new-instance v0, Landroid/widget/ImageView;

 

invoke-direct {v0, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

 

iput-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

new-instance v3, Landroid/view/ViewGroup$LayoutParams;

 

invoke-direct {v3, v4, v4}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

 

invoke-virtual {p0, v0, v3}, Lcom/rockstargames/gtalcs/GTAActivityBase;->addContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

sget-object v3, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

 

invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mImageView:Landroid/widget/ImageView;

 

invoke-virtual {v0, v6}, Landroid/widget/ImageView;->setVisibility(I)V

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getWindowManager()Landroid/view/WindowManager;

 

move-result-object v0

 

invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

 

move-result-object v0

 

new-instance v3, Landroid/graphics/Point;

 

invoke-direct {v3}, Landroid/graphics/Point;-><init>()V

 

invoke-virtual {v0, v3}, Landroid/view/Display;->getSize(Landroid/graphics/Point;)V

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getResources()Landroid/content/res/Resources;

 

move-result-object v0

 

const v4, 0x7f050003

 

invoke-static {v0, v4}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

 

move-result-object v0

 

invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

 

move-result v0

 

iget v4, v3, Landroid/graphics/Point;->x:I

 

if-le v0, v4, :cond_c0

 

move v0, v1

 

:goto_4f

iput-boolean v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->bUseSmallLoadBarAssets:Z

 

new-instance v0, Landroid/widget/ImageView;

 

invoke-direct {v0, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

 

iput-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarBackgroundView:Landroid/widget/ImageView;

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarBackgroundView:Landroid/widget/ImageView;

 

new-instance v4, Landroid/view/ViewGroup$LayoutParams;

 

invoke-direct {v4, v5, v5}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

 

invoke-virtual {p0, v0, v4}, Lcom/rockstargames/gtalcs/GTAActivityBase;->addContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

 

iget-boolean v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->bUseSmallLoadBarAssets:Z

 

if-eqz v0, :cond_c2

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarBackgroundView:Landroid/widget/ImageView;

 

const v4, 0x7f050002

 

invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageResource(I)V

 

:goto_6e

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarBackgroundView:Landroid/widget/ImageView;

 

iget v4, v3, Landroid/graphics/Point;->y:I

 

add-int/lit8 v4, v4, -0x64

 

int-to-float v4, v4

 

invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setY(F)V

 

new-instance v0, Landroid/widget/ImageView;

 

invoke-direct {v0, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

 

iput-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarProgressView:Landroid/widget/ImageView;

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarProgressView:Landroid/widget/ImageView;

 

new-instance v4, Landroid/view/ViewGroup$LayoutParams;

 

invoke-direct {v4, v5, v5}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

 

invoke-virtual {p0, v0, v4}, Lcom/rockstargames/gtalcs/GTAActivityBase;->addContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarProgressView:Landroid/widget/ImageView;

 

iget v3, v3, Landroid/graphics/Point;->y:I

 

add-int/lit8 v3, v3, -0x64

 

int-to-float v3, v3

 

invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setY(F)V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->m_dataLocation:Lcom/rockstargames/gtalcs/l;

 

sget-object v3, Lcom/rockstargames/gtalcs/l;->b:Lcom/rockstargames/gtalcs/l;

 

if-ne v0, v3, :cond_ab

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getAssets()Landroid/content/res/AssetManager;

 

move-result-object v0

 

iput-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->m_assetManager:Landroid/content/res/AssetManager;

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->m_assetManager:Landroid/content/res/AssetManager;

 

invoke-static {v0}, Lcom/rockstargames/gtalcs/GTAJNIlib;->setAssetManager(Landroid/content/res/AssetManager;)V

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAActivityBase;->TAG:Ljava/lang/String;

 

const-string v3, "E_GameDataLocation.APK"

 

invoke-static {v0, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

:cond_ab

invoke-static {p0}, Lcom/rockstargames/gtalcs/CommonAPI;->SetMainActivity(Lcom/rockstargames/gtalcs/GTAActivityBase;)V

 

const-string v0, "uimode"

 

invoke-virtual {p0, v0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

 

move-result-object v0

 

check-cast v0, Landroid/app/UiModeManager;

 

invoke-virtual {v0}, Landroid/app/UiModeManager;->getCurrentModeType()I

 

move-result v0

 

if-ne v0, v6, :cond_cb

 

invoke-static {v1}, Lcom/rockstargames/gtalcs/GTAJNIlib;->setIsTVDevice(Z)V

 

:goto_bf

return-void

 

:cond_c0

move v0, v2

 

goto :goto_4f

 

:cond_c2

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mLoadingBarBackgroundView:Landroid/widget/ImageView;

 

const v4, 0x7f050001

 

invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setImageResource(I)V

 

goto :goto_6e

 

:cond_cb

invoke-static {v2}, Lcom/rockstargames/gtalcs/GTAJNIlib;->setIsTVDevice(Z)V

 

goto :goto_bf

.end method

 

.method public onGenericMotionEvent(Landroid/view/MotionEvent;)Z

.registers 3

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

if-eqz v0, :cond_13

 

invoke-virtual {p1}, Landroid/view/MotionEvent;->getSource()I

 

move-result v0

 

and-int/lit8 v0, v0, 0x10

 

if-eqz v0, :cond_13

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v0, p1}, Lcom/rockstargames/gtalcs/GTAGLview;->handleJoystickMotionEvent(Landroid/view/MotionEvent;)Z

 

move-result v0

 

:goto_12

return v0

 

:cond_13

invoke-super {p0, p1}, Landroid/app/Activity;->onGenericMotionEvent(Landroid/view/MotionEvent;)Z

 

move-result v0

 

goto :goto_12

.end method

 

.method public onKeyDown(ILandroid/view/KeyEvent;)Z

.registers 5

 

const/4 v0, 0x1

 

iget-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

if-eqz v1, :cond_e

 

iget-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v1, p1, p2}, Lcom/rockstargames/gtalcs/GTAGLview;->onKeyDown(ILandroid/view/KeyEvent;)Z

 

move-result v1

 

if-ne v1, v0, :cond_e

 

:goto_d

return v0

 

:cond_e

invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyDown(ILandroid/view/KeyEvent;)Z

 

move-result v0

 

goto :goto_d

.end method

 

.method public onKeyUp(ILandroid/view/KeyEvent;)Z

.registers 5

 

const/4 v0, 0x1

 

const/16 v1, 0x19

 

if-eq v1, p1, :cond_9

 

const/16 v1, 0x18

 

if-ne v1, p1, :cond_11

 

:cond_9

invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyUp(ILandroid/view/KeyEvent;)Z

 

move-result v0

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->hideSystemUI()V

 

:cond_10

:goto_10

return v0

 

:cond_11

iget-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

if-eqz v1, :cond_1d

 

iget-object v1, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v1, p1, p2}, Lcom/rockstargames/gtalcs/GTAGLview;->onKeyUp(ILandroid/view/KeyEvent;)Z

 

move-result v1

 

if-eq v1, v0, :cond_10

 

:cond_1d

invoke-super {p0, p1, p2}, Landroid/app/Activity;->onKeyUp(ILandroid/view/KeyEvent;)Z

 

move-result v0

 

goto :goto_10

.end method

 

.method protected onPause()V

.registers 2

 

invoke-super {p0}, Landroid/app/Activity;->onPause()V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

if-eqz v0, :cond_c

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v0}, Lcom/rockstargames/gtalcs/GTAGLview;->onPause()V

 

:cond_c

return-void

.end method

 

.method protected onResume()V

.registers 2

 

invoke-super {p0}, Landroid/app/Activity;->onResume()V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

if-eqz v0, :cond_c

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v0}, Lcom/rockstargames/gtalcs/GTAGLview;->onResume()V

 

:cond_c

iget-boolean v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mMoviePlaying:Z

 

if-eqz v0, :cond_13

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->MovieStopedPlaying()V

 

:cond_13

return-void

.end method

 

.method public onWindowFocusChanged(Z)V

.registers 5

 

const/4 v2, 0x0

 

invoke-super {p0, p1}, Landroid/app/Activity;->onWindowFocusChanged(Z)V

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

if-eqz v0, :cond_d

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v0, p1}, Lcom/rockstargames/gtalcs/GTAGLview;->SetHasFocus(Z)V

 

:cond_d

if-eqz p1, :cond_23

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->hideSystemUI()V

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAActivityBase;->TAG:Ljava/lang/String;

 

const-string v1, "onWindowFocusChanged true"

 

new-array v2, v2, [Ljava/lang/Object;

 

invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

 

move-result-object v1

 

invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->onResume()V

 

:goto_22

return-void

 

:cond_23

sget-object v0, Lcom/rockstargames/gtalcs/GTAActivityBase;->TAG:Ljava/lang/String;

 

const-string v1, "onWindowFocusChanged false"

 

new-array v2, v2, [Ljava/lang/Object;

 

invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

 

move-result-object v1

 

invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

invoke-virtual {p0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->onPause()V

 

goto :goto_22

.end method

 

.method protected abstract setDeviceOrientation()V

.end method

 

.method public setInUI(Z)V

.registers 3

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

if-eqz v0, :cond_9

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v0, p1}, Lcom/rockstargames/gtalcs/GTAGLview;->setInUI(Z)V

 

:cond_9

return-void

.end method

 

.method public setKeepScreenOn(Z)V

.registers 4

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAActivityBase;->TAG:Ljava/lang/String;

 

const-string v1, "Keep screen on"

 

invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

iget-object v0, p0, Lcom/rockstargames/gtalcs/GTAActivityBase;->mGLView:Lcom/rockstargames/gtalcs/GTAGLview;

 

invoke-virtual {v0, p1}, Lcom/rockstargames/gtalcs/GTAGLview;->setKeepScreenOn(Z)V

 

return-void

.end method

 

 

GTAPlaylist.smali (really request, Google Play Music? This game have song play function.)

 

.class public Lcom/rockstargames/gtalcs/GTAPlaylist;

.super Ljava/lang/Object;

 

 

# static fields

.field static CurrentPlaylistPos:I

 

.field static SongCurrentPos:I

 

.field static SongDuration:I

 

.field static TAG:Ljava/lang/String;

 

.field static m_bIsPaused:Z

 

.field private static m_mainActivity:Lcom/rockstargames/gtalcs/GTAActivityBase;

 

.field static mediaPlayer:Landroid/media/MediaPlayer;

 

.field static numSongs:I

 

.field static playerListener:Lcom/rockstargames/gtalcs/z;

 

.field static playlistID:I

 

.field static playlistUriArray:Ljava/util/ArrayList;

.annotation system Ldalvik/annotation/Signature;

value = {

"Ljava/util/ArrayList",

"<",

"Landroid/net/Uri;",

">;"

}

.end annotation

.end field

 

 

# direct methods

.method static constructor <clinit>()V

.registers 3

 

const/4 v2, 0x0

 

const/4 v1, -0x1

 

const/4 v0, 0x0

 

sput-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->m_mainActivity:Lcom/rockstargames/gtalcs/GTAActivityBase;

 

const-string v0, "GTA_MusicPlaylist"

 

sput-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->TAG:Ljava/lang/String;

 

new-instance v0, Ljava/util/ArrayList;

 

invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

 

sput-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistUriArray:Ljava/util/ArrayList;

 

sput v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistID:I

 

sput v2, Lcom/rockstargames/gtalcs/GTAPlaylist;->CurrentPlaylistPos:I

 

sput v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->SongCurrentPos:I

 

sput v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->SongDuration:I

 

sput v2, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

const/4 v0, 0x1

 

sput-boolean v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->m_bIsPaused:Z

 

new-instance v0, Lcom/rockstargames/gtalcs/z;

 

invoke-direct {v0, v2}, Lcom/rockstargames/gtalcs/z;-><init>(B)V

 

sput-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->playerListener:Lcom/rockstargames/gtalcs/z;

 

return-void

.end method

 

.method public constructor <init>()V

.registers 1

 

invoke-direct {p0}, Ljava/lang/Object;-><init>()V

 

return-void

.end method

 

.method public static InitPlaylist(Ljava/lang/String;)V

.registers 10

 

const/4 v7, 0x2

 

const/4 v8, 0x1

 

const/4 v6, 0x0

 

const/4 v3, 0x0

 

new-array v2, v7, [Ljava/lang/String;

 

const-string v0, "_id"

 

aput-object v0, v2, v6

 

const-string v0, "playlist_name"

 

aput-object v0, v2, v8

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->TAG:Ljava/lang/String;

 

new-instance v1, Ljava/lang/StringBuilder;

 

const-string v4, "Playlist : "

 

invoke-direct {v1, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

 

invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

 

move-result-object v1

 

invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

 

move-result-object v1

 

invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

const-string v0, "content://com.google.android.music.MusicContent/playlists"

 

invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

 

move-result-object v1

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->m_mainActivity:Lcom/rockstargames/gtalcs/GTAActivityBase;

 

invoke-virtual {v0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getContentResolver()Landroid/content/ContentResolver;

 

move-result-object v0

 

move-object v4, v3

 

move-object v5, v3

 

invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

 

move-result-object v0

 

if-nez v0, :cond_39

 

sput v6, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

:goto_38

return-void

 

:cond_39

invoke-static {}, Ljava/lang/System;->gc()V

 

sget-object v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->TAG:Ljava/lang/String;

 

new-instance v2, Ljava/lang/StringBuilder;

 

const-string v4, "pl Count "

 

invoke-direct {v2, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

 

invoke-interface {v0}, Landroid/database/Cursor;->getCount()I

 

move-result v4

 

invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

 

move-result-object v2

 

invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

 

move-result-object v2

 

invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

 

:goto_57

invoke-interface {v0}, Landroid/database/Cursor;->isAfterLast()Z

 

move-result v1

 

if-nez v1, :cond_80

 

const-string v1, "playlist_name"

 

invoke-interface {v0, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

 

move-result v1

 

invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

 

move-result-object v1

 

invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

 

move-result v1

 

if-eqz v1, :cond_88

 

const-string v1, "_id"

 

invoke-interface {v0, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

 

move-result v1

 

invoke-interface {v0, v1}, Landroid/database/Cursor;->getInt(I)I

 

move-result v0

 

sput v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistID:I

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->TAG:Ljava/lang/String;

 

const-string v1, "Playlist Found "

 

invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

:cond_80

sget v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistID:I

 

const/4 v1, -0x1

 

if-ne v0, v1, :cond_8c

 

sput v6, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

goto :goto_38

 

:cond_88

invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z

 

goto :goto_57

 

:cond_8c

new-instance v0, Ljava/lang/StringBuilder;

 

const-string v1, "content://com.google.android.music.MusicContent/playlists/"

 

invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

 

sget v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistID:I

 

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

 

move-result-object v0

 

const-string v1, "/members"

 

invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

 

move-result-object v0

 

invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

 

move-result-object v0

 

invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

 

move-result-object v1

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->m_mainActivity:Lcom/rockstargames/gtalcs/GTAActivityBase;

 

invoke-virtual {v0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getContentResolver()Landroid/content/ContentResolver;

 

move-result-object v0

 

new-array v2, v7, [Ljava/lang/String;

 

const-string v4, "SourceId"

 

aput-object v4, v2, v6

 

const-string v4, "hasLocal"

 

aput-object v4, v2, v8

 

move-object v4, v3

 

move-object v5, v3

 

invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

 

move-result-object v7

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->m_mainActivity:Lcom/rockstargames/gtalcs/GTAActivityBase;

 

invoke-virtual {v0}, Lcom/rockstargames/gtalcs/GTAActivityBase;->getContentResolver()Landroid/content/ContentResolver;

 

move-result-object v0

 

sget-object v1, Landroid/provider/MediaStore$Audio$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

 

new-array v2, v8, [Ljava/lang/String;

 

const-string v4, "_data"

 

aput-object v4, v2, v6

 

move-object v4, v3

 

move-object v5, v3

 

invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

 

move-result-object v1

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->TAG:Ljava/lang/String;

 

new-instance v2, Ljava/lang/StringBuilder;

 

const-string v3, " Num songs : "

 

invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

 

invoke-interface {v7}, Landroid/database/Cursor;->getCount()I

 

move-result v3

 

invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

 

move-result-object v2

 

invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

 

move-result-object v2

 

invoke-static {v0, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

invoke-interface {v7}, Landroid/database/Cursor;->moveToFirst()Z

 

invoke-interface {v7}, Landroid/database/Cursor;->getCount()I

 

move-result v0

 

sput v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

move v0, v6

 

:goto_f3

sget v2, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

if-ge v0, v2, :cond_112

 

invoke-interface {v7, v0}, Landroid/database/Cursor;->moveToPosition(I)Z

 

const-string v2, "SourceId"

 

invoke-interface {v7, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

 

move-result v2

 

invoke-interface {v7, v2}, Landroid/database/Cursor;->getLong(I)J

 

move-result-wide v2

 

sget-object v4, Landroid/provider/MediaStore$Audio$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

 

invoke-static {v4, v2, v3}, Landroid/content/ContentUris;->withAppendedId(Landroid/net/Uri;J)Landroid/net/Uri;

 

move-result-object v2

 

sget-object v3, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistUriArray:Ljava/util/ArrayList;

 

invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

 

add-int/lit8 v0, v0, 0x1

 

goto :goto_f3

 

:cond_112

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistUriArray:Ljava/util/ArrayList;

 

invoke-static {v0}, Ljava/util/Collections;->shuffle(Ljava/util/List;)V

 

sput v6, Lcom/rockstargames/gtalcs/GTAPlaylist;->CurrentPlaylistPos:I

 

invoke-interface {v7}, Landroid/database/Cursor;->close()V

 

invoke-interface {v1}, Landroid/database/Cursor;->close()V

 

goto/16 :goto_38

.end method

 

.method public static SetMainActivity(Lcom/rockstargames/gtalcs/GTAActivityBase;)V

.registers 1

 

sput-object p0, Lcom/rockstargames/gtalcs/GTAPlaylist;->m_mainActivity:Lcom/rockstargames/gtalcs/GTAActivityBase;

 

return-void

.end method

 

.method public static playlistPause()V

.registers 1

 

:try_start_0

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->mediaPlayer:Landroid/media/MediaPlayer;

 

invoke-virtual {v0}, Landroid/media/MediaPlayer;->stop()V

 

const/4 v0, 0x1

 

sput-boolean v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->m_bIsPaused:Z

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->mediaPlayer:Landroid/media/MediaPlayer;

 

invoke-virtual {v0}, Landroid/media/MediaPlayer;->getCurrentPosition()I

 

move-result v0

 

sput v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->SongCurrentPos:I

:try_end_10

.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_10} :catch_11

 

:goto_10

return-void

 

:catch_11

move-exception v0

 

invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

 

goto :goto_10

.end method

 

.method public static playlistPlay()V

.registers 4

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->TAG:Ljava/lang/String;

 

new-instance v1, Ljava/lang/StringBuilder;

 

const-string v2, "playlistPlay numSongs = "

 

invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

 

sget v2, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

 

move-result-object v1

 

invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

 

move-result-object v1

 

invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

sget v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

if-gtz v0, :cond_1b

 

:cond_1a

:goto_1a

return-void

 

:cond_1b

const/4 v0, 0x0

 

sput-boolean v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->m_bIsPaused:Z

 

:try_start_1e

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->mediaPlayer:Landroid/media/MediaPlayer;

 

if-nez v0, :cond_2d

 

new-instance v0, Landroid/media/MediaPlayer;

 

invoke-direct {v0}, Landroid/media/MediaPlayer;-><init>()V

 

sput-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->mediaPlayer:Landroid/media/MediaPlayer;

 

const/4 v1, 0x3

 

invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setAudioStreamType(I)V

 

:cond_2d

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->mediaPlayer:Landroid/media/MediaPlayer;

 

sget-object v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->playerListener:Lcom/rockstargames/gtalcs/z;

 

invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->mediaPlayer:Landroid/media/MediaPlayer;

 

sget-object v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->playerListener:Lcom/rockstargames/gtalcs/z;

 

invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistUriArray:Ljava/util/ArrayList;

 

sget v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->CurrentPlaylistPos:I

 

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

 

move-result-object v0

 

check-cast v0, Landroid/net/Uri;

 

sget-object v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->TAG:Ljava/lang/String;

 

new-instance v2, Ljava/lang/StringBuilder;

 

const-string v3, "contentUri : "

 

invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

 

invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;

 

move-result-object v3

 

invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

 

move-result-object v2

 

invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

 

move-result-object v2

 

invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

if-eqz v0, :cond_1a

 

sget-object v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->mediaPlayer:Landroid/media/MediaPlayer;

 

invoke-virtual {v1}, Landroid/media/MediaPlayer;->reset()V

 

sget-object v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->mediaPlayer:Landroid/media/MediaPlayer;

 

sget-object v2, Lcom/rockstargames/gtalcs/GTAPlaylist;->m_mainActivity:Lcom/rockstargames/gtalcs/GTAActivityBase;

 

invoke-virtual {v1, v2, v0}, Landroid/media/MediaPlayer;->setDataSource(Landroid/content/Context;Landroid/net/Uri;)V

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->mediaPlayer:Landroid/media/MediaPlayer;

 

invoke-virtual {v0}, Landroid/media/MediaPlayer;->prepareAsync()V

:try_end_70

.catch Ljava/lang/IllegalStateException; {:try_start_1e .. :try_end_70} :catch_71

.catch Ljava/io/IOException; {:try_start_1e .. :try_end_70} :catch_8c

.catch Ljava/lang/Exception; {:try_start_1e .. :try_end_70} :catch_d0

 

goto :goto_1a

 

:catch_71

move-exception v0

 

sget-object v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->TAG:Ljava/lang/String;

 

new-instance v2, Ljava/lang/StringBuilder;

 

const-string v3, "playlistPlay IllegalStateException songs "

 

invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

 

sget v3, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

 

move-result-object v2

 

invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

 

move-result-object v2

 

invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

invoke-virtual {v0}, Ljava/lang/IllegalStateException;->printStackTrace()V

 

goto :goto_1a

 

:catch_8c

move-exception v0

 

sget-object v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->TAG:Ljava/lang/String;

 

new-instance v2, Ljava/lang/StringBuilder;

 

const-string v3, "playlistPlay IOException songs "

 

invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

 

sget v3, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

 

move-result-object v2

 

invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

 

move-result-object v2

 

invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistUriArray:Ljava/util/ArrayList;

 

invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

 

move-result v0

 

sget v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->CurrentPlaylistPos:I

 

if-le v0, v1, :cond_1a

 

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistUriArray:Ljava/util/ArrayList;

 

sget-object v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistUriArray:Ljava/util/ArrayList;

 

sget v2, Lcom/rockstargames/gtalcs/GTAPlaylist;->CurrentPlaylistPos:I

 

invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

 

move-result-object v1

 

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

 

move-result v0

 

if-eqz v0, :cond_c6

 

sget v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

add-int/lit8 v0, v0, -0x1

 

sput v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

:cond_c6

sget-object v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->mediaPlayer:Landroid/media/MediaPlayer;

 

invoke-virtual {v0}, Landroid/media/MediaPlayer;->reset()V

 

invoke-static {}, Lcom/rockstargames/gtalcs/GTAPlaylist;->playlistPlay()V

 

goto/16 :goto_1a

 

:catch_d0

move-exception v0

 

sget-object v1, Lcom/rockstargames/gtalcs/GTAPlaylist;->TAG:Ljava/lang/String;

 

new-instance v2, Ljava/lang/StringBuilder;

 

const-string v3, "playlistPlay Exception songs "

 

invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

 

sget v3, Lcom/rockstargames/gtalcs/GTAPlaylist;->numSongs:I

 

invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

 

move-result-object v2

 

invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

 

move-result-object v2

 

invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

 

invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

 

goto/16 :goto_1a

.end method

 

.method public static restartPlaylist()V

.registers 1

 

const/4 v0, -0x1

 

sput v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->CurrentPlaylistPos:I

 

sput v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->SongDuration:I

 

const/4 v0, 0x0

 

sput v0, Lcom/rockstargames/gtalcs/GTAPlaylist;->CurrentPlaylistPos:I

 

return-void

.end method

 

Edited by MarjinaL -TR

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.