Home
last modified time | relevance | path

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

1234567

/system/media/audio_utils/tests/
Dhal_smoothness_tests.cpp83 unsigned int timestamp = 200; in TEST_F() local
87 /* frames_written= */ 1000, timestamp++); in TEST_F()
89 /* frames_written= */ 1000, timestamp++); in TEST_F()
92 /* frames_written= */ 100, timestamp++); in TEST_F()
95 /* frames_written= */ 100, timestamp++); in TEST_F()
98 /* frames_written= */ 100, timestamp++); in TEST_F()
100 /* frames_written= */ 1000, timestamp); in TEST_F()
107 EXPECT_EQ(data.metrics.timestamp, timestamp); in TEST_F()
117 int timestamp = 200; in TEST_F() local
121 /* timestamp */ timestamp++); in TEST_F()
[all …]
/system/extras/simpleperf/
DRecordFilter.cpp33 void Begin(uint64_t timestamp) { in Begin() argument
35 begin_time_ = timestamp; in Begin()
39 bool End(uint64_t timestamp) { in End() argument
41 if (begin_time_ >= timestamp) { in End()
43 << " >= end time " << timestamp; in End()
46 ranges_.emplace_back(begin_time_.value(), timestamp); in End()
61 bool InRange(uint64_t timestamp) const { in InRange()
63 std::pair<uint64_t, uint64_t>(timestamp, 0)); in InRange()
64 if (it != ranges_.end() && it->first == timestamp) { in InRange()
69 if (it->second > timestamp) { in InRange()
[all …]
DJITDebugReader.h49 uint64_t timestamp; // Monotonic timestamp for the creation of the debug info member
67 JITDebugInfo(pid_t pid, uint64_t timestamp, uint64_t jit_code_addr, uint64_t jit_code_len, in JITDebugInfo()
71 timestamp(timestamp), in JITDebugInfo()
77 JITDebugInfo(pid_t pid, uint64_t timestamp, uint64_t dex_file_offset, in JITDebugInfo()
82 timestamp(timestamp), in JITDebugInfo()
88 bool operator>(const JITDebugInfo& other) const { return timestamp > other.timestamp; }
130 bool FlushDebugInfo(uint64_t timestamp);
157 uint64_t timestamp; // CLOCK_MONOTONIC time of last action member
DMapRecordReader.cpp51 bool MapRecordReader::ReadProcessMaps(pid_t pid, uint64_t timestamp) { in ReadProcessMaps() argument
53 return ReadProcessMaps(pid, std::unordered_set<pid_t>(tids.begin(), tids.end()), timestamp); in ReadProcessMaps()
57 uint64_t timestamp) { in ReadProcessMaps() argument
69 map.name, event_id_, timestamp); in ReadProcessMaps()
77 CommRecord record(attr_, pid, pid, process_name, event_id_, timestamp); in ReadProcessMaps()
91 CommRecord comm_record(attr_, pid, tid, name, event_id_, timestamp); in ReadProcessMaps()
Dprofcollect.cpp104 char timestamp[32]; in FileLogger() local
105 strftime(timestamp, sizeof(timestamp), "%m-%d %H:%M:%S", &now); in FileLogger()
107 timestamp, file, line, message); in FileLogger()
/system/media/audio_utils/include/audio_utils/
DMelAggregator.h35 int64_t timestamp; member
39 int64_t timestamp) in MelRecord()
40 : portId(portId), mels(std::move(mels)), timestamp(timestamp) {} in MelRecord()
43 return timestamp + static_cast<int64_t>(mels.size()) > record.timestamp; in overlapsEnd()
49 const int64_t timestamp; member
57 CsdRecord(int64_t timestamp, in CsdRecord()
61 : timestamp(timestamp), in CsdRecord()
131 std::map<int64_t, CsdRecord>::iterator addNewestCsdRecord_l(int64_t timestamp,
DTimestampVerifier.h100 const FrameTime timestamp{frames, timeNs}; in add()
101 if (mCold && (timestamp.mTimeNs == mLastTimestamp.mTimeNs in add()
102 || computeRatio(timestamp, mLastTimestamp, sampleRate) in add()
106 mFirstTimestamp = timestamp; in add()
111 const double jitterMs = computeJitterMs(timestamp, mLastTimestamp, sampleRate); in add()
128 FrameTime correctedTimestamp = timestamp; in add()
158 mLastTimestamp = timestamp; in add()
Dhal_smoothness.h69 unsigned long timestamp; member
97 unsigned long timestamp);
/system/media/audio_utils/
DMelAggregator.cpp45 const int64_t maxStart = std::max(v1.timestamp, v2.timestamp); in intersectRegion()
46 const int64_t v1End = v1.timestamp + v1.mels.size(); in intersectRegion()
47 const int64_t v2End = v2.timestamp + v2.mels.size(); in intersectRegion()
70 return {record.timestamp, record.duration, -record.value, record.averageMel}; in createRevertedRecord()
77 return mCsdRecords.rbegin()->second.timestamp + mCsdRecords.rbegin()->second.duration in csdTimeIntervalStored_l()
78 - mCsdRecords.begin()->second.timestamp; in csdTimeIntervalStored_l()
81 std::map<int64_t, CsdRecord>::iterator MelAggregator::addNewestCsdRecord_l(int64_t timestamp, in addNewestCsdRecord_l() argument
88 timestamp, in addNewestCsdRecord_l()
95 timestamp, in addNewestCsdRecord_l()
96 CsdRecord(timestamp, in addNewestCsdRecord_l()
[all …]
/system/gatekeeper/
Dgatekeeper.cpp63 uint64_t timestamp = GetMillisecondsSinceBoot(); in Enroll() local
75 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Enroll()
77 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Enroll()
135 uint64_t timestamp = GetMillisecondsSinceBoot(); in Verify() local
147 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Verify()
149 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Verify()
162 response->error = MintAuthToken(&auth_token, timestamp, in Verify()
254 uint64_t timestamp, secure_id_t user_id, secure_id_t authenticator_id, in MintAuthToken() argument
265 token.timestamp = htobe64(timestamp); in MintAuthToken()
272 sizeof(token.timestamp); in MintAuthToken()
[all …]
/system/security/keystore/tests/
Dverification_token_seralization_test.cpp34 token.timestamp = 67890; in TEST()
45 ASSERT_EQ(token.timestamp, deserialized.value().timestamp); in TEST()
54 token.timestamp = 67890; in TEST()
62 ASSERT_EQ(token.timestamp, deserialized.value().timestamp); in TEST()
Dauth_token_table_test.cpp66 uint64_t timestamp = 0) { in make_token() argument
72 token.timestamp = timestamp; in make_token()
387 EXPECT_EQ(1U, found.timestamp); in TEST()
400 EXPECT_EQ(3U, found.timestamp); in TEST()
404 EXPECT_EQ(4U, found.timestamp); in TEST()
422 EXPECT_EQ(5U, found.timestamp); in TEST()
427 EXPECT_EQ(6U, found.timestamp); in TEST()
437 EXPECT_EQ(6U, found.timestamp); in TEST()
447 EXPECT_EQ(6U, found.timestamp); in TEST()
451 EXPECT_EQ(7U, found.timestamp); in TEST()
[all …]
/system/core/init/
Dcompare-bootcharts.py93 timestamp = int(lines[0]);
98 jiffy_record['1st_timestamp'] = timestamp
101 jiffy_record['2nd_timestamp'] = timestamp
102 value = 200 / (timestamp -
130 process['last_tick'] = timestamp
/system/chre/apps/test/common/chre_stress_test/src/
Dchre_stress_test_manager.cc363 uint64_t timestamp = event->timestamp; in handleAudioDataEvent() local
365 checkTimestamp(timestamp, mPrevAudioEventTimestampMs); in handleAudioDataEvent()
366 mPrevAudioEventTimestampMs = timestamp; in handleAudioDataEvent()
393 uint64_t timestamp = in handleBleAdvertismentEvent() local
394 event->reports[i].timestamp / chre::kOneMillisecondInNanoseconds; in handleBleAdvertismentEvent()
396 checkTimestamp(timestamp, mPrevBleAdTimestampMs); in handleBleAdvertismentEvent()
397 mPrevBleAdTimestampMs = timestamp; in handleBleAdvertismentEvent()
413 void Manager::checkTimestamp(uint64_t timestamp, uint64_t pastTimestamp) { in checkTimestamp() argument
414 if (timestamp < pastTimestamp) { in checkTimestamp()
416 } else if (timestamp == pastTimestamp) { in checkTimestamp()
[all …]
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/
Dadv_report_cache.cc46 if (current_time - cache_reports_[index].timestamp > in Refresh()
81 if (event_report.timestamp > cache_report.timestamp) { in Push()
82 cache_report.timestamp = event_report.timestamp; in Push()
/system/logging/logcat/tests/
Dlogcat_benchmark.cpp35 class timestamp { in BM_logcat_sorted_order() class
54 explicit timestamp(const char* buffer) { in BM_logcat_sorted_order() function in BM_logcat_sorted_order::timestamp
58 bool operator<(timestamp& T) { in BM_logcat_sorted_order()
92 timestamp next(buffer); in BM_logcat_sorted_order()
/system/chre/apps/test/chqts/src/general_test/
Dtimer_set_test.cc79 void TimerSetTest::Stage::processEvent(uint64_t timestamp, TimerSetTest *test) { in processEvent() argument
86 if (timestamp < expectedTime) { in processEvent()
90 if (timestamp > (expectedTime + kOneSecondInNanoseconds)) { in processEvent()
163 uint64_t timestamp = chreGetTime(); in handleEvent() local
180 stage->processEvent(timestamp, this); in handleEvent()
/system/chre/java/test/cross_validation/src/com/google/android/chre/test/crossvalidator/
DSensorDatapoint.java27 public long timestamp; field in SensorDatapoint
35 String str = String.format("<SensorDatapoint timestamp: %d, values: [ ", timestamp); in toString()
DApSensorDatapoint.java34 timestamp = sensorEvent.timestamp; in ApSensorDatapoint()
/system/libbase/
Dlogging_splitters.h151 char timestamp[32]; in StderrOutputGenerator() local
152 strftime(timestamp, sizeof(timestamp), "%m-%d %H:%M:%S", &now); in StderrOutputGenerator()
161 severity_char, timestamp, pid, tid, file, line); in StderrOutputGenerator()
164 timestamp, pid, tid); in StderrOutputGenerator()
/system/media/alsa_utils/
Dalsa_device_proxy.c255 uint64_t *frames, struct timespec *timestamp) in proxy_get_presentation_position() argument
271 *timestamp = alsaTs; in proxy_get_presentation_position()
273 clock_gettime(SYSTEM_CLOCK_TYPE, timestamp); in proxy_get_presentation_position()
292 struct timespec timestamp; in proxy_get_capture_position() local
294 && pcm_get_htimestamp(proxy->pcm, &avail, &timestamp) == 0) { in proxy_get_capture_position()
295 if (timestamp.tv_sec == 0 && timestamp.tv_nsec == 0) { in proxy_get_capture_position()
297 clock_gettime(SYSTEM_CLOCK_TYPE, &timestamp); in proxy_get_capture_position()
304 *time = audio_utils_ns_from_timespec(&timestamp); in proxy_get_capture_position()
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubGetTimeTestExecutor.java82 long timestamp = ByteBuffer.wrap(data) in handleMessageFromNanoApp() local
88 mFirstTimestamp = timestamp; in handleMessageFromNanoApp()
106 long timeDifference = timestamp - mFirstTimestamp; in handleMessageFromNanoApp()
/system/extras/ext4_utils/
Dmkuserimg_mke2fs.py149 if args.timestamp:
150 e2fsdroid_opts += ["-T", args.timestamp]
240 if args.timestamp:
241 mke2fs_env["E2FSPROGS_FAKE_TIME"] = args.timestamp
251 if args.timestamp:
252 e2fsdroid_env["E2FSPROGS_FAKE_TIME"] = args.timestamp
/system/chre/core/include/chre/core/
Dble_request_manager.h241 BleRequestLog(Nanoseconds timestamp, uint32_t instanceId, bool enable, in BleRequestLog()
243 : timestamp(timestamp), in BleRequestLog()
253 Nanoseconds timestamp; member
/system/chre/apps/audio_world/
Daudio_world.cc111 Milliseconds timestamp = Milliseconds(Nanoseconds(event->timestamp)); in handleAudioDataEvent() local
113 gFirstAudioEventTimestamp = timestamp; in handleAudioDataEvent()
116 Milliseconds adjustedTimestamp = timestamp - gFirstAudioEventTimestamp; in handleAudioDataEvent()

1234567