/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
D | Stat.java | 55 for (int i = 1; i < data.length; i++) { in getStat() 56 average += data[i]; in getStat() 57 if (data[i] > max) { in getStat() 58 max = data[i]; in getStat() 60 if (data[i] < min) { in getStat() 61 min = data[i]; in getStat() 66 for (int i = 0; i < data.length; i++) { in getStat() 67 double diff = average - data[i]; in getStat() 95 for (int i = 0; i < data.length; i++) { in getStatWithOutlierRejection() 96 if ((data[i] > thresholdMin) && (data[i] < thresholdMax)) { in getStatWithOutlierRejection() [all …]
|
D | ReadElf.java | 301 for (int i = 0; i < this.vn_cnt; i++) { in toString() 302 vernauxStr += String.format(" %s\n", this.vn_vernaux[i].toString()); in toString() 391 for (int i = 0; i < this.vd_cnt; i++) { in toString() 392 vStr += String.format(" %s\n", this.vd_verdaux[i].toString()); in toString() 585 for (int i = 0; i < symArr.length; i++) { in main() 586 System.out.println(String.format("%8x: %s", i, symArr[i].toString())); in main() 590 for (int i = 0; i < symArr.length; i++) { in main() 595 i, in main() 596 symArr[i].toString(), in main() 597 symArr[i].getExternalLibName(), in main() [all …]
|
/test/vts/testcases/target/hal_power/ |
D | hal_power_basic_test.cpp | 97 for (int i = 0; i < num_modes_; i++) { in TEST_F() local 98 list1[i].voters = (power_state_voter_t *)calloc( in TEST_F() 99 voter_list[i], sizeof(power_state_voter_t)); in TEST_F() 100 ASSERT_TRUE(list1[i].voters) << "voter_t allocation failed"; in TEST_F() 102 list2[i].voters = (power_state_voter_t *)calloc( in TEST_F() 103 voter_list[i], sizeof(power_state_voter_t)); in TEST_F() 105 ASSERT_TRUE(list2[i].voters) << "voter_t allocation failed"; in TEST_F() 114 for (int i = 0; i < num_modes_; i++) { in TEST_F() local 115 EXPECT_LE(list1[i].residency_in_msec_since_boot, in TEST_F() 116 list2[i].residency_in_msec_since_boot) in TEST_F() [all …]
|
/test/vts/drivers/resource/resource_manager/ |
D | VtsResourceManager.cpp | 481 for (int i = 0; i < write_data_size; i++) { in FmqProto2Cpp() local 482 convert_data[i] = (fmq_request.write_data(i).scalar_value().int8_t()); in FmqProto2Cpp() 486 for (int i = 0; i < write_data_size; i++) { in FmqProto2Cpp() local 487 convert_data[i] = fmq_request.write_data(i).scalar_value().uint8_t(); in FmqProto2Cpp() 491 for (int i = 0; i < write_data_size; i++) { in FmqProto2Cpp() local 492 convert_data[i] = fmq_request.write_data(i).scalar_value().int16_t(); in FmqProto2Cpp() 496 for (int i = 0; i < write_data_size; i++) { in FmqProto2Cpp() local 497 convert_data[i] = fmq_request.write_data(i).scalar_value().uint16_t(); in FmqProto2Cpp() 501 for (int i = 0; i < write_data_size; i++) { in FmqProto2Cpp() local 502 convert_data[i] = fmq_request.write_data(i).scalar_value().int32_t(); in FmqProto2Cpp() [all …]
|
/test/suite_harness/tools/dex-tools/src/dex/reader/ |
D | DexClassImpl.java | 130 for (int i = 0; i < annotationDir.fields_size; i++) { in parseAnnotationDirectory() 131 annotationDir.fieldAnnotations[i] = new FieldAnnotation(); in parseAnnotationDirectory() 132 annotationDir.fieldAnnotations[i].fieldIdx = buffer in parseAnnotationDirectory() 134 annotationDir.fieldAnnotations[i].annotationsOff = buffer in parseAnnotationDirectory() 137 annotationDir.fieldAnnotations[i].fieldIdx, in parseAnnotationDirectory() 138 annotationDir.fieldAnnotations[i]); in parseAnnotationDirectory() 144 for (int i = 0; i < annotationDir.methods_size; i++) { in parseAnnotationDirectory() 145 annotationDir.methodAnnotations[i] = new MethodAnnotation(); in parseAnnotationDirectory() 146 annotationDir.methodAnnotations[i].methodIdx = buffer in parseAnnotationDirectory() 148 annotationDir.methodAnnotations[i].annotationsOff = buffer in parseAnnotationDirectory() [all …]
|
D | DexFileReader.java | 153 for (int i = 0; i < stringDataOffsets.length; i++) { in readStrings() 154 stringDataOffsets[i] = b.readUInt(); in readStrings() 158 for (int i = 0; i < stringDataOffsets.length; i++) { in readStrings() 159 b.setPosition(stringDataOffsets[i]); // set buffer to offset in readStrings() 164 stringPool[i] = new String(values); in readStrings() 173 for (int i = 0; i < typeIds.length; i++) { in readTypeIds() 174 typeIds[i] = b.readUInt(); in readTypeIds() 190 for (int i = 0; i < protoIdItems.length; i++) { in readProtos() 195 protoIdItems[i] = item; in readProtos() 212 for (int i = 0; i < fieldIdItems.length; i++) { in readFields() [all …]
|
D | DexBuffer.java | 96 for (int i = 0; i < nBytes; i++) { in readInt() 98 endValue |= (tmp << i * 8); in readInt() 109 for (int i = 0; i < nBytes; i++) { in readShort() 111 endValue |= (tmp << i * 8); in readShort() 122 for (int i = 0; i < nBytes; i++) { in readChar() 124 endValue |= (tmp << i * 8); in readChar() 135 for (int i = 0; i < nBytes; i++) { in readLong() 137 endValue |= (tmp << i * 8); in readLong()
|
D | DexMethodImpl.java | 78 for (int i = 0; i < numberOfParameters; i++) { in parseParameterAnnotations() 79 parameterIdToIndex.put(i, buffer.readUInt()); in parseParameterAnnotations() 89 for (int i = 0; i < size; i++) { in parseAnnotations() 113 for (int i = 0; i < size; i++) { in getParameters() 114 paramTypeIdx[i] = buffer.readUShort(); in getParameters() 116 for (int i = 0; i < paramTypeIdx.length; i++) { in getParameters() 118 stringPool[typeIds[paramTypeIdx[i]]], in getParameters() 119 parameterIdToIndex.get(i), typeIds, stringPool, in getParameters()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/util/ |
D | IOUtils.java | 39 for (int i = 0; i < size; ++i) { in readFloats() 41 result[i] = buffer.getFloat(); in readFloats() 43 result[i] = (float)(buffer.get() & 0xff); in readFloats() 83 for (int i = 0; i < data.length; i += 4) { in invertOrder4() 84 byte a = data[i]; in invertOrder4() 85 byte b = data[i + 1]; in invertOrder4() 86 data[i] = data[i + 3]; in invertOrder4() 87 data[i + 1] = data[i + 2]; in invertOrder4() 88 data[i + 2] = b; in invertOrder4() 89 data[i + 3] = a; in invertOrder4() [all …]
|
D | SequenceUtils.java | 19 for (int i = 0; i <= m; ++i) { in calculateEditDistance() 20 d[i][0] = i; in calculateEditDistance() 27 for (int i = 1; i <= m; ++i) { in calculateEditDistance() 29 int substitutionCost = (seqA[i - 1] == seqB[j - 1]) ? 0 : 1; in calculateEditDistance() 30 d[i][j] = Math.min( in calculateEditDistance() 31 Math.min(d[i - 1][j] + 1, d[i][j - 1] + 1), in calculateEditDistance() 32 d[i - 1][j - 1] + substitutionCost); in calculateEditDistance() 41 for (int i = 0; i < items.length; ++i) { in indexOfLargest() 42 if (items[i] > largest) { in indexOfLargest() 43 ret = i; in indexOfLargest() [all …]
|
/test/vti/dashboard/src/test/java/com/android/vts/util/ |
D | StatSummaryTest.java | 40 for (int i = 0; i < n; i++) { in testAverage() 41 test.updateStats(i); in testAverage() 53 for (int i = 0; i < n; i++) { in testMin() 68 for (int i = 0; i < n; i++) { in testMax() 83 for (int i = 0; i < n; i++) { in testStd() 84 values[i] = rand.nextInt(1000); in testStd() 85 sum += values[i]; in testStd() 86 test.updateStats(values[i]); in testStd() 90 for (int i = 0; i < n; i++) { in testStd() 91 sumSq += (values[i] - mean) * (values[i] - mean); in testStd() [all …]
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/ |
D | LinearPartition.java | 64 for (int i = table[n - 1][k] + 1; i < n + 1; i++) { in split() 65 partition.add(seq.get(i)); in split() 75 for (int i = 0; i < n + 1; i++) { in split() 76 partition.add(seq.get(i)); in split() 92 for (int i = 0; i < n; i++) { in buildPartitionTable() 93 table[i][0] = seq.get(i).getRuntimeHint() + ((i > 0) ? (table[i - 1][0]) : 0); in buildPartitionTable() 100 for (int i = 1; i < n; i++) { in buildPartitionTable() 102 table[i][j] = Integer.MAX_VALUE; in buildPartitionTable() 103 for (int x = 0; x < i; x++) { in buildPartitionTable() 104 float cost = Math.max(table[x][j - 1], table[i][0] - table[x][0]); in buildPartitionTable() [all …]
|
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/ |
D | StatTest.java | 32 for (int i = 0; i < 100; i++) { in testGet95PercentileValue() 33 values[i] = i; in testGet95PercentileValue() 38 for (int i = 0; i < 1000; i++) { in testGet95PercentileValue() 39 values[i] = i; in testGet95PercentileValue() 44 for (int i = 0; i < 100; i++) { in testGet95PercentileValue() 45 values[i] = i * i; in testGet95PercentileValue()
|
/test/vts/compilation_tools/vtsc/code_gen/fuzzer/ |
D | HalHidlFuzzerCodeGen.cpp | 112 for (size_t i = 0; i < num_cb_arg; ++i) { in GenerateReturnCallback() local 113 const auto &return_val = func_spec.return_type_hidl(i); in GenerateReturnCallback() 115 out << " arg" << i << ((i != num_cb_arg - 1) ? ", " : ""); in GenerateReturnCallback() 128 for (size_t i = 0; i < types.size(); ++i) { in GenerateHalFunctionCall() local 129 out << "size_t type_size" << i << " = sizeof(" << types[i] << ");\n"; in GenerateHalFunctionCall() 130 out << "if (size < type_size" << i << ") { return 0; }\n"; in GenerateHalFunctionCall() 131 out << "size -= type_size" << i << ";\n"; in GenerateHalFunctionCall() 132 out << types[i] << " arg" << i << ";\n"; in GenerateHalFunctionCall() 133 out << "memcpy(&arg" << i << ", data, type_size" << i << ");\n"; in GenerateHalFunctionCall() 134 out << "data += type_size" << i << ";\n\n"; in GenerateHalFunctionCall() [all …]
|
/test/vts/runners/target/gtest/ |
D | gtest_main.cpp | 268 for (int i = 0; i < argc; ++i) { in EnumerateTests() local 269 command += argv[i]; in EnumerateTests() 374 for (size_t i = 0; i < testcase.TestCount(); ++i) { in OnTestIterationEndPrint() local 375 TestResult result = testcase.GetTestResult(i); in OnTestIterationEndPrint() 379 fail_test_name_list.push_back(testcase.GetTestName(i)); in OnTestIterationEndPrint() 382 std::make_pair(testcase.GetTestName(i), testcase.GetTestTime(i))); in OnTestIterationEndPrint() 385 testcase.GetTestTime(i) / 1000000 >= in OnTestIterationEndPrint() 386 GetWarnlineInfo(testcase.GetTestName(i))) { in OnTestIterationEndPrint() 388 std::make_tuple(testcase.GetTestName(i), testcase.GetTestTime(i), in OnTestIterationEndPrint() 389 GetWarnlineInfo(testcase.GetTestName(i)))); in OnTestIterationEndPrint() [all …]
|
/test/vts/compilation_tools/vtsc/test/golden/DRIVER/ |
D | Bar.driver.cpp | 61 for (int i = 0; i < (int)arg1.size(); i++) { in convertToBoolIfSmall() local 64 SetResult__android__hardware__tests__foo__V1_0__IFoo__Union(var_msg1_vector_i, arg1[i]); in convertToBoolIfSmall() 137 for (int i = 0; i < 1; i++) { in doSomethingElse() local 141 var_msg0_array_i->mutable_scalar_value()->set_int32_t(arg0[i]); in doSomethingElse() 168 for (int i = 0; i < (int)arg0.size(); i++) { in mapThisVector() local 172 var_msg0_vector_i->mutable_scalar_value()->set_int32_t(arg0[i]); in mapThisVector() 214 for (int i = 0; i < (int)arg0.size(); i++) { in haveAGooberVec() local 217 SetResult__android__hardware__tests__foo__V1_0__IFoo__Goober(var_msg0_vector_i, arg0[i]); in haveAGooberVec() 245 for (int i = 0; i < 1; i++) { in haveAGooberArray() local 251 var_msg0_array_i_q->mutable_scalar_value()->set_int32_t(arg0[i].q); in haveAGooberArray() [all …]
|
/test/mlts/benchmark/src/com/android/nn/benchmark/core/ |
D | BenchmarkResult.java | 195 for (int i = 0; i < mEvaluatorKeys.length; ++i) { in getEvaluatorResults() 196 results.add(new Pair<>(mEvaluatorKeys[i], mEvaluatorResults[i])); in getEvaluatorResults() 219 for (int i = 0; i < mEvaluatorKeys.length; i++) { in toString() 220 result.append(", ").append(mEvaluatorKeys[i]).append("=").append(mEvaluatorResults[i]); in toString() 224 for (int i = 0; i < mValidationErrors.length; i++) { in toString() 225 result.append(mValidationErrors[i]); in toString() 226 if (i < mValidationErrors.length - 1) { in toString() 261 for (int i = 0; i < mEvaluatorKeys.length; i++) { in toBundle() 262 results.putFloat(testName + "_" + mEvaluatorKeys[i], in toBundle() 263 mEvaluatorResults[i]); in toBundle() [all …]
|
D | OutputMeanStdDev.java | 34 for (int i = 0; i < mNumOutputs; ++i) { in OutputMeanStdDev() 35 mMeanStdDevs[i] = new MeanStdDev(buffer.getFloat(), buffer.getFloat()); in OutputMeanStdDev() 44 for (int i = 0; i < mNumOutputs; ++i) { in denormalize() 45 results[i] = mMeanStdDevs[i].denormalize(values[i]); in denormalize()
|
D | InferenceInOutSequence.java | 60 public InferenceInOut get(int i) { in get() argument 61 return mInputOutputs.get(i); in get() 88 for (int i = 0; i < mOutputAssetsNames.length; ++i) { in readAssets() 89 outputs[i] = IOUtils.readAsset(assetManager, mOutputAssetsNames[i], mDataBytesSize); in readAssets() 90 if (outputs[i].length % sequenceLength != 0) { in readAssets() 92 "Output data " + mOutputAssetsNames[i] + " size (in bytes): " + in readAssets() 93 outputs[i].length + " is not a multiple of sequence length: " + in readAssets() 104 for (int i = 0; i < sequenceLength; ++i) { in readAssets() 108 outz[j] = Arrays.copyOfRange(outputs[j], outputSizeBytes * i, in readAssets() 109 outputSizeBytes * (i + 1)); in readAssets() [all …]
|
/test/mlts/benchmark/src/com/android/nn/benchmark/app/ |
D | NNControls.java | 131 for (int i = 0; i < modelsCount; i++) { in btnRun() 132 if (mTestListView.isItemChecked(i)) { in btnRun() 142 for (int i = 0; i < modelsCount; i++) { in btnRun() 143 if (mTestListView.isItemChecked(i)) { in btnRun() 144 testList[count++] = i; in btnRun() 185 for (int i = 0; i < TestModels.modelsList().size(); i++) { in btnSelAll() 186 mTestListView.setItemChecked(i, true); in btnSelAll() 191 for (int i = 0; i < TestModels.modelsList().size(); i++) { in btnSelNone() 192 mTestListView.setItemChecked(i, false); in btnSelNone() 220 for (int i = 0; i < mTestList.size(); i++) { in btnRunDogfood() [all …]
|
/test/suite_harness/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/ |
D | ManifestGenerator.java | 51 for (int i = 0; i < args.length - 1; i++) { in main() 52 if (args[i].equals("-p")) { in main() 53 pkgName = args[++i]; in main() 54 } else if (args[i].equals("-a")) { in main() 55 activities.add(args[++i]); in main() 56 } else if (args[i].equals("-l")) { in main() 57 libraries.add(args[++i]); in main() 58 } else if (args[i].equals("-o")) { in main() 59 output = args[++i]; in main() 60 } else if (args[i].equals("-i")) { in main() [all …]
|
/test/vts/compilation_tools/vtsc/ |
D | VtsCompilerMain.cpp | 53 for (int i = 0; i < argc; i++) { in main() local 55 cout << "- args[" << i << "] " << argv[i] << endl; in main() 57 if (argv[i] && strlen(argv[i]) > 1 && argv[i][0] == '-') { in main() 59 if (argv[i][1] == 'm') { in main() 60 if (!strcmp(&argv[i][2], "PROFILER")) { in main() 65 } else if (!strcmp(&argv[i][2], "FUZZER")) { in main() 72 if (argv[i][1] == 't') { in main() 73 if (!strcmp(&argv[i][2], "HEADER")) { in main() 78 } else if (!strcmp(&argv[i][2], "SOURCE")) { in main() 85 if (argv[i][1] == 'b') { in main() [all …]
|
/test/vts/utils/python/coverage/ |
D | gcno_parser_test.py | 74 for i in range(n_blocks): 75 self.stream = MockStream.concat_int(self.stream, 3 * i) 79 for i in range(n_blocks): 80 self.assertEqual(func.blocks[i].flag, 3 * i) 81 self.assertEqual(func.blocks[i].index, i) 92 func.blocks = [block_summary.BlockSummary(i, 3 * i) 93 for i in range(n_blocks)] 97 for i in range(src_block_index + 1, n_blocks, skip): 98 self.stream = MockStream.concat_int(self.stream, i) 105 for i in range(src_block_index + 1, n_blocks, skip): [all …]
|
/test/mlts/benchmark/jni/ |
D | run_tflite.cpp | 177 for (size_t i = 0; i < output_tensor->bytes; ++i) { in getOutputError() local 178 float err = ((float)output_raw[i]) - ((float)expected_data[i]); in getOutputError() 188 for (size_t i = 0; i < output_tensor->bytes / sizeof(float); ++i) { in getOutputError() local 189 float err = output_raw[i] - expected[i]; in getOutputError() 249 for (int i = 0; i < seq.size(); ++i) { in benchmark() local 250 const InferenceInOut& data = seq[i]; in benchmark() 264 "Input creation %d failed", i); in benchmark() 275 i); in benchmark() 283 inferenceTime, {}, {}, {}, inputOutputSequenceIndex, i}; in benchmark() 328 for (int i = 0; i < seq.size(); ++i) { in dumpAllLayers() local [all …]
|
/test/vts-testcase/kernel/bow/ |
D | BowTest.cpp | 77 int i = ioctl(cfd, 0x4C82); // LOOP_CTL_GET_FREE in SetUp() local 78 ASSERT_GE(i, 0); in SetUp() 79 loop_device_ = std::string("/dev/block/loop") + std::to_string(i); in SetUp() 160 void SetState(int i) { in SetState() argument 162 std::ofstream(state_file) << i; in SetState() 166 EXPECT_EQ(i, j); in SetState() 191 std::istringstream i(status); in GetTable() local 196 i >> s >> te.offset; in GetTable() 197 if (!i) { in GetTable() 236 for (int i = 0; i < loop_size_ / sector_size_; ++i) { in PrepareFile() local [all …]
|