Home
last modified time | relevance | path

Searched refs:record (Results 1 – 25 of 42) sorted by relevance

12

/tools/test/connectivity/acts/framework/tests/
Dacts_records_test.py35 def verify_record(self, record, result, details, extras): argument
37 self.assertEqual(record.test_name, self.tn)
38 self.assertEqual(record.result, result)
39 self.assertEqual(record.details, details)
40 self.assertEqual(record.extras, extras)
41 self.assertTrue(record.begin_time, "begin time should not be empty.")
42 self.assertTrue(record.end_time, "end time should not be empty.")
44 self.assertIsNone(record.uid)
51 d[records.TestResultEnums.RECORD_BEGIN_TIME] = record.begin_time
52 d[records.TestResultEnums.RECORD_END_TIME] = record.end_time
[all …]
/tools/trebuchet/trebuchet/startup-summarizer/src/
DStartupSummarizer.kt155 records.forEach { appName, record -> in printPlainText() method
156 if (record.numSamples() > SAMPLE_THRESHOLD_APPLICATION) { in printPlainText()
158 printAppRecordPlainText(record) in printPlainText()
164 fun printAppRecordPlainText(record : ApplicationRecord) { in printAppRecordPlainText()
165 if (record.quicken.numSamples() > SAMPLE_THRESHOLD_COMPILER) { in printAppRecordPlainText()
167 printCompilerRecordPlainText(record.quicken) in printAppRecordPlainText()
170 if (record.speed.numSamples() > SAMPLE_THRESHOLD_COMPILER) { in printAppRecordPlainText()
172 printCompilerRecordPlainText(record.speed) in printAppRecordPlainText()
175 if (record.speedProfile.numSamples() > SAMPLE_THRESHOLD_COMPILER) { in printAppRecordPlainText()
177 printCompilerRecordPlainText(record.speedProfile) in printAppRecordPlainText()
[all …]
/tools/test/connectivity/acts/framework/acts/libs/testtracker/
Dtesttracker_results_writer.py68 def write_results(self, record): argument
74 proto = self._create_result_proto(record)
86 record = TestResultRecord('')
87 record.begin_time = begin_time
88 if not record.begin_time:
89 record.test_begin()
91 record.test_pass(signal)
93 record.test_fail(signal)
95 record.test_skip(signal)
97 record.test_error(signal)
[all …]
/tools/netsim/rust/common/src/util/
Dnetsim_logger.rs37 builder.format(move |buf, record| { in init()
38 let level = level_to_string(record.level()); in init()
44 format_file(record), in init()
45 record.line().unwrap_or(0), in init()
46 record.args() in init()
59 builder.format(move |buf, record| { in init_for_test()
60 let level = level_to_string(record.level()); in init_for_test()
62 format!("{} {} \t| netsim-test: {}", level, log_current_time(), record.args()); in init_for_test()
70 fn format_file<'a>(record: &'a Record<'a>) -> &'a str { in format_file()
71 match record.file() { in format_file()
/tools/netsim/scripts/
Dtime_formatter.py32 def formatTime(self, record, datefmt=None): argument
34 ct = self.converter(record.created)
35 dt = datetime.timedelta(seconds=record.created - self.start_time)
42 def format(self, record): argument
43 record.msg = str(record.msg).strip()
44 return super(TimeFormatter, self).format(record)
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/
DMoblyYamlResultParser.java110 MoblyYamlResultRecordHandler.Record record = in reportToListeners() local
113 new TestDescription(record.getTestClass(), record.getTestName()); in reportToListeners()
116 record.getStackTrace(), in reportToListeners()
119 record.getResult())) { in reportToListeners()
131 ? record.getBeginTime() in reportToListeners()
132 : Math.min(mRunStartTime, record.getBeginTime()); in reportToListeners()
133 mRunEndTime = Math.max(mRunEndTime, record.getEndTime()); in reportToListeners()
135 listener.testStarted(testDescription, record.getBeginTime()); in reportToListeners()
137 record.getResult())) { in reportToListeners()
140 record.getResult())) { in reportToListeners()
[all …]
/tools/test/connectivity/acts/framework/acts/
Drecords.py211 d["ControllerInfo"] = {record.controller_name: record.controller_info
212 for record in self.controller_info}
213 d["Results"] = [record.to_dict() for record in self.executed]
237 for record in self.error:
238 if isinstance(record, TestResultRecord):
242 elif isinstance(record, ExceptionRecord):
247 l.append({k: record.to_dict()[k] for k in keys})
Dbase_test.py385 def _on_fail(self, record): argument
394 if record.details:
395 self.log.error(record.details)
396 self.log.info(RESULT_LINE_TEMPLATE, record.test_name, record.result)
397 self.on_fail(record.test_name, record.begin_time)
409 def _on_pass(self, record): argument
418 msg = record.details
421 self.log.info(RESULT_LINE_TEMPLATE, record.test_name, record.result)
422 self.on_pass(record.test_name, record.begin_time)
434 def _on_skip(self, record): argument
[all …]
Dtest_runner.py214 record = records.TestResultRecord('*all*', test_cls_name)
215 record.test_skip(signals.TestSkip('Test class does not exist.'))
216 self.results.add_record(record)
/tools/tradefederation/core/javatests/com/android/tradefed/util/proto/
DTestRecordProtoUtilTest.java43 TestRecord record = TestRecordProtoUtil.readFromFile(protoFile); in testRead() local
44 assertEquals(5, record.getAttemptId()); in testRead()
45 assertEquals(TestStatus.ASSUMPTION_FAILURE, record.getStatus()); in testRead()
56 TestRecord record = builder.build(); in dumpTestRecord() local
58 record.writeDelimitedTo(stream); in dumpTestRecord()
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/util/proto/
DTestRecordProtoUtil.java58 TestRecord record = null; in readFromFile() local
69 record = TestRecord.parseFrom(data.getContents()); in readFromFile()
72 record = TestRecord.parseFrom(is); in readFromFile()
76 return record; in readFromFile()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DStreamProtoResultReporter.java131 private void writeRecordToSocket(TestRecord record) { in writeRecordToSocket() argument
143 record.writeDelimitedTo(mReportSocket.getOutputStream()); in writeRecordToSocket()
186 TestRecord record = mToBeSent.poll(); in flushEvents() local
187 while (record != null) { in flushEvents()
188 writeRecordToSocket(record); in flushEvents()
189 record = mToBeSent.poll(); in flushEvents()
DFileProtoResultReporter.java87 protected ChildReference createModuleChildReference(TestRecord record) { in createModuleChildReference() argument
92 return super.createModuleChildReference(record); in createModuleChildReference()
110 private void writeProto(TestRecord record) { in writeProto() argument
125 record.writeDelimitedTo(output); in writeProto()
127 record.writeTo(output); in writeProto()
DProtoResultReporter.java245 TestRecord record = mInvocationRecordBuilder.build(); in invocationEnded() local
247 processFinalProto(record); in invocationEnded()
579 protected ChildReference createModuleChildReference(TestRecord record) { in createModuleChildReference() argument
580 return createChildReference(record); in createModuleChildReference()
583 private ChildReference createChildReference(TestRecord record) { in createChildReference() argument
585 child.setTestRecordId(record.getTestRecordId()); in createChildReference()
587 child.setInlineTestRecord(record); in createChildReference()
/tools/tradefederation/core/javatests/com/android/tradefed/service/management/
DTestInvocationManagementServerTest.java106 File record = new File(responseDetails.getTestRecordPath()); in testSubmitTestCommand_andDetails() local
107 assertThat(record.exists()).isTrue(); in testSubmitTestCommand_andDetails()
108 FileUtil.deleteFile(record); in testSubmitTestCommand_andDetails()
165 File record = new File(responseDetails.getTestRecordPath()); in testSubmitTestCommand_reservedDevice() local
166 assertThat(record.exists()).isTrue(); in testSubmitTestCommand_reservedDevice()
167 FileUtil.deleteFile(record); in testSubmitTestCommand_reservedDevice()
208 File record = new File(responseDetails.getTestRecordPath()); in testSubmitTestCommand_reservedMultiDevice() local
209 assertThat(record.exists()).isTrue(); in testSubmitTestCommand_reservedMultiDevice()
210 FileUtil.deleteFile(record); in testSubmitTestCommand_reservedMultiDevice()
251 File record = new File(responseDetails.getTestRecordPath()); in testSubmitTestCommand_andStop() local
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/zip/
DCentralDirectoryRecord.java269 static String getName(ByteBuffer record, int position, int nameLengthBytes) { in getName() argument
272 if (record.hasArray()) { in getName()
273 nameBytes = record.array(); in getName()
274 nameBytesOffset = record.arrayOffset() + position; in getName()
278 int originalPosition = record.position(); in getName()
280 record.position(position); in getName()
281 record.get(nameBytes); in getName()
283 record.position(originalPosition); in getName()
/tools/asuite/atest/test_runners/
Dmobly_test_runner.py858 for test_index, record in enumerate(records):
862 record.get(SUMMARY_KEY_END_TIME) is not None
863 and record.get(SUMMARY_KEY_BEGIN_TIME) is not None
866 record[SUMMARY_KEY_END_TIME] - record[SUMMARY_KEY_BEGIN_TIME]
868 test_run_name = record[SUMMARY_KEY_TEST_CLASS]
881 record[SUMMARY_KEY_RESULT]
883 'details': record[SUMMARY_KEY_STACKTRACE],
900 'testClass': record[SUMMARY_KEY_TEST_CLASS],
901 'method': record[SUMMARY_KEY_TEST_NAME],
904 record[SUMMARY_KEY_RESULT]
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DTestRecordInterpreter.java33 public static CollectingTestListener interpreteRecord(TestRecord record) { in interpreteRecord() argument
36 parser.processFinalizedProto(record); in interpreteRecord()
/tools/tradefederation/core/javatests/com/android/tradefed/result/proto/
DFileProtoResultReporterTest.java93 TestRecord record = TestRecordProtoUtil.readFromFile(mOutput); in testWriteResults() local
95 Any anyDescription = record.getDescription(); in testWriteResults()
194 TestRecord record = TestRecordProtoUtil.readFromFile(mOutput, false); in testWriteReadAtestResults() local
195 assertEquals("record id", record.getTestRecordId()); in testWriteReadAtestResults()
196 assertEquals("child record1", record.getChildren(0).getTestRecordId()); in testWriteReadAtestResults()
197 assertEquals("child record2", record.getChildren(1).getTestRecordId()); in testWriteReadAtestResults()
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/bt/
Dsdp_lib.py25 def addService(self, record): argument
37 "record": record,
/tools/security/fuzzing/orphans/widevine/trusty/
Ddispatch_fuzzer.cpp76 static CoverageRecord record(TIPC_DEV, &widevine_uuid, WIDEVINE_MODULE_NAME); variable
85 ret = record.Open(); in LLVMFuzzerInitialize()
203 ExtraCounters counters(&record); in LLVMFuzzerTestOneInput()
/tools/tradefederation/contrib/src/com/android/uicd/tests/
DUiConductorTest.java458 TestRecordProto.TestRecord record = TestRecordProtoUtil.readFromFile(mPreviousResults); in parsePreviousResults() local
459 return TestRecordInterpreter.interpreteRecord(record); in parsePreviousResults()
502 TestRecordProto.TestRecord record, IInvocationContext context) { in processStartInvocation() argument
505 super.processStartInvocation(record, context); in processStartInvocation()
509 public void processFinalProto(TestRecordProto.TestRecord record) { in processFinalProto() argument
510 super.processFinalProto(record); in processFinalProto()
/tools/tradefederation/core/src/com/android/tradefed/service/management/
DTestInvocationManagementServer.java152 File record = null; in submitTestCommand() local
154 record = FileUtil.createTempFile("test_record", ".pb"); in submitTestCommand()
157 fileReporter.setOutputFile(record); in submitTestCommand()
185 FileUtil.deleteFile(record); in submitTestCommand()
/tools/test/connectivity/acts/framework/acts/libs/logging/
Dlog_stream.py155 def emit(self, record): argument
156 self._log.log(record.levelno, record.getMessage())
/tools/tradefederation/contrib/tests/src/com/android/uicd/tests/
DUiConductorTestTest.java304 TestRecordProto.TestRecord.Builder record = TestRecordProto.TestRecord.newBuilder(); in testRun_withPreviousResults() local
305 record.setDescription(Any.pack(context.toProto())); in testRun_withPreviousResults()
306 record.addChildrenBuilder().setInlineTestRecord(module); in testRun_withPreviousResults()
309 record.build().writeDelimitedTo(stream); in testRun_withPreviousResults()

12