Home
last modified time | relevance | path

Searched refs:timestamp (Results 1 – 25 of 36) sorted by relevance

12

/tools/test/connectivity/acts/framework/acts/controllers/bits_lib/
Dbits_client.py37 def _to_ns(timestamp): argument
47 if isinstance(timestamp, datetime):
48 return int((timestamp - EPOCH).total_seconds() * 1e9)
49 elif isinstance(timestamp, (float, int)):
50 return int(timestamp)
52 'nanoseconds.' % type(timestamp))
68 def add_marker(self, timestamp, marker_text): argument
69 self.markers_buffer.append((timestamp, marker_text))
152 def add_marker(self, timestamp, marker_text): argument
166 self._active_collection.add_marker(timestamp, marker_text)
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/ftrace/
DFtraceLineTest.kt37 assertEquals(4492.047432, line.timestamp, .1) in <lambda>()
53 assertEquals(4492.062904, line.timestamp, .1) in <lambda>()
70 assertEquals(4492.047432, line.timestamp, .1) in <lambda>()
86 assertEquals(260.464294, line.timestamp, .1) in <lambda>()
100 assertEquals(23815.466030, line.timestamp, .1) in <lambda>()
115 assertEquals(23815.466030, line.timestamp, .1) in <lambda>()
130 assertEquals(23815.466141, line.timestamp, .1) in <lambda>()
DFtraceEventTest.kt35 assertEquals(4492.047398, event.timestamp) in testParseLineComplete()
49 assertEquals(4492.062904, event.timestamp) in testParseLineUnknownTgid()
61 assertEquals(4492.047432, event.timestamp) in testParseLineNoTgid()
80 assertEquals(260.464294, event.timestamp) in testParseLineLegacy()
/tools/asuite/atest-py2/test_runners/
Devent_handler.py278 timestamp = str(delta).split(':') # hh:mm:microsec
283 return "({:.3f}s)".format(float(timestamp[2]))
285 return "({0}m{1:.3f}s)".format(timestamp[1], float(timestamp[2]))
286 return "({0}h{1}m{2:.3f}s)".format(timestamp[0],
287 timestamp[1], float(timestamp[2]))
/tools/asuite/atest/test_runners/
Devent_handler.py290 timestamp = str(delta).split(':') # hh:mm:microsec
295 return "({:.3f}s)".format(float(timestamp[2]))
297 return "({0}m{1:.3f}s)".format(timestamp[1], float(timestamp[2]))
298 return "({0}h{1}m{2:.3f}s)".format(timestamp[0],
299 timestamp[1], float(timestamp[2]))
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/
DFtraceLine.kt52 val timestamp get() = _timestamp constant in trebuchet.importers.ftrace.FtraceLine
56 private fun set(taskName: String?, pid: Int, tgid: Int, cpu: Int, timestamp: Double, in set()
62 _timestamp = timestamp in set()
148 val timestamp = readDouble() in parseLine() constant
154 timestamp, func, _reader) in parseLine()
DFtraceImporterState.kt38 modelFragment.globalStartTime = event.timestamp in <lambda>()
40 modelFragment.globalEndTime = event.timestamp in <lambda>()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/events/
DTraceMarkerEvent.kt25 it.startTime = event.timestamp in <lambda>()
34 it.endTime = event.timestamp in import()
42 .addCounterSample(name, event.timestamp, value) in import()
50 .openAsyncSlice(event.pid, name, cookie, event.timestamp) in import()
57 .closeAsyncSlice(event.pid, name, cookie, event.timestamp) in import()
DSchedEvent.kt61 prevThread.schedulingStateBuilder.switchState(prevState, event.timestamp) in import()
62 nextThread.schedulingStateBuilder.switchState(SchedulingState.RUNNING, event.timestamp) in import()
63 cpu.schedulingProcessBuilder.switchProcess(nextThread.process, nextThread, event.timestamp) in import()
71 thread.schedulingStateBuilder.switchState(SchedulingState.WAKING, event.timestamp) in import()
DWorkqueueEvent.kt25 it.startTime = event.timestamp in <lambda>()
33 it.endTime = event.timestamp in import()
DFtraceEvent.kt30 val timestamp: Double, in <lambda>() constant in trebuchet.importers.ftrace.events.FtraceEvent
56 timestamp = double(5), in <lambda>()
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/
Dapollo_qa.proto92 // all messages should have a timestamp field and it will get auto-populated
94 required uint32 timestamp = 1; field
107 required uint32 timestamp = 1; field
127 required uint32 timestamp = 1; field
149 required uint32 timestamp = 1; field
169 required uint32 timestamp = 1; field
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/
DSchedulingSliceFragment.kt32 fun switchState(newState: SchedulingState, timestamp: Double) { in switchState()
38 _slices.last().endTime = timestamp in switchState()
40 _slices.add(SchedulingSliceFragment(newState, timestamp)) in switchState()
DSchedulingProcessFragment.kt27 … fun switchProcess(process: ProcessModelFragment, thread: ThreadModelFragment, timestamp: Double) { in switchProcess()
30 _slices.last().endTime = timestamp in switchProcess()
34 _slices.add(SchedulingProcessFragment(process, thread, timestamp)) in switchProcess()
DProcessModelFragment.kt59 fun addCounterSample(name: String, timestamp: Double, value: Long) { in <lambda>()
60 _counters.getOrPut(name, { CounterFragment(name) }).events.add(timestamp hasCount value) in <lambda>()
/tools/test/graphicsbenchmark/benchmark_libs/
Dagq.cpp70 jlong timestamp = timespecToMs(spec); in createIntent() local
71 env->CallObjectMethod(intent, put_extra, env->NewStringUTF("timestamp"), timestamp); in createIntent()
73 LOGD("Created intent %s at %lld", INTENT_START, (long long)timestamp); in createIntent()
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/tracks/
DSliceTrack.kt88 private fun sliceAt(timestamp: Double) = slices.binarySearch { in <lambda>()
90 it.startTime > timestamp -> 1 in <lambda>()
91 it.endTime < timestamp -> -1 in <lambda>()
/tools/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/
DGameQualificationTest.java160 long timestamp = intent.getLongExtra("timestamp", 0); in registerReceiver()
161 Log.d(TAG, "Received intent at " + timestamp); in registerReceiver()
162 mReport.startLoop(timestamp); in registerReceiver()
/tools/test/connectivity/acts/framework/acts/
Dlogger.py112 def is_valid_logline_timestamp(timestamp): argument
113 if len(timestamp) == log_line_timestamp_len:
114 if logline_timestamp_re.match(timestamp):
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dlatency.py134 event_id, timestamp = [int(x, 0) for x in data.split()]
142 event_pair.latency = timestamp
149 timestamp - event_pair.latency))
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/
DCounter.kt21 data class CounterValue(val timestamp: Double, val count: Long) constant in trebuchet.model.CounterValue
25 events.sortedBy { it.timestamp } in <lambda>()
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiCrashStressTest.py100 timestamp = ad.adb.getprop("vendor.debug.ssrdump.timestamp")
101 asserts.assert_true(timestamp != pre_timestamp,
102 "SSR didn't happened %s %s" % (subsystem, timestamp))
/tools/test/connectivity/acts/framework/acts/controllers/
Dpower_monitor.py68 for timestamp, amps in raw_data:
70 (timestamp + start_time, amps))
/tools/external_updater/
Dnotifier.py130 timestamp = proj_history.get(NOTIFIED_TIME_KEY_NAME, 0)
131 time_diff = datetime.today() - datetime.fromtimestamp(timestamp)
/tools/asuite/aidegen/lib/
Dcommon_util.py91 timestamp = time.time() - start
93 func.__module__, func.__name__, timestamp))
94 if message and timestamp > maximum * 60:

12