/test/vts/drivers/hal/libcodecoverage/ |
D | GcdaFile.cpp | 30 if (filename_.length() < 1) return false; in Open() 47 gcov_var_.length = 0; in Close() 56 void GcdaFile::Sync(unsigned base, unsigned length) { in Sync() argument 59 base += length; in Sync() 60 if (base - gcov_var_.start <= gcov_var_.length) { in Sync() 63 gcov_var_.offset = gcov_var_.length = 0; in Sync() 91 void GcdaFile::Allocate(unsigned length) { in Allocate() argument 95 new_size += length; in Allocate() 103 unsigned excess = gcov_var_.length - gcov_var_.offset; in ReadWords() 111 gcov_var_.length = excess; in ReadWords() [all …]
|
D | GcdaParser.h | 51 void TagFunction(unsigned /*tag*/, unsigned length) { in TagFunction() argument 54 if (length) { in TagFunction() 63 void TagBlocks(unsigned /*tag*/, unsigned length) { in TagBlocks() argument 64 unsigned n_blocks = GCOV_TAG_BLOCKS_NUM(length); in TagBlocks() 69 void TagArcs(unsigned /*tag*/, unsigned length) { in TagArcs() argument 70 unsigned n_arcs = GCOV_TAG_ARCS_NUM(length); in TagArcs()
|
D | GcdaParser.cpp | 60 unsigned length; in ParseBody() local 72 length = gcda_file_->ReadUnsigned(); in ParseBody() 95 TagFunction(tag, length); in ParseBody() 98 TagBlocks(tag, length); in ParseBody() 101 TagArcs(tag, length); in ParseBody() 104 TagLines(tag, length); in ParseBody() 107 gcda_file_->Sync(base, length); in ParseBody()
|
/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() 64 average /= data.length; in getStat() 66 for (int i = 0; i < data.length; i++) { in getStat() 70 double variance = sumOfSquares / (data.length - 1); in getStat() 72 return new StatResult(average, min, max, stddev, data.length); in getStat() 81 double[] dataCopied = Arrays.copyOf(data, data.length); in getStatWithOutlierRejection() 83 int medianIndex = dataCopied.length / 2; in getStatWithOutlierRejection() 85 if (dataCopied.length % 2 == 1) { in getStatWithOutlierRejection() 93 double[] validData = new double[data.length]; in getStatWithOutlierRejection() 95 for (int i = 0; i < data.length; i++) { in getStatWithOutlierRejection() [all …]
|
D | InfoStore.java | 131 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 139 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 147 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 155 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 163 if (values.length > MAX_ARRAY_LENGTH) { in checkArray() 181 if (value.length() > MAX_STRING_LENGTH) { in checkString()
|
/test/vts/drivers/resource/hidl_handle_driver/ |
D | VtsHidlHandleDriverTest.cpp | 91 write_data.length()), in TEST_F() 92 write_data.length()); in TEST_F() 95 char read_data[write_data.length()]; in TEST_F() 97 write_data.length()), in TEST_F() 98 write_data.length()); in TEST_F() 100 ASSERT_TRUE(write_data == string(read_data, write_data.length())); in TEST_F() 110 char read_data[write_data.length() * NUM_ITERS]; in TEST_F() 117 write_data.length()), in TEST_F() 118 write_data.length()); in TEST_F() 123 write_data.length()), in TEST_F() [all …]
|
/test/vts/drivers/resource/hidl_memory_driver/ |
D | VtsHidlMemoryDriverTest.cpp | 70 write_data.length())); in TEST_F() 74 char read_data[write_data.length()]; in TEST_F() 76 ASSERT_TRUE(mem_driver_.ReadBytes(mem_id_, read_data, write_data.length())); in TEST_F() 80 ASSERT_EQ(0, strncmp(write_data.c_str(), read_data, write_data.length())); in TEST_F() 118 char read_data1[write_data1.length()]; in TEST_F() 119 char read_data2[write_data2.length()]; in TEST_F() 123 ASSERT_TRUE(mem_driver_.UpdateRange(mem_id_, 0, write_data1.length())); in TEST_F() 124 ASSERT_TRUE(mem_driver_.UpdateRange(mem_id_, 50, write_data2.length())); in TEST_F() 127 write_data2.length(), 50)); in TEST_F() 133 mem_driver_.ReadBytes(mem_id_, read_data2, write_data2.length(), 50)); in TEST_F() [all …]
|
D | VtsHidlMemoryDriver.cpp | 87 uint64_t length) { in UpdateRange() argument 90 (mem_info->memory)->updateRange(start, length); in UpdateRange() 102 uint64_t length) { in ReadRange() argument 105 (mem_info->memory)->readRange(start, length); in ReadRange() 110 uint64_t length, uint64_t start) { in UpdateBytes() argument 115 memcpy(memory_char_ptr + start, write_data, length); in UpdateBytes() 120 uint64_t length, uint64_t start) { in ReadBytes() argument 125 memcpy(read_data, memory_char_ptr + start, length); in ReadBytes()
|
/test/vti/test_serving/gae/frontend/src/app/menu/job/ |
D | job.component.ts | 122 let length = 0; 124 length = response.jobs.length; 126 const total = length + offset; 128 if (length !== this.pageSize) { 135 if (length !== this.count) { 174 …const jobs_24hrs = (response.jobs == null || response.jobs.length === 0) ? undefined : response.jo… 185 if (jobs == null || jobs.length === 0) { 190 created: jobs.length, 191 …pleted: jobs.filter(job => job.status != null && Number(job.status) === JobStatus.Complete).length, 193 (Number(job.status) === JobStatus.Leased || Number(job.status) === JobStatus.Ready)).length, [all …]
|
/test/mlts/benchmark/src/com/android/nn/benchmark/core/ |
D | BenchmarkResult.java | 102 if (mEvaluatorResults.length != mEvaluatorKeys.length) { in BenchmarkResult() 105 mNumberOfEvaluatorResults = mEvaluatorResults.length; in BenchmarkResult() 113 return mValidationErrors.length > 0; in hasValidationErrors() 128 if (mEvaluatorResults.length != mEvaluatorKeys.length) { in BenchmarkResult() 162 dest.writeInt(mTimeFreqSec.length); in writeToParcel() 166 dest.writeInt(mValidationErrors.length); in writeToParcel() 195 for (int i = 0; i < mEvaluatorKeys.length; ++i) { in getEvaluatorResults() 219 for (int i = 0; i < mEvaluatorKeys.length; i++) { in toString() 224 for (int i = 0; i < mValidationErrors.length; i++) { in toString() 226 if (i < mValidationErrors.length - 1) { in toString() [all …]
|
D | InferenceInOutSequence.java | 85 byte[][] outputs = new byte[mOutputAssetsNames.length][]; in readAssets() 86 int sequenceLength = inputs.length / mInputSizeBytes; in readAssets() 88 for (int i = 0; i < mOutputAssetsNames.length; ++i) { in readAssets() 90 if (outputs[i].length % sequenceLength != 0) { in readAssets() 93 outputs[i].length + " is not a multiple of sequence length: " + in readAssets() 97 if (inputs.length % mInputSizeBytes != 0) { in readAssets() 98 throw new IllegalArgumentException("Input data size (in bytes): " + inputs.length + in readAssets() 105 byte[][] outz = new byte[mOutputAssetsNames.length][]; in readAssets() 106 for (int j = 0; j < mOutputAssetsNames.length; ++j) { in readAssets() 107 int outputSizeBytes = outputs[j].length / sequenceLength; in readAssets() [all …]
|
D | TestModelsListLoader.java | 52 for (int i = 0; i < jsonModelsArray.length(); i++) { in parseJSONModelsList() 83 int[] inputSize = new int[jsonInputSize.length()]; in parseJSONModelsList() 85 for (int k = 0; k < jsonInputSize.length(); ++k) { in parseJSONModelsList() 94 new InferenceInOutSequence.FromAssets[jsonInputOutputs.length()]; in parseJSONModelsList() 96 for (int j = 0; j < jsonInputOutputs.length(); j++) { in parseJSONModelsList() 106 outputs = new String[outputArray.length()]; in parseJSONModelsList() 107 for (int k = 0; k < outputArray.length(); ++k) { in parseJSONModelsList() 125 if (inputSize.length != 4 || inputSize[0] != 1 || inputSize[1] != inputSize[2] || in parseJSONModelsList()
|
/test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/ |
D | VtsMultiDeviceTestResultParser.java | 122 if (toks.length < 3 || !toks[toks.length - 1].equals(END_PATTERN) || !toks[toks.length - 3]. in processNewLines() 130 mTestClass = toks[toks.length - 2]; in processNewLines() 135 if (line.length() == 0 || !line.contains(TEST_CASE)) { in processNewLines() 232 String lastToken = toks[toks.length - 1]; in testRun() 255 mCurrentTestName = toks[toks.length - 1]; in registerTest() 265 if (lines == null || lines.length == 0) { in summary() 289 int begin = calculateStartDate ? 0 : lines.length - 1; in getDate() 292 for (int index = begin; index >= 0 && index < lines.length; index += diff) { in getDate() 298 if (toks.length < 3) { in getDate() 344 for (int rowIndex = 0; rowIndex < table.length(); rowIndex++) { in printJsonTable() [all …]
|
/test/vts/utils/python/coverage/ |
D | gcno_parser.py | 103 length = self.ReadInt() 117 self.ReadBlocks(length, func) 120 self.ReadArcs(length, func) 123 self.ReadLines(length, func) 148 def ReadBlocks(self, length, func): argument 163 for _ in range(length): 169 def ReadArcs(self, length, func): argument 185 n_arcs = (length - 1) / 2 195 def ReadLines(self, length, func): argument 214 for i in range(length - src_length - self.HEADER_LENGTH):
|
D | gcda_parser.py | 107 length = self.ReadInt() 112 func = self.ReadFunction(length) 122 for i in range(length - 1): 125 def ReadFunction(self, length): argument 145 if words_read < length:
|
/test/vti/test_serving/gae/frontend/src/app/menu/build/ |
D | build.component.ts | 79 let length = 0; 81 length = response.builds.length; 83 const total = length + offset; 85 if (length !== this.pageSize) { 92 if (length !== this.count) {
|
/test/vti/test_serving/gae/frontend/src/app/menu/device/ |
D | device.component.ts | 90 let length = 0; 92 length = response.devices.length; 94 const total = length + offset; 96 if (length !== this.pageSize) { 103 if (length !== this.count) {
|
/test/vti/test_serving/gae/frontend/src/app/menu/schedule/ |
D | schedule.component.ts | 93 let length = 0; 95 length = response.schedules.length; 97 const total = length + offset; 99 if (length !== this.pageSize) { 106 if (length !== this.count) {
|
/test/vts/utils/python/mirror/ |
D | resource_mirror.py | 446 def readRange(self, start, length): argument 464 request_msg.length = length 494 def updateRange(self, start, length): argument 512 request_msg.length = length 522 def readBytes(self, length, start=0): argument 541 request_msg.length = length 551 def updateBytes(self, data, length, start=0): argument 572 request_msg.length = length
|
/test/mlts/benchmark/src/com/android/nn/benchmark/util/ |
D | IOUtils.java | 37 int size = bytes.length / dataSize; in readFloats() 80 if (data.length % 4 != 0) { in invertOrder4() 83 for (int i = 0; i < data.length; i += 4) { in invertOrder4() 95 if (data.length % 2 != 0) { in invertOrder2() 98 for (int i = 0; i < data.length; i += 2) { in invertOrder2()
|
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
D | ReportLogHostInfoStore.java | 53 if (nextLine == null && currentLine.charAt(currentLine.length() - 1) == '}') { in open() 55 currentLine = currentLine.substring(0, currentLine.length() - 1) + ","; in open() 58 formatWriter.write(currentLine, 0, currentLine.length()); in open() 65 formatWriter.write("\"" + mStreamName + "\":", 0, mStreamName.length() + 3); in open() 93 metricsWriter.write(line, 0, line.length()); in close()
|
D | BusinessLogicHostExecutor.java | 89 if (argsUsed == args.length && paramType.equals(String.class)) { in getResolvedMethod() 106 rm.addArg(Arrays.copyOfRange(args, argsUsed, args.length)); in getResolvedMethod() 107 argsUsed += (args.length - argsUsed); in getResolvedMethod() 113 if (paramTypesMatched == paramTypes.length && argsUsed == args.length) { in getResolvedMethod()
|
/test/vti/dashboard/src/main/webapp/js/ |
D | common.js | 22 if (!linkList || linkList.length == 0) return; 26 if (!entry || entry.length == 0) return acc; 33 if (container.find('#info-modal').length == 0) { 74 var nCol = data.length; 95 var count = column.data.length;
|
D | test_acknowledgments.js | 85 if (chipList && chipList.length > 0) { 337 if (!!branches && branches.length == 1) { 339 } else if (!!branches && branches.length > 1) { 341 branchesSummary += '<span class="count-indicator"> (+' + (branches.length - 1) + ')</span>'; 345 if (!!devices && devices.length == 1) { 347 } else if (!!devices && devices.length > 1) { 349 devicesSummary += '<span class="count-indicator"> (+' + (devices.length - 1) + ')</span>'; 353 if (!!testCases && testCases.length == 1) { 355 } else if (!!testCases && testCases.length > 1) { 357 testCaseSummary += '<span class="count-indicator"> (+' + (testCases.length - 1) + ')</span>';
|
/test/suite_harness/tools/dex-tools/src/dex/reader/ |
D | DexFileReader.java | 153 for (int i = 0; i < stringDataOffsets.length; i++) { in readStrings() 158 for (int i = 0; i < stringDataOffsets.length; i++) { in readStrings() 173 for (int i = 0; i < typeIds.length; i++) { in readTypeIds() 190 for (int i = 0; i < protoIdItems.length; i++) { in readProtos() 212 for (int i = 0; i < fieldIdItems.length; i++) { in readFields() 234 for (int i = 0; i < methodIdItems.length; i++) { in readMethods() 260 for (int i = 0; i < classDefItems.length; i++) { in readClasses()
|