[Android Themes] Adi Aisiteru Reborn:
VERTICAL CRT OFF ANIMATION

DECOMPILE services.jar

\com\android\server\power\ElectronBeam.smali

1.find this method

.method private drawHStretch(F)V

Delete that line until its .end method

.method private drawHStretch(F)V
-
-
-
DELETE that line until its .end method
-
-
-
.end method

and replace with this

.method private drawHStretch(F)V
.registers 9
.parameter "stretch"

.prologue
const v6, 0x8074

const/4 v5, 0x0

const/high16 v4, 0x3f80

.line 325
const/high16 v1, 0x4100

invoke-static {p1, v1}, Lcom/android/server/power/ElectronBeam;->scurve(FF)F

move-result v0

.line 330
.local v0, ag:F
cmpg-float v1, p1, v4

if-gez v1, :cond_37

.line 332
const/4 v1, 0x2

const/16 v2, 0x1406

iget-object v3, p0, Lcom/android/server/power/ElectronBeam;->mVertexBuffer:Ljava/nio/FloatBuffer;

invoke-static {v1, v2, v5, v3}, Landroid/opengl/GLES10;->glVertexPointer(IIILjava/nio/Buffer;)V

.line 333
invoke-static {v6}, Landroid/opengl/GLES10;->glEnableClientState(I)V

.line 336
iget-object v1, p0, Lcom/android/server/power/ElectronBeam;->mVertexBuffer:Ljava/nio/FloatBuffer;

iget v2, p0, Lcom/android/server/power/ElectronBeam;->mDisplayWidth:I

int-to-float v2, v2

iget v3, p0, Lcom/android/server/power/ElectronBeam;->mDisplayHeight:I

int-to-float v3, v3

invoke-static {v1, v2, v3, v0}, Lcom/android/server/power/ElectronBeam;->setHStretchQuad(Ljava/nio/FloatBuffer;FFF)V

.line 337
sub-float v1, v4, v0

sub-float v2, v4, v0

sub-float v3, v4, v0

invoke-static {v1, v2, v3, v4}, Landroid/opengl/GLES10;->glColor4f(FFFF)V

.line 338
const/4 v1, 0x6

const/4 v2, 0x4

invoke-static {v1, v5, v2}, Landroid/opengl/GLES10;->glDrawArrays(III)V

.line 341
invoke-static {v6}, Landroid/opengl/GLES10;->glDisableClientState(I)V

.line 343
:cond_37
return-void
.end method

2.NEXT find this method

.method private drawVStretch(F)V

Delete that line until its .end method

.method private drawVStretch(F)V
-
-
-
- DELETE that line until its .end method
-
-
-
.end method

and Replace with this

.method private drawVStretch(F)V
.registers 13
.parameter "stretch"

.prologue
const/4 v10, 0x6

const/4 v9, 0x4

const/16 v8, 0xde1

const/4 v7, 0x1

const/4 v6, 0x0

.line 253
const/high16 v3, 0x40f0

invoke-static {p1, v3}, Lcom/android/server/power/ElectronBeam;->scurve(FF)F

move-result v2

.line 254
.local v2, ar:F
const/high16 v3, 0x4100

invoke-static {p1, v3}, Lcom/android/server/power/ElectronBeam;->scurve(FF)F

move-result v1

.line 255
.local v1, ag:F
const/high16 v3, 0x4108

invoke-static {p1, v3}, Lcom/android/server/power/ElectronBeam;->scurve(FF)F

move-result v0

.line 262
.local v0, ab:F
invoke-static {v7, v7}, Landroid/opengl/GLES10;->glBlendFunc(II)V

.line 263
const/16 v3, 0xbe2

invoke-static {v3}, Landroid/opengl/GLES10;->glEnable(I)V

.line 266
const/4 v3, 0x2

const/16 v4, 0x1406

iget-object v5, p0, Lcom/android/server/power/ElectronBeam;->mVertexBuffer:Ljava/nio/FloatBuffer;

invoke-static {v3, v4, v6, v5}, Landroid/opengl/GLES10;->glVertexPointer(IIILjava/nio/Buffer;)V

