Home
last modified time | relevance | path

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

123

/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/init/
Drlimit_parser.cpp67 rlimit limit; in ParseRlimit() local
68 if (!ParseUint(args[2], &limit.rlim_cur)) { in ParseRlimit()
71 if (!ParseUint(args[3], &limit.rlim_max)) { in ParseRlimit()
74 return {resource, limit}; in ParseRlimit()
/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/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,
131 bool MemUnreachable::GetUnreachableMemory(allocator::vector<Leak>& leaks, size_t limit, in GetUnreachableMemory() argument
203 if (leaks.size() > limit) { in GetUnreachableMemory()
204 leaks.resize(limit); in GetUnreachableMemory()
272 bool GetUnreachableMemory(UnreachableMemoryInfo& info, size_t limit) { in GetUnreachableMemory() argument
350 bool ok = unreachable.GetUnreachableMemory(leaks, limit, &num_leaks, &leak_bytes); in GetUnreachableMemory()
513 std::string GetUnreachableMemoryString(bool log_contents, size_t limit) { in GetUnreachableMemoryString() argument
515 if (!GetUnreachableMemory(info, limit)) { in GetUnreachableMemoryString()
527 bool LogUnreachableMemory(bool log_contents, size_t limit) { in LogUnreachableMemory() argument
529 if (!android::GetUnreachableMemory(info, limit)) { in LogUnreachableMemory()
DREADME.md17 #### `bool LogUnreachableMemory(bool log_contents, size_t limit)` ####
18 …y to the log. A summary is always written, followed by details of up to `limit` leaks. If `log_c…
26 ####`bool GetUnreachableMemory(UnreachableMemoryInfo& info, size_t limit = 100)`####
27 …MemoryInfo` object with information on leaks, including details on up to `limit` leaks. Returns t…
29 #### `std::string GetUnreachableMemoryString(bool log_contents = false, size_t limit = 100)` ####
30 …eaked memory. A summary is always written, followed by details of up to `limit` leaks. If `log_c…
DHeapWalker.cpp119 bool HeapWalker::Leaked(allocator::vector<Range>& leaked, size_t limit, size_t* num_leaks_out, in Leaked() argument
135 if (n++ < limit) { in Leaked()
DHeapWalker.h73 bool Leaked(allocator::vector<Range>&, size_t limit, size_t* num_leaks, size_t* leak_bytes);
/system/media/audio_utils/include/audio_utils/
Dmono_blend.h44 bool limit = false);
/system/extras/perfprofd/scripts/
Dperf_proto_stack_sqlite_flame.py113 def read(self, local_threshold_in_percent, global_threshold_in_percent, limit): argument
159 if limit is not None and count >= limit:
229 sql_out.read(args.threshold, args.global_threshold, args.limit)
/system/extras/iotop/
Diotop.cpp105 int limit = -1; in main() local
137 limit = atoi(optarg); in main()
243 int n = limit; in main()
/system/libhidl/base/include/hidl/
DTaskRunner.h54 void start(size_t limit);
/system/netd/server/dns/
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/core/fastboot/
Dfastboot.cpp784 uint64_t limit; in get_target_sparse_limit() local
785 if (!android::base::ParseUint(max_download_size, &limit)) { in get_target_sparse_limit()
789 if (limit > 0) { in get_target_sparse_limit()
790 fprintf(stderr, "target reported max download size of %" PRId64 " bytes\n", limit); in get_target_sparse_limit()
792 return limit; in get_target_sparse_limit()
796 int64_t limit; in get_sparse_limit() local
801 limit = sparse_limit; in get_sparse_limit()
807 limit = target_sparse_limit; in get_sparse_limit()
813 if (size > limit) { in get_sparse_limit()
814 return std::min(limit, RESPARSE_LIMIT); in get_sparse_limit()
[all …]
/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/netd/libnetdutils/
DSlice.cpp56 << ", limit: " << reinterpret_cast<void*>(slice.limit()) << ", size: 0x" in operator <<()
DSliceTest.cpp72 EXPECT_EQ(reinterpret_cast<uint8_t*>(mRaw.data()) + mRaw.size(), s1.limit()); in TEST_F()
/system/netd/tests/dns_responder/
Ddns_tls_frontend.cpp380 int limit = timeoutMs / intervalMs; in waitForQueries() local
381 for (int count = 0; count <= limit; ++count) { in waitForQueries()
389 ALOGD("Query arrived in %d/%d of allotted time", count, limit); in waitForQueries()
/system/extras/simpleperf/
Denvironment.cpp685 rlimit limit; in AllowMoreOpenedFiles() local
686 if (getrlimit(RLIMIT_NOFILE, &limit) == 0) { in AllowMoreOpenedFiles()
687 limit.rlim_cur = limit.rlim_max; in AllowMoreOpenedFiles()
688 setrlimit(RLIMIT_NOFILE, &limit); in AllowMoreOpenedFiles()
/system/core/trusty/gatekeeper/
DAndroid.bp19 // named (liblights.panda), and must build everywhere, or limit themselves
/system/core/trusty/keymaster/
DAndroid.bp19 // named (liblights.panda), and must build everywhere, or limit themselves

123