home *** CD-ROM | disk | FTP | other *** search
- package sample;
-
- import java.io.DataInputStream;
- import java.io.IOException;
- import java.util.Timer;
- import javax.microedition.lcdui.Command;
- import javax.microedition.lcdui.CommandListener;
- import javax.microedition.lcdui.Display;
- import javax.microedition.lcdui.Displayable;
- import javax.microedition.lcdui.Graphics;
- import javax.microedition.lcdui.Image;
- import javax.microedition.midlet.MIDlet;
-
- public class SampleMIDlet extends MIDlet implements CommandListener, d {
- // $FF: renamed from: l javax.microedition.lcdui.Image
- public Image field_0;
- // $FF: renamed from: k int
- public int field_1;
- // $FF: renamed from: j b
- public b field_2 = new b(this);
- // $FF: renamed from: i c
- public c field_3;
- // $FF: renamed from: h a
- public a field_4 = new a(this);
- // $FF: renamed from: g java.util.Timer
- public Timer field_5 = new Timer();
- // $FF: renamed from: f javax.microedition.lcdui.Display
- public Display field_6 = Display.getDisplay(this);
- // $FF: renamed from: e boolean[]
- public boolean[] field_7;
- // $FF: renamed from: d int
- public int field_8 = -1;
- // $FF: renamed from: c javax.microedition.lcdui.Image
- public Image field_9;
-
- public SampleMIDlet() {
- try {
- this.field_0 = Image.createImage("/nokiasplash.png");
- } catch (Exception var2) {
- }
-
- this.field_7 = new boolean[14];
- new Command("Back", 2, 1);
- this.field_1 = 0;
- }
-
- // $FF: renamed from: f () boolean
- public boolean method_0() {
- boolean var1 = false;
-
- for(int var2 = 0; var2 < 14; ++var2) {
- var1 |= this.field_7[var2];
- this.field_7[var2] = false;
- }
-
- return var1;
- }
-
- public void startApp() {
- if (this.field_8 == -1) {
- this.field_3 = new c(this);
- }
-
- this.field_5.schedule(this.field_4, 0L, 100L);
- this.method_2((byte)0);
- this.field_6.setCurrent(this.field_2);
- }
-
- public void destroyApp(boolean var1) {
- this.field_5.cancel();
- if (this.field_3.bw != 0) {
- this.field_3.w();
- }
-
- ((MIDlet)this).notifyDestroyed();
- }
-
- public void pauseApp() {
- }
-
- // $FF: renamed from: e () void
- public void method_1() {
- this.field_3.u();
- this.destroyApp(false);
- }
-
- // $FF: renamed from: d (byte) void
- public void method_2(byte var1) {
- boolean var10001 = false;
- switch (var1) {
- case 0:
- this.field_9 = Image.createImage(this.method_5(0, 2316), 0, 2316);
- break;
- case 1:
- this.field_3.ay();
- this.field_6.setCurrent(this.field_2);
- this.field_9 = null;
- this.field_0 = null;
- }
-
- this.field_8 = var1;
- }
-
- public void commandAction(Command var1, Displayable var2) {
- }
-
- // $FF: renamed from: c (javax.microedition.lcdui.Graphics) void
- public void method_3(Graphics var1) {
- switch (this.field_8) {
- case 0:
- var1.setColor(0);
- var1.fillRect(0, 0, b.o, b.n);
- if (this.field_1 <= 12) {
- var1.drawImage(this.field_0, b.o - this.field_0.getWidth() >> 1, b.n - this.field_0.getHeight() >> 1, 20);
- } else {
- var1.drawImage(this.field_9, b.o - this.field_9.getWidth() >> 1, b.n - this.field_9.getHeight() >> 1, 20);
- }
- break;
- case 1:
- case 2:
- this.field_3.c(var1);
- }
-
- }
-
- // $FF: renamed from: b () void
- public void method_4() {
- switch (this.field_8) {
- case 0:
- ++this.field_1;
- if (this.method_0()) {
- if (this.field_1 > 12) {
- this.method_2((byte)1);
- } else {
- this.field_1 = 12;
- }
- } else if (this.field_1 > 20) {
- this.method_2((byte)1);
- }
- break;
- case 1:
- case 2:
- this.field_3.b();
- }
-
- if (this.field_6.getCurrent() == this.field_2) {
- this.field_2.h();
- }
-
- boolean var10001 = false;
- }
-
- // $FF: renamed from: a (int, int) byte[]
- public byte[] method_5(int var1, int var2) {
- Object var3 = null;
- byte[] var4 = new byte[var2];
-
- try {
- DataInputStream var7 = new DataInputStream(this.getClass().getResourceAsStream("/d"));
- if (var1 != 0) {
- var7.skip((long)var1);
- }
-
- var7.read(var4);
- var7.close();
- } catch (IOException var6) {
- }
-
- var3 = null;
- System.gc();
- return var4;
- }
- }
-