Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 192) sorted by relevance

12345678

/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DLongStatsCollector.java36 public int size() { in size() method in LongStatsCollector
37 return mAllValues.size(); in size()
42 if (mAllValues.size() == 0) { in getStats()
47 int size = mAllValues.size(); in getStats() local
48 long[] buffer = new long[size]; in getStats()
49 for (int i = 0; i < size; i++) { in getStats()
55 int midPoint = size / 2; in getStats()
56 median = (size % 2 == 0) ? (buffer[midPoint - 1] + buffer[midPoint]) / 2 : buffer[midPoint]; in getStats()
58 return new Stats(mAllValues.size(), mMin, mMax, median); in getStats()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/
DResourceRepository.java192 int size; in getResourceItem() local
198 case PUBLIC: size = 1734; break; in getResourceItem()
199 case DRAWABLE: size = 1508; break; in getResourceItem()
200 case STRING: size = 1255; break; in getResourceItem()
201 case ATTR: size = 1064; break; in getResourceItem()
202 case STYLE: size = 783; break; in getResourceItem()
203 case ID: size = 347; break; in getResourceItem()
205 size = 210; in getResourceItem()
207 case LAYOUT: size = 187; break; in getResourceItem()
208 case COLOR: size = 120; break; in getResourceItem()
[all …]
DFrameworkResources.java140 int size; in loadPublicResources() local
143 size = 500; in loadPublicResources()
146 size = 1050; in loadPublicResources()
149 size = 200; in loadPublicResources()
152 size = 50; in loadPublicResources()
159 size = 30; in loadPublicResources()
162 size = 10; in loadPublicResources()
165 publicList = new ArrayList<>(size); in loadPublicResources()
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DBusinessLogicTest.java135 assertEquals("Wrong number of business logic rule lists", 3, bl.mRules.size()); in testCorrectLogic()
139 assertEquals("Wrong number of rules in first rule list", 1, rulesList1.size()); in testCorrectLogic()
142 assertEquals("Wrong number of conditions", 1, rule1Conditions.size()); in testCorrectLogic()
149 rule1Condition.mMethodArgs.size()); in testCorrectLogic()
153 assertEquals("Wrong number of actions", 1, rule1Actions.size()); in testCorrectLogic()
158 rule1Action.mMethodArgs.size()); in testCorrectLogic()
165 assertEquals("Wrong number of rules in second rule list", 2, rulesList2.size()); in testCorrectLogic()
168 assertEquals("Wrong number of conditions", 1, rule2Conditions.size()); in testCorrectLogic()
175 rule2Condition.mMethodArgs.size()); in testCorrectLogic()
179 assertEquals("Wrong number of actions", 1, rule2Actions.size()); in testCorrectLogic()
[all …]
DCaseResultTest.java52 assertEquals("Expected one result", 1, mResult.getResults().size()); in testResultCreation()
57 assertEquals("Expected one result", 1, mResult.getResults().size()); in testResultCreation()
69 assertEquals("Expected two results", 2, mResult.getResults().size()); in testResultReporting()
91 assertEquals("Expected one result", 3, mResult.getResults().size()); in testMergeCase()
107 assertEquals("Expected one result", 3, mResult.getResults().size()); in testMergeCase_passToFail()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DDisplay.kt33 val size: Size, constant in android.tools.traces.surfaceflinger.Display
66 DisplayContent.dpiFromPx(min(size.width.toFloat(), size.height.toFloat()), dpi)
77 if (size != other.size) return false in equals()
89 result = 31 * result + size.hashCode() in hashCode()
105 size = Size.EMPTY, in <lambda>()
118 size: Size, in from()
125 Display(id, name, layerStackId, size, layerStackSpace, transform, isVirtual, dpiX, dpiY) in from()
/platform_testing/libraries/motion/src/platform/test/motion/golden/
DTimeSeries.kt31 require(features.size == this.features.size) { "duplicate feature names" } in <lambda>()
37 require(feature.dataPoints.size == frameIds.size) { in <lambda>()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DMemHealthRecord.java155 out.printf("Count %d\n", nativeHeap.size()); in saveVerbose()
196 out.printf("Count %d\n", nativeHeap.size()); in saveVerbose()
231 List<Long> ret = new ArrayList<>(samples.size()); in getForegroundDalvikHeap()
241 List<Long> ret = new ArrayList<>(samples.size()); in getBackgroundDalvikHeap()
251 List<Long> ret = new ArrayList<>(samples.size()); in getForegroundNativeHeap()
261 List<Long> ret = new ArrayList<>(samples.size()); in getBackgroundNativeHeap()
271 List<Long> ret = new ArrayList<>(samples.size()); in getForegroundPss()
281 List<Long> ret = new ArrayList<>(samples.size()); in getBackgroundPss()
291 List<Long> ret = new ArrayList<>(samples.size()); in getForegroundSummaryJavaHeap()
301 List<Long> ret = new ArrayList<>(samples.size()); in getBackgroundSummaryJavaHeap()
[all …]
DScheduler.java75 return count < (cases.size() * mIterations);
79 return cases.get(count++ % cases.size());
142 final int a = randomRelPrime(cases.size());
149 return count < (cases.size() * mIterations);
153 return cases.get((a * (count++) + b) % cases.size());
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
DHeapDumpHelperTest.java65 assertTrue(metrics.size() == 2); in testHeapDumpCollectionNoProcess()
75 assertTrue(metrics.size() == 3); in testSuccessfulHeapDumpCollection()
91 assertTrue(metrics.size() == 3); in testHeapCollectionProcessWithSpecialChars()
108 assertTrue(metrics.size() == 4); in testSuccessfulHeapDumpCollectionForTwoProcesses()
132 assertTrue(metrics.size() == 6); in testSuccessfulNativeHeapDumpCollectionForTwoProcesses()
165 assertTrue(metrics.size() == 2); in testHeapDumpNotCollectedWithEmptyId()
176 assertTrue(metrics.size() == 3); in testHeapDumpCollectionForInvalidProcesses()
194 assertTrue(metrics.size() == 4); in testNativeHeapDumpCollectionForInvalidProcesses()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DStreamUtil.java45 int size = -1; in copyStreams() local
46 while ((size = inStream.read(buf)) != -1) { in copyStreams()
47 outStream.write(buf, 0, size); in copyStreams()
DBusinessLogic.java68 return rulesLists != null && rulesLists.size() > 1; in hasLogicsFor()
103 for (int index = 0; index < rulesLists.size(); index++) { in applyLogicsFor()
118 if (skippedMap.size() == rulesLists.size()) { in applyLogicsFor()
120 } else if (failedMap.size() > 0) { in applyLogicsFor()
136 String[] descriptions = keySet.toArray(new String[keySet.size()]); in throwAggregatedException()
313 mMethodArgs.toArray(new String[mMethodArgs.size()]))); in invoke()
337 mMethodArgs.toArray(new String[mMethodArgs.size()])); in invoke()
/platform_testing/libraries/automotive-helpers/settings-app-helper/src/android/platform/helpers/
DSettingsUIHelperImpl.java105 if (optionObjects.size() == 0) { in openUIOptions()
116 if (optionObjects.size() > 0) { in openUIOptions()
117 object = optionObjects.get(optionObjects.size() - 1); in openUIOptions()
134 if (backButtonObjects != null && backButtonObjects.size() > 0) { in pressBackButton()
135 UiObject2 backButtonObject = backButtonObjects.get(backButtonObjects.size() - 1); in pressBackButton()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DUtils.kt41 if (rows.size == 1) { in queryLastEntryTimestamp()
54 require(rows.size == 1) in queryToMonotonic()
64 require(rows.size == 1) in queryToRealtime()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DLogcatCollectorTest.java121 assertEquals(0, resultBundle.size()); in testLogcatCollectionOnEveryTestEnd()
128 assertEquals(2, capturedBundle.size()); in testLogcatCollectionOnEveryTestEnd()
132 assertEquals(1, check1.size()); in testLogcatCollectionOnEveryTestEnd()
148 assertEquals(1, check2.size()); in testLogcatCollectionOnEveryTestEnd()
193 assertEquals(0, resultBundle.size()); in testLogcatCollectionWithBeforeDuration()
202 assertEquals(1, capturedList.size()); in testLogcatCollectionWithBeforeDuration()
237 assertEquals(1, resultBundle.size()); in testLogcatCollectionWithDirectoryOption()
277 assertEquals(0, resultBundle.size()); in testLogcatOnlyOnTestFailureOption()
284 assertEquals(1, capturedBundle.size()); in testLogcatOnlyOnTestFailureOption()
287 assertEquals(1, check.size()); in testLogcatOnlyOnTestFailureOption()
[all …]
DBaseMetricListenerInstrumentedTest.java139 assertEquals(1, capturedBundle.size()); in testReportMetrics()
143 assertEquals(2, check.size()); in testReportMetrics()
148 assertEquals(2, resultBundle.size()); in testReportMetrics()
186 assertEquals(2, capturedBundle.size()); in testReportMetrics_withIncludeFilters()
190 assertEquals(2, check.size()); in testReportMetrics_withIncludeFilters()
195 assertEquals(2, check2.size()); in testReportMetrics_withIncludeFilters()
234 assertEquals(1, capturedBundle.size()); in testReportMetrics_withIncludeFilters_multiGroup()
239 assertEquals(2, check.size()); in testReportMetrics_withIncludeFilters_multiGroup()
278 assertEquals(1, capturedBundle.size()); in testReportMetrics_withExcludeFilters()
282 assertEquals(2, check.size()); in testReportMetrics_withExcludeFilters()
[all …]
DGcaEventLogCollectorTest.java101 assertEquals(0, resultBundle.size()); in testGcaEventLogCollectionOnTestEnd_includeFailure()
110 assertEquals(2, capturedBundle.size()); in testGcaEventLogCollectionOnTestEnd_includeFailure()
112 assertEquals(1, check.size()); in testGcaEventLogCollectionOnTestEnd_includeFailure()
122 assertEquals(1, checkFail.size()); in testGcaEventLogCollectionOnTestEnd_includeFailure()
157 assertEquals(0, resultBundle.size()); in testGcaEventLogCollectOnTestEnd_skipFailure()
166 assertEquals(2, capturedBundle.size()); in testGcaEventLogCollectOnTestEnd_skipFailure()
168 assertEquals(1, check1.size()); in testGcaEventLogCollectOnTestEnd_skipFailure()
178 assertEquals(1, check2.size()); in testGcaEventLogCollectOnTestEnd_skipFailure()
210 assertEquals(1, resultBundle.size()); in testGcaEventLogCollectionOnTestRunEnd_runEndOnly()
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/
DMotionTestValuesTest.kt20 import androidx.compose.foundation.layout.size
100 content = { Box(Modifier.size(10.dp).motionTestValues { .5f exportAs foo }) }, in featureWithDataPointType_defaultMatcherAndName()
114 Modifier.size(10.dp).testTag("foo").motionTestValues { in featureWithDataPointType_matchingViaTestTag()
130 content = { Box(Modifier.size(10.dp).motionTestValues { .5f exportAs foo }) }, in featureWithDataPointType_unknownNode()
144 content = { Box(Modifier.size(10.dp).motionTestValues { .5f exportAs foo }) }, in featureWithDataPointType_withCustomName()
156 content = { Box(Modifier.size(10.dp).motionTestValues { .5f exportAs foo }) }, in featureWithFeatureCapture_defaultMatcherAndName()
170 Modifier.size(10.dp).testTag("foo").motionTestValues { in featureWithFeatureCapture_matchingViaTestTag()
186 content = { Box(Modifier.size(10.dp).motionTestValues { .5f exportAs foo }) }, in featureWithFeatureCapture_unknownNode()
198 content = { Box(Modifier.size(10.dp).motionTestValues { .5f exportAs foo }) }, in featureWithFeatureCapture_withCustomName()
/platform_testing/libraries/flag-helpers/libflagtest/
Dflag_checker_test.cpp107 ASSERT_EQ(GetFlagsNotMetRequirements({}).size(), 0); in TEST_F()
130 ASSERT_EQ(unsatisfied_flags.size(), 0); in TEST_F()
153 ASSERT_EQ(unsatisfied_flags.size(), 2); in TEST_F()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DAssertionTemplateWithComponent.kt38 if (components.size != other.components.size) { in <lambda>()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DDataRecord.java69 return (mCurrentStringMetrics.size() + mCurrentFileMetrics.size() in hasMetrics()
70 + mCurrentBinaryMetrics.size()) > 0; in hasMetrics()
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/
DComposeFeatureCaptures.kt34 val size = FeatureCapture<SemanticsNode, IntSize>("size") { it.size.asDataPoint() } in <lambda>() constant
38 with(it.layoutInfo.density) { it.size.toSize().toDpSize().asDataPoint() } in <lambda>()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DTotalPssHelper.java173 long diff1 = Math.abs(pssData.get(pssData.size() - 1) - pssData.get(pssData.size() - 2)); in stabilized()
174 long diff2 = Math.abs(pssData.get(pssData.size() - 2) - pssData.get(pssData.size() - 3)); in stabilized()
190 return sum / pssData.size(); in average()
/platform_testing/libraries/flicker/src/android/tools/flicker/extractors/
DTaggedCujTransitionMatcher.kt97 require(!associatedTransitionRequired || matchedTransitions.size == 1) { in <lambda>()
141 require(transitions.size <= 2) { in reader()
148 transitions.size == 2 && in reader()
165 if (transition.changes.size != 1) { in isPermissionDialogOpenTransition()
199 require(candidateTaskLayers.size == 1) { in isTrampolinedOpenTransition()
227 require(candidateTargetActivities.size == 1) { in isTrampolinedOpenTransition()
231 require(candidateTargetActivities.size == 1) { in isTrampolinedOpenTransition()
/platform_testing/libraries/runner/src/main/java/platform/test/runner/parameterized/
DParameterizedRunnerDelegate.java78 if (mParametersIndex >= parametersList.size()) { in computeParams()
130 if (parameterFieldsFound.size() != parameters.length) { in injectParametersIntoFields()
143 int[] usedIndices = new int[annotatedFieldsByParameter.size()]; in validateFields()
146 if (index < 0 || index > annotatedFieldsByParameter.size() - 1) { in validateFields()
155 annotatedFieldsByParameter.size(), in validateFields()
156 annotatedFieldsByParameter.size() - 1))); in validateFields()

12345678