本文整理匯總了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);
}