Android Open Source - androidtestdebug By






From Project

Back to project page androidtestdebug.

License

The source code is released under:

MIT License

If you think the Android project androidtestdebug listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package cc.iqa.iquery.mr;
//  w w  w .  ja  v a 2s. com
import java.io.IOException;
import java.util.List;

import cc.iqa.iquery.ITreeNode;
import cc.iqa.iquery.iQuery;
import cc.iqa.iquery.iQueryParser;

import com.google.common.base.Preconditions;
import com.android.monkeyrunner.JythonUtils;
import com.android.monkeyrunner.doc.MonkeyRunnerExported;

import org.antlr.runtime.RecognitionException;
import org.python.core.ArgParser;
import org.python.core.ClassDictInit;
import org.python.core.PyObject;

@SuppressWarnings("serial")
public class By extends PyObject implements ClassDictInit {
  public static void classDictInit(PyObject dict) {
    JythonUtils.convertDocAnnotationsForClass(By.class, dict);
  }

  private String _selector;
  private iQueryParser _parser;

  By(String selector) throws IOException, RecognitionException {
    _selector = selector;
    _parser = iQuery.createParser(_selector);
  }

  @MonkeyRunnerExported(doc = "??iQuery????", args = { "selector" }, argDocs = { "iQuery??????" })
  public static By iquery(PyObject[] args, String[] kws) throws Exception, RecognitionException {
    ArgParser ap = QueryableDevice.createArgParser(args, kws, By.class, "iquery");
    Preconditions.checkNotNull(ap);

    String selector = ap.getString(0);
    return new By(selector);
  }

  public static By iquery(String iquery) throws IOException, RecognitionException {
    return new By(iquery);
  }

  public String getSelector() { return _selector; }

  public List<ITreeNode> query(List<ITreeNode> candidates) throws RecognitionException {
    return _parser.query(candidates);
  }
}




Java Source Code List

.????2.java
.ClbDemoClass.java
.DataDrivenDemoTest.java
.DeadLockDemo.java
.Dekker.java
.FirstDemo.java
.FirstDemo.java
.MemoryLog.java
.RaceConditionFix.java
.RaceCondition.java
.Sample1Test.java
.Sample1.java
.Sample2Test.java
.Sample2.java
.SampleSuite.java
bpdemo.BpDemo.java
bpdemo.ClbDemoClass.java
.bpdemo.java
cc.iqa.iquery.mr.By.java
cc.iqa.iquery.mr.ControlHierarchy.java
cc.iqa.iquery.mr.Plugin.java
cc.iqa.iquery.mr.QueryableDevice.java
chapter11.HelloWorld.java
com.android.example.spinner.SpinnerActivity.java
com.example.android.hcgallery.CameraFragment.java
com.example.android.hcgallery.CameraFragment.java
com.example.android.hcgallery.CameraFragment.java
com.example.android.hcgallery.CameraSample.java
com.example.android.hcgallery.CameraSample.java
com.example.android.hcgallery.CameraSample.java
com.example.android.hcgallery.ContentFragment.java
com.example.android.hcgallery.ContentFragment.java
com.example.android.hcgallery.ContentFragment.java
com.example.android.hcgallery.DirectoryCategory.java
com.example.android.hcgallery.DirectoryCategory.java
com.example.android.hcgallery.DirectoryCategory.java
com.example.android.hcgallery.DirectoryEntry.java
com.example.android.hcgallery.DirectoryEntry.java
com.example.android.hcgallery.DirectoryEntry.java
com.example.android.hcgallery.Directory.java
com.example.android.hcgallery.Directory.java
com.example.android.hcgallery.Directory.java
com.example.android.hcgallery.FitCenterFrameLayout.java
com.example.android.hcgallery.FitCenterFrameLayout.java
com.example.android.hcgallery.FitCenterFrameLayout.java
com.example.android.hcgallery.INotifyDirectoryChanged.java
com.example.android.hcgallery.INotifyDirectoryChanged.java
com.example.android.hcgallery.INotifyDirectoryChanged.java
com.example.android.hcgallery.MainActivity.java
com.example.android.hcgallery.MainActivity.java
com.example.android.hcgallery.MainActivity.java
com.example.android.hcgallery.TitlesFragment.java
com.example.android.hcgallery.TitlesFragment.java
com.example.android.hcgallery.TitlesFragment.java
com.example.tests.FirstDemo.java
.gcdemo.java
.gcdemo.java
.????.java
.???????????.java
temp.CaseErrorException.java
temp.Constants.java
temp.Login2blogTest.java
temp.UserOperationsHelper.java