Home
last modified time | relevance | path

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

1234

/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
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());
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 …]
/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/flicker/src/com/android/server/wm/flicker/traces/layers/
DLayerSubject.kt104 fun hasBufferSize(size: Point): LayerSubject = apply { in <lambda>()
105 val bounds = Bounds(size.x, size.y) in <lambda>()
115 fun hasBufferSize(size: Bounds): LayerSubject = apply { in <lambda>()
117 val bufferSize = layer.activeBuffer?.size ?: Bounds.EMPTY in <lambda>()
118 check("Incorrect buffer size").that(bufferSize).isEqualTo(size) in <lambda>()
127 fun hasLayerSize(size: Point): LayerSubject = apply { in <lambda>()
130 check("Incorrect number of layers").that(layerSize).isEqualTo(size) in <lambda>()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DBaseMetricListenerInstrumentedTest.java119 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 …]
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 …]
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/collectors-helper/memory/test/src/com/android/helpers/tests/
DPinnerHelperTest.java107 assertTrue(metrics.size() > 2); in testPinnerSnapshotDumpFile()
119 assertTrue(metrics.size() > 2); in testPinnerTotalFileSizeMetric()
135 assertTrue(systemMetricKeys.size() > 1); in testSystemFileSizeMetrics()
150 assertTrue(appPinnedFilesKeys.size() > 1); in testIndividualAppFileSizeMetrics()
206 assertTrue(systemMetricKeys.size() > 1); in testOnlySystemPinnerInfoIsPresent()
211 assertTrue(appPinnedFilesKeys.size() == 0); in testOnlySystemPinnerInfoIsPresent()
231 assertTrue(appPinnedFilesKeys.size() > 1); in testOnlyAppPinnerMetricsInfoIsPresent()
237 assertTrue(systemMetricKeys.size() == 0); in testOnlyAppPinnerMetricsInfoIsPresent()
271 assertTrue(systemMetricKeys.size() > 1); in testMetricMapResetOnMultipleGetMetrics()
285 assertTrue(appPinnedFilesKeys2.size() > 1); in testMetricMapResetOnMultipleGetMetrics()
[all …]
DShowmapSnapshotHelperTest.java157 assertTrue(metrics.size() > 2); in testGetMetrics_AllProcess()
202 assertTrue(metrics.size() != 0); in testGetMetrics_verify_child_processes_metrics()
214 assertTrue(parentWithChildProcessSet.size() > 0); in testGetMetrics_verify_child_processes_metrics()
219 if(metrics.size() == 0) { in verifyDefaultMetrics()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DWindowManagerTraceTest.kt44 assertThat(firstEntry.windowStates.size).isEqualTo(10) in <lambda>()
45 assertThat(firstEntry.visibleWindows.size).isEqualTo(6) in <lambda>()
46 assertThat(trace.entries[trace.entries.size - 1].timestamp) in <lambda>()
53 assertWithMessage("Unable to detect app windows").that(appWindows.size).isEqualTo(2) in <lambda>()
112 .that(trace.entries.size) in <lambda>()
DWindowManagerStateHelperTest.kt149 val helper = TestWindowManagerStateHelper(supplier, numRetries = trace.entries.size, in <lambda>()
185 val helper = TestWindowManagerStateHelper(supplier, numRetries = trace.entries.size, in <lambda>()
222 val helper = TestWindowManagerStateHelper(supplier, numRetries = trace.entries.size, in <lambda>()
241 val helper = TestWindowManagerStateHelper(supplier, numRetries = trace.entries.size, in <lambda>()
262 val helper = TestWindowManagerStateHelper(supplier, numRetries = trace.entries.size, in <lambda>()
283 val helper = TestWindowManagerStateHelper(supplier, numRetries = trace.entries.size, in <lambda>()
302 val helper = TestWindowManagerStateHelper(supplier, numRetries = trace.entries.size, in <lambda>()
333 val helper = TestWindowManagerStateHelper(supplier, numRetries = trace.entries.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/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/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DUiInteractionFrameInfoListener.java106 if (mExpectedCujSet.size() > 0) { in onTestEndAlternative()
162 while (!(foundCujSet.size() == mLoggedCujSet.size())) { in processMetrics()
226 if (valid && (mLoggedCujSet.size() == mExpectedCujSet.size())) { in handleSessionCancelled()
239 if (mLoggedCujSet.size() == mExpectedCujSet.size()) { in handleMetricsLogged()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/assertions/
DAssertionsChecker.kt76 while (assertionIndex < assertions.size && entryIndex < entries.size) { in test()
94 if (assertionIndex == assertions.size) { in test()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/monitor/
DEventLogMonitor.kt48 val searchTags = tags.copyOf(tags.size + 1) in <lambda>()
49 searchTags[searchTags.size - 1] = EVENT_LOG_SEPARATOR_TAG in <lambda>()
78 if (log.size != 2) { in <lambda>()
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTestHelper.java112 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/
DCommonLauncherHelper.java104 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/flicker/src/com/android/server/wm/flicker/traces/eventlog/
DEventLogSubject.kt59 .take(windows.size) in <lambda>()
60 val success = windows.size <= focusChanges.size && in <lambda>()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DCrashHelperTest.java102 assertEquals(3, crashMap.size()); in testEmptyCrashMetric()
120 assertEquals(4, crashMap.size()); in testCrashMetric()
139 assertEquals(4, crashMap.size()); in testNativeCrashMetric()
158 assertEquals(4, crashMap.size()); in testAnrMetric()
187 assertEquals(6, crashMap.size()); in testMultipleCrashMetric()
DCpuUsageHelperTest.java82 assertTrue(cpuUsage.size() > 2); in testCpuUsageMetrics()
137 assertTrue(cpuUsage.size() == 1); in testCpuDisabledPerPkg()
154 assertTrue(cpuUsage.size() > 2); in testCpuUsageOnlyPerPkg()
171 assertTrue(cpuUsage.size() > 3); in testCpuEnableCpuUtilization()
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/
DDeviceCollectorsTest.java89 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()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/monitor/
DEventLogMonitorTest.kt48 assertEquals(2, result.eventLog?.size) in canCaptureFocusEventLogs()
90 assertEquals(2, result.eventLog?.size) in onlyCapturesLastTransition()
125 assertEquals(2, result.eventLog?.size) in ignoreFocusRequestLogs()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/windowmanager/
DWindowManagerState.kt87 .dropWhile { !appWindows.contains(it) }.drop(appWindows.size).toTypedArray() in <lambda>()
127 val resumedActivitiesCount: Int get() = resumedActivities.size in <lambda>()
128 val stackCount: Int get() = rootTasks.size in <lambda>()
129 val displayCount: Int get() = displays.size in <lambda>()
134 val rootTasksCount: Int get() = rootTasks.size in <lambda>()
158 if (result.size > 1) { in <lambda>()
244 count += if (stack.tasks.isEmpty()) 1 else stack.tasks.size in <lambda>()
397 return task.activities.size in <lambda>()
450 if (navWindow.size > 1) { in <lambda>()
512 fun getZOrder(w: WindowState): Int = windowStates.size - windowStates.indexOf(w) in <lambda>()

1234