Home
last modified time | relevance | path

Searched full:maxlen (Results 1 – 25 of 472) sorted by relevance

12345678910>>...19

/external/libexif/libexif/
Dexif-entry.c443 * \param[in] maxlen one less than the length of the buffer val
446 exif_entry_format_value(ExifEntry *e, char *val, size_t maxlen) in exif_entry_format_value() argument
459 if (!e->size || !maxlen) in exif_entry_format_value()
461 ++maxlen; /* include the terminating NUL */ in exif_entry_format_value()
464 snprintf (val, maxlen, _("%i bytes undefined data"), e->size); in exif_entry_format_value()
469 snprintf (val, maxlen, "0x%02x", v_byte); in exif_entry_format_value()
473 snprintf (val+len, maxlen-len, ", 0x%02x", v_byte); in exif_entry_format_value()
475 if (len >= maxlen-1) break; in exif_entry_format_value()
480 snprintf (val, maxlen, "%u", v_short); in exif_entry_format_value()
485 snprintf (val+len, maxlen-len, ", %u", v_short); in exif_entry_format_value()
[all …]
/external/lzma/C/
DLzFind.c386 (lenLimit > maxLen)
391 UInt32 *distances, unsigned maxLen) in Hc_GetMatchesSpec() argument
403 if (pb[maxLen] == cur[maxLen] && *pb == *cur) in Hc_GetMatchesSpec()
409 if (maxLen < len) in Hc_GetMatchesSpec()
411 maxLen = len; in Hc_GetMatchesSpec()
433 if (cur[maxLen] == cur[maxLen + diff]) in Hc_GetMatchesSpec()
447 if (maxLen < len) in Hc_GetMatchesSpec()
449 maxLen = len; in Hc_GetMatchesSpec()
467 UInt32 *distances, UInt32 maxLen) in GetMatchesSpec1() argument
491 if (maxLen < len) in GetMatchesSpec1()
[all …]
/external/llvm-project/llvm/tools/llvm-pdbutil/
DFormatUtil.cpp21 std::string llvm::pdb::truncateStringBack(StringRef S, uint32_t MaxLen) { in truncateStringBack() argument
22 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringBack()
25 assert(MaxLen >= 3); in truncateStringBack()
26 uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3); in truncateStringBack()
31 std::string llvm::pdb::truncateStringMiddle(StringRef S, uint32_t MaxLen) { in truncateStringMiddle() argument
32 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringMiddle()
35 assert(MaxLen >= 3); in truncateStringMiddle()
36 uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3); in truncateStringMiddle()
42 std::string llvm::pdb::truncateStringFront(StringRef S, uint32_t MaxLen) { in truncateStringFront() argument
43 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringFront()
[all …]
/external/iproute2/lib/
Dlibnetlink.c531 struct nlmsghdr *answer, size_t maxlen, in __rtnl_talk() argument
615 MIN(maxlen, h->nlmsg_len)); in __rtnl_talk()
629 MIN(maxlen, h->nlmsg_len)); in __rtnl_talk()
652 struct nlmsghdr *answer, size_t maxlen) in rtnl_talk() argument
654 return __rtnl_talk(rtnl, n, answer, maxlen, true, NULL); in rtnl_talk()
658 struct nlmsghdr *answer, size_t maxlen, in rtnl_talk_extack() argument
661 return __rtnl_talk(rtnl, n, answer, maxlen, true, errfn); in rtnl_talk_extack()
665 struct nlmsghdr *answer, size_t maxlen) in rtnl_talk_suppress_rtnl_errmsg() argument
667 return __rtnl_talk(rtnl, n, answer, maxlen, false, NULL); in rtnl_talk_suppress_rtnl_errmsg()
830 int addattr(struct nlmsghdr *n, int maxlen, int type) in addattr() argument
[all …]
/external/arm-optimized-routines/string/test/
Dstrnlen.c53 test (const struct fun *fun, int align, size_t maxlen, size_t len) in test() argument
58 size_t e = maxlen < len ? maxlen : len; in test()
75 size_t mte_len = maxlen < len + 1 ? maxlen : len + 1; in test()
77 r = fun->fun (s, maxlen); in test()
83 fun->name, s, maxlen, len, r, e); in test()
99 for (int maxlen = 0; maxlen < LEN; maxlen++) in main() local
100 test (funtab + i, a, maxlen, n); in main()
Dmemrchr.c51 size_t maxlen) in test() argument
55 char *f = seekpos < maxlen ? s + seekpos : NULL; in test()
71 s[((len ^ align) & 1) && seekpos < maxlen ? seekpos - 1 : len] = seekchar; in test()
73 s = tag_buffer (s, maxlen, fun->test_mte); in test()
74 p = fun->fun (s, seekchar, maxlen); in test()
75 untag_buffer (s, maxlen, fun->test_mte); in test()
81 seekchar, maxlen, p, f); in test()
/external/openssh/openbsd-compat/
Dbsd-snprintf.c170 static int dopr(char *buffer, size_t maxlen, const char *format,
172 static int fmtstr(char *buffer, size_t *currlen, size_t maxlen,
174 static int fmtint(char *buffer, size_t *currlen, size_t maxlen,
176 static int fmtfp(char *buffer, size_t *currlen, size_t maxlen,
180 dopr(char *buffer, size_t maxlen, const char *format, va_list args_in) in dopr() argument
210 DOPR_OUTCH(buffer, currlen, maxlen, ch); in dopr()
321 if (fmtint(buffer, &currlen, maxlen, in dopr()
341 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
361 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
383 if (fmtint(buffer, &currlen, maxlen, value, in dopr()
[all …]
/external/iproute2/include/
Dlibnetlink.h109 int addattr(struct nlmsghdr *n, int maxlen, int type);
110 int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data);
111 int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data);
112 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data);
113 int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data);
114 int addattrstrz(struct nlmsghdr *n, int maxlen, int type, const char *data);
116 int addattr_l(struct nlmsghdr *n, int maxlen, int type,
118 int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len);
119 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
121 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type,
[all …]
/external/llvm-project/libc/AOR_v20.02/string/test/
Dstrnlen.c48 static void test(const struct fun *fun, int align, int maxlen, int len) in test() argument
53 size_t e = maxlen < len ? maxlen : len - 1; in test()
64 r = fun->fun(s, maxlen); in test()
81 for (int maxlen = 0; maxlen < 100; maxlen++) in main() local
82 test(funtab+i, a, maxlen, n); in main()
/external/lzma/CS/7zip/Common/
DCommandLineParser.cs23 public int MaxLen; field in SevenZip.CommandLineParser.SwitchForm
27 int minLen, int maxLen, string postCharSet) in SwitchForm() argument
33 MaxLen = maxLen; in SwitchForm()
84 int maxLen = kNoLen; in ParseString()
88 if (switchLen <= maxLen || pos + switchLen > len) in ParseString()
94 maxLen = switchLen; in ParseString()
97 if (maxLen == kNoLen) in ParseString()
98 throw new Exception("maxLen == kNoLen"); in ParseString()
104 pos += maxLen; in ParseString()
155 for (int i = minLen; i < switchForm.MaxLen && pos < len; i++, pos++) in ParseString()
/external/tensorflow/tensorflow/python/keras/datasets/
Dimdb.py35 maxlen=None, argument
66 maxlen: int or None. Maximum sequence length.
83 possible index value is `num_words - 1`. If the `maxlen` argument was
84 specified, the largest possible sequence length is `maxlen`.
89 ValueError: in case `maxlen` is so low
134 if maxlen:
135 x_train, labels_train = _remove_long_seq(maxlen, x_train, labels_train)
136 x_test, labels_test = _remove_long_seq(maxlen, x_test, labels_test)
138 raise ValueError('After filtering for sequences shorter than maxlen=' +
139 str(maxlen) + ', no sequence was kept. '
[all …]
/external/oss-fuzz/projects/tmux/
Dbuild.sh30 MAXLEN=$(grep -Po 'max_len\s+=\s+\K\d+' "${OUT}/input-fuzzer.options")
34 split -a4 -db$MAXLEN - 24-bit-color.out.
36 split -a4 -db$MAXLEN - 256colors.out.
38 split -a4 -db$MAXLEN - UTF-8-demo.txt.
40 split -a4 -db$MAXLEN - alacritty.
42 split -a4 -db$MAXLEN - esctest.
44 split -a5 -db$MAXLEN - iterm2.
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/helper/
DAbbreviatorTest.java106 int maxLen = rh.nextInt(MAX_RANDOM_MAX_LEN) + fixedLen; in testTheories() local
107 if (maxLen <= 1) { in testTheories()
110 // System.out.println("maxLen="+maxLen); in testTheories()
111 int targetLen = (maxLen / 2) + rh.nextInt(maxLen / 2) + 1; in testTheories()
113 if (targetLen > maxLen) { in testTheories()
114 targetLen = maxLen; in testTheories()
116 String filename = rh.buildRandomFileName(averageLen, maxLen); in testTheories()
/external/libopus/src/
Drepacketizer.c103 unsigned char *data, opus_int32 maxlen, int self_delimited, int pad) in opus_repacketizer_out_range_impl() argument
130 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
139 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
145 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
151 if (count > 2 || (pad && tot_size < maxlen)) in opus_repacketizer_out_range_impl()
179 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
185 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
190 pad_amount = pad ? (maxlen-tot_size) : 0; in opus_repacketizer_out_range_impl()
224 while (ptr<data+maxlen) in opus_repacketizer_out_range_impl()
230 …ketizer_out_range(OpusRepacketizer *rp, int begin, int end, unsigned char *data, opus_int32 maxlen) in opus_repacketizer_out_range() argument
[all …]
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_libc.cpp171 uptr internal_strlcat(char *dst, const char *src, uptr maxlen) { in internal_strlcat() argument
173 const uptr dstlen = internal_strnlen(dst, maxlen); in internal_strlcat()
174 if (dstlen == maxlen) return maxlen + srclen; in internal_strlcat()
175 if (srclen < maxlen - dstlen) { in internal_strlcat()
178 internal_memmove(dst + dstlen, src, maxlen - dstlen - 1); in internal_strlcat()
179 dst[maxlen - 1] = '\0'; in internal_strlcat()
193 uptr internal_strlcpy(char *dst, const char *src, uptr maxlen) { in internal_strlcpy() argument
195 if (srclen < maxlen) { in internal_strlcpy()
197 } else if (maxlen != 0) { in internal_strlcpy()
198 internal_memmove(dst, src, maxlen - 1); in internal_strlcpy()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_libc.cc178 uptr internal_strlcat(char *dst, const char *src, uptr maxlen) { in internal_strlcat() argument
180 const uptr dstlen = internal_strnlen(dst, maxlen); in internal_strlcat()
181 if (dstlen == maxlen) return maxlen + srclen; in internal_strlcat()
182 if (srclen < maxlen - dstlen) { in internal_strlcat()
185 internal_memmove(dst + dstlen, src, maxlen - dstlen - 1); in internal_strlcat()
186 dst[maxlen - 1] = '\0'; in internal_strlcat()
200 uptr internal_strlcpy(char *dst, const char *src, uptr maxlen) { in internal_strlcpy() argument
202 if (srclen < maxlen) { in internal_strlcpy()
204 } else if (maxlen != 0) { in internal_strlcpy()
205 internal_memmove(dst, src, maxlen - 1); in internal_strlcpy()
[all …]
/external/python/cpython3/Lib/test/
Dtest_deque.py54 d = deque(it, maxlen=3)
56 self.assertEqual(repr(d), 'deque([7, 8, 9], maxlen=3)')
67 d = deque(range(200), maxlen=10)
80 d = deque(range(10), maxlen=None)
94 deque(it, maxlen=0)
98 d = deque(maxlen=0)
103 d = deque(maxlen=0)
108 self.assertEqual(deque().maxlen, None)
109 self.assertEqual(deque('abc').maxlen, None)
110 self.assertEqual(deque('abc', maxlen=4).maxlen, 4)
[all …]
/external/clang/test/Sema/
Denable_if.c24 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}}
29 inline size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function}} in strnlen() argument
34 return __strnlen_chk(s, maxlen, __builtin_object_size(s, 0)); in strnlen()
37 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate disabled: chosen when 'ma…
41 __attribute__((enable_if(maxlen <= __builtin_object_size(s, 0),
42 … "chosen when 'maxlen' is known to be less than or equal to the buffer size")))
45 size_t strnlen(const char *s, size_t maxlen) // expected-note{{candidate function has been explici…
49 __attribute__((enable_if(maxlen > __builtin_object_size(s, 0),
50 "chosen when 'maxlen' is larger than the buffer size")))
51 __attribute__((unavailable("'maxlen' is larger than the buffer size")));
[all …]
/external/webrtc/common_audio/resampler/
Dresampler.cc401 size_t maxLen, in Push() argument
410 static_cast<int16_t*>(malloc(maxLen / 2 * sizeof(int16_t))); in Push()
412 static_cast<int16_t*>(malloc(maxLen / 2 * sizeof(int16_t))); in Push()
425 res |= helper_left_->Push(left, lengthIn, out_left, maxLen / 2, in Push()
427 res |= helper_right_->Push(right, lengthIn, out_right, maxLen / 2, in Push()
464 if (maxLen < (lengthIn * 2)) { in Push()
478 if (maxLen < (lengthIn * 3)) { in Push()
492 if (maxLen < (lengthIn * 4)) { in Push()
512 if (maxLen < (lengthIn * 6)) { in Push()
541 if (maxLen < (lengthIn * 12)) { in Push()
[all …]
/external/fastrpc/inc/
Dadsp_perf.h65 * int numKeys = 0, maxLen = 0, ii;
68 * VERIFY(0 == adsp_perf_get_keys(keys, 512, &maxLen, &numKeys));
69 * assert(maxLen < 512);
84 * int numKeys, maxLen, ii;
88 * VERIFY(0 == adsp_perf_get_keys(keys, 512, &maxLen, &numKeys));
91 * assert(maxLen < 512);
105 __QAIC_HEADER_EXPORT int __QAIC_HEADER(adsp_perf_get_keys)(char* keys, int keysLen, int* maxLen, in…
/external/fastrpc/src/
Dfastrpc_perf.c78 int maxLen; member
112 VERIFY(pdsp->maxLen < PERF_KEY_STR_MAX); in get_perf_adsp()
153 int numKeys = 0, maxLen = 0; in perf_dsp_enable() local
161 VERIFY(0 == adsp_perf_get_keys(keys, PERF_KEY_STR_MAX, &maxLen, &numKeys)); in perf_dsp_enable()
162 VERIFY(maxLen < PERF_KEY_STR_MAX); in perf_dsp_enable()
163 gperf.dsp.maxLen = maxLen; in perf_dsp_enable()
171 FARF(HIGH, "keys enable done maxLen %d numKeys %d", maxLen, numKeys); in perf_dsp_enable()
/external/toybox/toys/pending/
Dfold.c34 int bufsz, len = 0, maxlen; local
36 if (toys.optflags & FLAG_w) maxlen = TT.width;
37 else if (toys.optflags & FLAG_u) maxlen = 0;
38 else maxlen = 80;
79 if (maxlen > 0 && len >= maxlen && buf[pos+1] != '\n' && buf[pos+1] != '\b') {
/external/iproute2/man/man3/
Dlibnetlink.344 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data)
46 int addattr_l(struct nlmsghdr *n, int maxlen, int type, void *data, int alen)
48 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data)
50 int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, int alen)
157 .B maxlen.
170 .B maxlen.
/external/vboot_reference/futility/
Dmisc.c84 uint32_t maxlen = gbb->header_size; in futil_valid_gbb_header() local
85 maxlen = max(maxlen, in futil_valid_gbb_header()
87 maxlen = max(maxlen, in futil_valid_gbb_header()
89 maxlen = max(maxlen, in futil_valid_gbb_header()
91 maxlen = max(maxlen, in futil_valid_gbb_header()
93 *maxlen_ptr = maxlen; in futil_valid_gbb_header()
/external/bzip2/
Dhuffman.c66 Int32 maxLen ) in BZ2_hbMakeCodeLengths() argument
120 if (j > maxLen) tooLong = True; in BZ2_hbMakeCodeLengths()
130 maxLen, which up to and including version 1.0.2 was 20 bits, in BZ2_hbMakeCodeLengths()
131 which is extremely unlikely. In version 1.0.3 maxLen was in BZ2_hbMakeCodeLengths()
155 Int32 maxLen, in BZ2_hbAssignCodes() argument
161 for (n = minLen; n <= maxLen; n++) { in BZ2_hbAssignCodes()
175 Int32 maxLen, in BZ2_hbCreateDecodeTables() argument
181 for (i = minLen; i <= maxLen; i++) in BZ2_hbCreateDecodeTables()
193 for (i = minLen; i <= maxLen; i++) { in BZ2_hbCreateDecodeTables()
198 for (i = minLen + 1; i <= maxLen; i++) in BZ2_hbCreateDecodeTables()

12345678910>>...19