/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/ |
D | StatTest.java | 31 double[] values = new double[100]; in testGet95PercentileValue() local 33 values[i] = i; in testGet95PercentileValue() 35 assertEquals(95, (int) Stat.get95PercentileValue(values)); in testGet95PercentileValue() 37 values = new double[1000]; in testGet95PercentileValue() 39 values[i] = i; in testGet95PercentileValue() 41 assertEquals(950, (int) Stat.get95PercentileValue(values)); in testGet95PercentileValue() 43 values = new double[100]; in testGet95PercentileValue() 45 values[i] = i * i; in testGet95PercentileValue() 47 assertEquals(95 * 95, (int) Stat.get95PercentileValue(values)); in testGet95PercentileValue() 54 double[] values = new double[]{0, 1, 2, 3, 4}; in testGetAverage() local [all …]
|
D | ReportLogTest.java | 145 double[] values = new double[1001]; in testLimits_values() local 146 for (int i = 0; i < values.length; i++) values[i] = i; in testLimits_values() 148 metric = new Metric(SOURCE, MESSAGE, values, ResultType.HIGHER_BETTER, ResultUnit.BYTE); in testLimits_values() 149 assertTrue("Expected values to be trimmed", Arrays.equals(Arrays.copyOf(values, 1000), in testLimits_values()
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | InfoStore.java | 136 protected static int[] checkArray(int[] values) { in checkArray() argument 137 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 138 return Arrays.copyOf(values, MAX_ARRAY_LENGTH); in checkArray() 140 return values; in checkArray() 144 protected static long[] checkArray(long[] values) { in checkArray() argument 145 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 146 return Arrays.copyOf(values, MAX_ARRAY_LENGTH); in checkArray() 148 return values; in checkArray() 152 protected static float[] checkArray(float[] values) { in checkArray() argument 153 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() [all …]
|
D | ReportLog.java | 79 Metric(String source, String message, double[] values, ResultType type, ResultUnit unit) { in Metric() argument 94 int valuesLength = values.length; in Metric() 97 mValues = Arrays.copyOf(values, MAX_NUM_VALUES); in Metric() 99 mValues = values; in Metric() 156 double[] values = new double[length]; in parse() local 158 values[i] = Double.parseDouble(valuesList.get(i)); in parse() 161 return new Metric(source, message, values, type, unit); in parse() 177 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument 184 public void addValues(String source, String message, double[] values, ResultType type, in addValues() argument 242 public void addValues(String message, int[] values, ResultType type, ResultUnit unit) { in addValues() argument [all …]
|
D | CaseResult.java | 75 for (ITestResult result : mResults.values()) { in getResults() 88 ArrayList<ITestResult> results = new ArrayList<>(mResults.values()); in getResults() 99 for (ITestResult result : mResults.values()) { in countResults()
|
D | InvocationResult.java | 62 ArrayList<IModuleResult> modules = new ArrayList<>(mModuleResults.values()); in getModules() 73 for (IModuleResult m : mModuleResults.values()) { in countResults() 85 for (IModuleResult module : mModuleResults.values()) { in getNotExecuted() 213 for (IModuleResult module : mModuleResults.values()) { in getModuleCompleteCount()
|
D | Stat.java | 191 public static double get95PercentileValue(double[] values) { in get95PercentileValue() argument 192 Arrays.sort(values); in get95PercentileValue() 194 int index = (int) Math.round(values.length * 0.95 + .5) - 1; in get95PercentileValue() 195 return values[index]; in get95PercentileValue()
|
D | TestStatus.java | 48 for (TestStatus status : TestStatus.values()) { in getStatus()
|
/platform_testing/libraries/motion/compose/values/src/platform/test/motion/compose/values/ |
D | MotionTestValue.kt | 17 package platform.test.motion.compose.values 60 fun Modifier.motionTestValues(values: MotionTestValueScope.() -> Unit) = in exportAs() 61 this then MotionTestValuesElement(values) in exportAs() 63 private data class MotionTestValuesElement(val values: MotionTestValueScope.() -> Unit) : in exportAs() constant in MotionTestValuesElement 67 return MotionTestValuesNode(values) in exportAs() 71 node.values = values in exportAs() 79 private class MotionTestValuesNode(var values: MotionTestValueScope.() -> Unit) : variable in MotionTestValuesNode 84 values.invoke( in applySemantics()
|
D | MotionTestValues.kt | 17 package platform.test.motion.compose.values
|
D | LocalEnableMotionTesting.kt | 17 package platform.test.motion.compose.values
|
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/ |
D | DownloadAppTestHelper.java | 216 ContentValues values = new ContentValues(); in addToDownloadContentDB() local 222 values.put("title", title); in addToDownloadContentDB() 223 values.put("description", description); in addToDownloadContentDB() 224 values.put("mimetype", mimeType); in addToDownloadContentDB() 225 values.put("is_public_api", true); in addToDownloadContentDB() 226 values.put("scanned", isMediaScannerScannable); in addToDownloadContentDB() 227 values.put("is_visible_in_downloads_ui", Boolean.TRUE); in addToDownloadContentDB() 228 values.put("destination", 6); // 6: show the download item in app in addToDownloadContentDB() 229 values.put("_data", path); // location to save the downloaded file in addToDownloadContentDB() 230 values.put("status", 200); // 200 : STATUS_SUCCESS in addToDownloadContentDB() [all …]
|
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/ |
D | AnnotationTestRuleHelper.java | 61 AnnotationTestRuleHelper addRequiresFlagsEnabled(String... values) { in addRequiresFlagsEnabled() argument 62 mMethodAnnotations.add(createRequiresFlagsEnabled(values)); in addRequiresFlagsEnabled() 67 AnnotationTestRuleHelper addRequiresFlagsDisabled(String... values) { in addRequiresFlagsDisabled() argument 68 mMethodAnnotations.add(createRequiresFlagsDisabled(values)); in addRequiresFlagsDisabled() 73 AnnotationTestRuleHelper addEnableFlags(String... values) { in addEnableFlags() argument 74 mMethodAnnotations.add(createEnableFlags(values)); in addEnableFlags() 79 AnnotationTestRuleHelper addDisableFlags(String... values) { in addDisableFlags() argument 80 mMethodAnnotations.add(createDisableFlags(values)); in addDisableFlags()
|
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/ |
D | DialerJankTests.java | 219 ContentValues values = new ContentValues(); in addNumToCalLog() local 220 values.put(CallLog.Calls.NUMBER, number); in addNumToCalLog() 221 values.put(CallLog.Calls.DATE, System.currentTimeMillis()); in addNumToCalLog() 222 values.put(CallLog.Calls.DURATION, 0); in addNumToCalLog() 223 values.put(CallLog.Calls.TYPE, CallLog.Calls.OUTGOING_TYPE); in addNumToCalLog() 224 values.put(CallLog.Calls.NEW, 1); in addNumToCalLog() 225 values.put(CallLog.Calls.CACHED_NAME, ""); in addNumToCalLog() 226 values.put(CallLog.Calls.CACHED_NUMBER_TYPE, 0); in addNumToCalLog() 227 values.put(CallLog.Calls.CACHED_NUMBER_LABEL, ""); in addNumToCalLog() 229 .insert(CallLog.Calls.CONTENT_URI, values); in addNumToCalLog()
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | DataCollector.java | 76 mSleepInterval = gcd(generatorsWithIntervals.values()); in DataCollector() 146 private long gcd(Collection<Long> values) { in gcd() argument 147 if (values.size() < 1) { in gcd() 151 long gcdSoFar = values.iterator().next(); in gcd() 153 for (Long value : values) { in gcd()
|
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/ |
D | ICamera2Helper.java | 55 for (ModeType mode : values()) { in fromString() 86 for (CameraType camera : values()) { in fromString()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/ |
D | TransitMode.kt | 28 fun fromInt(value: Int) = values().first { it.ordinal == value } in <lambda>()
|
D | WindowingMode.kt | 37 values().firstOrNull { it.value == value } in fromInt()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/ |
D | ResourceRepository.java | 302 for (ResourceType key : ResourceType.values()) { in doGetConfiguredResources() 330 Collection<ResourceItem> values = map.values(); in removeFile() local 332 for (ResourceItem item : values) { in removeFile() 336 toDelete = new ArrayList<>(values.size()); in removeFile() 369 for (ResourceItem item : items.values()) { in getConfiguredResource()
|
D | MultiResourceFile.java | 124 Collection<ResourceValue> values = list.values(); in updateResourceItems() local 125 for (ResourceValue res : values) { in updateResourceItems()
|
/platform_testing/libraries/flicker/utils/src/android/tools/ |
D | Rotation.kt | 32 private val VALUES = values()
|
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/ |
D | ComposeFeatureCapturesTest.kt | 36 import platform.test.motion.compose.values.EnableMotionTestValueCollection 37 import platform.test.motion.compose.values.MotionTestValues 38 import platform.test.motion.compose.values.motionTestValues
|
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/ |
D | MetricUtility.java | 100 String[] values = value.split(METRIC_SEPARATOR); in getMetricDoubles() local 101 for (int i = 0; i < values.length; i++) { in getMetricDoubles() 103 result.add(DOUBLE_FORMAT.parse(values[i]).doubleValue()); in getMetricDoubles()
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | ThermalHelper.java | 183 List<Double> values = MetricUtility.getMetricDoubles(temperatureKey, results); in getTemperature() local 184 if (values.size() > 0) { in getTemperature() 186 values.get(values.size() - 1).doubleValue(); // last value is the latest value. in getTemperature()
|
/platform_testing/libraries/collectors-helper/adservices/test/src/com/android/helpers/ |
D | JSScriptEngineLatencyHelperTest.java | 91 for (Long val : actual.values()) { in testWithEmptyLogcat() 101 for (Long val : actual.values()) { in testInputStreamThrowsException()
|