Exploit databaseDownload repository ZIP
GH-6ece003a571ae192e197761e9cc9423a
nicchongwb/rootsmart-v2.0
Sources for CVE-2019-2215
37 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files15
nicchongwb/rootsmart-v2.0Revision 116e5822bd19
- ↑..Parent directory
- AnimationCell.java
- AnimationGrid.java
- Cell.java
- Encrypt.java
- EncryptFile.kt
- Grid.java
- InputListener.java
- Locker.java
- MainActivity.java
- MainGame.java
- MainView.java
- PostData.java
- SplitToolbar.java
- Temproot.java
- Tile.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
2048-Game/app/src/main/java/aarkay/a2048game/AnimationGrid.java
Java · 2,892 bytespackage aarkay.a2048game;
import java.util.ArrayList;
public class AnimationGrid {
public final ArrayList<AnimationCell> globalAnimation = new ArrayList<>();
private final ArrayList<AnimationCell>[][] field;
private int activeAnimations = 0;
private boolean oneMoreFrame = false;
public AnimationGrid(int x, int y) {
field = new ArrayList[x][y];
for (int xx = 0; xx < x; xx++) {
for (int yy = 0; yy < y; yy++) {
field[xx][yy] = new ArrayList<>();
}
}
}
public void startAnimation(int x, int y, int animationType, long length, long delay, int[] extras) {
AnimationCell animationToAdd = new AnimationCell(x, y, animationType, length, delay, extras);
if (x == -1 && y == -1) {
globalAnimation.add(animationToAdd);
} else {
field[x][y].add(animationToAdd);
}
activeAnimations = activeAnimations + 1;
}
public void tickAll(long timeElapsed) {
ArrayList<AnimationCell> cancelledAnimations = new ArrayList<>();
for (AnimationCell animation : globalAnimation) {
animation.tick(timeElapsed);
if (animation.animationDone()) {
cancelledAnimations.add(animation);
activeAnimations = activeAnimations - 1;
}
}
for (ArrayList<AnimationCell>[] array : field) {
for (ArrayList<AnimationCell> list : array) {
for (AnimationCell animation : list) {
animation.tick(timeElapsed);
if (animation.animationDone()) {
cancelledAnimations.add(animation);
activeAnimations = activeAnimations - 1;
}
}
}
}
for (AnimationCell animation : cancelledAnimations) {
cancelAnimation(animation);
}
}
public boolean isAnimationActive() {
if (activeAnimations != 0) {
oneMoreFrame = true;
return true;
} else if (oneMoreFrame) {
oneMoreFrame = false;
return true;
} else {
return false;
}
}
public ArrayList<AnimationCell> getAnimationCell(int x, int y) {
return field[x][y];
}
public void cancelAnimations() {
for (ArrayList<AnimationCell>[] array : field) {
for (ArrayList<AnimationCell> list : array) {
list.clear();
}
}
globalAnimation.clear();
activeAnimations = 0;
}
private void cancelAnimation(AnimationCell animation) {
if (animation.getX() == -1 && animation.getY() == -1) {
globalAnimation.remove(animation);
} else {
field[animation.getX()][animation.getY()].remove(animation);
}
}
}