Docs: Changes to source.android.com
- 230969164 Add details about supported deviceless tests by Android Partner Docs <[email protected]>
- 230954177 Devsite localized content from translation request 1089952. by Android Partner Docs <[email protected]>
- 230924636 Devsite localized content from translation request 1092604. by Android Partner Docs <[email protected]>
- 230924621 Devsite localized content from translation request 1091268. by Android Partner Docs <[email protected]>
- 230811847 Please review this new content for "Automotive Power Mana... by Janet Davies <[email protected]>
- 230794111 Add HWASan to the docs ready for bootcamp. by Android Partner Docs <[email protected]>
- 230779068 Link to NDK docs on DAC from first reference to Make by Android Partner Docs <[email protected]>
- 230744983 Devsite localized content from translation request 1092191. by Android Partner Docs <[email protected]>
- 230744981 Devsite localized content from translation request 1093422. by Android Partner Docs <[email protected]>
- 230744964 Devsite localized content from translation request 1094193. by Android Partner Docs <[email protected]>
- 230742820 Moving Marshmallow 6.0 to No Release Planned as CTS 6.0 w... by Android Partner Docs <[email protected]>
- 230614628 Fixed broken links (they were relative and not absolute f... by Christina Nguyen <[email protected]>
- 230384953 Remove rogue parenthesis by Danielle Roberts <[email protected]>
- 230375898 Fix broken links to subpages with absolute paths by Android Partner Docs <[email protected]>
- 230364707 Devsite localized content from translation request 1093572. by Android Partner Docs <[email protected]>
- 230364690 Devsite localized content from translation request 1093439. by Android Partner Docs <[email protected]>
- 230364619 Devsite localized content from translation request 1089936. by Android Partner Docs <[email protected]>
- 230364605 Devsite localized content from translation request 1086836. by Android Partner Docs <[email protected]>
- 230364588 Devsite localized content from translation request 1093713. by Android Partner Docs <[email protected]>
- 230364494 Devsite localized content from translation request 1093448. by Android Partner Docs <[email protected]>
- 230364465 Devsite localized content from translation request 1091295. by Android Partner Docs <[email protected]>
- 230364454 Devsite localized content from translation request 1092609. by Android Partner Docs <[email protected]>
- 230364368 Devsite localized content from translation request 1048174. by Android Partner Docs <[email protected]>
- 230364354 Devsite localized content from translation request 1047598. by Android Partner Docs <[email protected]>
- 230364346 Devsite localized content from translation request 1089969. by Android Partner Docs <[email protected]>
- 230020584 Update the guide for using vendor provided bcc by Android Partner Docs <[email protected]>
- 229999258 Fix a typo in gsi.html by Android Partner Docs <[email protected]>
- 229997798 Add file_patterns attribute documentation by Android Partner Docs <[email protected]>
- 229991256 Update the characters for zh-cn and zh-tw in the Security... by Danielle Roberts <[email protected]>
- 229977174 Moving time zones to Updates (from Permissions); also upd... by Heidi von Markham <[email protected]>
- 229831729 Devsite localized content from translation request 1090171. by Android Partner Docs <[email protected]>
- 229831714 Devsite localized content from translation request 1090622. by Android Partner Docs <[email protected]>
- 229831667 Devsite localized content from translation request 1015775. by Android Partner Docs <[email protected]>
- 229831656 Devsite localized content from translation request 1088392. by Android Partner Docs <[email protected]>
- 229831644 Devsite localized content from translation request 1090166. by Android Partner Docs <[email protected]>
- 229581198 Devsite localized content from translation request 1086821. by Android Partner Docs <[email protected]>
- 229425689 Fixing typos for Shutdown (to shutdown) by Heidi von Markham <[email protected]>
- 229416134 Update a paragraph in the permission model section of the... by Luke Haviland <[email protected]>
- 229402835 Devsite localized content from translation request 553155. by Android Partner Docs <[email protected]>
- 229305053 Devsite localized content from translation request 1091266. by Android Partner Docs <[email protected]>
- 229305046 Devsite localized content from translation request 1091273. by Android Partner Docs <[email protected]>
- 229245843 Devsite localized content from translation request 1015221. by Android Partner Docs <[email protected]>
- 228916961 Fix typo by Kenneth Lau <[email protected]>
- 228796242 Change "Optional" to "Required" by Kenneth Lau <[email protected]>
- 228720589 Devsite localized content from translation request 1090636. by Android Partner Docs <[email protected]>
- 228612958 Added Joshua Laney's information to November security ack... by Luke Haviland <[email protected]>
- 228585561 Update versions file by Kenneth Lau <[email protected]>
- 228557861 Devsite localized content from translation request 1089965. by Android Partner Docs <[email protected]>
- 228541590 Fix HTML. by Android Partner Docs <[email protected]>
- 228525372 Replace unresolved variable reference in localized files. by Android Partner Docs <[email protected]>
- 228439111 Add missing < by Android Partner Docs <[email protected]>
- 228436522 Adding the January Android bulletin acknowledgements by Luke Haviland <[email protected]>
- 228407590 Correct the naming of EGL extension, and point the link t... by Android Partner Docs <[email protected]>
- 228395277 Rename Test Config to Build Config to better reflect Soon... by Android Partner Docs <[email protected]>
- 228340013 Devsite localized content from translation request 1044284. by Android Partner Docs <[email protected]>
- 228340002 Devsite localized content from translation request 1048178. by Android Partner Docs <[email protected]>
- 228339974 Devsite localized content from translation request 1089289. by Android Partner Docs <[email protected]>
- 228339806 Devsite localized content from translation request 999875. by Android Partner Docs <[email protected]>
- 228339785 Devsite localized content from translation request 1046259. by Android Partner Docs <[email protected]>
- 228339757 Devsite localized content from translation request 1049718. by Android Partner Docs <[email protected]>
- 228267452 Add information on gdbclient.py by Kenneth Lau <[email protected]>
- 228261450 Adding the Android AOSP links to the Android January secu... by Luke Haviland <[email protected]>
- 228247613 Fill in security levels for December 2018 builds. by Android Partner Docs <[email protected]>
- 228241115 Add January 2019 builds. by Android Partner Docs <[email protected]>
- 228208289 Remove _toc-*.yaml files that are no longer used due to r... by Christina Nguyen <[email protected]>
- 228205865 Devsite localized content from translation request 1048626. by Android Partner Docs <[email protected]>
- 228205856 Devsite localized content from translation request 1048155. by Android Partner Docs <[email protected]>
- 228205845 Devsite localized content from translation request 1047886. by Android Partner Docs <[email protected]>
- 228186179 Adding the January 2019 security Android/Pixel bulletins. by Luke Haviland <[email protected]>
- 228183717 Add BCC native stack dump documentation by Android Partner Docs <[email protected]>
- 228181974 Devsite localized content from translation request 1089935. by Android Partner Docs <[email protected]>
- 227911224 Add more information on cts-dev and also --skip-precondit... by Android Partner Docs <[email protected]>
- 227772142 Update image path by Danielle Roberts <[email protected]>
- 227719040 Fix broken links by Kenneth Lau <[email protected]>
- 227715850 Devsite localized content from translation request 1045494. by Android Partner Docs <[email protected]>
- 227715841 Devsite localized content from translation request 1044265. by Android Partner Docs <[email protected]>
- 227715826 Devsite localized content from translation request 1087340. by Android Partner Docs <[email protected]>
- 227709199 Fix path on images by Danielle Roberts <[email protected]>
- 227620512 Devsite localized content from translation request 1032286. by Android Partner Docs <[email protected]>
- 227620508 Devsite localized content from translation request 1087344. by Android Partner Docs <[email protected]>
- 227620485 Devsite localized content from translation request 1087104. by Android Partner Docs <[email protected]>
- 227620481 Devsite localized content from translation request 1046261. by Android Partner Docs <[email protected]>
- 227620479 Devsite localized content from translation request 1087239. by Android Partner Docs <[email protected]>
- 227617540 Devsite localized content from translation request 1007762. by Android Partner Docs <[email protected]>
- 227617535 Devsite localized content from translation request 1089145. by Android Partner Docs <[email protected]>
- 227617491 Devsite localized content from translation request 1087109. by Android Partner Docs <[email protected]>
- 227617482 Devsite localized content from translation request 1047584. by Android Partner Docs <[email protected]>
- 227617480 Devsite localized content from translation request 1089449. by Android Partner Docs <[email protected]>
- 227617378 Devsite localized content from translation request 1087099. by Android Partner Docs <[email protected]>
- 227610447 Add variable tag to CTS downloads page by Danielle Roberts <[email protected]>
- 227595909 Add link to camera section on CTS setup page by Kenneth Lau <[email protected]>
- 227595777 Change title to title case by Kenneth Lau <[email protected]>
- 227546776 Newline between function and param descriptions. by Android Partner Docs <[email protected]>
- 227546753 Small edits to system best practices by Danielle Roberts <[email protected]>
- 227033873 Document "run cts-dev" command, present CTS V2 first by Android Partner Docs <[email protected]>
- 226772000 Devsite localized content from translation request 1041964. by Android Partner Docs <[email protected]>
- 226552899 Announce Adiantum on SAC home page by Danielle Roberts <[email protected]>
- 226550934 Add Adiantum docs to encryption section by Danielle Roberts <[email protected]>
- 226530870 Devsite localized content from translation request 1046265. by Android Partner Docs <[email protected]>
- 226497667 Devsite localized content from translation request 1047878. by Android Partner Docs <[email protected]>
(And 26 more changes)
PiperOrigin-RevId: 230969164
Change-Id: I2bf51b3793304247e04b953816961605fe1ba4bf
diff --git a/zh-cn/compatibility/tests/development/native-func-e2e.html b/zh-cn/compatibility/tests/development/native-func-e2e.html
index 17023aa..f78a292 100644
--- a/zh-cn/compatibility/tests/development/native-func-e2e.html
+++ b/zh-cn/compatibility/tests/development/native-func-e2e.html
@@ -22,19 +22,13 @@
limitations under the License.
-->
-<h1 id="adding_a_new_native_test_a_complete_example" class="page-title">添加新的原生测试:完整的示例</h1>
+<h1 id="adding_a_new_native_test_example" class="page-title">添加新的原生测试示例</h1>
-<p>如果您不熟悉 Android 平台开发,那么您可能会发现,这个从头开始添加全新原生测试的完整示例很有用,可以帮助了解所涉及的典型工作流。</p>
-
-<p>请注意,本指南假定您已掌握平台源代码树工作流的一些相关知识。如果没有,请参阅 https://source.android.com/source/requirements。</p>
-
-<p>此外,如果您也不熟悉 C++ 的 gtest 框架,请访问 <a href="https://github.com/google/googletest">gtest 项目网站</a>以查看其他文档。</p>
+<p>如果您不熟悉 Android 平台开发,那么您可能会发现,这个从头开始添加全新原生测试的完整示例很有用,可以帮助您了解所涉及的典型工作流。此外,如果您也不熟悉 C++ 的 gtest 框架,请访问 <a href="https://github.com/google/googletest">gtest 项目网站</a>以查看其他文档。</p>
<p>本指南使用以下测试作为示例:</p>
-<ul>
-<li><a href="https://android.googlesource.com/platform/platform_testing/+/master/tests/example/native/">Hello World 原生测试</a></li>
-</ul>
+<p><a href="https://android.googlesource.com/platform/platform_testing/+/master/tests/example/native/">Hello World 原生测试</a></p>
<p>建议您先浏览代码以获得粗略的印象,然后再继续。</p>
@@ -87,10 +81,6 @@
</code></pre>
<p>不管是什么样的结构,您最终都需要在 <code>tests</code> 目录或新建子目录中添加文件,并且文件应类似于示例 gerrit 更改中的 <code>native</code> 目录中的文件。下面几部分将进一步详细说明各个文件。</p>
-<h2 id="blueprints">Blueprint</h2>
-
-<p>每个新的测试模块都必须具有 Blueprint Soong 配置文件,以使用模块元数据、编译时依赖项和打包指令来指引编译系统。详情请参阅 <a href="blueprints.md">Soong 和 Blueprint</a>。</p>
-
<h2 id="source_code">源代码</h2>
<p>有关示例,请参阅 <a href="https://android.googlesource.com/platform/platform_testing/+/master/tests/example/native/HelloWorldTest.cpp">Hello World 原生测试</a>。</p>
@@ -125,17 +115,19 @@
<li>https://github.com/google/googletest/blob/master/googletest/docs/Primer.md</li>
</ul>
-<h2 id="test_configuration">测试配置</h2>
-<aside class="special"><strong>重要提示</strong>:<span>只有 CTS 测试或需要特殊设置(如停用蓝牙或收集示例数据)的测试需要遵循本部分中的说明。其他所有用例均可通过使用 <a href="https://android.googlesource.com/platform/tools/tradefederation/+/master/atest/README.md">Atest</a> 来涵盖。</span></aside>
-<p>为了简化测试执行过程,您可以编写类似以下映射的测试映射:<a href="https://android.googlesource.com/platform/platform_testing/+/master/tests/example/native/TEST_MAPPING">/platform/platform_testing/tests/example/native/TEST_MAPPING</a>。</p>
+<h2 id="simple_configuration_file">简单配置文件</h2>
+<p>每个新的测试模块都必须具有配置文件,以使用模块元数据、编译时依赖项和打包指令来指引编译系统。在大多数情况下,基于 Soong 的 Blueprint 文件选项就足够了。如需了解详情,请参阅<a href="blueprints.md">简单的测试配置</a>。</p>
+
+<h2 id="complex_configuration_file">复杂配置文件</h2>
+<aside class="special"><strong>重要提示</strong>:<span>只有 CTS 测试或需要特殊设置(如停用蓝牙或收集示例数据)的测试需要遵循本部分中的说明。其他所有用例均可通过<a href="blueprints.md">简单的测试配置</a>来涵盖。如需了解适用于本部分的详细信息,请参阅<a href="compatibility/tests/development/test-config">复杂的测试配置</a>。</span></aside>
<p>要改用 Trade Federation,请为 Android 的自动化测试框架 <a href="/devices/tech/test_infra/tradefed/">Trade Federation</a> 编写测试配置文件。</p>
<p>测试配置可以指定特殊的设备设置选项和默认参数来提供测试类。</p>
<h2 id="build_and_test_locally">在本地编译和测试</h2>
-<p>对于最常见的用例,请使用 <a href="https://android.googlesource.com/platform/tools/tradefederation/+/master/atest/README.md">Atest</a>。</p>
+<p>对于最常见的用例,请使用 <a href="/compatibility/tests/development/atest">Atest</a>。</p>
<p>对于更为复杂的用例,如果需要更繁琐的自定义,请遵循<a href="instrumentation.md">插桩说明</a>。</p>