Home
last modified time | relevance | path

Searched refs:iterations (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothStressTest.java65 int iterations = BluetoothTestRunner.sEnableIterations; in testEnable() local
66 if (iterations == 0) { in testEnable()
70 for (int i = 0; i < iterations; i++) { in testEnable()
71 mTestUtils.writeOutput("enable iteration " + (i + 1) + " of " + iterations); in testEnable()
81 int iterations = BluetoothTestRunner.sDiscoverableIterations; in testDiscoverable() local
82 if (iterations == 0) { in testDiscoverable()
89 for (int i = 0; i < iterations; i++) { in testDiscoverable()
90 mTestUtils.writeOutput("discoverable iteration " + (i + 1) + " of " + iterations); in testDiscoverable()
100 int iterations = BluetoothTestRunner.sScanIterations; in testScan() local
101 if (iterations == 0) { in testScan()
[all …]
/frameworks/base/tests/backup/
Dbackup_stress_test.sh17 iterations=150
47 echo "FAILED iteration $i of $iterations; $failures failures so far"
48 echo "FAILED iteration $i of $iterations; $failures failures so far" > /dev/stderr
50 printf "Iteration %d:\tPASS; remaining: %d\n" $i $(($iterations - $i - 1))
51 printf "Iteration %d:\tPASS; remaining: %d\n" $i $(($iterations - $i - 1)) > /dev/stderr
57 if [ $i -eq $iterations ]; then
58 echo "DONE: $iterations iterations with $failures failures."
59 echo "DONE: $iterations iterations with $failures failures." > /dev/stderr
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/cdc/
DFingerprintMixerTest.java90 int iterations = 100_000; in getAddend_withDifferentKey_returnsDifferentResult() local
94 for (int i = 0; i < iterations; i++) { in getAddend_withDifferentKey_returnsDifferentResult()
109 int iterations = 100_000; in getMultiplicand_withDifferentKey_returnsDifferentResult() local
113 for (int i = 0; i < iterations; i++) { in getMultiplicand_withDifferentKey_returnsDifferentResult()
125 int iterations = 100_000; in getMultiplicand_isOdd() local
127 for (int i = 0; i < iterations; i++) { in getMultiplicand_isOdd()
139 int iterations = 100_000; in mix_randomlyDistributesBits() local
143 for (int i = 0; i < iterations; i++) { in mix_randomlyDistributesBits()
152 float mean = ((float) totals[i]) / iterations; in mix_randomlyDistributesBits()
164 int iterations = 100_000; in mix_doesNotProduceSameNumberAsInput() local
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DBitwiseStreamsTest.java96 int iterations = 10000; in testFive() local
97 int[] sizeArr = new int[iterations]; in testFive()
98 int[] valueArr = new int[iterations]; in testFive()
99 BitwiseOutputStream outStream = new BitwiseOutputStream(iterations * 4); in testFive()
100 for (int i = 0; i < iterations; i++) { in testFive()
109 for (int i = 0; i < iterations; i++) { in testFive()
140 int iterations = 10000; in testExpandArray() local
141 int[] sizeArr = new int[iterations]; in testExpandArray()
142 int[] valueArr = new int[iterations]; in testExpandArray()
144 for (int i = 0; i < iterations; i++) { in testExpandArray()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/os/
DParcelObtainPerfTest.java67 public int iterations; field in ParcelObtainPerfTest.ObtainThread
69 public ObtainThread(int iterations) { in ObtainThread() argument
70 this.iterations = iterations; in ObtainThread()
75 while (iterations-- > 0) { in run()
/frameworks/native/libs/binder/tests/
DbinderThroughputTest.cpp181 int iterations, in worker_fx() argument
213 for (int i = 0; (!cs_pair || num >= server_count) && i < iterations; i++) { in worker_fx()
246 Pipe make_worker(int num, int iterations, int worker_count, int payload_size, bool cs_pair) in make_worker() argument
255 worker_fx(num, worker_count, iterations, payload_size, cs_pair, move(get<1>(pipe_pair))); in make_worker()
276 void run_main(int iterations, in run_main() argument
285 pipes.push_back(make_worker(i, iterations, workers, payload_size, cs_pair)); in run_main()
298 …double iterations_per_sec = double(iterations * workers) / (chrono::duration_cast<chrono::nanoseco… in run_main()
335 int iterations = 10000; in main() local
360 iterations = atoi(argv[i+1]); in main()
395 run_main(iterations, workers, payload_size, cs_pair, training_round=true); in main()
[all …]
Dschd-dbg.cpp49 int iterations = 100; variable
321 void worker_fx(int num, int no_process, int iterations, int payload_size, in worker_fx() argument
348 for (int i = 0; is_client(num) && i < iterations; i++) { in worker_fx()
377 int no_trans = iterations * 2; in worker_fx()
396 Pipe make_process(int num, int iterations, int no_process, int payload_size) { in make_process() argument
405 worker_fx(num, no_process, iterations, payload_size, in make_process()
428 iterations = atoi(argv[i + 1]); in main()
472 << ",\"iterations\":" << iterations << ",\"deadline_us\":" << deadline_us in main()
479 pipes.push_back(make_process(i, iterations, no_process, payload_size)); in main()
/frameworks/base/apct-tests/perftests/core/src/android/util/
DXmlPerfTest.java70 int iterations = 0; in doWrite() local
73 iterations++; in doWrite()
84 results.putLong("threadAllocCount_mean", Debug.getThreadAllocCount() / iterations); in doWrite()
85 results.putLong("threadAllocSize_mean", Debug.getThreadAllocSize() / iterations); in doWrite()
114 int iterations = 0; in doRead() local
117 iterations++; in doRead()
129 results.putLong("threadAllocCount_mean", Debug.getThreadAllocCount() / iterations); in doRead()
130 results.putLong("threadAllocSize_mean", Debug.getThreadAllocSize() / iterations); in doRead()
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
DBlasBenchmark.java94 int iterations; field in BlasBenchmark.Processor.Result
102 return r.totalTime / r.iterations * 1000.f; in getInstrumentationResult()
115 r.iterations ++; in runBenchmarkLoop()
148 Log.v("rs", "Test: time=" + r.totalTime +"s, iterations=" + r.iterations + in getBenchmark()
149 ", avg=" + r.totalTime / r.iterations * 1000.f + " " + r.testInfo); in getBenchmark()
195 mTestResults[ct] = r.totalTime / r.iterations * 1000.f; in run()
/frameworks/base/apct-tests/perftests/inputmethod/
DREADME.md20 --module-arg ImePerfTests:instrumentation-arg:profiling-iterations:=20
37 - profiling-iterations
38 * int: Run the extra iterations with enabling method profiling.
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaRecorderStressTestRunner.java64 String iterations = (String) icicle.get("iterations"); in onCreate() local
74 if (iterations != null ) { in onCreate()
75 mIterations = Integer.parseInt(iterations); in onCreate()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DBenchmarkState.java126 public void setCustomizedIterations(int iterations, CustomizedIterationListener listener) { in setCustomizedIterations() argument
127 mMaxCustomizedIterations = iterations; in setCustomizedIterations()
137 private void beginBenchmark(long warmupDuration, int iterations) { in beginBenchmark() argument
143 mMaxIterations = (int) (TARGET_TEST_DURATION_NS / (warmupDuration / iterations)); in beginBenchmark()
DManualBenchmarkState.java181 private void beginBenchmark(long warmupDuration, int iterations) { in beginBenchmark() argument
182 mMaxIterations = (int) (mTargetTestDurationNs / (warmupDuration / iterations)); in beginBenchmark()
269 public void setCustomizedIterations(int iterations, CustomizedIterationListener listener) { in setCustomizedIterations() argument
270 mMaxCustomizedIterations = iterations; in setCustomizedIterations()
/frameworks/native/libs/vr/libpdx/
Dencoder_performance_test.cpp106 size_t iterations,
112 MessageReader* reader, MessageWriter* writer, size_t iterations,
119 size_t iterations, in SerializeTestRunner() argument
123 for (size_t i = 0; i < iterations; i++) { in SerializeTestRunner()
136 MessageReader* reader, MessageWriter* writer, size_t iterations, in DeserializeTestRunner() argument
143 for (size_t i = 0; i < iterations; i++) { in DeserializeTestRunner()
158 size_t iterations, in SerializeBaseTest() argument
163 for (size_t i = 0; i < iterations; i++) { in SerializeBaseTest()
177 MessageReader* reader, MessageWriter* writer, size_t iterations, in DeserializeBaseTest() argument
185 for (size_t i = 0; i < iterations; i++) { in DeserializeBaseTest()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java135 Bundle iterations = new Bundle(); in runMethod() local
136 iterations.putInt("currentiterations", runCount); in runMethod()
137 getInstrumentation().sendStatus(2, iterations); in runMethod()
/frameworks/libs/net/common/tests/unit/src/android/net/util/
DMacAddressUtilsTest.java66 final int iterations = 1000; in testMacAddressRandomGeneration() local
68 for (int i = 0; i < iterations; i++) { in testMacAddressRandomGeneration()
/frameworks/base/apct-tests/perftests/windowmanager/
DREADME.md32 - profiling-iterations
33 * int: Run the extra iterations with enabling method profiling.
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/fudger/
DLocationFudgerTest.java110 int iterations = 100; in testCoarsen_AvgMany() local
111 for (int j = 0; j < iterations; j++) { in testCoarsen_AvgMany()
152 assertThat(passed / (double) iterations).isGreaterThan(.70); in testCoarsen_AvgMany()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaRecorderStressTest.java170 int iterations; in recordVideoAndPlayback() local
199 iterations = MediaRecorderStressTestRunner.mIterations; in recordVideoAndPlayback()
204 mOutput.write("Total number of loops: " + iterations + "\n"); in recordVideoAndPlayback()
208 for (int i = 0; i < iterations; i++) { in recordVideoAndPlayback()
220 Log.v(TAG, "iterations : " + iterations); in recordVideoAndPlayback()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java255 int iterations = 0; // Number of halving operations to perform after the initial resize in scale() local
261 iterations++; in scale()
276 for (int iteration = iterations - 1; iteration >= 0; iteration--) { in scale()
289 iterations--; in scale()
/frameworks/base/test-base/src/android/test/
DInstrumentationTestCase.java232 Bundle iterations = new Bundle(); in runMethod() local
233 iterations.putInt("currentiterations", runCount); in runMethod()
234 getInstrumentation().sendStatus(2, iterations); in runMethod()
/frameworks/native/libs/vr/libbufferhubqueue/benchmarks/
Dbuffer_transport_benchmark.cpp474 int iterations = 0; in BENCHMARK_DEFINE_F() local
513 iterations++; in BENCHMARK_DEFINE_F()
517 total_gain_buffer_us / iterations, ::benchmark::Counter::kAvgThreads); in BENCHMARK_DEFINE_F()
519 total_post_buffer_us / iterations, ::benchmark::Counter::kAvgThreads); in BENCHMARK_DEFINE_F()
521 (total_gain_buffer_us + total_post_buffer_us) / iterations, in BENCHMARK_DEFINE_F()
/frameworks/compile/mclinker/lib/LD/
DIdenticalCodeFolding.cpp66 size_t iterations = 0; in foldIdenticalCode() local
67 while (!converged && (iterations < m_Config.options().getICFIterations())) { in foldIdenticalCode()
69 ++iterations; in foldIdenticalCode()
72 debug(diag::debug_icf_iterations) << iterations; in foldIdenticalCode()
/frameworks/base/media/jni/soundpool/tests/
Dsoundpool_stress.cpp222 int iterations = 1; in main() local
232 iterations = atoi(optarg); in main()
284 for (int it = 0; it < iterations; ++it) { in main()
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp115 void repeatedly_schedule(size_t iterations, std::function<void(nsecs_t)> const& onEachFrame) { in repeatedly_schedule() argument
116 mCallbackTimes.reserve(iterations); in repeatedly_schedule()
122 for (auto i = 0u; i < iterations - 1; i++) { in repeatedly_schedule()

12