Home
last modified time | relevance | path

Searched refs:add (Results 1 – 25 of 191) sorted by relevance

12345678

/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DCtsConfigLoadingTest.java146 ALLOWED_INSTRUMENTATION_RUNNER_NAME.add("android.support.test.runner.AndroidJUnitRunner");
147 ALLOWED_INSTRUMENTATION_RUNNER_NAME.add("androidx.test.runner.AndroidJUnitRunner");
152 RUNNER_EXCEPTION.add("repackaged.android.test.InstrumentationTestRunner");
154 RUNNER_EXCEPTION.add("android.uirendering.cts.runner.UiRenderingRunner");
164 MANDATORY_PARAMETERS_FAMILY.add(ModuleParameters.INSTANT_APP_FAMILY);
165 MANDATORY_PARAMETERS_FAMILY.add(ModuleParameters.MULTI_ABI_FAMILY);
166 MANDATORY_PARAMETERS_FAMILY.add(ModuleParameters.SECONDARY_USER_FAMILY);
176 ALLOWLIST_MODULE_PARAMETERS.add("CtsAccessibilityServiceTestCases.config");
177 ALLOWLIST_MODULE_PARAMETERS.add("CtsActivityManagerBackgroundActivityTestCases.config");
178 ALLOWLIST_MODULE_PARAMETERS.add("CtsAppOpsTestCases.config");
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/util/
DUniqueModuleCountUtilTest.java46 list.add(new ModuleDef("moduleA", new Abi("arm64", "64"), new TestStub(), in testCount_2uniquesModules()
48 list.add(new ModuleDef("moduleA", new Abi("arm32", "32"), new TestStub(), in testCount_2uniquesModules()
56 list.add(new ModuleDef("moduleA", new Abi("arm32", "32"), new TestStub(), in testCount_2subModules()
58 list.add(new ModuleDef("moduleA", new Abi("arm32", "32"), new TestStub(), in testCount_2subModules()
66 list.add(new ModuleDef("moduleA", new Abi("arm64", "64"), new TestStub(), in testCount_mix()
68 list.add(new ModuleDef("moduleA", new Abi("arm32", "32"), new TestStub(), in testCount_mix()
70 list.add(new ModuleDef("moduleC", new Abi("arm32", "32"), new TestStub(), in testCount_mix()
72 list.add(new ModuleDef("moduleB", new Abi("arm64", "64"), new TestStub(), in testCount_mix()
74 list.add(new ModuleDef("moduleB", new Abi("arm32", "32"), new TestStub(), in testCount_mix()
76 list.add(new ModuleDef("moduleC", new Abi("arm64", "64"), new TestStub(), in testCount_mix()
[all …]
/test/vti/dashboard/src/test/java/com/android/vts/job/
DVtsAlertJobServletTest.java65 allTestCases.add("testCase1"); in setUpExtra()
66 allTestCases.add("testCase2"); in setUpExtra()
67 allTestCases.add("testCase3"); in setUpExtra()
76 allDevices.add(device1); in setUpExtra()
77 allDevices.add(device2); in setUpExtra()
93 acks.add(ack); in testSeparateAcknowledgedAll()
109 branches.add("branch1"); in testSeparateAcknowledgedSpecific()
112 devices.add("flavor2"); in testSeparateAcknowledgedSpecific()
115 testCaseNames.add("testCase1"); in testSeparateAcknowledgedSpecific()
120 acks.add(ack); in testSeparateAcknowledgedSpecific()
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/
DSubPlanTest.java57 includeFilterSet.add(new TestFilter(ABI, MODULE_A, TEST_2).toString()); in testSerialization()
58 includeFilterSet.add(new TestFilter(ABI, MODULE_A, TEST_3).toString()); in testSerialization()
63 excludeFilterSet.add(new TestFilter(null, MODULE_B, TEST_2).toString()); in testSerialization()
64 excludeFilterSet.add(new TestFilter(null, MODULE_B, TEST_3).toString()); in testSerialization()
85 entries.add(generateEntryXml(ABI, MODULE_A, TEST_1, true)); // include format 1 in testParsing()
86 entries.add(generateEntryXml(ABI, MODULE_A, TEST_2, true)); in testParsing()
87 entries.add(generateEntryXml(null, null, in testParsing()
89 entries.add(generateEntryXml(null, MODULE_B, null, true)); in testParsing()
90 entries.add(generateEntryXml(null, null, in testParsing()
92 entries.add(generateEntryXml(null, null, in testParsing()
[all …]
DCompatibilityTestTest.java75 expectedAbis.add("arm64-v8a"); in testGetAbis()
76 expectedAbis.add("armeabi-v7a"); in testGetAbis()
113 expectedAbis.add("arm64-v8a"); in testGetAbis_primaryAbiOnly()
153 expectedAbis.add("x86_64"); in testGetAbis_skipCtsArchCheck()
154 expectedAbis.add("x86"); in testGetAbis_skipCtsArchCheck()
173 expectedAbis.add("x86"); in testGetAbis_skipCtsArchCheck_abiSpecified()
206 systemCheckers.add(new ISystemStatusChecker() {}); in testRunPreModuleCheck()
207 systemCheckers.add(new ISystemStatusChecker() {}); in testRunPreModuleCheck()
220 systemCheckers.add(new ISystemStatusChecker() {}); in testRunPreModuleCheck_failure()
221 systemCheckers.add(new ISystemStatusChecker() { in testRunPreModuleCheck_failure()
[all …]
DModuleRepoTest.java116 SERIALS.add(SERIAL1);
117 SERIALS.add(SERIAL2);
118 SERIALS.add(SERIAL3);
119 ABIS.add(new Abi(ABI_32, "32")); in ABIS.add()
120 ABIS.add(new Abi(ABI_64, "64")); in ABIS.add()
121 DEVICE_TOKENS.add(String.format("%s:%s", SERIAL3, FOOBAR_TOKEN));
122 TEST_ARGS.add(TEST_ARG);
123 MODULE_ARGS.add(String.format(MODULE_ARG, MODULE_NAME_A)); in String.format()
124 MODULE_ARGS.add(String.format(MODULE_ARG, MODULE_NAME_B)); in String.format()
125 MODULE_ARGS.add(String.format(MODULE_ARG, MODULE_NAME_C)); in String.format()
[all …]
/test/vti/dashboard/src/main/java/com/android/vts/api/
DDatastoreRestServlet.java192 testEntityList.add(testEntity); in insertTestReport()
195 testCaseRunEntityList.add(new TestCaseRunEntity()); in insertTestReport()
209 linkList.add(systraceLink); in insertTestReport()
221 coverageEntityList.add(coverageEntity); in insertTestReport()
232 profilingPointRunEntityList.add(profilingPointRunEntity); in insertTestReport()
233 profilingPointKeyList.add(profilingPointRunEntity.getKey()); in insertTestReport()
242 testCaseRunEntityList.add(testCaseRunEntity); in insertTestReport()
263 deviceInfoEntityList.add(deviceInfoEntity); in insertTestReport()
265 if (buildTargetKeys.add(target.getKey())) { in insertTestReport()
266 buildTargetEntityList.add(target); in insertTestReport()
[all …]
/test/vti/dashboard/src/main/java/com/android/vts/util/
DHistogram.java132 values.add(value); in addData()
133 ids.add(id); in addData()
157 json.add(VALUE_KEY, new Gson().toJsonTree(values).getAsJsonArray()); in toJson()
158 json.add(PERCENTILES_KEY, new Gson().toJsonTree(percentiles).getAsJsonArray()); in toJson()
159 json.add(PERCENTILE_VALUES_KEY, new Gson().toJsonTree(percentileValues).getAsJsonArray()); in toJson()
160 json.add(IDS_KEY, new Gson().toJsonTree(ids).getAsJsonArray()); in toJson()
161 json.add(MIN_KEY, new JsonPrimitive(min)); in toJson()
162 json.add(MAX_KEY, new JsonPrimitive(max)); in toJson()
DTestRunMetadata.java71 this.devices.add(device); in addDevice()
89 abiInfoList.add(abi); in processDeviceInfo()
90 deviceInfoList.add(device.getFingerprint()); in processDeviceInfo()
133 json.add(DEVICE_INFO, new JsonPrimitive(this.deviceInfo)); in toJson()
134 json.add(ABI_INFO, new JsonPrimitive(this.abiInfo)); in toJson()
135 json.add(TEST_RUN, this.testRun.toJson()); in toJson()
137 json.add(TEST_DETAILS, this.details.toJson()); in toJson()
DTestRunDetails.java44 public void add(String testCase) { in add() method in TestRunDetails.ResultColumn
45 this.testCases.add(testCase); in add()
55 json.add(NAME_KEY, new JsonPrimitive(name)); in toJson()
56 json.add(DATA_KEY, new Gson().toJsonTree(testCases)); in toJson()
82 column.add(testCase.name); in addTestCase()
95 jsonColumns.add(column.toJson()); in toJson()
DLineGraph.java105 ids.add(id); in addData()
106 profilingRuns.add(profilingPoint); in addData()
126 axisTicks.add(label); in toJson()
144 json.add(VALUE_KEY, new Gson().toJsonTree(lineGraphValues).getAsJsonArray()); in toJson()
145 json.add(IDS_KEY, new Gson().toJsonTree(ids).getAsJsonArray()); in toJson()
146 json.add(TICKS_KEY, new Gson().toJsonTree(axisTicks)); in toJson()
DGraph.java84 json.add(X_LABEL_KEY, new JsonPrimitive(getXLabel())); in toJson()
85 json.add(Y_LABEL_KEY, new JsonPrimitive(getYLabel())); in toJson()
86 json.add(NAME_KEY, new JsonPrimitive(getName())); in toJson()
87 json.add(TYPE_KEY, new JsonPrimitive(getType().toString())); in toJson()
DBoxPlot.java134 seriesSet.add(series); in addSeriesData()
175 statList.add(statSummary); in toJson()
178 statJson.add(VALUE_KEY, new Gson().toJsonTree(statList)); in toJson()
179 stats.add(statJson); in toJson()
181 json.add(VALUE_KEY, new Gson().toJsonTree(stats)); in toJson()
182 json.add(SERIES_KEY, new Gson().toJsonTree(seriesList)); in toJson()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/
DLinearPartition.java43 result.add(partition); in split()
52 partition.add(value); in split()
53 result.add(partition); in split()
65 partition.add(seq.get(i)); in split()
68 result.add(0, partition); in split()
76 partition.add(seq.get(i)); in split()
79 result.add(0, partition); in split()
/test/mlts/benchmark/src/com/android/nn/benchmark/evaluators/
DMelCepLogF0.java52 outValidationErrors.add("Mel-cep distortion exceeded the limit: " + in EvaluateSequenceAccuracy()
59 outValidationErrors.add("Log F0 error exceeded the limit: " + logF0Error); in EvaluateSequenceAccuracy()
66 keys.add("max_mel_cep_distortion"); in AddValidationResult()
67 values.add(mMaxMelCepDistortion); in AddValidationResult()
68 keys.add("max_log_f0_error"); in AddValidationResult()
69 values.add(mMaxLogF0Error); in AddValidationResult()
/test/vti/dashboard/src/main/java/com/android/vts/servlet/
DShowPerformanceDigestServlet.java67 links.add(new Page(PageType.TABLE, testName, "?testName=" + testName)); in getBreadcrumbLinks()
68 links.add(new Page(PageType.PERFORMANCE_DIGEST, "?testName=" + testName)); in getBreadcrumbLinks()
185 summaries.add(today); in doGetHandler()
191 summaries.add(yesterday); in doGetHandler()
202 summaries.add(lastWeek); in doGetHandler()
212 nonEmptySummaries.add(perfSummary); in doGetHandler()
237 tables.add(table); in doGetHandler()
238 tableTitles.add(profilingPointName); in doGetHandler()
241 tableSubtitles.add(HIGHER_IS_BETTER); in doGetHandler()
244 tableSubtitles.add(LOWER_IS_BETTER); in doGetHandler()
DShowPlanReleaseServlet.java79 links.add(new Page(PageType.RELEASE, "TEST PLANS", "?type=" + testType, true)); in getBreadcrumbLinks()
80 links.add(new Page(PageType.PLAN_RELEASE, planName, "?plan=" + planName)); in getBreadcrumbLinks()
82 links.add(new Page(PageType.RELEASE, "TEST SUITES", "?type=" + testType, true)); in getBreadcrumbLinks()
83 links.add( in getBreadcrumbLinks()
106 devices.add( in addDevice()
113 deviceSet.add(device); in addDevice()
118 obj.add("testPlanRun", testPlanRun.toJson()); in toJson()
119 obj.add("deviceInfo", new JsonPrimitive(StringUtils.join(devices, ", "))); in toJson()
203 userTestFilters.add(0, testPlanRunFilter); in getTestPlanDispatcher()
229 testPlanRuns.add(metadata); in getTestPlanDispatcher()
[all …]
/test/vti/dashboard/src/main/java/com/android/vts/job/
DVtsAlertJobServlet.java86 gets.add(KeyFactory.createKey(TestCaseRunEntity.KIND, testCaseRef.parentId)); in getCurrentFailures()
127 acks.add(ack); in getTestCaseAcknowledgments()
162 testRuns.add(testRun); in getTestRuns()
207 acknowledged.add(testCase); in separateAcknowledged()
257 testCaseKeys.add(KeyFactory.createKey(TestCaseRunEntity.KIND, testCaseId)); in getTestStatus()
289 transientTestcaseFailures.add(testCaseName); in getTestStatus()
311 buildIdList.add(deviceEntity.getBuildId()); in getTestStatus()
312 devices.add(deviceEntity); in getTestStatus()
323 skippedTestcaseFailures.add(testCaseName); in getTestStatus()
324 failingTestCases.add( in getTestStatus()
[all …]
DVtsProfilingStatsJobServlet.java94 tasks.add( in addTasks()
129 puts.add(profilingPoint.toEntity()); in updateSummaries()
136 branches.add(ProfilingPointSummaryEntity.ALL); in updateSummaries()
137 deviceNames.add(ProfilingPointSummaryEntity.ALL); in updateSummaries()
140 branches.add(d.getBranch()); in updateSummaries()
141 deviceNames.add(d.getBuildFlavor()); in updateSummaries()
147 summaryGets.add( in updateSummaries()
190 modifiedEntities.add(summary); in updateSummaries()
195 puts.add(profilingPointSummary.toEntity()); in updateSummaries()
249 devices.add(deviceInfoEntity); in doPost()
/test/vti/dashboard/src/main/java/com/android/vts/entity/
DTestRunEntity.java409 links.add(new Gson().toJsonTree(logInfo)); in getJsonLogLinks()
420 json.add(TEST_NAME, new JsonPrimitive(this.testName)); in toJson()
421 json.add(TEST_BUILD_ID, new JsonPrimitive(this.testBuildId)); in toJson()
422 json.add(HOST_NAME, new JsonPrimitive(this.hostName)); in toJson()
423 json.add(PASS_COUNT, new JsonPrimitive(this.passCount)); in toJson()
424 json.add(FAIL_COUNT, new JsonPrimitive(this.failCount)); in toJson()
425 json.add(START_TIMESTAMP, new JsonPrimitive(this.startTimestamp)); in toJson()
426 json.add(END_TIMESTAMP, new JsonPrimitive(this.endTimestamp)); in toJson()
448 … json.add(CodeCoverageEntity.COVERED_LINE_COUNT, new JsonPrimitive(coveredLineCount)); in toJson()
449 json.add(CodeCoverageEntity.TOTAL_LINE_COUNT, new JsonPrimitive(totalLineCount)); in toJson()
[all …]
DTestAcknowledgmentEntity.java270 json.add(KEY, new JsonPrimitive(KeyFactory.keyToString(this.key))); in toJson()
271 json.add(TEST_NAME, new JsonPrimitive(this.test.getName())); in toJson()
272 json.add(USER_OBJ, new JsonPrimitive(this.userObj.getEmail())); in toJson()
273 json.add(CREATED, new JsonPrimitive(this.created)); in toJson()
278 branches.add(new JsonPrimitive(branch)); in toJson()
281 json.add(BRANCHES, new Gson().toJsonTree(branches)); in toJson()
286 devices.add(new JsonPrimitive(device)); in toJson()
289 json.add(DEVICES, new Gson().toJsonTree(devices)); in toJson()
294 testCaseNames.add(new JsonPrimitive(testCaseName)); in toJson()
297 json.add(TEST_CASE_NAMES, new Gson().toJsonTree(testCaseNames)); in toJson()
[all …]
/test/suite_harness/common/host-side/manifest-generator/tests/src/com/android/compatibility/common/generator/
DManifestGeneratorTest.java57 permissions.add(PERMISSION_A); in testManifest()
58 permissions.add(PERMISSION_B); in testManifest()
60 activities.add(ACTIVITY_A); in testManifest()
61 activities.add(ACTIVITY_B); in testManifest()
63 libraries.add(LIBRARY); in testManifest()
/test/vts/utils/python/web/
Dweb_utils.py102 dev_info = self.report_msg.device_info.add()
149 self.current_test_report_msg = self.report_msg.test_case.add()
177 api_coverage = report.api_coverage.add()
222 coverage = report.coverage.add()
263 getattr(self, _PROFILING_POINTS).add(name)
264 profiling_msg = self.report_msg.profiling.add()
308 getattr(self, _PROFILING_POINTS).add(name)
309 profiling_msg = self.report_msg.profiling.add()
385 systrace_msg = self.current_test_report_msg.systrace.add()
407 log_msg = self.report_msg.log.add()
[all …]
/test/vts/utils/python/fuzzer/
DGenePool.py57 def _IsNewCoverage(self, coverage, add=False): argument
72 if add:
76 if add:
99 if self._IsNewCoverage(coverage, add=True):
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DBusinessLogicFactory.java132 testRulesLists.add(extractRulesList(jsonRulesList)); in createBL()
169 rules.add(new BusinessLogicRule(ruleConditions, ruleActions)); in extractRulesList()
199 ruleConditions.add(new BusinessLogicRuleCondition(methodName, methodArgs, negated)); in extractRuleConditionList()
203 methodArgs.add(methodArgsJSONArray.getString(j)); in extractRuleConditionList()
205 ruleConditions.add(new BusinessLogicRuleCondition(methodName, methodArgs, negated)); in extractRuleConditionList()
225 ruleActions.add(new BusinessLogicRuleAction(methodName, methodArgs)); in extractRuleActionList()
229 methodArgs.add(methodArgsJSONArray.getString(j)); in extractRuleActionList()
231 ruleActions.add(new BusinessLogicRuleAction(methodName, methodArgs)); in extractRuleActionList()

12345678