Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 56) sorted by relevance

123

/system/core/init/
Drlimit_parser.cpp67 rlimit limit; in ParseRlimit() local
69 limit.rlim_cur = RLIM_INFINITY; in ParseRlimit()
70 } else if (!ParseUint(args[2], &limit.rlim_cur)) { in ParseRlimit()
75 limit.rlim_max = RLIM_INFINITY; in ParseRlimit()
76 } else if (!ParseUint(args[3], &limit.rlim_max)) { in ParseRlimit()
80 return {resource, limit}; in ParseRlimit()
/system/netd/libnetdutils/include/netdutils/
DSlice.h45 Slice(void* base, void* limit) : mBase(toUint8(base)), mLimit(toUint8(limit)) {} in Slice() argument
54 uint8_t* limit() const { return mLimit; } in limit() function
57 size_t size() const { return limit() - base(); } in size()
60 bool empty() const { return base() == limit(); } in empty()
98 return {{s.base(), s.base() + tmp}, {s.base() + tmp, s.limit()}}; in split()
141 return (lhs.base() == rhs.base()) && (lhs.limit() == rhs.limit());
DOperationLimiter.h50 explicit OperationLimiter(int limit) : mLimitPerKey(limit) {} in OperationLimiter() argument
/system/core/libmemunreachable/include/memunreachable/
Dmemunreachable.h70 bool GetUnreachableMemory(UnreachableMemoryInfo& info, size_t limit = 100);
72 std::string GetUnreachableMemoryString(bool log_contents = false, size_t limit = 100);
80 bool LogUnreachableMemory(bool log_contents, size_t limit);
/system/libhidl/base/
DSynchronizedQueue.h32 SynchronizedQueue(size_t limit);
68 SynchronizedQueue<T>::SynchronizedQueue(size_t limit) : mQueueLimit(limit) { in SynchronizedQueue() argument
DTaskRunner.cpp31 void TaskRunner::start(size_t limit) { in start() argument
32 mQueue = std::make_shared<SynchronizedQueue<Task>>(limit); in start()
/system/netd/libnetdutils/
DThreadUtilTest.cpp35 int limit = timeoutMs / intervalMs; in waitForAllReleased() local
36 for (int i = 1; i < limit; i++) { in waitForAllReleased()
DSlice.cpp56 << ", limit: " << reinterpret_cast<void*>(slice.limit()) << ", size: 0x" in operator <<()
/system/media/audio_utils/
Dmono_blend.cpp26 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames, bool limit) { in mono_blend() argument
54 if (limit && channelCount == 2) { in mono_blend()
/system/core/libmemunreachable/
DMemUnreachable.cpp59 bool GetUnreachableMemory(allocator::vector<Leak>& leaks, size_t limit, size_t* num_leaks,
136 bool MemUnreachable::GetUnreachableMemory(allocator::vector<Leak>& leaks, size_t limit, in GetUnreachableMemory() argument
208 if (leaks.size() > limit) { in GetUnreachableMemory()
209 leaks.resize(limit); in GetUnreachableMemory()
282 bool GetUnreachableMemory(UnreachableMemoryInfo& info, size_t limit) { in GetUnreachableMemory() argument
360 bool ok = unreachable.GetUnreachableMemory(leaks, limit, &num_leaks, &leak_bytes); in GetUnreachableMemory()
523 std::string GetUnreachableMemoryString(bool log_contents, size_t limit) { in GetUnreachableMemoryString() argument
525 if (!GetUnreachableMemory(info, limit)) { in GetUnreachableMemoryString()
537 bool LogUnreachableMemory(bool log_contents, size_t limit) { in LogUnreachableMemory() argument
539 if (!android::GetUnreachableMemory(info, limit)) { in LogUnreachableMemory()
DREADME.md38 #### `bool LogUnreachableMemory(bool log_contents, size_t limit)` ####
39 …y to the log. A summary is always written, followed by details of up to `limit` leaks. If `log_c…
47 #### `bool GetUnreachableMemory(UnreachableMemoryInfo& info, size_t limit = 100)` ####
48 …MemoryInfo` object with information on leaks, including details on up to `limit` leaks. Returns t…
50 #### `std::string GetUnreachableMemoryString(bool log_contents = false, size_t limit = 100)` ####
51 …eaked memory. A summary is always written, followed by details of up to `limit` leaks. If `log_c…
DHeapWalker.cpp144 bool HeapWalker::Leaked(allocator::vector<Range>& leaked, size_t limit, size_t* num_leaks_out, in Leaked() argument
160 if (n++ < limit) { in Leaked()
/system/media/audio_utils/include/audio_utils/
Dmono_blend.h44 bool limit = false);
/system/libsysprop/srcs/android/sysprop/
DCarProperties.sysprop35 # Max length limit is 4. Chars exceeding length limit will be truncated.
/system/libhidl/base/include/hidl/
DTaskRunner.h54 void start(size_t limit);
/system/core/logd/
Dlibaudit.h102 extern int audit_rate_limit(int fd, uint32_t limit);
Dlibaudit.c190 int audit_rate_limit(int fd, uint32_t limit) { in audit_rate_limit() argument
194 status.rate_limit = limit; /* audit entries per second */ in audit_rate_limit()
/system/netd/resolv/
DREADME.md83 20 seconds will be closed. This sets the limit of tolerance for slow replies,
87 `DnsTlsQueryMap` imposes a retry limit of 3. `DnsTlsTransport` will retry the query up
89 This limit helps to ensure proper functioning in the case of a recursive resolver that
96 This sets the limit on how long session tickets will be preserved during idle periods,
101 `DnsTlsSessionCache` sets a limit of 5 sessions in each cache, expiring the oldest one
102 when the limit is reached. However, because the client code does not currently
103 reuse sessions more than once, it should not be possible to hit this limit.
/system/extras/perfprofd/scripts/
Dperf_proto_stack_sqlite_flame.py116 def read(self, local_threshold_in_percent, global_threshold_in_percent, limit, argument
172 if limit is not None and count >= limit:
266 sql_out.read(args.threshold, args.global_threshold, args.limit,
/system/extras/iotop/
Diotop.cpp106 int limit = -1; in main() local
138 limit = atoi(optarg); in main()
246 int n = limit; in main()
/system/sepolicy/vendor/
Dvndservicemanager.te8 # transfer binder objects to other processes (TODO b/35870313 limit this to vendor-only)
/system/core/storaged/
DREADME.properties5 ro.storaged.uid_io.threshold # Per UID IO usage limit, in bytes
/system/core/fastboot/
Dfastboot.cpp837 uint64_t limit; in get_target_sparse_limit() local
838 if (!android::base::ParseUint(max_download_size, &limit)) { in get_target_sparse_limit()
842 if (limit > 0) verbose("target reported max download size of %" PRId64 " bytes", limit); in get_target_sparse_limit()
843 return limit; in get_target_sparse_limit()
847 int64_t limit = sparse_limit; in get_sparse_limit() local
848 if (limit == 0) { in get_sparse_limit()
855 limit = target_sparse_limit; in get_sparse_limit()
861 if (size > limit) { in get_sparse_limit()
862 return std::min(limit, RESPARSE_LIMIT); in get_sparse_limit()
882 int64_t limit = get_sparse_limit(sz); in load_buf_fd() local
[all …]
/system/netd/resolv/dns_responder/
Ddns_tls_frontend.cpp389 int limit = timeoutMs / intervalMs; in waitForQueries() local
390 for (int count = 0; count <= limit; ++count) { in waitForQueries()
398 ALOGD("Query arrived in %d/%d of allotted time", count, limit); in waitForQueries()
/system/core/trusty/gatekeeper/
DAndroid.bp19 // named (liblights.panda), and must build everywhere, or limit themselves

123