/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | Scheduler.java | 75 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());
|
D | MemHealthRecord.java | 155 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 …]
|
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/ |
D | AssertionsChecker.java | 47 CompoundAssertion<T> lastAssertion = mAssertions.get(mAssertions.size() - 1); in append() 115 return assertEntry(filteredEntries.get(filteredEntries.size() - 1)); in test() 138 if (mAssertions.size() == 0) { in assertChanges() 142 while (assertionIndex < mAssertions.size() && entryIndex < entries.size()) { in assertChanges() 164 if (assertionIndex == mAssertions.size()) { in assertChanges() 170 if (lastPassedAssertionIndex == -1 && mAssertions.size() > 0 && failures.isEmpty()) { in assertChanges() 175 if (assertionIndex != mAssertions.size() - 1) { in assertChanges()
|
D | LayersTraceSubject.java | 168 public LayersTraceSubject hasVisibleRegion(String layerName, Rect size) { in hasVisibleRegion() argument 170 entry -> entry.hasVisibleRegion(layerName, size), in hasVisibleRegion() 171 "hasVisibleRegion(" + layerName + size + ")"); in hasVisibleRegion()
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | BaseMetricListenerInstrumentedTest.java | 119 assertEquals(1, capturedBundle.size()); 123 assertEquals(2, check.size()); 128 assertEquals(2, resultBundle.size()); 166 assertEquals(2, capturedBundle.size()); 170 assertEquals(2, check.size()); 175 assertEquals(2, check2.size()); 214 assertEquals(1, capturedBundle.size()); 219 assertEquals(2, check.size()); 258 assertEquals(1, capturedBundle.size()); 262 assertEquals(2, check.size()); [all …]
|
D | LogcatOnFailureCollectorTest.java | 133 assertEquals(0, resultBundle.size()); in testLogcatOnFailure() 140 assertEquals(1, capturedBundle.size()); in testLogcatOnFailure() 143 assertEquals(1, check.size()); in testLogcatOnFailure() 181 assertEquals(0, resultBundle.size()); in testRetrievingLogcat() 189 assertEquals(1, capturedBundle.size()); in testRetrievingLogcat() 192 assertEquals(1, check.size()); in testRetrievingLogcat() 253 assertEquals(0, resultBundle.size()); in testLogcatTimespan() 261 assertEquals(1, capturedBundle.size()); in testLogcatTimespan() 264 assertEquals(1, check.size()); in testLogcatTimespan() 339 assertEquals(0, resultBundle.size()); in testMultipleIterations() [all …]
|
D | ScheduledRunMetricListenerTest.java | 70 Assert.assertTrue(resultBundle.size() > 4); in testPeriodicRun()
|
D | ScreenshotOnFailureCollectorTest.java | 137 assertEquals(NUM_TEST_CASE, capturedBundle.size()); in testSavePngAsFile() 174 assertEquals(NUM_TEST_CASE, capturedBundle.size()); in testSaveUixAsFile() 211 assertEquals(NUM_TEST_CASE, capturedBundle.size()); in testNoUixWithoutOption()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | DataRecord.java | 69 return (mCurrentStringMetrics.size() + mCurrentFileMetrics.size() in hasMetrics() 70 + mCurrentBinaryMetrics.size()) > 0; in hasMetrics()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | TotalPssHelper.java | 173 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/tests/functional/downloadapp/src/com/android/functional/downloadapp/ |
D | DownloadAppTestHelper.java | 112 for (int i = 0; i < (nameList.size() - 1); ++i) { in verifySortedByName() 123 for (int i = 0; i < (nameList.size() - 1); ++i) { in verifySortedBySize() 137 for (int i = 0; i < (nameList.size() - 1); ++i) { in verifySortedByTime() 182 int size = random.nextInt(1000); in populateContentInDLApp() local 196 size, Boolean.FALSE); in populateContentInDLApp() 199 size, timeInMiliSec)); in populateContentInDLApp() 200 mDownloadedItems.put(fileName, new DlObjSizeTimePair(size, timeInMiliSec)); in populateContentInDLApp() 310 public DlObjSizeTimePair(int size, long time) { in DlObjSizeTimePair() argument 311 this.dlObjSize = size; in DlObjSizeTimePair()
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
D | CommonLauncherHelper.java | 104 int size = 0; in ensureIconVisible() local 107 size = appR.height(); in ensureIconVisible() 110 size = appR.width(); in ensureIconVisible() 113 if (size < MIN_INTERACT_SIZE) { in ensureIconVisible() 116 float pct = ((float)(MIN_INTERACT_SIZE - size)) / containerSize; in ensureIconVisible()
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | CrashHelperTest.java | 99 assertEquals(3, crashMap.size()); in testEmptyCrashMetric() 117 assertEquals(4, crashMap.size()); in testCrashMetric() 136 assertEquals(4, crashMap.size()); in testNativeCrashMetric() 155 assertEquals(4, crashMap.size()); in testAnrMetric() 184 assertEquals(6, crashMap.size()); in testMultipleCrashMetric()
|
D | CpuUsageHelperTest.java | 86 assertTrue(cpuUsage.size() > 2); in testCpuUsageMetrics() 165 assertTrue(cpuUsage.size() == 2); in testCpuDisabledPerPkgPerFreq() 185 assertTrue(cpuUsage.size() > 2); in testCpuUsageOnlyPerPkg() 206 assertTrue(cpuUsage.size() > 2); in testCpuUsageOnlyPerFreq() 223 assertTrue(cpuUsage.size() > 3); in testCpuEnableCpuUtilization()
|
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/ |
D | DeviceCollectorsTest.java | 89 assertEquals(1, results.size()); in testBaseListenerRuns() 116 assertEquals(1, results.size()); in testBaseListenerRuns_withExcludeFilters() 146 assertEquals(1, results.size()); in testBaseListenerRuns_withIncludeAndExcludeFilters() 176 assertEquals(1, results.size()); in testBaseListenerRuns_withIncludeFilters() 212 assertEquals(1, results.size()); in testScheduledListenerRuns() 235 assertEquals(1, results.size()); in testScheduledListenerRuns_defaultValue() 240 assertEquals(1, result.getRunMetrics().size()); in testScheduledListenerRuns_defaultValue()
|
D | BatterystatsCollectorHostTest.java | 123 assertEquals(1, results.size()); in testBatteryStatsListener_perRun() 128 assertEquals(1, result.getRunMetrics().size()); in testBatteryStatsListener_perRun()
|
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | ShowmapSnapshotHelperTest.java | 148 assertTrue(metrics.size() > 2); in testGetMetrics_AllProcess() 167 assertTrue(metrics.size() == 2); in testGetMetrics_Invalid_Metric_Pattern() 179 assertTrue(metrics.size() == 2); in testGetMetrics_Empty_Metric_Pattern()
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/exceptions/ |
D | MappedMultiException.java | 68 .toArray(new String[mThrowables.size()]))); in getMessage()
|
/platform_testing/libraries/junitxml/src/com/android/junitxml/ |
D | XmlRunListener.java | 133 mRootElement.setAttribute(ATTR_TESTSUITE_TESTS, "" + mTestStarts.size()); in endTestSuite() 134 mRootElement.setAttribute(ATTR_TESTSUITE_FAILURES, "" + mFailedTests.size()); in endTestSuite() 135 mRootElement.setAttribute(ATTR_TESTSUITE_ERRORS, "" + mErrorTests.size()); in endTestSuite() 136 mRootElement.setAttribute(ATTR_TESTSUITE_SKIPPED, "" + mSkippedTests.size()); in endTestSuite()
|
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/ |
D | LongevitySuiteTest.java | 131 Assert.assertEquals(runners.size(), 3); in testReportingIteration_notSet() 166 Assert.assertEquals(runners.size(), 3); in testReportingIteration_set() 201 Assert.assertEquals(e.getCauses().size(), 2); in testThrowingErrorReportingRunnerCauses()
|
D | LongevityClassRunnerTest.java | 141 Assert.assertEquals(ASSERTION_FAILURE_MESSAGE, methodList.size(), 2); in testBeforeClassMethodsAddedAsBeforeMethods() 202 ASSERTION_FAILURE_MESSAGE, afterMethodList.size(), 1); in testAfterClassMethodsAddedAsAfterMethods() 211 ASSERTION_FAILURE_MESSAGE, afterClassMethodList.size(), 1); in testAfterClassMethodsAddedAsAfterMethods() 308 Assert.assertEquals(methodsCaptor.getValue().size(), 1); in testAfterClass_runAsAfterForPassingTest() 334 Assert.assertEquals(methodsCaptor.getValue().size(), 1); in testAfterClass_runAsAfterClassForFailingTest()
|
D | ScenarioRunnerTest.java | 156 if (b1.size() != b2.size()) { in bundlesContainSameStringKeyValuePairs()
|
/platform_testing/libraries/collectors-helper/power/test/src/com/android/helpers/ |
D | PwrStatsUtilHelperTest.java | 73 assertEquals(metrics.size(), 4); in successfulRun()
|
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/ |
D | LayersTraceTest.java | 72 assertThat(trace.getEntries().get(trace.getEntries().size() - 1).getTimestamp()) in canParseAllLayers() 89 assertThat(trace.getEntries().get(trace.getEntries().size() - 1).getTimestamp()) in canParseVisibleLayers() 113 assertThat(trace.getEntries().get(trace.getEntries().size() - 1).getTimestamp()) in canParseLayerHierarchy()
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | CpuUsageHelper.java | 152 if (cpuUsageList.size() > 1) { in getMetrics() 154 Long cpuUsage = cpuUsageList.get(cpuUsageList.size() - 1) in getMetrics()
|