CTS

1679 ワード

make cts -j4

1.CTSテストのコマンドラインモードに入る

./android-cts/tools/cts-tradefed

2.CTSテストを開始し、CTSのすべてのテスト計画をテストする

run cts --plan cts --disable-reboot

3.CTSテストを開始し、CTSの単一テスト

run cts -p [packageName]

4.--helpクエリーパッケージ名public static final String FEATURE_TELEPHONY = "android.hardware.telephony"; public static final String FEATURE_CONNECTION_SERVICE = "android.software.connectionservice"; private static final Intent PHONE_INTENT = new Intent(Intent.ACTION_DIAL); private boolean isPhoneVisible() { PackageManager pm = mContext.getPackageManager(); return pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) && pm.resolveActivity(PHONE_INTENT, 0) != null; } PackageManagerService.java etc/permissions/ if (!TestUtils.shouldTestTelecom(mContext)) { return; } android.telecom /** * Feature for {@link #getSystemAvailableFeatures} and * {@link #hasSystemFeature}: The device has a telephony radio with data * communication support. */ @SdkConstant(SdkConstantType.FEATURE) public static final String FEATURE_TELEPHONY = "android.hardware.telephony"; /** * Feature for {@link #getSystemAvailableFeatures} and * {@link #hasSystemFeature}: The Connection Service API is enabled on the device. */ @SdkConstant(SdkConstantType.FEATURE) public static final String FEATURE_CONNECTION_SERVICE = "android.software.connectionservice"; handheld_core_hardware.xml $adb shell $cd etc/permissions/


5.すべてのパッケージ名を羅列する


l packages
out/host/linux-x86/cts/android-cts/repository/testcases/CtsTelephonyTestCases.apk
タブレットがダイヤル機能をサポートしていない場合、CTSテストでfailedに失敗します.構成/etc/を変更する必要があります×.xml