本页包含 Android 16 中引入的 CTS 重要变更。
CTS 验证程序功能
Android 16 包含关于以下 CTS 验证程序功能的全新文档和更新版文档:
- 系统已将多设备测试用例添加或迁移到基于主机的验证程序测试用例,如下表所示。
- 从 7 个模块中添加了共计 83 项测试。
模块名称 | 说明 | 添加/迁移的测试用例列表 |
---|---|---|
CtsCompanionDeviceManagerMultiDeviceTestCases
|
针对 CompanionDeviceManager 的多设备测试 |
迁移的测试:
CompanionDeviceManagerTestClass#
test_associate_createsAssociation_classicBluetooth CompanionDeviceManagerTestClass#test_permissions_sync CompanionDeviceManagerTestClass#
test_removeBond_associatedDevice_succeeds |
CtsNfcHceMultiDeviceTestCases
|
针对 NFC HCE 的多设备测试 |
迁移的测试:
CtsNfcHceMultiDeviceTestCases#test_conflicting_non_payment CtsNfcHceMultiDeviceTestCases#test_conflicting_non_payment_prefix CtsNfcHceMultiDeviceTestCases#test_dual_non_payment CtsNfcHceMultiDeviceTestCases#test_dual_payment_service CtsNfcHceMultiDeviceTestCases#test_dynamic_aid_emulator CtsNfcHceMultiDeviceTestCases#test_tap_50_times CtsNfcHceMultiDeviceTestCases#test_throughput CtsNfcHceMultiDeviceTestCases#test_event_listener CtsNfcHceMultiDeviceTestCases#test_polling_frame_timestamp CtsNfcHceMultiDeviceTestCases#
test_single_payment_service_toggle_nfc_off_on CtsNfcHceMultiDeviceTestCases#
test_single_payment_service_with_background_app |
CtsUwbMultiDeviceFiraRangingTests
|
UWB FiRa 范围测试 |
迁移的测试:
RangingTest#test_ranging_device_tracker_profile_default RangingTest#test_ranging_device_tracker_profile_p_sts_default RangingTest#test_ranging_nearby_share_profile_default RangingTest#test_ranging_nearby_share_profile_p_sts_default RangingTest#test_ranging_nearby_share_profile_reconfigure_controlee RangingTest#test_ranging_nearby_share_profile_add_remove_controlee RangingTest#
test_ranging_device_tracker_profile_reconfigure_ranging_interval RangingTest#
test_ranging_nearby_share_profile_reconfigure_ranging_interval RangingTest#test_ranging_device_tracker_profile_no_aoa_report RangingTest#test_ranging_nearby_share_profile_hopping_mode_disabled RangingTest#test_ranging_rr_ss_twr_deferred_device_tracker_profile RangingTest#test_ranging_rr_ss_twr_deferred_nearby_share_profile RangingTest#test_stop_initiator_ranging_device_tracker_profile RangingTest#test_stop_initiator_ranging_nearby_share_profile RangingTest#test_stop_responder_ranging_device_tracker_profile RangingTest#test_stop_responder_ranging_nearby_share_profile RangingTest#test_ranging_nearby_share_profile_move_to_bg_and_fg RangingTest#
test_ranging_nearby_share_profile_verify_app_in_bg_stops_session RangingTest#test_ranging_nearby_share_profile_bg_fails RangingTest#
test_ranging_nearby_share_profile_no_valid_reports_stops_session RangingTest#test_ranging_device_tracker_profile_max_sessions_reject |
CtsMultiDeviceGenericRangingTests
|
Ranging API 多设备测试 |
迁移的测试:
RangingManagerTest#test_one_to_one_uwb_ranging_unicast_static_sts RangingManagerTest#test_one_to_one_uwb_ranging_multicast_provisioned_sts RangingManagerTest#test_one_to_one_uwb_ranging_unicast_provisioned_sts RangingManagerTest#test_one_to_one_uwb_ranging_disable_range_data_ntf RangingManagerTest#test_one_to_one_wifi_rtt_ranging RangingManagerTest#test_one_to_one_wifi_periodic_rtt_ranging RangingManagerTest#test_one_to_one_ble_rssi_ranging RangingManagerTest#test_one_to_one_ble_cs_ranging RangingManagerTest#test_one_to_one_uwb_ranging_with_oob RangingManagerTest#test_one_to_one_ble_cs_ranging_with_oob RangingManagerTest#test_uwb_ranging_measurement_limit RangingManagerTest#test_ble_rssi_ranging_measurement_limit RangingManagerTest#test_one_to_one_wifi_rtt_ranging_with_oob RangingManagerTest#test_one_to_one_ble_rssi_ranging_with_oob |
CtsUwbMultiDeviceUwbManagerTests
|
UwbManager API 多设备测试 |
迁移的测试:
UwbManagerTest#test_toggle_uwb_state UwbManagerTest#test_uwb_state_with_airplane_mode_toggle UwbManagerTest#test_uwb_state_off_with_airplane_mode_toggle |
CtsWifiAwareTests
|
Wi-Fi 感知多设备测试 |
迁移的测试:
WifiAwareNetworkTest#test_data_path_force_channel_setup WifiAwareNetworkTest#
test_data_path_open_solicited_pub_accept_any_active_sub WifiAwareNetworkTest#test_data_path_open_solicited_pub_and_active_sub WifiAwareNetworkTest#
test_data_path_open_unsolicited_pub_accept_any_and_passive_sub WifiAwareNetworkTest#test_data_path_open_unsolicited_pub_and_passive_sub WifiAwareNetworkTest#
test_data_path_passphrase_solicited_pub_accept_any_and_active_sub WifiAwareNetworkTest#
test_data_path_passphrase_solicited_pub_and_active_sub WifiAwareNetworkTest#
test_data_path_passphrase_unsolicited_pub_accept_any_and_passive_sub WifiAwareNetworkTest#
test_data_path_passphrase_unsolicited_pub_and_passive_sub WifiAwareNetworkTest#
test_data_path_pmk_solicited_pub_accept_any_and_active_sub WifiAwareNetworkTest#test_data_path_pmk_solicited_pub_and_active_sub WifiAwareNetworkTest#
test_data_path_pmk_unsolicited_pub_accept_any_and_passive_sub WifiAwareNetworkTest#
test_data_path_pmk_unsolicited_pub_and_passive_sub WifiAwareDiscoveryRangingTest#test_discovery_ranging_to_peer_handle WifiAwareDiscoveryRangingTest#
test_discovery_ranging_to_peer_mac_address |
CtsWifiSoftApTestCases
|
Wi-Fi SoftAp 多设备测试 |
新测试:
WifiSoftApTest#test_local_only_softap_disconnect WifiSoftApTest#test_tethering_softap_disconnect |
CTS 模块
测试模块和测试用例的数量如下:
- 约 1394 个模块,具体取决于设备
- 约 600 万个测试用例,涉及 2 个 ABI
Android 16 中总共添加了 86 个新模块,总共移除了 41 个模块。
新模块
AconfigPublicApiCtsTests
CtsAppFunctionTestCases
CtsAppFunctionTestCases[run-on-clone-profile]
CtsAppFunctionTestCases[run-on-private-profile]
CtsAppFunctionTestCases[run-on-secondary-user]
CtsAppFunctionTestCases[run-on-work-profile]
CtsAppJankTestCases
CtsAppMetadataHostTestCases
CtsAppWidgetHostTestCases
CtsBroadcastHostTestCases
CtsContentProviderMultiUserTest
CtsContextualSearchServiceTestCases[run-on-clone-profile]
CtsContextualSearchServiceTestCases[run-on-private-profile]
CtsContextualSearchServiceTestCases[run-on-secondary-user]
CtsContextualSearchServiceTestCases[run-on-work-profile]
CtsDynamicInstrumentationManagerTest
CtsExtendedMockingTestCases
CtsExtendedMockingTestCases[instant]
CtsFileDescriptorTestCases
CtsHealthFitnessPhrTestCases
CtsHeapprofdJavaCtsTest
CtsJvmtiRunTest906HostTestCases
CtsJvmtiRunTest912HostTestCases
CtsJvmtiRunTest913HostTestCases
CtsMediaAudioPermissionTestCases
CtsMediaAudioPermissionTestCases[instant]
CtsMediaQualityTestCases
CtsMediaRouterTestCases
CtsMediaRouterTestCases[instant]
CtsMediaRouterTestCases[run-on-work-profile]
CtsMediaSessionTestCases
CtsMediaSessionTestCases[instant]
CtsMediaSessionTestCases[run-on-work-profile]
CtsModernMediaProviderTests
CtsNotificationHostTestCases
CtsOsTestCases[run-on-work-profile]
CtsPackageInstallerCUJDeviceAdminTestCases
CtsPackageInstallerCUJInstallationTestCases
CtsPackageInstallerCUJInstallationViaIntentForResultTestCases
CtsPackageInstallerCUJInstallationViaSessionTestCases
CtsPackageInstallerCUJMultiUsersTestCases
CtsPackageInstallerCUJMultiUsersTestCases[run-on-clone-profile]
CtsPackageInstallerCUJMultiUsersTestCases[run-on-private-profile]
CtsPackageInstallerCUJMultiUsersTestCases[run-on-secondary-user]
CtsPackageInstallerCUJMultiUsersTestCases[run-on-work-profile]
CtsPackageInstallerCUJUninstallationTestCases
CtsPackageInstallerCUJUpdateOwnerShipTestCases
CtsPackageInstallerCUJUpdateSelfTestCases
CtsPackageInstallSessionTestCases
CtsPackageInstallSessionTestCases[instant]
CtsPackageUninstallTestCases[run-on-clone-profile]
CtsPackageUninstallTestCases[run-on-private-profile]
CtsPackageUninstallTestCases[run-on-secondary-user]
CtsPackageUninstallTestCases[run-on-work-profile]
CtsRangingTestCases
CtsRangingTestCases[instant]
CtsResourcesConfigChangeTestCases
CtsRoleMultiUserTestCases
CtsRoleMultiUserTestCases[run-on-clone-profile]
CtsRoleMultiUserTestCases[run-on-private-profile]
CtsRoleMultiUserTestCases[run-on-secondary-user]
CtsRoleMultiUserTestCases[run-on-work-profile]
CtsSandboxOnDevicePersonalizationManagerTests
CtsSecurityTestCases_multiuser
CtsSecurityTestCases_multiuser[run-on-clone-profile]
CtsSecurityTestCases_multiuser[run-on-private-profile]
CtsSecurityTestCases_multiuser[run-on-secondary-user]
CtsSecurityTestCases_multiuser[run-on-work-profile]
CtsSettingsPreferenceServiceTest
CtsSupervisionTestCases
CtsSupervisionTestCases[instant]
CtsSupervisionTestCases[run-on-clone-profile]
CtsSupervisionTestCases[run-on-private-profile]
CtsSupervisionTestCases[run-on-secondary-user]
CtsSupervisionTestCases[run-on-work-profile]
CtsSystemHealthTestCases
CtsTvAdTestCases
CtsVirtualDevicesAppLaunchSdk35TestCases
CtsVirtualDevicesCameraCtsTestCases
CtsVMDebugDeviceTestCases
CtsVMDebugDeviceTestCases[instant]
CtsWindowManagerSdk34TestCases
CtsWindowManagerSdk35TestCases
MctsMediaSessionTestCases
MctsMediaSessionTestCases[instant]
MctsMediaSessionTestCases[run-on-work-profile]
已移除的模块
AndroidTest_MultiUser
CtsAdServicesCustomAudienceTests
CtsApkVerityInstallHostTestCases
CtsAppIntegrityDeviceTestCases
CtsAppSearchTestCases[run-on-work-profile]
CtsAudioRecordPermissionTests
CtsAudioRecordPermissionTests[instant]
CtsBluetoothMultiDevicesTestCases
CtsCompanionDeviceManagerMultiDeviceTestCases
CtsDocumentContentTestCases[instant]
CtsHealthFitnessDeviceTestCasesNoPermission[instant]
CtsHealthFitnessDeviceTestCasesNotAllPermissionsAreGranted[instant]
CtsHealthFitnessDeviceTestCasesRateLimiter[instant]
CtsHealthFitnessShowMigrationInfoIntentAbsentTests[instant]
CtsMediaBetterTogetherTestCases
CtsMediaBetterTogetherTestCases[instant]
CtsMediaCUJLargeTest[instant]
CtsMediaDecoderTestCases[instant]
CtsMediaEditingTestCases[instant]
CtsMediaEncoderTestCases[instant]
CtsMediaExtractorTestCases[instant]
CtsMediaMuxerTestCases[instant]
CtsMediaRecorderTestCases[instant]
CtsPackageInstallerCUJTestCases
CtsPhotoPickerTest[run-on-secondary-user]
CtsResourcesHostTestCases[instant]
CtsTvTunerTestCases
CtsWifiAwareTestCases
CtsWindowManagerSdk25TestCases
CtsWindowManagerSdk28TestCases
MctsAppSecurityHostTestCases
MctsMediaBetterTogetherTestCases
MctsMediaBetterTogetherTestCases[instant]
MctsMediaDecoderTestCases[instant]
MctsMediaEncoderTestCases[instant]
MctsMediaExtractorTestCases[instant]
MctsMediaMuxerTestCases
MctsMediaMuxerTestCases[instant]
MctsMediaPlayerTestCases[instant]
MctsMediaRecorderTestCases
MctsMediaRecorderTestCases[instant]