예제 #1
0
  @Override
  public void search() {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    CaseHelper.search();
    CaseHelper.sleep(EXEC_TIMEOUT);
  }
예제 #2
0
  @Override
  public void clickname(String name) {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    CaseHelper.clickByText(name);
    CaseHelper.sleep(EXEC_TIMEOUT);
  }
예제 #3
0
  @Override
  public void keycode(String keyCode, String uc) {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    ////////////////////////// ==============
    CaseHelper.keycode(0);
    CaseHelper.sleep(EXEC_TIMEOUT);
  }
예제 #4
0
 @Override
 public void sleep(int time) {
   if (LuaManager.getInstance().isStopLua()) {
     return;
   }
   CaseHelper.sleep(time);
 }
예제 #5
0
  @Override
  public void openQuickSettings() {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    CaseHelper.openQuickSettings();
  }
예제 #6
0
  @Override
  public void openNotification() {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    CaseHelper.openNotification();
  }
예제 #7
0
  @Override
  public void takeScreenshot(String path) {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    CaseHelper.takeScreenshot(path);
  }
예제 #8
0
  @Override
  public void closesleep() {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    CaseHelper.sleepScreen();
  }
예제 #9
0
  @Override
  public void wakeUp() {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    CaseHelper.wakeUp();
  }
예제 #10
0
  @Override
  public void orientationRight() {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    CaseHelper.orientationRight();
  }
예제 #11
0
  @Override
  public void swipe(int startX, int startY, int endX, int endY, int steps) {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    CaseHelper.swipe(startX, startY, endX, endY, steps);
  }
예제 #12
0
  @Override
  public void clickclass(String className) {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    CaseHelper.clickByClassName(className);
  }
예제 #13
0
  @Override
  public void click(int x, int y) {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    CaseHelper.click(x, y);
  }
예제 #14
0
  @Override
  public int getColor(int x, int y) {
    if (LuaManager.getInstance().isStopLua()) {
      return -1;
    }

    int color = CaseHelper.getColor(x, y);
    ULog.i("get color: (" + x + "," + y + ")=" + color);
    return color;
  }
예제 #15
0
  @Override
  public void residedittext(String resid, String content) {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    String defaultIme = CaseMain.DEFAULT_IME;
    String utf7Ime = CaseMain.UTF7_IME;
    CaseHelper.inputContentByResourceId(resid, content, utf7Ime, defaultIme);
  }
예제 #16
0
  @Override
  public void classedittext(String className, String content) {
    if (LuaManager.getInstance().isStopLua()) {
      return;
    }

    String defaultIme = CaseMain.DEFAULT_IME;
    String utf7Ime = CaseMain.UTF7_IME;
    CaseHelper.inputContentByClasName(className, content, utf7Ime, defaultIme);
  }