本文整理汇总了Java中com.alibaba.weex.constants.Constants类的典型用法代码示例。如果您正苦于以下问题:Java Constants类的具体用法?Java Constants怎么用?Java Constants使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Constants类属于com.alibaba.weex.constants包,在下文中一共展示了Constants类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
addAllTargetView("TC_");
sleep(1000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:24,代码来源:WeexUiTestCaseTcColorType.java
示例2: handleMessage
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
@Override
public boolean handleMessage(Message msg) {
switch (msg.what) {
case Constants.HOT_REFRESH_CONNECT:
HotRefreshManager.getInstance().connect(msg.obj.toString());
break;
case Constants.HOT_REFRESH_DISCONNECT:
HotRefreshManager.getInstance().disConnect();
break;
case Constants.HOT_REFRESH_REFRESH:
loadWXfromService(mUri.toString());
break;
case Constants.HOT_REFRESH_CONNECT_ERROR:
Toast.makeText(this, "hot refresh connect error!", Toast.LENGTH_SHORT).show();
break;
}
return false;
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:21,代码来源:WXPageActivity.java
示例3: onOptionsItemSelected
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == android.R.id.home) {
finish();
return true;
} else if (id == R.id.action_refresh) {
String scheme=mUri.getScheme();
if (mUri.isHierarchical() && (TextUtils.equals(scheme,"http") || TextUtils.equals(scheme,"https"))) {
String weexTpl = mUri.getQueryParameter(Constants.WEEX_TPL_KEY);
String url = TextUtils.isEmpty(weexTpl) ? mUri.toString() : weexTpl;
loadWXfromService(url);
return true;
}
}
return super.onOptionsItemSelected(item);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:18,代码来源:WXPageActivity.java
示例4: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp into!!");
setActivityInitialTouchMode(false);
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
setActivity(WXPageActivity.wxPageActivityInstance);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
addAllTargetView("TC_");
Thread.sleep(3000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:23,代码来源:WeexUiTestCaseTcDowngradeDevMTrue.java
示例5: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
Thread.sleep(2000);
TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
addAllTargetView("TC_");
Thread.sleep(3000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:27,代码来源:WeexUiTestCaseTcTextStyleColumn.java
示例6: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
Thread.sleep(2000);
TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
addAllTargetView("TC_");
Thread.sleep(3000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:27,代码来源:WeexUiTestCaseTcTextStyleRow.java
示例7: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
Thread.sleep(3000);
addAllTargetView("TC_");
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:22,代码来源:WeexUiTestCaseTcColorUpdate.java
示例8: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
addAllTargetView("TC_");
Thread.sleep(3000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:24,代码来源:WeexUiTestCaseTcInputType.java
示例9: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
Thread.sleep(3000);//因为太快
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
addAllTargetView("TC_");
Thread.sleep(3000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:24,代码来源:WeexUiTestCaseTcInputPlaceholder.java
示例10: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG, "activity1=" + waTestPageActivity.toString());
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
addAllTargetView("TC_");
Thread.sleep(3000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:24,代码来源:WeexUiTestCaseTcInputEvent.java
示例11: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp into!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
setActivity(WXPageActivity.wxPageActivityInstance);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
addAllTargetView("TC_");
Thread.sleep(3000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:26,代码来源:WeexUiTestCaseTcImageUpdate.java
示例12: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG, "activity1=" + waTestPageActivity.toString());
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
setUpToFindComponet("TC_", this);
Thread.sleep(3000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:24,代码来源:WeexUiTestCaseTCAHrefEvent.java
示例13: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG, "activity1=" + waTestPageActivity.toString());
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
setUpToFindComponet("TC_", this);
Thread.sleep(2000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:23,代码来源:WeexUiTestCaseTCAHrefUpdate.java
示例14: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG, "activity1=" + waTestPageActivity.toString());
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
setUpToFindComponet("TC_", this);
Thread.sleep(3000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:23,代码来源:WeexUiTestCaseTCAHrefStyle.java
示例15: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
addAllTargetView("TC_");
Thread.sleep(3000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:23,代码来源:WeexUiTestCaseTcElementOpt.java
示例16: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
addAllTargetView("TC_");
Thread.sleep(3000);
}
开发者ID:amap-demo,项目名称:weex-3d-map,代码行数:22,代码来源:WeexUiTestCaseTcSlider.java
示例17: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp into!!");
setActivityInitialTouchMode(false);
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
setActivity(WXPageActivity.wxPageActivityInstance);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
}
开发者ID:Laisly,项目名称:weex,代码行数:19,代码来源:WeexUiTestCaseTcDowngradeOSVFalse.java
示例18: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
weappApplication = new WeappJsBaseTestCase();
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
sleep(1000);
}
开发者ID:Laisly,项目名称:weex,代码行数:22,代码来源:WeexPerTestCaseListPerfWithAppendTree.java
示例19: setUp
import com.alibaba.weex.constants.Constants; //导入依赖的package包/类
public void setUp() throws Exception{
Log.e("TestScript_Guide", "setUp test!!");
setActivityInitialTouchMode(false);
mInstrumentation = getInstrumentation();
Intent intent = new Intent();
intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
waTestPageActivity = getActivity();
// waTestPageActivity.getIntent().getData().toString();
Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
Thread.sleep(3000);
mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
setViewGroup(mViewGroup);
mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_"); }
开发者ID:Laisly,项目名称:weex,代码行数:19,代码来源:WeexUiTestCaseTcColorUpdate.java
注:本文中的com.alibaba.weex.constants.Constants类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论