Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 36) 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/vts-testcase/kernel/encryption/
Daes_256_xts.cpp35 for (int j = 0; j < kAesBlockSize; j++) { in DoXtsMasking() local
36 data[i * kAesBlockSize + j] ^= mask[j]; in DoXtsMasking()
40 for (int j = 0; j < kAesBlockSize; j++) { in DoXtsMasking() local
41 int next_carry = mask[j] >> 7; in DoXtsMasking()
43 mask[j] = (mask[j] << 1) ^ carry; in DoXtsMasking()
Dadiantum.cpp138 int i, j; in XChaCha() local
159 for (j = 0; j < 16; j++) keystream.words[j] = cpu_to_le32(x[j] + state[j]); in XChaCha()
160 for (j = 0; j < std::min(nbytes - i, 64); j++) in XChaCha()
161 dst[i + j] = src[i + j] ^ keystream.bytes[j]; in XChaCha()
/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.java175 for (int j = 0; j < rulesJSONArray.length(); j++) { in extractRulesList()
176 JSONObject ruleJSONObject = rulesJSONArray.getJSONObject(j); in extractRulesList()
216 for (int j = 0; j < methodArgsJSONArray.length(); j++) { in extractRuleConditionList()
217 methodArgs.add(methodArgsJSONArray.getString(j)); in extractRuleConditionList()
242 for (int j = 0; j < methodArgsJSONArray.length(); j++) { in extractRuleActionList()
243 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.cpp299 for (int j = 0; j < outputsCount; ++j) { in benchmark() local
300 getOutputError(data.outputs[j].ptr, data.outputs[j].size, &result, j); in benchmark()
305 for (int j = 0; j < outputsCount; ++j) { in benchmark() local
306 saveInferenceOutput(&result, j); in benchmark()
Dbenchmark_jni.cpp200 for (jsize j = 0;j < expectedOutputsLength; ++j) { in InferenceInOutSequenceList() local
202 … static_cast<jbyteArray>(mEnv->GetObjectArrayElement(expectedOutputs, j)); in InferenceInOutSequenceList()
251 for (jsize j = 0;j < expectedOutputsLength; ++j) { in ~InferenceInOutSequenceList() local
252 …yteArray expectedOutput = static_cast<jbyteArray>(mEnv->GetObjectArrayElement(expectedOutputs, j)); in ~InferenceInOutSequenceList()
254 … 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.java195 for (int j = 0; j < subSet.size(); j++) { in testBinariesAbis()
196 assertEquals(base, subSet.get(j).substring(0, subSet.get(j).length() - 2)); in testBinariesAbis()
/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/vts-testcase/hal/usb/gadget/V1_0/host/src/com/android/tests/usbgadget/
DHalUsbGadgetV1_0HostTest.java73 for (int j = 0; j < devDescriptors[0].bNumConfigurations; j++) { in checkProtocol()
75 int success = mUsb.libusb_get_config_descriptor(device, j, configRef); in checkProtocol()
/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/app_compat/csuite/tools/csuite-tradefed/src/scripts/
Dcsuite-tradefed118 for j in ${CSUITE_ROOT}/android-csuite/testcases/*.jar; do
119 JAR_PATH=${JAR_PATH}:$j
/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/mts/tools/mts-tradefed/etc/
Dmts-tradefed132 for j in ${MTS_ROOT}/android-mts/testcases/*.jar; do
133 JAR_PATH=${JAR_PATH}:$j
/test/suite_harness/tools/cts-tradefed/etc/
Dcts-tradefed130 for j in ${CTS_ROOT}/android-cts/testcases/*.jar; do
131 JAR_PATH=${JAR_PATH}:$j
/test/vts/tools/vts-core-tradefed/etc/
Dvts-tradefed130 for j in $(find ${VTS_ROOT}/android-vts/testcases -type f -name '*.jar'); do
131 JAR_PATH=${JAR_PATH}:$j
/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/vts/tools/vts-tradefed/etc/
Dvts10-tradefed158 for j in ${VTS10_ROOT}/android-${VTF_BUILD_TARGET_NAME}/testcases/*.jar; do
159 JAR_PATH=${JAR_PATH}:$j

12