Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 226) sorted by relevance

12345678910

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DStat.java64 for (int i = 1; i < data.length; i++) { in getStat()
65 average += data[i]; in getStat()
66 if (data[i] > max) { in getStat()
67 max = data[i]; in getStat()
69 if (data[i] < min) { in getStat()
70 min = data[i]; in getStat()
75 for (int i = 0; i < data.length; i++) { in getStat()
76 double diff = average - data[i]; in getStat()
97 for (int i = 0; i < data.length; i++) { in getStatWithOutlierRejection()
98 if ((data[i] > thresholdMin) && (data[i] < thresholdMax)) { in getStatWithOutlierRejection()
[all …]
DMeasureTime.java35 for (int i = 0; i < count; i++) { in measure()
36 run.prepare(i); in measure()
38 run.run(i); in measure()
40 result[i] = end - start; in measure()
DReadElf.java303 for (int i = 0; i < this.vn_cnt; i++) { in toString()
304 vernauxStr += String.format(" %s\n", this.vn_vernaux[i].toString()); in toString()
393 for (int i = 0; i < this.vd_cnt; i++) { in toString()
394 vStr += String.format(" %s\n", this.vd_verdaux[i].toString()); in toString()
587 for (int i = 0; i < symArr.length; i++) { in main()
588 System.out.println(String.format("%8x: %s", i, symArr[i].toString())); in main()
592 for (int i = 0; i < symArr.length; i++) { in main()
597 i, in main()
598 symArr[i].toString(), in main()
599 symArr[i].getExternalLibName(), in main()
[all …]
DStacktrace.java49 for (int i = 0; i < elements.length; i++) { in getTestCallerClassMethodName()
50 if (elements[i].getClassName().endsWith(TEST_POSTFIX)) { in getTestCallerClassMethodName()
51 return buildClassMethodName(elements, i, includeLineNumber); in getTestCallerClassMethodName()
/platform_testing/libraries/collectors-helper/lyric/src/com/android/helpers/
DLyricMemProfilerHelper.java127 for (int i = 0; i < mMaxCameraMemInfoList.length; i++) { in setMaxResult()
128 mMaxCameraMemInfoList[i].mNativeHeap = in setMaxResult()
129 Math.max(mMaxCameraMemInfoList[i].mNativeHeap, memInfoList[i].mNativeHeap); in setMaxResult()
130 mMaxCameraMemInfoList[i].mTotalPss = in setMaxResult()
131 Math.max(mMaxCameraMemInfoList[i].mTotalPss, memInfoList[i].mTotalPss); in setMaxResult()
132 mMaxCameraDmabufList[i] = Math.max(mMaxCameraDmabufList[i], dmabufList[i]); in setMaxResult()
154 for (int i = 0; i < mCameraProcNameList.length; i++) { in startCollecting()
155 mCameraPidList[i] = getProcPid(mCameraProcNameList[i]); in startCollecting()
162 mCameraDmabufPatternList[i] = in startCollecting()
163 Pattern.compile("\\s*.*:" + mCameraPidList[i] + "\\s*"); in startCollecting()
[all …]
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DStatsdStatsHelperTest.java68 for (int i = 0; i < ATOM_STATS_COUNT; i++) { in populateAtomStatsTestData()
69 testReport.atomStats[i] = new StatsLog.StatsdStatsReport.AtomStats(); in populateAtomStatsTestData()
70 int fieldValue = i + 1; in populateAtomStatsTestData()
71 testReport.atomStats[i].tag = fieldValue++; in populateAtomStatsTestData()
72 testReport.atomStats[i].count = fieldValue++; in populateAtomStatsTestData()
73 testReport.atomStats[i].errorCount = fieldValue++; in populateAtomStatsTestData()
79 for (int i = 0; i < CONFIG_STATS_COUNT; i++) { in populateConfigStatsTestData()
80 testReport.configStats[i] = new StatsLog.StatsdStatsReport.ConfigStats(); in populateConfigStatsTestData()
81 testReport.configStats[i].id = i + 1; in populateConfigStatsTestData()
82 testReport.configStats[i].metricCount = CONFIG_STATS_METRIC_COUNT; in populateConfigStatsTestData()
[all …]
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DStatTest.java32 for (int i = 0; i < 100; i++) { in testGet95PercentileValue()
33 values[i] = i; in testGet95PercentileValue()
38 for (int i = 0; i < 1000; i++) { in testGet95PercentileValue()
39 values[i] = i; in testGet95PercentileValue()
44 for (int i = 0; i < 100; i++) { in testGet95PercentileValue()
45 values[i] = i * i; in testGet95PercentileValue()
DReportLogTest.java116 for (int i = 0; i < 40; i++) sb.append(SOURCE); in testLimits_source()
131 for (int i = 0; i < 40; i++) sb.append(MESSAGE); in testLimits_message()
146 for (int i = 0; i < values.length; i++) values[i] = i; in testLimits_values()
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DLatencyTests.java119 for (int i = 0; i < traceCategoriesSplit.length; i++) { in setUp()
120 mTraceCategoriesSet.add(traceCategoriesSplit[i]); in setUp()
148 for (int i = 0; i < mIterationCount; i++) { in testExpandNotificationsLatency()
152 String.format("%s-%d", TEST_EXPANDNOTIFICATIONS, i)); in testExpandNotificationsLatency()
194 for (int i = 0; i < mIterationCount; i++) { in testFingerprintWakeAndUnlock()
202 String.format("%s-%d", TEST_FINGERPRINT, i)); in testFingerprintWakeAndUnlock()
224 for (int i = 0; i < mIterationCount; i++) { in testScreenTurnOn()
232 String.format("%s-%d", TEST_SCREEN_TURNON, i)); in testScreenTurnOn()
258 for (int i = 0; i < mIterationCount; i++) { in testPinCheckDelay()
263 String.format("%s-%d", TEST_PINCHECK_DELAY, i)); in testPinCheckDelay()
[all …]
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/
DTestFolderWrapper.java40 for (int i = 0 ; i < count ; i++) { in listMembers()
41 File f = files[i]; in listMembers()
43 afiles[i] = new TestFileWrapper(f); in listMembers()
45 afiles[i] = new TestFolderWrapper(f); in listMembers()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java72 for (int i = 0; i < 5 + rnd.nextInt(5); i++) { in calibrateMethod()
80 acc += buffer[i]; in calibrateMethod()
109 for (int i = 0; i < CALIBRATION_WARMUP_ITERATIONS; i++) { in doCalibration()
114 for (int i = 0; i < CALIBRATION_RUNS; i++) { in doCalibration()
137 for (int i = 0; i < mWarmUpIterations; i++) { in evaluate()
155 for (int i = 0; i < mRuns; i++) { in evaluate()
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/
DTimeInStateHelper.java55 for (int i = 0; i < freqKeys.length; i++) { in setUp()
56 String[] keys = freqKeys[i].split(KEY_SOURCE_SEPARATOR); in setUp()
58 Log.e(LOG_TAG, "Failed to parse " + freqKeys[i]); in setUp()
59 throw new RuntimeException("Failed to parse " + freqKeys[i]); in setUp()
63 Log.i(LOG_TAG, "key: " + key + ", source: " + source); in setUp()
83 Log.i(LOG_TAG, "start collecting..."); in startCollecting()
95 Log.i(LOG_TAG, "stop collecting..."); in stopCollecting()
108 Log.i(LOG_TAG, "get metrics..."); in getMetrics()
138 Log.i(LOG_TAG, source + ": freq= " + freq + ", time= " + time); in readFreqStats()
163 Log.i(LOG_TAG, "Collect frequency stats during the test"); in calculateFreqStatsMetrics()
[all …]
/platform_testing/utils/shell-as/
Dstring-utils.cpp25 bool StringToUInt32(const char* s, uint32_t* i) { in StringToUInt32() argument
33 *i = value; in StringToUInt32()
37 bool StringToUInt64(const char* s, uint64_t* i) { in StringToUInt64() argument
41 *i = strtoul(s, &endptr, 10); in StringToUInt64()
46 return errno == 0 && (*i != 0 || (endptr != s && *endptr == '\0')); in StringToUInt64()
/platform_testing/libraries/audio-test-harness/utilities/src/com/android/media/audiotestharness/utilities/
DAudioSystemDiagnostic.java57 for (int i = 0; i < mixers.length; i++) { in buildAudioSystemDiagnosticString()
58 Mixer.Info currentMixer = mixers[i]; in buildAudioSystemDiagnosticString()
61 "----- Start Mixer (#" + Integer.toString(i) + ") -----\n"); in buildAudioSystemDiagnosticString()
68 "----- End Mixer (#" + Integer.toString(i) + ") -----\n"); in buildAudioSystemDiagnosticString()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DScreenshotOnFailureCollectorTest.java116 for (int i = 1; i <= NUM_TEST_CASE; i++) { in testSavePngAsFile()
123 verify(mListener, times(i)).takeScreenshot(any()); in testSavePngAsFile()
157 for (int i = 1; i <= NUM_TEST_CASE; i++) { in testSaveUixAsFile()
162 verify(mListener, times(i)).collectUiXml(any()); in testSaveUixAsFile()
195 for (int i = 1; i <= NUM_TEST_CASE; i++) { in testNoUixWithoutOption()
231 for (int i = 1; i <= NUM_TEST_CASE; i++) { in testSavesIterations()
243 for (int i = 1; i < NUM_TEST_CASE; i++) { in testSavesIterations()
246 .takeScreenshot(endsWith(String.format("%d-screenshot-on-failure.png", i + 1))); in testSavesIterations()
254 for (int i = 1; i < NUM_TEST_CASE; i++) { in testSavesIterations()
255 xmlSaveVerifier.verify(mListener).collectUiXml(endsWith(String.valueOf(i + 1))); in testSavesIterations()
/platform_testing/libraries/collectors-helper/perfetto/src/com/android/helpers/
DPerfettoHelper.java160 Log.i(LOG_TAG, "Starting perfetto tracing."); in startCollectingFromConfig()
186 Log.i(LOG_TAG, "Stopping perfetto tracing because perfetto id is not tracked."); in startCollectingFromConfig()
197 Log.i(LOG_TAG, "Perfetto tracing started successfully."); in startCollectingFromConfig()
242 Log.i(LOG_TAG, "Starting perfetto tracing."); in startCollectingFromConfigFile()
249 Log.i(LOG_TAG, String.format("Perfetto start command output - %s", startOutput)); in startCollectingFromConfigFile()
256 Log.i(LOG_TAG, "Stopping perfetto tracing because perfetto id is not tracked."); in startCollectingFromConfigFile()
267 Log.i(LOG_TAG, "Perfetto tracing started successfully."); in startCollectingFromConfigFile()
275 Log.i(LOG_TAG, String.format("Perfetto output file cleanup - %s", output)); in canSetupBeforeStartCollecting()
282 Log.i(LOG_TAG, "Perfetto output file create success."); in canSetupBeforeStartCollecting()
292 Log.i(LOG_TAG, String.format("Perfetto start command output - %s", startOutput)); in canUpdateAfterStartCollecting()
[all …]
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTestHelper.java113 for (int i = 0; i < (nameList.size() - 1); ++i) { in verifySortedByName()
114 if (nameList.get(i).compareToIgnoreCase(nameList.get(i + 1)) > 0) { in verifySortedByName()
124 for (int i = 0; i < (nameList.size() - 1); ++i) { in verifySortedBySize()
125 DlObjSizeTimePair firstItem = mDownloadedItems.get(nameList.get(i)); in verifySortedBySize()
126 DlObjSizeTimePair secondItem = mDownloadedItems.get(nameList.get(i + 1)); in verifySortedBySize()
138 for (int i = 0; i < (nameList.size() - 1); ++i) { in verifySortedByTime()
139 DlObjSizeTimePair firstItem = mDownloadedItems.get(nameList.get(i)); in verifySortedByTime()
140 DlObjSizeTimePair secondItem = mDownloadedItems.get(nameList.get(i + 1)); in verifySortedByTime()
179 for (int i = 0; i < (count - totalDownloaded); ++i) { in populateContentInDLApp()
251 for (int i = 0; i < (cursor.getCount() - 1); i++) { in removeContentInDLApp()
[all …]
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DView.kt25 get() = sequence { for (i in 0 until childCount) yield(getChildAt(i)) } in <lambda>() method
31 for (i in 0 until childCount) { in getChildCountRecursively() variable
32 getChildAt(i)?.let { count += it.getChildCountRecursively() } in getChildCountRecursively()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DProcessShowmapHelper.java98 for (int i = 0; i < mTestEndMetrics.length; i++) { in getMetrics()
99 String processName = mProcessNames[i]; in getMetrics()
100 ShowmapMetrics endMetrics = mTestEndMetrics[i]; in getMetrics()
110 if (mTestStartMetrics == null || mTestStartMetrics[i] == null) { in getMetrics()
114 ShowmapMetrics startMetrics = mTestStartMetrics[i]; in getMetrics()
144 for (int i = 0; i < processNames.length; i++) { in sampleMemoryOfProcesses()
145 metrics[i] = sampleMemory(processNames[i]); in sampleMemoryOfProcesses()
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/
DPowerTestRunListener.java45 Log.i(TAG, "Device disconnected successfully before the test start"); in testRunStarted()
47 Log.i(TAG, "Finished testRunStarted"); in testRunStarted()
51 Log.i(TAG, "====== Entered in device disconnect from host method ====="); in disconnectDeviceFromHost()
53 Log.i(TAG, "Checking if cable breaker is present in the device using " + cbHelpCmd); in disconnectDeviceFromHost()
56 Log.i(TAG, "Running command to disconnect using cable breaker: " + command); in disconnectDeviceFromHost()
/platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/
DApiDemoJankTests.java144 for (int i = 0; i < INNER_LOOP; i++) { in testActivityTransitionAnimation()
163 for (int i = 0; i < INNER_LOOP; i++) { in testViewFlipAnimation()
180 for (int i = 0; i < INNER_LOOP; i++) { in testCloningAnimation()
200 for (int i = 0; i < INNER_LOOP; i++) { in testLoadingJank()
216 for (int i = 0; i < INNER_LOOP; i++) { in testSimpleTransitionJank()
241 for (int i = 0; i < INNER_LOOP; i++) { in testHideShowAnimationJank()
322 for (int i = 0; i < INNER_LOOP; i++) { in testListViewJank()
345 for (int i = 0; i < INNER_LOOP; i++) { in testExapandableListViewJank()
/platform_testing/libraries/runner/src/main/java/platform/test/runner/parameterized/
DParameterizedAndroidJunit4.java68 for (int i = 0; i < parametersList.size(); i++) { in ParameterizedAndroidJunit4()
69 Object parametersObj = parametersList.get(i); in ParameterizedAndroidJunit4()
74 mRunners.add(makeTestRunner(testClass, parameters, i, parameterArray)); in ParameterizedAndroidJunit4()
80 TestClass testClass, Parameters parameters, int i, Object[] parameterArray) in makeTestRunner() argument
96 testClass.getJavaClass(), i, nameFor(parameters.name(), i, parameterArray)); in makeTestRunner()
/platform_testing/libraries/sts-common-util/sts-sdk/package/
Dgradlew131 i=0
137 eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
139 eval `echo args$i`="\"$arg\""
141 i=$((i+1))
143 case $i in
159 for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/service/
DCaptureChunkStreamObserverOutputStreamTests.java168 for (int i = 0; i < byteArraysToWrite.size(); i++) { in write_writesAsExpected_multipleBytesOffsetAndLength()
169 stream.write(byteArraysToWrite.get(i), offsets.get(i), lengths.get(i)); in write_writesAsExpected_multipleBytesOffsetAndLength()
291 for (int i = 0; i < expected.size(); i++) { in assertListsContainSameByteArrays()
292 byte[] expectedBytes = expected.get(i); in assertListsContainSameByteArrays()
293 byte[] actualBytes = actual.get(i); in assertListsContainSameByteArrays()
297 "Failure, Payload at Index %d does not match Expected: %s", i, message), in assertListsContainSameByteArrays()
315 for (int i = 0; i < numArrays; i++) { in generateRandomByteArrayData()
316 result[i] = new byte[8 * (i + 1)]; in generateRandomByteArrayData()
317 random.nextBytes(result[i]); in generateRandomByteArrayData()
/platform_testing/libraries/device-collectors/src/main/java/android/device/stressmodes/
DIOContentionStressTestMode.java62 Log.i(TAG, "doCopyFile"); in doCopyFile()
66 Log.i(TAG, "Copying file " + file); in doCopyFile()
97 for (int i = 0; i < trackCount; i++) { in doCopyFile()
98 extractor.selectTrack(i); in doCopyFile()
99 MediaFormat format = extractor.getTrackFormat(i); in doCopyFile()
101 indexMap.put(i, dstIndex); in doCopyFile()
150 Log.i(TAG, "IOContentionStressTestMode stress started"); in testStarted()
168 Log.i(TAG, "IOContentionStressTestMode stress finished"); in testFinished()

12345678910