/tools/tradefederation/core/tests/src/com/android/tradefed/result/ddmlib/ |
D | InstrumentationResultProtoParserTest.java | 74 runListeners.add(mMockListener); in setUp() 260 runListeners.add(mMockListener1); in testOneTestSuccessWithMultipleListeners() 261 runListeners.add(mMockListener2); in testOneTestSuccessWithMultipleListeners() 660 testStatusList.add(getTestInfoProto(CLASS_NAME_1, METHOD_NAME_1, 1, 1, true, false)); in buildSingleTestMetricSuccessProtoFile() 662 testStatusList.add(getTestStatusProto(true)); in buildSingleTestMetricSuccessProtoFile() 664 testStatusList.add(getTestInfoProto(CLASS_NAME_1, METHOD_NAME_1, 1, 1, false, false)); in buildSingleTestMetricSuccessProtoFile() 675 testStatusList.add(getTestInfoProto(CLASS_NAME_1, METHOD_NAME_1, 1, 1, true, false)); in buildRunMetricSuccessProtoFile() 677 testStatusList.add(getTestStatusProto(false)); in buildRunMetricSuccessProtoFile() 679 testStatusList.add(getTestInfoProto(CLASS_NAME_1, METHOD_NAME_1, 1, 1, false, false)); in buildRunMetricSuccessProtoFile() 691 testStatusList.add(getTestInfoProto(CLASS_NAME_1, METHOD_NAME_1, 1, 1, true, false)); in buildTestAndRunMetricSuccessProtoFile() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | SuiteModuleLoaderTest.java | 111 mAbis.add(new Abi("armeabi-v7a", "32")); in setUp() 227 moduleArgs.add("module1[test]:simple-string:value1"); in testInjectConfigOptions_moduleArgs() 228 moduleArgs.add("module1[test]:empty-string:"); // value is the empty string in testInjectConfigOptions_moduleArgs() 230 moduleArgs.add("module1[test]:list-string:value2"); in testInjectConfigOptions_moduleArgs() 231 moduleArgs.add("module1[test]:list-string:value3"); in testInjectConfigOptions_moduleArgs() 232 moduleArgs.add("module1[test]:list-string:set-option:moreoption"); in testInjectConfigOptions_moduleArgs() 233 moduleArgs.add("module1[test]:list-string:"); // value is the empty string in testInjectConfigOptions_moduleArgs() 234 moduleArgs.add("module1[test]:map-string:set-option:=moreoption"); in testInjectConfigOptions_moduleArgs() 235 moduleArgs.add("module1[test]:map-string:empty-option:="); // value is the empty string in testInjectConfigOptions_moduleArgs() 249 patterns.add(".*.config"); in testInjectConfigOptions_moduleArgs() [all …]
|
D | ITestSuiteTest.java | 318 mListCollectors.add(new TestMetricCollector("metric1", "value1")); in setUp() 319 mListCollectors.add(new TestMetricCollector("metric2", "value2")); in setUp() 365 runModules.add(module); in getRunModules() 439 sysChecker.add(mMockSysChecker); in testRun() 466 sysChecker.add(mMockSysChecker); in testRun_whiteListPreparer() 487 sysChecker.add(mMockSysChecker); in testRun_failedSystemChecker() 515 sysChecker.add(mMockSysChecker); in testRun_failedSystemChecker_runtimeException() 544 sysChecker.add(mMockSysChecker); in testRun_failedSystemChecker_reportFailure() 583 sysChecker.add(mMockSysChecker); in testRun_failedSystemChecker_reportFailure_bugreport() 630 sysChecker.add(mMockSysChecker); in testRun_rebootBeforeModule() [all …]
|
D | GranularRetriableTestWrapperTest.java | 90 mTestCases.add(defaultTestCase); in BasicFakeTest() 167 mShouldRun.add(filter); in addIncludeFilter() 351 testCases.add(fakeTestCase); in testRun_withMultipleRun() 352 testCases.add(fakeTestCase2); in testRun_withMultipleRun() 353 testCases.add(fakeTestCase3); in testRun_withMultipleRun() 408 testCases.add(fakeTestCase); in testRun_withMultipleRun_becomePass() 409 testCases.add(fakeTestCase2); in testRun_withMultipleRun_becomePass() 410 testCases.add(fakeTestCase3); in testRun_withMultipleRun_becomePass() 467 testCases.add(fakeTestCase); in testRun_withMultipleRun_AllBecomePass() 468 testCases.add(fakeTestCase2); in testRun_withMultipleRun_AllBecomePass() [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | AlignmentTest.java | 59 zf.add("test.txt", new ByteArrayInputStream(testBytes), false); in addAlignedFile() 75 zf.add("test.txt.foo", new ByteArrayInputStream(testBytes), false); in addNonAlignedFile() 90 zf.add("file1.txt", new ByteArrayInputStream(testBytes1), false); 91 zf.add("file0.txt", new ByteArrayInputStream(testBytes0), false); 134 zf.add("file0.txt", new ByteArrayInputStream(testBytes0), false); 135 zf.add("file1.txt", new ByteArrayInputStream(testBytes1), false); 177 zf.add("test.txt", new ByteArrayInputStream(testBytes), false); 202 zf.add("file0.txt", new ByteArrayInputStream(testBytes0), false); 208 zf.add("file1.txt", new ByteArrayInputStream(testBytes1), false); 256 zf.add("foo", new ByteArrayInputStream(recognizable), false); [all …]
|
D | ZFileTest.java | 182 zf.add("wiki", new ByteArrayInputStream(wikiData)); in compressedFilesReadableByJavaZip() 183 zf.add("rfc", new ByteArrayInputStream(rfcData)); in compressedFilesReadableByJavaZip() 184 zf.add("lena", new ByteArrayInputStream(lenaData)); in compressedFilesReadableByJavaZip() 287 zf.add("foo", new ByteArrayInputStream(new byte[] { 0, 1 })); 331 zf.add("file2", new ByteArrayInputStream(new byte[] { 11, 12 })); 371 zf.add("file3", new ByteArrayInputStream(new byte[]{11, 12})); 422 zf.add("file1", new ByteArrayInputStream(newData)); 473 zf.add("file3", new ByteArrayInputStream(newData)); 546 zf.add("a/b/c", new ByteArrayInputStream(new byte[]{1, 2, 3})); in addingFileDoesNotAddDirectoriesAutomatically() 768 zipNoOffset.add("x", new ByteArrayInputStream(new byte[]{1, 2})); in extraDirectoryOffsetNonEmptyFile() [all …]
|
D | ZFileNotificationTest.java | 80 added.add(new ApkZLibPair<>(entry, replaced)); in added() 87 removed.add(entry); in removed() 121 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyAddFile() 144 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyRemoveFile() 167 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyUpdateFile() 172 zf.add("foo", new ByteArrayInputStream(new byte[] { 2, 3 })); in notifyUpdateFile() 193 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyOpenUpdateClose() 217 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyOpenUpdate() 240 zf.add("foo", new ByteArrayInputStream(new byte[] { 1, 2 })); in notifyUpdate() 244 zf.add("bar", new ByteArrayInputStream(new byte[] { 2, 3 })); in notifyUpdate() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | InstallApexModuleTargetPreparerTest.java | 235 activatedApex.add( in testSetupSuccess_removeExistingStagedApexSuccess() 242 installableModules.add(APEX_PACKAGE_NAME); in testSetupSuccess_removeExistingStagedApexSuccess() 260 activatedApex.add( in testSetupSuccess_noDataUnderApexDataDirs() 267 installableModules.add(APEX_PACKAGE_NAME); in testSetupSuccess_noDataUnderApexDataDirs() 292 activatedApex.add( in testSetupSuccess_getActivatedPackageSuccess() 299 installableModules.add(APEX_PACKAGE_NAME); in testSetupSuccess_getActivatedPackageSuccess() 325 activatedApex.add( in testSetupSuccess_withAbsoluteTestFileName() 332 installableModules.add(APEX_PACKAGE_NAME); in testSetupSuccess_withAbsoluteTestFileName() 357 activatedApex.add( in testSetupFail_getActivatedPackageSuccessThrowModuleNotPreloaded() 389 installableModules.add(APEX_PACKAGE_NAME); in testSetupFail_getActivatedPackageFail() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | ByteArrayListTest.java | 33 mList.add((byte) 1); in testAdd() 34 mList.add((byte) 2); in testAdd() 49 mList.add((byte) 0xa); in testAddAll_append() 51 mList.add((byte) 0xb); in testAddAll_append() 62 mList.add((byte) 0xa); in testAddAll_limits() 64 mList.add((byte) 0xb); in testAddAll_limits() 73 mList.add((byte) 1); in testClear() 74 mList.add((byte) 2); in testClear() 90 mList.add((byte) 1); in testEnsure_afterAdd() 113 mList.add((byte) 1); in testEquals() [all …]
|
D | ConditionPriorityBlockingQueueTest.java | 53 mQueue.add(one); in testTake() 65 mQueue.add(two); in testTake_priority() 66 mQueue.add(one); in testTake_priority() 80 fifoQueue.add(two); in testTake_fifo() 81 fifoQueue.add(one); in testTake_fifo() 94 mQueue.add(one); in testTake_priorityReverse() 95 mQueue.add(two); in testTake_priorityReverse() 113 mQueue.add(one); in testTake_delayedAdd() 129 mQueue.add(two); in testTake_matcher_delayedAdd() 137 mQueue.add(one); in testTake_matcher_delayedAdd() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | GceManager.java | 176 gceArgs.add("--boot-timeout"); in startGce() 177 gceArgs.add(Long.toString(driverTimeoutSec)); in startGce() 269 gceArgs.add( in buildGceCmd() 277 gceArgs.add("--avd-type"); in buildGceCmd() 278 gceArgs.add("cheeps"); in buildGceCmd() 282 gceArgs.add("--user"); in buildGceCmd() 283 gceArgs.add(getTestDeviceOptions().getCrosUser()); in buildGceCmd() 284 gceArgs.add("--password"); in buildGceCmd() 285 gceArgs.add(getTestDeviceOptions().getCrosPassword()); in buildGceCmd() 292 gceArgs.add("--build_target"); in buildGceCmd() [all …]
|
D | GceRemoteCmdFormatter.java | 51 cmd.add("ssh"); in getSshCommand() 52 cmd.add("-o"); in getSshCommand() 53 cmd.add("UserKnownHostsFile=/dev/null"); in getSshCommand() 54 cmd.add("-o"); in getSshCommand() 55 cmd.add("StrictHostKeyChecking=no"); in getSshCommand() 56 cmd.add("-o"); in getSshCommand() 57 cmd.add("ServerAliveInterval=10"); in getSshCommand() 58 cmd.add("-i"); in getSshCommand() 59 cmd.add(sshKey.getAbsolutePath()); in getSshCommand() 62 cmd.add(op); in getSshCommand() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/ |
D | RetryReschedulerTest.java | 138 excludeRun0.add("run0"); in testReschedule_onlyPassTests() 141 excludeRun1.add("run1"); in testReschedule_onlyPassTests() 182 excludeRun0.add("run0"); in testReschedule_carryShardCount() 185 excludeRun1.add("run1"); in testReschedule_carryShardCount() 218 excludeRun0.add("run0 test.class#testPass0"); in testReschedule_someFailedTests() 221 excludeRun1.add("run1 test.class#testPass0"); in testReschedule_someFailedTests() 257 excludeRun0.add("run0"); in testReschedule_someAssumptionFailures() 260 excludeRun1.add("run1"); in testReschedule_someAssumptionFailures() 296 excludeRun0.add("run0 test.class#testPass0"); in testReschedule_mixedFailedAssumptionFailures() 299 excludeRun0_assume.add("run0 test.class#testAssume0"); in testReschedule_mixedFailedAssumptionFailures() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSBucketUtil.java | 163 command.add(GSUTIL); in copy() 166 command.add(FLAG_PARALLEL); in copy() 169 command.add(CMD_COPY); in copy() 172 command.add(FLAG_RECURSIVE); in copy() 176 command.add(FLAG_NO_CLOBBER); in copy() 179 command.add(source); in copy() 180 command.add(dest); in copy() 272 command.add(GSUTIL); in makeBucket() 273 command.add(CMD_MAKE_BUCKET); in makeBucket() 276 command.add(FLAG_PROJECT_ID); in makeBucket() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | Options.kt | 800 mutableSourcePath.add(File("")) in <lambda>() 867 … ARG_SHOW_ANNOTATION, "-showAnnotation" -> mutableShowAnnotations.add(getValue(args, ++index)) in <lambda>() 871 mutableShowSingleAnnotations.add(annotation) in <lambda>() 873 mutableShowAnnotations.add(annotation) in <lambda>() 878 mutableShowForStubPurposesAnnotation.add(annotation) in <lambda>() 880 mutableShowAnnotations.add(annotation) in <lambda>() 891 mutableHideAnnotations.add(getValue(args, ++index)) in <lambda>() 893 mutableHideMetaAnnotations.add(getValue(args, ++index)) in <lambda>() 913 mutablePassThroughAnnotations.add(path) in <lambda>() 921 ARG_HIDE_PACKAGE, "-hidePackage" -> mutableHidePackages.add(getValue(args, ++index)) in <lambda>() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | TfTestLauncher.java | 136 args.add(hprofAgent); in addJavaArguments() 149 mCmdArgs.add("-n"); in preRun() 152 mCmdArgs.add("--log-level"); in preRun() 153 mCmdArgs.add("VERBOSE"); in preRun() 154 mCmdArgs.add("--log-level-display"); in preRun() 155 mCmdArgs.add("VERBOSE"); in preRun() 157 mCmdArgs.add("--test-tag"); in preRun() 158 mCmdArgs.add(mBuildInfo.getTestTag()); in preRun() 159 mCmdArgs.add("--build-id"); in preRun() 161 mCmdArgs.add(mSubBuildId); in preRun() [all …]
|
D | SubprocessTfLauncher.java | 230 paths.add(f.getAbsolutePath()); in preRun() 236 mCmdArgs.add(SystemUtil.getRunningJavaBinaryPath().getAbsolutePath()); in preRun() 240 mCmdArgs.add(String.format("-Djava.io.tmpdir=%s", mTmpDir.getAbsolutePath())); in preRun() 249 mCmdArgs.add("-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=10088"); in preRun() 254 mCmdArgs.add("--add-opens=" + modulePackage + "=ALL-UNNAMED"); in preRun() 257 mCmdArgs.add("-cp"); in preRun() 259 mCmdArgs.add(jarClasspath); in preRun() 260 mCmdArgs.add("com.android.tradefed.command.CommandRunner"); in preRun() 261 mCmdArgs.add(mConfigName); in preRun() 265 mCmdArgs.add("--shard-count"); in preRun() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterCommandSchedulerTest.java | 199 execCmdArgs.add(arg); in setUp() 259 deviceList.add(createDevice("product1", "variant1", DeviceAllocationState.Available)); 260 deviceList.add(createDevice("product2", "variant2", DeviceAllocationState.Available)); 261 deviceList.add(createDevice("product2", "variant2", DeviceAllocationState.Allocated)); 262 deviceList.add(createDevice("product3", "variant3", DeviceAllocationState.Available)); 263 deviceList.add(createDevice("product3", "variant3", DeviceAllocationState.Allocated)); 264 deviceList.add(createDevice("product3", "variant3", DeviceAllocationState.Unavailable)); 283 deviceList.add(createDevice("product1", "variant1", DeviceAllocationState.Available)); 284 deviceList.add(createDevice("product2", "variant2", DeviceAllocationState.Available)); 285 deviceList.add(createDevice("product2", "variant2", DeviceAllocationState.Allocated)); [all …]
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | AbiUtils.java | 85 ABIS_32BIT.add(ABI_ARM_V7A); 86 ABIS_32BIT.add(ABI_X86); 87 ABIS_32BIT.add(ABI_MIPS); 89 ABIS_64BIT.add(ABI_ARM_64_V8A); 90 ABIS_64BIT.add(ABI_X86_64); 91 ABIS_64BIT.add(ABI_MIPS64); 93 ARM_ABIS.add(ABI_ARM_V7A); 94 ARM_ABIS.add(ABI_ARM_64_V8A); 96 INTEL_ABIS.add(ABI_X86); 97 INTEL_ABIS.add(ABI_X86_64); [all …]
|
/tools/tradefederation/contrib/src/com/android/monkey/ |
D | MonkeyBase.java | 577 cmdList.add("monkey"); in buildMonkeyCommand() 581 cmdList.add("-p"); in buildMonkeyCommand() 582 cmdList.add(pkg); in buildMonkeyCommand() 587 cmdList.add("-c"); in buildMonkeyCommand() 588 cmdList.add(cat); in buildMonkeyCommand() 592 cmdList.add("--ignore-security-exceptions"); in buildMonkeyCommand() 596 cmdList.add("--throttle"); in buildMonkeyCommand() 597 cmdList.add(Integer.toString(mThrottle)); in buildMonkeyCommand() 600 cmdList.add("--ignore-crashes"); in buildMonkeyCommand() 603 cmdList.add("--ignore-timeouts"); in buildMonkeyCommand() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | InstallApexModuleTargetPreparer.java | 269 installedPackages.add(installedApex.name); in getModulesToInstall() 295 moduleNamesToInstall.add(moduleFile); in getModulesToInstall() 364 mApkInstalled.add(packageName); in installTrain() 372 trainInstallCmd.add(TRAIN_WITH_APEX_INSTALL_OPTION); in installTrain() 375 trainInstallCmd.add(arg); in installTrain() 380 trainInstallCmd.add(moduleFile.getAbsolutePath()); in installTrain() 383 apkPackageNames.add(packageName); in installTrain() 458 mApkToInstall.add(parsePackageName(splits.get(0), device.getDeviceDescriptor())); in installSingleModuleUsingBundletool() 480 mSplitsInstallArgs.add(splitsArgs); in installMultipleModuleUsingBundletool() 484 mTestApexInfoList.add(apexInfo); in installMultipleModuleUsingBundletool() [all …]
|
/tools/tradefederation/contrib/src/com/android/build/tests/ |
D | KernelImageCheck.java | 162 abidwCmd.add(mKernelImageCheckTool.getAbsolutePath() + "/abidw"); in test_stable_abi() 164 abidwCmd.add("--no-corpus-path"); in test_stable_abi() 165 abidwCmd.add("--no-comp-dir-path"); in test_stable_abi() 167 abidwCmd.add("--linux-tree"); in test_stable_abi() 168 abidwCmd.add(mKernelImageFile.getParent()); in test_stable_abi() 169 abidwCmd.add("--out-file"); in test_stable_abi() 170 abidwCmd.add("abi-new.xml"); in test_stable_abi() 172 abidwCmd.add("--kmi-whitelist"); in test_stable_abi() 173 abidwCmd.add(mKernelAbiWhitelist.getAbsolutePath()); in test_stable_abi() 201 abidiffCmd.add(mKernelImageCheckTool.getAbsolutePath() + "/abidiff"); in test_stable_abi() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | HostTest.java | 390 mClasses.add(className); in setClassName() 407 mIncludeAnnotations.add(annotation); in addIncludeAnnotation() 425 mExcludeAnnotations.add(notAnnotation); in addExcludeAnnotation() 582 includes.add(String.format(TEST_FULL_NAME_FORMAT, classObj.getName(), in runTestClasses() 617 skippedTests.add(junitTest.getName()); in runTestCases() 748 ignoredClass.add(description); in findIgnoredClass() 782 classes.add(classObj); in collectClasses() 857 mTestMethods.add(singletonSuite); in getTestMethods() 863 mTestMethods.add(test); in getTestMethods() 870 includes.add(String.format(TEST_FULL_NAME_FORMAT, classObj.getName(), in getTestMethods() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 158 args.add(APEX_ARG); in internalInstallPackage() 207 packageFiles.add(packageFile); in internalInstallPackage() 231 args.add("-g"); in installPackage() 245 args.add("-g"); in installPackage() 260 args.add("-g"); in installPackageForUser() 262 args.add("--user"); in installPackageForUser() 263 args.add(Integer.toString(userId)); in installPackageForUser() 277 args.add("-g"); in installPackageForUser() 279 args.add("--user"); in installPackageForUser() 280 args.add(Integer.toString(userId)); in installPackageForUser() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/ |
D | ShardHelper.java | 68 CONFIG_OBJ_TO_CLONE.add(Configuration.SYSTEM_STATUS_CHECKER_TYPE_NAME); 69 CONFIG_OBJ_TO_CLONE.add(Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME); 73 CONFIG_OBJ_TO_CLONE.add(Configuration.BUILD_PROVIDER_TYPE_NAME); 74 CONFIG_OBJ_TO_CLONE.add(Configuration.TARGET_PREPARER_TYPE_NAME); 75 CONFIG_OBJ_TO_CLONE.add(Configuration.DEVICE_RECOVERY_TYPE_NAME); 76 CONFIG_OBJ_TO_CLONE.add(Configuration.DEVICE_OPTIONS_TYPE_NAME); 78 CONFIG_OBJ_TO_CLONE.add(Configuration.MULTI_PREPARER_TYPE_NAME); 79 CONFIG_OBJ_TO_CLONE.add(Configuration.CMD_OPTIONS_TYPE_NAME); 80 CONFIG_OBJ_TO_CLONE.add(Configuration.LOGGER_TYPE_NAME); 82 CONFIG_OBJ_TO_CLONE.add(Configuration.LOG_SAVER_TYPE_NAME); [all …]
|