/aosp12/bionic/libc/bionic/ |
H A D | strnlen.c | 30 size_t strnlen(const char* str, size_t maxlen) in strnlen() argument 32 char* p = memchr(str, 0, maxlen); in strnlen() 35 return maxlen; in strnlen()
|
H A D | fts.c | 558 size_t len, maxlen; in fts_build() local 644 maxlen = sp->fts_pathlen - len; in fts_build() 662 if (strlen(dp->d_name) >= maxlen) { /* include space for NUL */ in fts_build() 685 maxlen = sp->fts_pathlen - len; in fts_build()
|
/aosp12/frameworks/base/cmds/svc/src/com/android/commands/svc/ |
H A D | Svc.java | 77 int maxlen = 0; 81 if (maxlen < len) { 82 maxlen = len; 85 String format = " %-" + maxlen + "s %s";
|
/aosp12/bionic/libc/upstream-freebsd/lib/libc/string/ |
H A D | wcsnlen.c | 35 wcsnlen(const wchar_t *s, size_t maxlen) in wcsnlen() argument 39 for (len = 0; len < maxlen; len++, s++) { in wcsnlen()
|
/aosp12/bionic/libc/upstream-openbsd/lib/libc/string/ |
H A D | strndup.c | 26 strndup(const char *str, size_t maxlen) in strndup() argument 31 len = strnlen(str, maxlen); in strndup()
|
/aosp12/bionic/libc/upstream-netbsd/lib/libc/inet/ |
H A D | nsap_addr.c | 58 inet_nsap_addr(const char *ascii, u_char *binary, int maxlen) { in inet_nsap_addr() argument 69 while ((c = *ascii++) != '\0' && len < (u_int)maxlen) { in inet_nsap_addr()
|
/aosp12/hardware/samsung/nfc/halimpl/src/ |
H A D | util.cc | 38 bool willBeContinuous(char* buffer, size_t maxlen) { in willBeContinuous() argument 43 len = strnlen(buffer, maxlen); in willBeContinuous() 44 if (len == maxlen && buffer[len - 2] != '\n') return true; in willBeContinuous()
|
/aosp12/system/netd/libnetdutils/ |
H A D | InternetAddresses.cpp | 143 uint8_t maxlen = (ip.family() == AF_INET) ? 32 : 128; in forString() local 144 if (prefixlen > maxlen) return false; in forString()
|
/aosp12/frameworks/native/services/surfaceflinger/Scheduler/ |
H A D | VSyncDispatchTimerQueue.h | 161 static constexpr size_t maxlen = kMaxNamePrint + arrayLen(kTraceNamePrefix) + member 163 std::array<char, maxlen> str_buffer;
|
H A D | Timer.cpp | 165 static constexpr size_t maxlen = arrayLen(traceNamePrefix) + max64print; in dispatch() local 166 std::array<char, maxlen> str_buffer; in dispatch()
|
/aosp12/system/core/libutils/ |
H A D | Unicode.cpp | 233 size_t strnlen16(const char16_t *s, size_t maxlen) in strnlen16() argument 239 while ((maxlen > 0) && *ss) { in strnlen16() 241 maxlen--; in strnlen16()
|
/aosp12/frameworks/native/opengl/tools/glgen2/registry/ |
H A D | reg.py | 800 def dumpReg(self, maxlen = 40, filehandle = sys.stdout): argument 808 write(' Type', name, '->', etree.tostring(tobj.elem)[0:maxlen], file=filehandle) 812 write(' Group', name, '->', etree.tostring(gobj.elem)[0:maxlen], file=filehandle) 816 write(' Enum', name, '->', etree.tostring(eobj.elem)[0:maxlen], file=filehandle) 820 write(' Command', name, '->', etree.tostring(cobj.elem)[0:maxlen], file=filehandle) 824 etree.tostring(self.apidict[key].elem)[0:maxlen], file=filehandle) 828 etree.tostring(self.extdict[key].elem)[0:maxlen], file=filehandle)
|
/aosp12/system/logging/liblog/include_vndk/log/ |
H A D | log_event_list.h | 57 size_t maxlen);
|
/aosp12/hardware/interfaces/broadcastradio/common/utils2x/ |
H A D | Utils.cpp | 396 constexpr size_t maxlen = 8; in make_hdradio_station_name() local 399 shortName.reserve(maxlen); in make_hdradio_station_name() 405 if (shortName.length() >= maxlen) break; in make_hdradio_station_name()
|
/aosp12/hardware/broadcom/wlan/bcmdhd/dhdutil/include/ |
H A D | dhdioctl.h | 98 uint maxlen; /* Maximum length of packets to send */ member
|
H A D | bcmutils.h | 226 uint16 maxlen; member 260 extern int pktpool_setmaxlen(pktpool_t *pktp, uint16 maxlen); 261 extern int pktpool_setmaxlen_strict(osl_t *osh, pktpool_t *pktp, uint16 maxlen); 268 #define pktpool_maxlen(pp) (POOLPTR(pp)->maxlen)
|
/aosp12/system/bt/gd/cert/ |
H A D | os_utils.py | 107 last_20_lines = deque(maxlen=20)
|
/aosp12/system/logging/liblog/ |
H A D | log_event_list.cpp | 204 int android_log_write_string8_len(android_log_context context, const char* value, size_t maxlen) { in android_log_write_string8_len() argument 214 int32_t len = strnlen(value, maxlen); in android_log_write_string8_len()
|
H A D | README.md | 86 int android_log_write_string8_len(android_log_context ctx, const char *value, size_t maxlen)
|
/aosp12/system/logging/liblog/include/log/ |
H A D | log_event_list.h | 75 size_t maxlen);
|
/aosp12/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
H A D | dhdu.c | 655 pktgen.maxlen = opts.uval; in dhd_pktgen() 658 pktgen.minlen = pktgen.maxlen = opts.uval; in dhd_pktgen() 684 if (pktgen.maxlen < pktgen.minlen) { in dhd_pktgen() 685 fprintf(stderr, "min/max error (%d/%d)\n", pktgen.minlen, pktgen.maxlen); in dhd_pktgen() 707 str, pktgen.count, pktgen.minlen, pktgen.maxlen, pktgen.freq); in dhd_pktgen()
|
/aosp12/system/bt/stack/l2cap/ |
H A D | l2c_utils.cc | 962 uint16_t maxlen; in l2cu_send_peer_echo_rsp() local 978 maxlen = (L2CAP_CMD_BUF_SIZE > acl_packet_size) in l2cu_send_peer_echo_rsp() 981 maxlen -= in l2cu_send_peer_echo_rsp() 985 if (data_len > maxlen) data_len = 0; in l2cu_send_peer_echo_rsp()
|