.line 267
const v3, 0x8074

invoke-static {v3}, Landroid/opengl/GLES10;->glEnableClientState(I)V

.line 270
iget-object v3, p0, Lcom/android/server/power/ElectronBeam;->mTexNames:[I

aget v3, v3, v6

invoke-static {v8, v3}, Landroid/opengl/GLES10;->glBindTexture(II)V

.line 271
const/16 v4, 0x2300

const/16 v5, 0x2200

iget v3, p0, Lcom/android/server/power/ElectronBeam;->mMode:I

if-nez v3, :cond_c8

const/16 v3, 0x2100

:goto_3f
invoke-static {v4, v5, v3}, Landroid/opengl/GLES10;->glTexEnvx(III)V

.line 273
const/16 v3, 0x2800

const/16 v4, 0x2601

invoke-static {v8, v3, v4}, Landroid/opengl/GLES10;->glTexParameterx(III)V

.line 275
const/16 v3, 0x2801

const/16 v4, 0x2601

invoke-static {v8, v3, v4}, Landroid/opengl/GLES10;->glTexParameterx(III)V

.line 277
const/16 v3, 0x2802

const v4, 0x812f

invoke-static {v8, v3, v4}, Landroid/opengl/GLES10;->glTexParameterx(III)V

.line 279
const/16 v3, 0x2803

const v4, 0x812f

invoke-static {v8, v3, v4}, Landroid/opengl/GLES10;->glTexParameterx(III)V

.line 281
invoke-static {v8}, Landroid/opengl/GLES10;->glEnable(I)V

.line 282
const/4 v3, 0x2

const/16 v4, 0x1406

iget-object v5, p0, Lcom/android/server/power/ElectronBeam;->mTexCoordBuffer:Ljava/nio/FloatBuffer;

invoke-static {v3, v4, v6, v5}, Landroid/opengl/GLES10;->glTexCoordPointer(IIILjava/nio/Buffer;)V

.line 283
const v3, 0x8078

invoke-static {v3}, Landroid/opengl/GLES10;->glEnableClientState(I)V

.line 286
iget-object v3, p0, Lcom/android/server/power/ElectronBeam;->mVertexBuffer:Ljava/nio/FloatBuffer;

iget v4, p0, Lcom/android/server/power/ElectronBeam;->mDisplayWidth:I

int-to-float v4, v4

iget v5, p0, Lcom/android/server/power/ElectronBeam;->mDisplayHeight:I

int-to-float v5, v5

invoke-static {v3, v4, v5, v2}, Lcom/android/server/power/ElectronBeam;->setVStretchQuad(Ljava/nio/FloatBuffer;FFF)V

.line 287
invoke-static {v7, v6, v6, v7}, Landroid/opengl/GLES10;->glColorMask(ZZZZ)V

.line 288
invoke-static {v10, v6, v9}, Landroid/opengl/GLES10;->glDrawArrays(III)V

.line 291
iget-object v3, p0, Lcom/android/server/power/ElectronBeam;->mVertexBuffer:Ljava/nio/FloatBuffer;

iget v4, p0, Lcom/android/server/power/ElectronBeam;->mDisplayWidth:I

int-to-float v4, v4

iget v5, p0, Lcom/android/server/power/ElectronBeam;->mDisplayHeight:I

int-to-float v5, v5

invoke-static {v3, v4, v5, v1}, Lcom/android/server/power/ElectronBeam;->setVStretchQuad(Ljava/nio/FloatBuffer;FFF)V

.line 292
invoke-static {v6, v7, v6, v7}, Landroid/opengl/GLES10;->glColorMask(ZZZZ)V

.line 293
invoke-static {v10, v6, v9}, Landroid/opengl/GLES10;->glDrawArrays(III)V

.line 296
iget-object v3, p0, Lcom/android/server/power/ElectronBeam;->mVertexBuffer:Ljava/nio/FloatBuffer;

iget v4, p0, Lcom/android/server/power/ElectronBeam;->mDisplayWidth:I

int-to-float v4, v4

iget v5, p0, Lcom/android/server/power/ElectronBeam;->mDisplayHeight:I

int-to-float v5, v5

invoke-static {v3, v4, v5, v0}, Lcom/android/server/power/ElectronBeam;->setVStretchQuad(Ljava/nio/FloatBuffer;FFF)V

.line 297
invoke-static {v6, v6, v7, v7}, Landroid/opengl/GLES10;->glColorMask(ZZZZ)V

.line 298
invoke-static {v10, v6, v9}, Landroid/opengl/GLES10;->glDrawArrays(III)V

.line 301
invoke-static {v8}, Landroid/opengl/GLES10;->glDisable(I)V

.line 302
const v3, 0x8078

invoke-static {v3}, Landroid/opengl/GLES10;->glDisableClientState(I)V

.line 303
invoke-static {v7, v7, v7, v7}, Landroid/opengl/GLES10;->glColorMask(ZZZZ)V

.line 306
iget v3, p0, Lcom/android/server/power/ElectronBeam;->mMode:I

if-ne v3, v7, :cond_bc

.line 307
const/high16 v3, 0x3f80

invoke-static {v1, v1, v1, v3}, Landroid/opengl/GLES10;->glColor4f(FFFF)V

.line 308
invoke-static {v10, v6, v9}, Landroid/opengl/GLES10;->glDrawArrays(III)V

.line 312
:cond_bc
const v3, 0x8074

invoke-static {v3}, Landroid/opengl/GLES10;->glDisableClientState(I)V

.line 313
const/16 v3, 0xbe2

invoke-static {v3}, Landroid/opengl/GLES10;->glDisable(I)V

.line 314
return-void

.line 271
:cond_c8
const/16 v3, 0x1e01

goto/16 :goto_3f
.end method

3. NEXT find this method

.method private static setHStretchQuad(Ljava/nio/FloatBuffer;FFF)V

DELETE that line until its .end method

.method private static setHStretchQuad(Ljava/nio/FloatBuffer;FFF)V
-
-
-
- DELETE that line until its .end method
-
-
-
.end method

and Replace with this

.method private static setHStretchQuad(Ljava/nio/FloatBuffer;FFF)V
.registers 11
.parameter "vtx"
.parameter "dw"
.parameter "dh"
.parameter "a"

.prologue
const/high16 v6, 0x3f80

const/high16 v5, 0x3f00

.line 354
const/high16 v1, 0x3f80

.line 355
.local v1, w:F
mul-float v4, p1, p3

add-float v0, p1, v4

.line 356
.local v0, h:F
sub-float v4, p1, v6

mul-float v2, v4, v5

.line 357
.local v2, x:F
sub-float v4, p2, v0

mul-float v3, v4, v5

.line 358
.local v3, y:F
invoke-static {p0, v2, v3, v6, v0}, Lcom/android/server/power/ElectronBeam;->setQuad(Ljava/nio/FloatBuffer;FFFF)V

.line 359
return-void
.end method

4. NEXT find this method

.method private static setVStretchQuad(Ljava/nio/FloatBuffer;FFF)V

Delete that line Until its .end method

.method private static setVStretchQuad(Ljava/nio/FloatBuffer;FFF)V
-
-
-
- DELETE that line until its .end method
-
-
-
-.end.method

and Replace with this

.method private static setVStretchQuad(Ljava/nio/FloatBuffer;FFF)V
.registers 10
.parameter "vtx"
.parameter "dw"
.parameter "dh"
.parameter "a"

.prologue
const/high16 v5, 0x3f00

.line 346
mul-float v4, p1, p3

sub-float v1, p1, v4

.line 347
.local v1, w:F
mul-float v4, p2, p3

add-float v0, p2, v4

.line 348
.local v0, h:F
sub-float v4, p1, v1

mul-float v2, v4, v5

.line 349
.local v2, x:F
sub-float v4, p2, v0

mul-float v3, v4, v5

.line 350
.local v3, y:F
invoke-static {p0, v2, v3, v1, v0}, Lcom/android/server/power/ElectronBeam;->setQuad(Ljava/nio/FloatBuffer;FFFF)V

.line 351
return-void
.end method

DONE !!! and Compile.