/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | Stat.java | 55 for (int i = 1; i < data.length; i++) { in getStat() 64 average /= data.length; in getStat() 66 for (int i = 0; i < data.length; i++) { in getStat() 70 double variance = sumOfSquares / (data.length - 1); in getStat() 72 return new StatResult(average, min, max, stddev, data.length); in getStat() 81 double[] dataCopied = Arrays.copyOf(data, data.length); in getStatWithOutlierRejection() 83 int medianIndex = dataCopied.length / 2; in getStatWithOutlierRejection() 85 if (dataCopied.length % 2 == 1) { in getStatWithOutlierRejection() 93 double[] validData = new double[data.length]; in getStatWithOutlierRejection() 95 for (int i = 0; i < data.length; i++) { in getStatWithOutlierRejection() [all …]
|
D | InfoStore.java | 131 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 139 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 147 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 155 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 163 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 181 if (value.length() > MAX_STRING_LENGTH) { in checkString()
|
D | StreamUtil.java | 59 int length; in readInputStream() local 60 while ((length = inputStream.read(buffer)) != -1) { in readInputStream() 61 result.write(buffer, 0, length); in readInputStream()
|
D | Stacktrace.java | 49 for (int i = 0; i < elements.length; i++) { in getTestCallerClassMethodName() 61 depth = Math.min(depth, elements.length - 1); in buildClassMethodName()
|
D | LogcatInspector.java | 59 if (nextStringIndex < logcatStrings.length) { in assertLogcatContainsInOrder() 86 if (stringsFound == logcatStrings.length) { in assertLogcatDoesNotContainInOrder() 106 if (stringIndex >= logcatStrings.length) { in numberOfLogcatStringsFound()
|
D | BusinessLogicFactory.java | 130 for (int i = 0; i < jsonRulesLists.length(); i++) { in createBL() 151 for (int i = 0; i < redactionRegexesJSONArray.length(); i++) { in parseRedactionRegexes() 175 for (int j = 0; j < rulesJSONArray.length(); j++) { in extractRulesList() 199 for (int i = 0; i < ruleConditionsJSONArray.length(); i++) { in extractRuleConditionList() 216 for (int j = 0; j < methodArgsJSONArray.length(); j++) { in extractRuleConditionList() 230 for (int i = 0; i < ruleActionsJSONArray.length(); i++) { in extractRuleActionList() 242 for (int j = 0; j < methodArgsJSONArray.length(); j++) { in extractRuleActionList() 263 StringBuilder sb = new StringBuilder((int) f.length()); in readFile()
|
D | ReportLog.java | 80 int sourceLength = source.length(); in Metric() 87 int messageLength = message.length(); in Metric() 94 int valuesLength = values.length; in Metric() 155 int length = valuesList.size(); in parse() local 156 double[] values = new double[length]; in parse() 157 for (int i = 0; i < length; i++) { in parse()
|
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/ |
D | FlickerComponentName.kt | 42 val sb = StringBuilder(packageName.length + className.length) in toActivityName() 91 val packageNameLength = packageName.length in appendShortClassName() 92 val classNameLength = className.length in appendShortClassName() 114 if (sep < 0 || sep + 1 >= str.length) { in unflattenFromString()
|
D | FloatFormatter.kt | 32 strValue.substring(0, min(strValue.length, dotIndex + 4)) in format()
|
/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/ |
D | MetricsXmlSerializerTest.java | 60 assertEquals(HEADER.length(), mByteArrayOutputStream.toByteArray().length); in testSerialize_null() 68 assertEquals(HEADER.length(), mByteArrayOutputStream.toByteArray().length); in testSerialize_noData()
|
D | ReadElfTest.java | 216 String name = phases[phases.length - 1].split("@")[0]; in chkDynSymbol() 260 trimLine.substring(trimLine.indexOf("]") + 1, trimLine.length()) in getRoStrings() 283 int length; in getResrouceFile() local 284 while ((length = input.read(buffer)) > 0) { in getResrouceFile() 285 output.write(buffer, 0, length); in getResrouceFile()
|
D | MultipartFormTest.java | 55 assertTrue("No data", data.length > 0); in testContentBody()
|
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/ |
D | MetricUtility.java | 93 if (value.length() == 0) { in getMetricDoubles() 98 for (int i = 0; i < values.length; i++) { in getMetricDoubles() 127 int length; in executeCommandBlocking() local 129 while ((length = is.read(buf)) >= 0) { in executeCommandBlocking() 130 out.write(buf, 0, length); in executeCommandBlocking()
|
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/generic/ |
D | OpenApps.java | 53 if (names.length != pkgs.length) { in testOpen() 57 for (int i = 0; i < names.length; i++) { in testOpen()
|
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/service/assertors/ |
D | AssertionConfigParser.kt | 68 for (i in 0 until jsonArray.length()) { in parseConfigFile() 102 for (i in 0 until assertionsArray.length()) { in parseAssertionArray() 108 for (j in 0 until assertionArgsArray.length()) { in parseAssertionArray()
|
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/ |
D | Square.java | 84 squareCoords.length * 4); in Square() 93 drawOrder.length * 2); in Square() 150 GLES20.GL_TRIANGLES, drawOrder.length, in draw()
|
D | Triangle.java | 65 private final int vertexCount = triangleCoords.length / COORDS_PER_VERTEX; 79 triangleCoords.length * 4); in Triangle()
|
/platform_testing/libraries/automotive-helpers/lock-screen-helper/src/android/platform/helpers/ |
D | LockScreenHelperImpl.java | 95 int length = pin.length(); in selectPinOnPinPad() local 96 for (int i = 0; i < length; i++) { in selectPinOnPinPad()
|
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/ |
D | DownloadAppTestHelper.java | 181 DownloadAppTestHelper.FILE_TYPES[random.nextInt(FILE_TYPES.length)]); in populateContentInDLApp() 193 DownloadAppTestHelper.FILE_TYPES[random.nextInt(FILE_TYPES.length)], in populateContentInDLApp() 207 boolean isMediaScannerScannable, String mimeType, String path, long length, in addToDownloadContentDB() argument 230 values.put("total_bytes", length); in addToDownloadContentDB() 254 if (removeIds.length > 0) { in removeContentInDLApp() 255 Assert.assertEquals(removeIds.length, getDLManager().remove(removeIds)); in removeContentInDLApp() 293 public static String randomWord(int length) { in randomWord() argument 296 for (int j = 0; j < length; j++) { in randomWord()
|
/platform_testing/libraries/collectors-helper/app/src/com/android/helpers/ |
D | AppVersionHelper.java | 59 if (mPackageNames == null || mPackageNames.length == 0 || mPackageNames[0].length() == 0) { in getMetrics()
|
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/ |
D | StatsdListener.java | 248 reportList.reports.length, in pullReportsAndRemoveConfigs() 249 reportList.reports.length == 1 ? "report" : "reports", in pullReportsAndRemoveConfigs() 598 int[] concatenated = Arrays.copyOf(source, source.length + items.length); in concat() 599 System.arraycopy(items, 0, concatenated, source.length, items.length); in concat() 604 T[] concatenated = Arrays.copyOf(source, source.length + items.length); in concat() 605 System.arraycopy(items, 0, concatenated, source.length, items.length); in concat()
|
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/ |
D | AppTransitionTests.java | 149 for (int i = 0; i < traceCategoriesSplit.length; i++) { in setUp() 178 for (int appCount = 0; appCount < mAppListArray.length; appCount++) { in testColdLaunchFromLauncher() 230 for (int appCount = 0; appCount < mAppListArray.length; appCount++) { in testHotLaunchFromLauncher() 276 for (int appCount = 0; appCount < mAppListArray.length; appCount++) { in testAppToRecents() 320 for (int appCount = 0; appCount < mAppListArray.length; appCount++) { in testHotLaunchFromRecents() 383 if (null != mPreAppsListArray && mPreAppsListArray.length > 0) { in cleanTestApps() 399 for (int preAppCount = 0; preAppCount < mPreAppsListArray.length; preAppCount++) { in populateRecentsList() 568 int length = appNames == null ? 0 : appNames.length; in closeApps() local 569 for (int i = 0; i < length; i++) { in closeApps()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | ShowmapSnapshotHelper.java | 135 } else if (mProcessNames.length > 0) { in getMetrics() 137 } else if (mProcessNames.length == 0) { in getMetrics() 176 mMemoryMap.put(PROCESS_COUNT, Integer.toString(mProcessNames.length - 1)); in getMetrics() 337 if (metricDetailsSplit.length == 2) { in setMetricNameIndex() 362 int childProcessCount = childProcessStrSplit.length - 1; in updateChildProcessesCount() 398 String processName = processSplit[processSplit.length - 1].trim(); in getAllProcessNames()
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | BinderCollectionHelper.java | 100 file.getAbsolutePath(), file.length())); in getMetrics() 149 line.substring(line.indexOf(COUNT_PREFIX) + COUNT_PREFIX.length())); in getNextCounter() 164 + TRACE_FOR_PROCESS_PREFIX.length()); in parseMetrics()
|
/platform_testing/libraries/junitxml/src/com/android/junitxml/ |
D | JUnitXmlRunner.java | 48 if (outputFile != null && outputFile.length() > 0) { in getRunListener() 63 if (outputFileStr != null && outputFileStr.length() > 0) { in getAtestRunListener()
|