Home
last modified time | relevance | path

Searched refs:maxInstances (Results 1 – 7 of 7) sorted by relevance

/cts/tests/mediapc/src/android/mediapc/cts/
DMultiEncoderPerfTest.java133 int maxInstances = checkAndGetMaxSupportedInstancesForCodecCombinations(height, width, in testCodec() local
138 if (maxInstances >= requiredMinInstances) { in testCodec()
141 int instances4k = maxInstances / 3; in testCodec()
142 int instances1080p = maxInstances - instances4k; in testCodec()
158 for (int i = 0; i < maxInstances; i++) { in testCodec()
164 CodecMetrics result = invokeWithThread(maxInstances, testList); in testCodec()
175 r5_1__H_1_3.setConcurrentInstances(maxInstances); in testCodec()
181 r5_1__H_1_3.setConcurrentInstances(maxInstances); in testCodec()
186 r5_1__H_1_3.setConcurrentInstances(maxInstances); in testCodec()
DMultiTranscoderPerfTest.java188 int maxInstances = in testCodec() local
196 maxInstances = 0; in testCodec()
197 } else if (maxInstances >= requiredMinInstances) { in testCodec()
199 Executors.newFixedThreadPool(maxInstances / 2 + maxInstances % 2); in testCodec()
203 for (int i = 0; i < (maxInstances / 2) - 1; i++) { in testCodec()
213 for (int i = 0; i < maxInstances / 2; i++) { in testCodec()
221 if (maxInstances % 2 == 1) { in testCodec()
273 r5_1__H_1_5.setConcurrentInstances(maxInstances); in testCodec()
280 r5_1__H_1_5.setConcurrentInstances(maxInstances); in testCodec()
285 r5_1__H_1_5.setConcurrentInstances(maxInstances); in testCodec()
DMultiEncoderPairPerfTest.java152 int maxInstances = checkAndGetMaxSupportedInstancesForCodecCombinations(height, width, in testCodec() local
158 if (maxInstances >= requiredMinInstances) { in testCodec()
159 int secondPairInstances = maxInstances / 2; in testCodec()
160 int firstPairInstances = maxInstances - secondPairInstances; in testCodec()
194 CodecMetrics result = invokeWithThread(maxInstances, testList); in testCodec()
205 r5_1__H_1_3.setConcurrentInstances(maxInstances); in testCodec()
211 r5_1__H_1_3.setConcurrentInstances(maxInstances); in testCodec()
216 r5_1__H_1_3.setConcurrentInstances(maxInstances); in testCodec()
DMultiDecoderPerfTest.java174 int maxInstances = checkAndGetMaxSupportedInstancesForCodecCombinations(height, width, in testCodec() local
180 if (meetsPreconditions && maxInstances >= requiredMinInstances) { in testCodec()
183 int halfMaxInstances = maxInstances / 2; in testCodec()
192 for (int i = 0; i < maxInstances; i++) { in testCodec()
197 CodecMetrics result = invokeWithThread(maxInstances, testList); in testCodec()
219 r5_1__H_1_1.setConcurrentInstances(maxInstances); in testCodec()
225 r5_1__H_1_1.setConcurrentInstances(maxInstances); in testCodec()
230 r5_1__H_1_1.setConcurrentInstances(maxInstances); in testCodec()
DMultiDecoderPairPerfTest.java229 int maxInstances = checkAndGetMaxSupportedInstancesForCodecCombinations(height, width, in testCodec() local
236 if (meetsPreconditions && (maxInstances >= requiredMinInstances || secureWithUnsecure)) { in testCodec()
237 int secondPairInstances = maxInstances / 2; in testCodec()
238 int firstPairInstances = maxInstances - secondPairInstances; in testCodec()
243 maxInstances = requiredMinInstances; in testCodec()
281 CodecMetrics result = invokeWithThread(maxInstances, testList); in testCodec()
311 r5_1__H_1_1.setConcurrentInstances(maxInstances); in testCodec()
317 r5_1__H_1_1.setConcurrentInstances(maxInstances); in testCodec()
322 r5_1__H_1_1.setConcurrentInstances(maxInstances); in testCodec()
DMultiCodecPerfTestBase.java177 protected CodecMetrics invokeWithThread(int maxInstances, Collection<? extends in invokeWithThread() argument
181 ExecutorService pool = Executors.newFixedThreadPool(maxInstances); in invokeWithThread()
201 int[] maxInstances = new int[mediaTypeCodecPairs.size()]; in checkAndGetMaxSupportedInstancesForCodecCombinations() local
226 maxInstances[loopCount] = cap.getMaxSupportedInstances(); in checkAndGetMaxSupportedInstancesForCodecCombinations()
283 instances4k = Math.min(instances4k, maxInstances[i]); in checkAndGetMaxSupportedInstancesForCodecCombinations()
293 instances1080p = Math.min(instances1080p, maxInstances[i]); in checkAndGetMaxSupportedInstancesForCodecCombinations()
310 Arrays.sort(maxInstances); in checkAndGetMaxSupportedInstancesForCodecCombinations()
313 int minOfMaxInstances = maxInstances[0]; in checkAndGetMaxSupportedInstancesForCodecCombinations()
/cts/tests/mediapc/common/src/android/mediapc/cts/common/
DPerformanceClassEvaluator.java349 RequiredMeasurement<Integer> maxInstances = RequiredMeasurement.<Integer>builder() in createR5_1__H_1_1_720p() local
360 return create720p(RequirementConstants.R5_1__H_1_1, maxInstances); in createR5_1__H_1_1_720p()
370 RequiredMeasurement<Integer> maxInstances = RequiredMeasurement.<Integer>builder() in createR5_1__H_1_1_1080p() local
376 return create1080p(RequirementConstants.R5_1__H_1_1, maxInstances); in createR5_1__H_1_1_1080p()
386 RequiredMeasurement<Integer> maxInstances = RequiredMeasurement.<Integer>builder() in createR5_1__H_1_1_4k() local
393 return create4k(RequirementConstants.R5_1__H_1_1, maxInstances); in createR5_1__H_1_1_4k()
464 RequiredMeasurement<Integer> maxInstances = RequiredMeasurement.<Integer>builder() in createR5_1__H_1_3_720p() local
475 return create720p(RequirementConstants.R5_1__H_1_3, maxInstances); in createR5_1__H_1_3_720p()
485 RequiredMeasurement<Integer> maxInstances = RequiredMeasurement.<Integer>builder() in createR5_1__H_1_3_1080p() local
491 return create1080p(RequirementConstants.R5_1__H_1_3, maxInstances); in createR5_1__H_1_3_1080p()
[all …]