Searched refs:last (Results 1 - 25 of 42) sorted by relevance

12

/system/core/liblog/
H A Dlog_ratelimit.cpp25 // Global default if 'last' argument in __android_log_ratelimit is NULL
30 // provides their own 'last' argument, then they can play such games
36 // Lock to protect last_clock and last_seconds, but also 'last'
40 // if last is NULL, caller _must_ provide a consistent value for
45 LIBLOG_ABI_PUBLIC int __android_log_ratelimit(time_t seconds, time_t* last) { argument
67 if (!last) {
73 last = &g_last_clock;
77 if ((now == (time_t)-1) || ((*last + seconds) > now)) {
82 *last = now;
H A Dlocal_logger.c110 * LOG_ID_KERNEL = 6, // place last, third-parties can not use it
130 struct listnode* last[NUMBER_OF_LOG_BUFFERS]; /* init &head */ member in struct:LogBuffer
144 log->last[i] = &log->head;
165 log->last[i] = &log->head;
194 if (log->last[logId] == &log->head) {
195 log->last[logId] = list_tail(&log->head);
198 struct listnode* node = log->last[logId];
222 log->last[logId] = node->prev;
474 logbuf.last[logId] = &logbuf.head;
/system/tools/hidl/
H A DLocation.h68 Position last = Position(loc.end().filename(), local
72 if (loc.begin().filename() != last.filename()) {
73 ostr << "-" << last; local
74 } else if (loc.begin().line() != last.line()) {
75 ostr << "-" << last.line() << "." << last.column();
76 } else if (loc.begin().column() != last.column()) {
77 ostr << "-" << last.column();
/system/core/logcat/tests/
H A Dlogcat_benchmark.cpp75 } last(NULL);
87 if (!last.valid()) {
90 last.init(buffer);
93 if (next < last) {
103 last.init(buffer);
/system/core/libunwindstack/
H A DElfInterfaceArm.cpp41 size_t last = total_entries_; local
42 while (first < last) {
43 size_t current = (first + last) / 2;
56 last = current;
61 if (last != 0) {
62 *entry_offset = start_offset_ + (last - 1) * 8;
H A DSymbols.cpp41 size_t last = symbols_.size(); local
42 while (first < last) {
43 size_t current = first + (last - first) / 2;
46 last = current;
H A DMaps.cpp43 size_t last = maps_.size(); local
44 while (first < last) {
45 size_t index = (first + last) / 2;
50 last = index;
H A DDwarfEhFrame.cpp114 size_t last = total_entries; local
115 while (first < last) {
116 size_t current = (first + last) / 2;
123 last = current;
128 if (last != 0) {
129 const FdeInfo* info = GetFdeInfoFromIndex(last - 1);
H A DDwarfDebugFrame.cpp286 size_t last = fde_count_; local
287 while (first < last) {
288 size_t current = (first + last) / 2;
296 last = current;
/system/core/logcat/
H A Dlogcatd_main.cpp32 // Save and detect presence of -L or --last flag
34 bool last = false; local
38 if (!strcmp(argv[i], "-L") || !strcmp(argv[i], "--last")) last = true;
47 if (last) {
51 // Remove -L and --last flags from argument list
54 if (!*it || (strcmp(*it, "-L") && strcmp(*it, "--last"))) {
/system/core/include/sysutils/
H A DList.h190 * Return the first element or one past the last element. The
223 void insert(iterator posn, const_iterator first, const_iterator last) { argument
224 for ( ; first != last; ++first)
239 iterator erase(iterator first, iterator last) { argument
240 while (first != last)
242 return iterator(last);
261 * will be equal to "last". The iterators must refer to the same
275 _ListIterator<U, CL> first, _ListIterator<U, CR> last) const
278 while (first != last) {
/system/core/include/utils/
H A DList.h189 * Return the first element or one past the last element. The
222 void insert(iterator posn, const_iterator first, const_iterator last) { argument
223 for ( ; first != last; ++first)
238 iterator erase(iterator first, iterator last) { argument
239 while (first != last)
241 return iterator(last);
260 * will be equal to "last". The iterators must refer to the same
274 _ListIterator<U, CL> first, _ListIterator<U, CR> last) const
277 while (first != last) {
/system/core/libsysutils/include/sysutils/
H A DList.h190 * Return the first element or one past the last element. The
223 void insert(iterator posn, const_iterator first, const_iterator last) { argument
224 for ( ; first != last; ++first)
239 iterator erase(iterator first, iterator last) { argument
240 while (first != last)
242 return iterator(last);
261 * will be equal to "last". The iterators must refer to the same
275 _ListIterator<U, CL> first, _ListIterator<U, CR> last) const
278 while (first != last) {
/system/core/libutils/include/utils/
H A DList.h189 * Return the first element or one past the last element. The
222 void insert(iterator posn, const_iterator first, const_iterator last) { argument
223 for ( ; first != last; ++first)
238 iterator erase(iterator first, iterator last) { argument
239 while (first != last)
241 return iterator(last);
260 * will be equal to "last". The iterators must refer to the same
274 _ListIterator<U, CL> first, _ListIterator<U, CR> last) const
277 while (first != last) {
/system/keymaster/
H A DList.h189 * Return the first element or one past the last element. The
222 void insert(iterator posn, const_iterator first, const_iterator last) { argument
223 for ( ; first != last; ++first)
238 iterator erase(iterator first, iterator last) { argument
239 while (first != last)
241 return iterator(last);
260 * will be equal to "last". The iterators must refer to the same
274 _ListIterator<U, CL> first, _ListIterator<U, CR> last) const
277 while (first != last) {
/system/tools/hidl/c2hal/
H A DType.cpp247 Qualifier *last = (*mQualifiers)[mQualifiers->size() - 1]; local
249 if(last == NULL || last->qualification != Qualifier::ID) {
253 std::string ret{last->id};
/system/core/logd/
H A DLogBuffer.cpp140 LogBufferElement* last) {
145 // if (!last) return DIFFERENT;
146 ssize_t lenr = last->getMsgLen();
148 // if (elem->getLogId() != last->getLogId()) return DIFFERENT;
149 if (elem->getUid() != last->getUid()) return DIFFERENT;
150 if (elem->getPid() != last->getPid()) return DIFFERENT;
151 if (elem->getTid() != last->getTid()) return DIFFERENT;
153 // last is more than a minute old, stop squashing identical messages
155 (last->getRealTime().nsec() + 60 * NS_PER_SEC))
160 const char* msgr = last
139 identical(LogBufferElement* elem, LogBufferElement* last) argument
386 LogBufferElementCollection::iterator last = it; local
821 LogBufferElementLast last; local
1118 LogBufferElementCollection::iterator last; local
[all...]
H A DLogKlog.cpp99 char* android::log_strntok_r(char* s, ssize_t& len, char*& last, argument
104 if (!(s = last)) return nullptr;
126 if (len <= 0) return last = nullptr;
131 last = nullptr;
141 last = s;
151 last = s;
183 last = s;
539 // leading additional spaces means no tag, inherit last tag.
814 if ((abs1 <= 1) && // last two were in agreement on timezone
/system/extras/ext4_utils/
H A Dallocate.c36 alloc->list.last = NULL;
38 alloc->oob_list.last = NULL;
78 if (list->last == reg)
79 list->last = reg->prev;
89 list->last = reg;
94 list->last->next = reg;
95 reg->prev = list->last;
96 list->last = reg;
105 list1->last = list2->last;
[all...]
H A Dallocate.h34 struct region *last; member in struct:region_list
/system/media/camera/docs/
H A Dmetadata_helpers_test.py114 for (x, last) in enumerate_with_last(single_value):
116 self.assertEquals(True, last)
/system/core/adb/
H A Dsocket_test.cpp51 int last[2]; local
59 ASSERT_EQ(0, adb_socketpair(last)) << strerror(errno);
82 asocket* end = create_local_socket(last[0]);
93 ASSERT_TRUE(ReadFdExactly(last[1], &write_buffer[0], write_buffer.size()));
98 ASSERT_EQ(0, adb_close(last[1]));
/system/core/liblog/tests/
H A Dbenchmark_main.cpp127 unsigned last = iterations; local
134 std::max(last + 1, std::min(iterations + iterations / 2, 100 * last));
/system/core/include/log/
H A Dlog.h204 * if last is NULL, caller _must_ provide a consistent value for seconds.
209 int __android_log_ratelimit(time_t seconds, time_t* last);
/system/core/liblog/include/log/
H A Dlog.h204 * if last is NULL, caller _must_ provide a consistent value for seconds.
209 int __android_log_ratelimit(time_t seconds, time_t* last);

Completed in 342 milliseconds

12