本文整理汇总了Java中android.test.TouchUtils.dragQuarterScreenUp方法的典型用法代码示例。如果您正苦于以下问题:Java TouchUtils.dragQuarterScreenUp方法的具体用法?Java TouchUtils.dragQuarterScreenUp怎么用?Java TouchUtils.dragQuarterScreenUp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.test.TouchUtils
的用法示例。
在下文中一共展示了TouchUtils.dragQuarterScreenUp方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUpToFindComponet
import android.test.TouchUtils; //导入方法依赖的package包/类
/**
*
*/
public void setUpToFindComponet(String target, InstrumentationTestCase test){
int max = 60;
int count = 0;
while(mCaseListIndexView.size() == 0){
if (count < max){
TouchUtils.dragQuarterScreenUp(test, WXPageActivity.wxPageActivityInstance );
mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
count ++;
}
else{
targetComponetNotFound = true;
}
}
}
示例2: setUpToFindComponet
import android.test.TouchUtils; //导入方法依赖的package包/类
/**
*
*/
public void setUpToFindComponet(String target, InstrumentationTestCase test){
int max = 60;
int count = 0;
while(mCaseListIndexView.size() == 0){
if (count < max){
TouchUtils.dragQuarterScreenUp(test, WXPageActivity.wxPageActivityInstance );
mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
count ++;
}
else{
break;
}
}
}
示例3: findTargetComponetIfNotFound
import android.test.TouchUtils; //导入方法依赖的package包/类
/**
*
*/
public void findTargetComponetIfNotFound(String target, InstrumentationTestCase test){
if(mCaseListIndexView.size() ==1 || targetComponetNotFound){
if(((WXTextView)mCaseListIndexView.get(0))
.getText()
.toString()
.equals("TC__Home")){
TouchUtils.dragQuarterScreenUp(test,WXPageActivity.wxPageActivityInstance );
mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
}
TouchUtils.dragQuarterScreenUp(test, WXPageActivity.wxPageActivityInstance );
mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
}
}
示例4: setUpToFindComponet
import android.test.TouchUtils; //导入方法依赖的package包/类
/**
*
*/
public void setUpToFindComponet(String targert){
int max = 60;
int count = 0;
while(mCaseListIndexView.size() == 0){
if (count < max){
TouchUtils.dragQuarterScreenUp(this, this.getActivity());
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, targert);
count ++;
}
else{
break;
}
}
}
示例5: findTargetComponetIfNotFound
import android.test.TouchUtils; //导入方法依赖的package包/类
/**
*
*/
public void findTargetComponetIfNotFound(String target, InstrumentationTestCase test){
if(mCaseListIndexView.size() ==1 || targetComponetNotFound){
if(((WXTextView)mCaseListIndexView.get(0))
.getText()
.toString()
.equals("TC__Home")){
TouchUtils.dragQuarterScreenUp(test,WXPageActivity.wxPageActivityInstance );
mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
}
TouchUtils.dragQuarterScreenUp(test, WXPageActivity.wxPageActivityInstance );
mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
}
}
示例6: addAllTargetView
import android.test.TouchUtils; //导入方法依赖的package包/类
public void addAllTargetView(String target){
int max = 6;
int count =0 ;
while (count < max){
TouchUtils.dragQuarterScreenUp(this, this.getActivity());
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
mCaseListIndexView.addAll(mCaseListIndexView);
count ++;
}
}
示例7: dragQuarterScreenUp
import android.test.TouchUtils; //导入方法依赖的package包/类
public static void dragQuarterScreenUp(InstrumentationTestCase test, Activity activity) {
TouchUtils.dragQuarterScreenUp(test, activity);
}