Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 26) sorted by relevance

12

/platform_testing/libraries/compatibility-common-util/tests/src/com/android/compatibility/common/util/
DStatTest.java31 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 …]
DReportLogTest.java145 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/
DInfoStore.java130 protected static int[] checkArray(int[] values) { in checkArray() argument
131 if (values.length > MAX_ARRAY_LENGTH) { in checkArray()
132 return Arrays.copyOf(values, MAX_ARRAY_LENGTH); in checkArray()
134 return values; in checkArray()
138 protected static long[] checkArray(long[] values) { in checkArray() argument
139 if (values.length > MAX_ARRAY_LENGTH) { in checkArray()
140 return Arrays.copyOf(values, MAX_ARRAY_LENGTH); in checkArray()
142 return values; in checkArray()
146 protected static float[] checkArray(float[] values) { in checkArray() argument
147 if (values.length > MAX_ARRAY_LENGTH) { in checkArray()
[all …]
DReportLog.java79 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 …]
DCaseResult.java75 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()
DStat.java175 public static double get95PercentileValue(double[] values) { in get95PercentileValue() argument
176 Arrays.sort(values); in get95PercentileValue()
178 int index = (int) Math.round(values.length * 0.95 + .5) - 1; in get95PercentileValue()
179 return values[index]; in get95PercentileValue()
DInvocationResult.java62 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()
DTestStatus.java48 for (TestStatus status : TestStatus.values()) { in getStatus()
DModuleResult.java237 ArrayList<ICaseResult> results = new ArrayList<>(mResults.values()); in getResults()
248 for (ICaseResult result : mResults.values()) { in countResults()
DLightInvocationResult.java67 for (TestStatus status : TestStatus.values()) { in LightInvocationResult()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DExtensions.kt33 internal fun String.containsAny(vararg values: String): Boolean { in <lambda>()
34 return values.isEmpty() || values.any { search -> this.contains(search) } in <lambda>()
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTestHelper.java215 ContentValues values = new ContentValues(); in addToDownloadContentDB() local
221 values.put("title", title); in addToDownloadContentDB()
222 values.put("description", description); in addToDownloadContentDB()
223 values.put("mimetype", mimeType); in addToDownloadContentDB()
224 values.put("is_public_api", true); in addToDownloadContentDB()
225 values.put("scanned", isMediaScannerScannable); in addToDownloadContentDB()
226 values.put("is_visible_in_downloads_ui", Boolean.TRUE); in addToDownloadContentDB()
227 values.put("destination", 6); // 6: show the download item in app in addToDownloadContentDB()
228 values.put("_data", path); // location to save the downloaded file in addToDownloadContentDB()
229 values.put("status", 200); // 200 : STATUS_SUCCESS in addToDownloadContentDB()
[all …]
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/
DDialerJankTests.java219 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/
DDataCollector.java76 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/
DICamera2Helper.java55 for (ModeType mode : values()) { in fromString()
86 for (CameraType camera : values()) { in fromString()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java97 String[] values = value.split(METRIC_SEPARATOR); in getMetricDoubles() local
98 for (int i = 0; i < values.length; i++) { in getMetricDoubles()
100 result.add(DOUBLE_FORMAT.parse(values[i]).doubleValue()); in getMetricDoubles()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/layers/
DLayerTraceEntryBuilder.kt73 for (layer in layers.values) { in <lambda>()
92 for (layer in layers.values) { in <lambda>()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DThermalHelper.java183 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/device-collectors/src/hostsidetests/src/com/android/collectors/
DDeviceCollectorsTest.java97 for (TestResult res : result.getTestResults().values()) { in testBaseListenerRuns()
127 for (TestResult testCaseResult : result.getTestResults().values()) { in testBaseListenerRuns_withExcludeFilters()
157 for (TestResult testCaseResult : result.getTestResults().values()) { in testBaseListenerRuns_withIncludeAndExcludeFilters()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/service/processors/
DFSMState.kt72 protected fun hasOpenTag() = tags.values.flatten().size % 2 != 0 in hasOpenTag()
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/loggers/
DDeviceFileLoggerHostTest.java83 for (TestResult res : result.getTestResults().values()) { in testFileIsLogged()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/service/
DTaggingEngine.kt77 .values.toTypedArray() in <lambda>()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/service/
DAssertionEngine.kt66 .values.toTypedArray() in <lambda>()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DSfStatsCollectionHelper.java248 long count = internalMap.values().stream().mapToLong(v -> v).sum(); in mean()
DJankCollectionHelper.java333 for (GfxInfoMetric metric : GfxInfoMetric.values()) { in parseGfxInfoMetrics()

12