Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 32) sorted by relevance

12

/test/mlts/benchmark/src/com/android/nn/benchmark/util/
DSequenceUtils.java23 for (int j = 1; j <= n; ++j) { in calculateEditDistance()
24 d[0][j] = j; in calculateEditDistance()
28 for (int j = 1; j <= n; ++j) { 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()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/
DLinearPartition.java96 for (int j = 0; j < k; j++) { in buildPartitionTable()
97 table[0][j] = seq.get(0).getRuntimeHint(); in buildPartitionTable()
101 for (int j = 1; j < k; j++) { in buildPartitionTable()
102 table[i][j] = Integer.MAX_VALUE; in buildPartitionTable()
104 float cost = Math.max(table[x][j - 1], table[i][0] - table[x][0]); in buildPartitionTable()
105 if (table[i][j] > cost) { in buildPartitionTable()
106 table[i][j] = cost; in buildPartitionTable()
107 solution[i - 1][j - 1] = x; in buildPartitionTable()
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DBusinessLogicFactory.java161 for (int j = 0; j < rulesJSONArray.length(); j++) { in extractRulesList()
162 JSONObject ruleJSONObject = rulesJSONArray.getJSONObject(j); in extractRulesList()
202 for (int j = 0; j < methodArgsJSONArray.length(); j++) { in extractRuleConditionList()
203 methodArgs.add(methodArgsJSONArray.getString(j)); in extractRuleConditionList()
228 for (int j = 0; j < methodArgsJSONArray.length(); j++) { in extractRuleActionList()
229 methodArgs.add(methodArgsJSONArray.getString(j)); in extractRuleActionList()
DReadElf.java1079 for (int j = 0; j < this.mVerNeedArr[i].vn_cnt; j++) { in getVerNeed()
1080 if (this.mVerNeedArr[i].vn_vernaux[j].vna_other == ndx) { in getVerNeed()
1107 for (int j = 0; j < mVerNeedArr[i].vn_cnt; j++) { in getVerNeedArr()
1109 mVerNeedArr[i].vn_vernaux[j] = in getVerNeedArr()
1111 mVerNeedArr[i].vn_vernaux[j].vna_lib_name = in getVerNeedArr()
1112 readDynStrTabEntry(mVerNeedArr[i].vn_vernaux[j].vna_name); in getVerNeedArr()
1113 idxAux += mVerNeedArr[i].vn_vernaux[j].vna_next; in getVerNeedArr()
1147 for (int j = 0; j < mVerDefArr[i].vd_cnt; j++) { in getVerDef()
1149 mVerDefArr[i].vd_verdaux[j] = new VerDAux(readWord(), readWord()); in getVerDef()
1150 mVerDefArr[i].vd_verdaux[j].vda_lib_name = in getVerDef()
[all …]
/test/vts/testcases/target/hal_power/
Dhal_power_basic_test.cpp121 for (unsigned int j = 0; j < list1[i].number_of_voters; j++) { in TEST_F() local
122 EXPECT_LE(list1[i].voters[j].total_time_in_msec_voted_for_since_boot, in TEST_F()
123 list2[i].voters[j].total_time_in_msec_voted_for_since_boot) in TEST_F()
125 EXPECT_LE(list1[i].voters[j].total_number_of_times_voted_since_boot, in TEST_F()
126 list2[i].voters[j].total_number_of_times_voted_since_boot) in TEST_F()
/test/mlts/benchmark/jni/
Drun_tflite.cpp295 for (int j = 0; j < outputsCount; ++j) { in benchmark() local
296 getOutputError(data.outputs[j].ptr, data.outputs[j].size, &result, j); in benchmark()
301 for (int j = 0; j < outputsCount; ++j) { in benchmark() local
302 saveInferenceOutput(&result, j); in benchmark()
Dbenchmark_jni.cpp198 for (jsize j = 0;j < expectedOutputsLength; ++j) { in InferenceInOutSequenceList() local
200 … static_cast<jbyteArray>(mEnv->GetObjectArrayElement(expectedOutputs, j)); in InferenceInOutSequenceList()
249 for (jsize j = 0;j < expectedOutputsLength; ++j) { in ~InferenceInOutSequenceList() local
250 …yteArray expectedOutput = static_cast<jbyteArray>(mEnv->GetObjectArrayElement(expectedOutputs, j)); in ~InferenceInOutSequenceList()
252 … expectedOutput, reinterpret_cast<jbyte*>(mData[seq_index][i].outputs[j].ptr), in ~InferenceInOutSequenceList()
/test/vts/runners/target/vts_hal_hidl_target/
DVtsHalHidlTargetTestEnvBase.cpp59 for (int j = i; j != *argc; j++) { in init() local
60 argv[j] = argv[j + 1]; in init()
/test/vts/drivers/hal/libcodecoverage/
DGcdaFile.cpp70 unsigned j; in ReadStringArray() local
73 for (j = 0; j < num_strings; j++) { in ReadStringArray()
75 string_array[j] = (char*)malloc(string_len * sizeof(unsigned)); // xmalloc in ReadStringArray()
77 ((unsigned*)string_array[j])[i] = ReadUnsigned(); in ReadStringArray()
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DTestModelsListLoader.java96 for (int j = 0; j < jsonInputOutputs.length(); j++) { in parseJSONModelsList()
97 JSONObject jsonInputOutput = jsonInputOutputs.getJSONObject(j); in parseJSONModelsList()
113 inputOutputs[j] = new InferenceInOutSequence.FromAssets(input, outputs, in parseJSONModelsList()
DInferenceInOutSequence.java106 for (int j = 0; j < mOutputAssetsNames.length; ++j) { in readAssets()
107 int outputSizeBytes = outputs[j].length / sequenceLength; in readAssets()
108 outz[j] = Arrays.copyOfRange(outputs[j], outputSizeBytes * i, in readAssets()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DValidateTestsAbi.java185 for (int j = 0; j < subSet.size(); j++) { in testBinariesAbis()
186 assertEquals(base, subSet.get(j).substring(0, subSet.get(j).length() - 2)); in testBinariesAbis()
/test/suite_harness/tools/dex-tools/src/dex/reader/
DDexEncodedAnnotationImpl.java53 for (int j = 0; j < size; j++) { in parseEncodedAnnotation()
/test/vts/drivers/resource/hidl_handle_driver/
DVtsHidlHandleDriver.cpp60 for (int j = 0; j < i; j++) { in CreateFileHandle() local
61 close(native_handle->data[j]); in CreateFileHandle()
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DDynamicConfigHandler.java82 for (int j = 0; j < jsonValues.length(); j ++) { in parseJsonToConfigMap()
83 values.add(jsonValues.getString(j)); in parseJsonToConfigMap()
/test/vts-testcase/kernel/bow/
DBowTest.cpp164 int j; in SetState() local
165 std::ifstream(state_file) >> j; in SetState()
166 EXPECT_EQ(i, j); in SetState()
288 for (auto j : free) in FindChanged() local
289 if (j.offset > i) in FindChanged()
292 type = j.type; in FindChanged()
/test/vts/runners/target/gtest/
Dgtest_main.cpp516 for (size_t j = 0; j < testcase.TestCount(); ++j) { in OnTestIterationEndXmlPrint() local
517 if (testcase.GetTestResult(j) != TEST_SUCCESS) { in OnTestIterationEndXmlPrint()
520 elapsed_time_list[i] += testcase.GetTestTime(j); in OnTestIterationEndXmlPrint()
548 for (size_t j = 0; j < testcase.TestCount(); ++j) { in OnTestIterationEndXmlPrint() local
552 testcase.GetTest(j).GetName().c_str(), in OnTestIterationEndXmlPrint()
553 testcase.GetTestTime(j) / 1e9, testcase.GetName().c_str()); in OnTestIterationEndXmlPrint()
554 if (testcase.GetTestResult(j) == TEST_SUCCESS) { in OnTestIterationEndXmlPrint()
558 const std::string& test_output = testcase.GetTest(j).GetTestOutput(); in OnTestIterationEndXmlPrint()
/test/vts/utils/python/coverage/
Dgcno_parser_test.py104 j = 0
107 func.blocks[src_block_index].exit_arcs[j].src_block.index,
110 func.blocks[src_block_index].exit_arcs[j].dst_block.index, i)
114 j += 1
/test/suite_harness/tools/cts-instant-tradefed/etc/
Dcts-instant-tradefed126 for j in ${CTS_INSTANT_ROOT}/android-cts_instant/testcases/*.jar; do
127 JAR_PATH=${JAR_PATH}:$j
/test/suite_harness/tools/cts-tradefed/etc/
Dcts-tradefed129 for j in ${CTS_ROOT}/android-cts/testcases/*.jar; do
130 JAR_PATH=${JAR_PATH}:$j
/test/vts/doc/
Duser_manual.md34 `$ repo sync -j 8`
46 `$ make -j 8`
50 `$ repo sync -j 8`
52 `$ make -j 8`
/test/vts/tools/vts-tradefed/etc/
Dvts-tradefed157 for j in ${VTS_ROOT}/android-${VTF_BUILD_TARGET_NAME}/testcases/*.jar; do
158 JAR_PATH=${JAR_PATH}:$j
/test/vts-testcase/kernel/api/bpf_native_test/
DBpfTest.cpp97 uint64_t j = 0; in workerThread() local
118 std::string id = android::base::StringPrintf("msg: %" PRIu64 "\n", j); in workerThread()
/test/vti/dashboard/src/main/webapp/WEB-INF/jsp/
Dshow_coverage.jsp130 var rows = srcLines.forEach(function(line, j) {
131 var count = coverageVectors[j];
143 row.append('<td class="line_no">' + String(j+1) + '</td>');
Dshow_table.jsp199 return row.map(function(cell, j) {
200 if (j == 0) return cell;
207 return row.map(function(cell, j) {
208 if (j == 0) return cell;

12