当前位置: 首页 > news >正文

个人做淘宝客网站要备案/免费网站制作教程

个人做淘宝客网站要备案,免费网站制作教程,有没有免费看的视频,网站源码怎么获取&#xfeff;&#xfeff;adb shell am instrument [options] <COMPONENT> 作用&#xff1a;启动对instrument实例的监视。 参数[options]&#xff1a; -e <key> <value> // -e选项需要放在-w选项之前 作用&#xff1a;提供了以键值对形式存在的测试选项。An…


adb shell am instrument [options] <COMPONENT>

作用:启动对instrument实例的监视。

参数[options]:

-e <key> <value> // -e选项需要放在-w选项之前

作用:提供了以键值对形式存在的测试选项。Android中提供了多种键值对,具体参见下表。
举例:-e class com.android.phone.FIncomingCallTests#testRejectCall

-r

作用:以原始形式输出测试结果。该选项通常是在性能测试时与-e perf true一起使用。

参数 <COMPONENT>:

-w <test_package_name>/<runner_class> //<test_package_name>和<runner_class>在测试工程的AndroidManifest.xml中查找

作用:保持adb shell打开直至测试完成
举例:-w com.android.phone.tests/com.android.phone.runners.FunctionalTestRunner

<key> <value>参考表

KeyValueDescription
package<Java_package_name>The fully-qualified Java package name for one of the packages in the test application. Any test case class that uses this package name is executed. Notice that this is not anAndroid package name; a test package has a single Android package name but may have several Java packages within it.
class<class_name>The fully-qualified Java class name for one of the test case classes. Only this test case class is executed.
<class_name>#method nameA fully-qualified test case class name, and one of its methods. Only this method is executed. Note the hash mark (#) between the class name and the method name.
functrueRuns all test classes that extend InstrumentationTestCase.
unittrueRuns all test classes that do not extend eitherInstrumentationTestCase orPerformanceTestCase.
size[small | medium | large]Runs a test method annotated by size. The annotations are@SmallTest, @MediumTest, and @LargeTest.
perftrueRuns all test classes that implement PerformanceTestCase. When you use this option, also specify the-r flag for am instrument, so that the output is kept in raw format and not re-formatted as test results.
debugtrueRuns tests in debug mode.
logtrueLoads and logs all specified tests, but does not run them. The test information appears inSTDOUT. Use this to verify combinations of other filters and test specifications.
emmatrueRuns an EMMA code coverage analysis and writes the output to/data//coverage.ec on the device. To override the file location, use thecoverageFile key that is described in the following entry.

Note: This option requires an EMMA-instrumented build of the test application, which you can generate with thecoverage target.

coverageFile<filename>

Overrides the default location of the EMMA coverage file on the device. Specify this value as a path and filename in UNIX format. The default filename is described in the entry for theemma key

 

adb shell am start [options] <INTENT>

作用:启动一个activity

举例:adb shell am start -a com.lt.test.action.SECOND

举例:adb shell am start -n com.lt.test/.MyActivity

说明:[options]与<INTENT>参见 http://developer.android.com/tools/help/adb.html#am

adb shell am startservice [options] <INTENT>

作用:启动一个service

举例:adb shell am startservice -a com.lt.test.action.ONESERVICE
举例:adb shell am startservice -n com.lt.test/.MyService

 

adb shell am force-stop <PACKAGE>
作用:强制关闭一个应用程序

举例:adb shell am force-stop com.lt.test

 

adb shell am broadcast [options] <INTENT>

作用:发送一个广播
举例:adb shell am broadcast -a "action_finish" (发送一个广播去关闭一个activity)
举例:adb shell am broadcast -a android.intent.action.MASTER_CLEAR(恢复出厂设置的方法,会清除内存所有内容)

举例:adb shell am broadcast -n com.lt.test/.MyBroadcast

 

adb shell pm list packages [options] <INTENT>

作用:列举出所有包含<INTENT>的package

举例:adb shell pm list packages com.lt

说明:[options]与<INTENT>参见 http://developer.android.com/tools/help/adb.html#pm

http://www.jmfq.cn/news/4982257.html

相关文章:

  • 深圳外贸网站建设公司价格/网站开发制作培训学校
  • 杭州网站建设推广公司/知名网络推广
  • 医院网站详细设计/移动建站优化
  • 免费企业网站建立/湖北网站seo策划
  • 沈阳做网站的公司推荐/做网络推广一个月的收入
  • 网站站点建设的端口/百度答主中心入口
  • 网站建设 昆明 价格/ip域名查询
  • 绵阳专门做网站的公司/巨量数据分析入口
  • 东莞网站制作多少钱/廊坊seo排名公司
  • 斐讯k3做网站/提高网站排名的软件
  • 如何在阿里巴巴上做网站/怎样建网站
  • 微商产品做网站/广州最新疫情通报
  • 找网站做任务qq红包/如何做好网络推广
  • 兼职网站建设策划书/网络营销该如何发展
  • 网站开发价位评估/网络营销网课
  • 企业网站开发毕业报告/seo流量排行榜神器
  • 学做日本料理网站/哪些网站推广不收费
  • 做网站的有哪些公司/世界杯排名
  • 能在线做国二计算机题目的网站/全网最低价24小时自助下单平台
  • 头像制作logo免费生成器在线/泉州seo代理计费
  • 品牌网站策划方案/怎么设置自己的网站
  • 个人做动漫资源网站/做seo用哪种建站程序最好
  • 成华区微信网站建设/网络营销专业介绍
  • thinkphp做的网站怎么预览/东莞网络优化哪家好
  • 软件工程师证书有哪些/什么是网站seo
  • 搭建好网站生情好域名后怎么做/百度电脑版网址
  • 做公司+网站建设价格/google网站入口
  • 哈尔滨做网站的公司/关键词查询工具包括哪些
  • 山西网站建设价格/中山seo推广优化
  • 新手学做网站txt/百度指数三个功能模块