Home
last modified time | relevance | path

Searched full:history (Results 1 – 25 of 56) sorted by relevance

123

/system/memory/mmd/src/zram/writeback/
Dhistory.rs25 history: VecDeque<(u64, BootTime)>, field
31 Self { history: VecDeque::new() } in new()
36 self.history.push_back((pages, now)); in record()
41 while !self.history.is_empty() in cleanup()
42 && now.saturating_duration_since(self.history.front().unwrap().1) > HISTORY_EXPIRY in cleanup()
44 self.history.pop_front(); in cleanup()
51 .history in calculate_daily_limit()
71 let mut history = ZramWritebackHistory::new(); in test_calculate_daily_limit() localVariable
75 history.record(1, base_time); in test_calculate_daily_limit()
76 history.record(1, base_time); in test_calculate_daily_limit()
[all …]
/system/memory/mmd/src/suspend_history/
Dtests.rs144 let mut history = SuspendHistory::new(); in test_calculate_total_suspend_duration() localVariable
146 history.record_suspend_duration( in test_calculate_total_suspend_duration()
151 history.record_suspend_duration( in test_calculate_total_suspend_duration()
156 history.record_suspend_duration( in test_calculate_total_suspend_duration()
161 history.record_suspend_duration( in test_calculate_total_suspend_duration()
168 history.calculate_total_suspend_duration( in test_calculate_total_suspend_duration()
178 let history = SuspendHistory::new(); in test_calculate_total_suspend_duration_empty() localVariable
181 history.calculate_total_suspend_duration( in test_calculate_total_suspend_duration_empty()
191 let history = SuspendHistory::new(); in test_calculate_total_suspend_duration_negative_target() localVariable
195 history.calculate_total_suspend_duration( in test_calculate_total_suspend_duration_negative_target()
[all …]
/system/memory/mmd/src/
Dsuspend_history.rs134 /// 10 seconds per hour and device is in suspend for 59 min 50 seconds, the history consumes only
138 history: VecDeque<Entry>, field
145 let mut history = VecDeque::new(); in new() localVariable
146 history.push_front(Entry { suspend_duration: Duration::ZERO, time: BootTime::ZERO }); in new()
147 Self { history, total_awake_duration: Duration::ZERO } in new()
159 // self.history never be empty while expired entries are popped out in the following loop in record_suspend_duration()
160 // because the loop pop one entry at a time only when self.history has at least 2 entries. in record_suspend_duration()
161 assert!(!self.history.is_empty()); in record_suspend_duration()
163 .saturating_duration_since(self.history.front().expect("history is not empty").time) in record_suspend_duration()
167 while self.total_awake_duration > max_idle_duration && self.history.len() >= 2 { in record_suspend_duration()
[all …]
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/
Dtracker_storage.cc36 LOGW("Empty tracker history found in tracker report"); in Refresh()
62 // Adds a new history. in UpdateTrackerReport()
65 // Updates the history every sampling interval. in UpdateTrackerReport()
71 // Updates the last radio discovery time in the history without sampling. in UpdateTrackerReport()
79 "Discarding old tracker history. Tracker history count %zu max history " in UpdateTrackerReport()
82 // Discards the oldest history. It is important to keep the order because in UpdateTrackerReport()
83 // the history at the end is always updated. in UpdateTrackerReport()
111 // For the new report, add a tracker history. in AddTrackerReport()
Dtracker_storage.h24 // Minimum sampling interval to update tracker history.
33 // Timeout for tracker history to be considered lost.
57 // the present state, and the time when the tracker history was created.
68 // The latest state of the tracker history.
89 // Tracker history for the key report.
102 // Updates the tracker history for present and absent trackers in the storage.
121 // Default size reserved for tracker history in creating a new tracker report.
Dtracker_filter.cc153 for (const auto &history : tracker_report.historian) { in EncodeTrackerReport() local
157 history_proto.found_count = history.found_count; in EncodeTrackerReport()
159 history_proto.first_found_time_ms = history.first_found_time_ms; in EncodeTrackerReport()
161 history_proto.last_found_time_ms = history.last_found_time_ms; in EncodeTrackerReport()
163 history_proto.lost_time_ms = history.lost_time_ms; in EncodeTrackerReport()
166 history.state == TrackerState::kPresent in EncodeTrackerReport()
/system/core/storaged/tests/
Dstoraged_test.cpp378 // generate perf history [least_recent ------> most recent] in TEST()
405 vector<int> history = si.get_perf_history(); in TEST() local
406 EXPECT_EQ(history.size(), 66UL); in TEST()
408 EXPECT_EQ(history[i++], 4); in TEST()
409 EXPECT_EQ(history[i++], 7); // 7 days in TEST()
410 EXPECT_EQ(history[i++], 52); // 52 weeks in TEST()
412 EXPECT_EQ(history[i++], 375); in TEST()
413 EXPECT_EQ(history[i++], 370); in TEST()
414 EXPECT_EQ(history[i++], 365); in TEST()
415 EXPECT_EQ(history[i++], 360); in TEST()
[all …]
/system/media/audio_utils/include/audio_utils/
DLinearMap.h30 A limited history of (x, y) points is kept for space reasons (See general usage notes).
98 sample history.
103 than the size of its circular buffer history, set upon creation (typically 16).
134 FIND_METHOD_START_VALUE, // No samples in history, using start value
176 // history by removing redundant points. in push()
204 // no longer know the full history. in push()
291 // first sample value or the last sample value in the history.
293 // is used if the extrapolation parameter is zero to continue the tail of history.
295 // head of history from backward extrapolation from the tail of history.
296 // TODO: back extrapolation value could be stored along with mX, mY in history.
[all …]
DSimpleLog.h205 static const size_t kDefaultMaxLogLines = 80; // default maximum log history
207 const size_t mMaxLogLines; // maximum log history
DErrorLog.h50 * \param entries the length of error history.
209 * \param entries the length of error history.
/system/chre/util/tests/
Datomic_spsc_queue_test.cc381 void PrintTo(const ArrayQueue<HistoryEntry, kHistorySize> &history, in PrintTo() argument
383 *os << "Dumping history from oldest to newest:" << std::endl; in PrintTo()
384 for (const HistoryEntry &entry : history) { in PrintTo()
404 ArrayQueue<HistoryEntry, kHistorySize> history; in TEST() local
437 history.kick_push(HistoryEntry(Op::kPush, pushCount, count - 1)); in TEST()
454 history.kick_push(HistoryEntry(Op::kPull, extracted, last)); in TEST()
476 << testing::PrintToString(history) in TEST()
480 << "Note: most recent push may not be included in the history, " in TEST()
483 // The history is unlikely to have the most recent push operation in TEST()
485 // the mutex to add to the history. In other words, it may have pushed in TEST()
[all …]
/system/memory/mmd/src/zram/
Dwriteback.rs21 mod history; module
33 use crate::zram::writeback::history::ZramWritebackHistory;
188 history: ZramWritebackHistory, field
212 history: ZramWritebackHistory::new(), in new_with_page_size()
234 self.history.cleanup(now); in mark_and_flush_pages()
236 self.history.calculate_daily_limit(params.max_bytes_per_day / self.page_size, now); in mark_and_flush_pages()
343 self.history.record(pages_written, now); in writeback()
/system/cros-codecs/ci/
Dtemplate.yaml49 history: False
60 history: False
/system/media/audio_utils/tests/
Dpowerlog_tests.cpp87 Signal power history: in TEST()
166 Signal power history (resolution: 0.4 ms): in TEST()
168 Signal power history (resolution: 0.0 ms): in TEST()
216 Signal power history: in TEST()
/system/chre/apps/nearby/location/lbs/contexthub/nanoapps/nearby/proto/
Dnearby_extension.proto95 // Minimum sampling interval to update tracker history.
108 // Timeout for tracker history to be considered lost.
259 // Found and lost history for the tracker
289 // The latest state of the tracker history.
/system/core/storaged/
Dmain.cpp61 printf(" -p --perf Dump I/O perf history to stdout\n"); in help_message()
166 fprintf(stderr, "I/O perf history is not available.\n"); in main()
Dstoraged_utils.cpp103 printf("\nI/O perf history (KB/s) : most_recent <--------- least_recent \n"); in log_console_perf_history()
Dstoraged_uid_monitor.cpp202 const std::map<uint64_t, struct uid_records>& history) in history_size() argument
205 for (auto const& it : history) { in history_size()
/system/chre/chpp/include/chpp/common/
Dwifi_utils.h36 * retain history of the previous invocations to verify if the sequence
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/
Dtypes.h45 uintptr_t tls; // This is currently used for MTE stack history buffer.
/system/chre/apps/test/chqts/src/general_test/
Dnanoapp_info_events_test_observer.h58 * Search the Start/Stop message history looking for a Start/Stop
/system/chre/doc/
Dframework_debugging.md44 state, history, vital statistics, etc. The debug dump is especially useful for
/system/core/storaged/include/
Dstoraged_info.h51 // io perf history
/system/media/audio_utils/
DPowerLog.cpp138 ss << prefix << "Signal power history: (none)\n"; in dumpToString()
144 ss << prefix << "Signal power history (resolution: " << timeResolution << " ms):\n"; in dumpToString()
/system/sepolicy/prebuilts/api/30.0/private/
Dproperty_contexts251 # tracked by buffer queue's frame event timing history. The property is set
253 # history size.

123