/external/libexif/libexif/olympus/ |
D | mnote-olympus-entry.c | 33 #define CF(format,target,v,maxlen) \ argument 36 snprintf (v, maxlen, \ 45 #define CF2(format,target1,target2,v,maxlen) \ argument 48 snprintf (v, maxlen, \ 58 #define CC(number,target,v,maxlen) \ argument 61 snprintf (v, maxlen, \ 68 #define CC2(number,t1,t2,v,maxlen) \ argument 71 snprintf (v, maxlen, \ 273 mnote_olympus_entry_get_value (MnoteOlympusEntry *entry, char *v, unsigned int maxlen) in mnote_olympus_entry_get_value() argument 287 memset (v, 0, maxlen); in mnote_olympus_entry_get_value() [all …]
|
/external/libexif/libexif/ |
D | exif-entry.c | 441 * \param[in] maxlen one less than the length of the buffer val 444 exif_entry_format_value(ExifEntry *e, char *val, size_t maxlen) in exif_entry_format_value() argument 457 if (!e->size || !maxlen) in exif_entry_format_value() 459 ++maxlen; /* include the terminating NUL */ in exif_entry_format_value() 462 snprintf (val, maxlen, _("%i bytes undefined data"), e->size); in exif_entry_format_value() 467 snprintf (val, maxlen, "0x%02x", v_byte); in exif_entry_format_value() 471 snprintf (val+len, maxlen-len, ", 0x%02x", v_byte); in exif_entry_format_value() 473 if (len >= maxlen-1) break; in exif_entry_format_value() 478 snprintf (val, maxlen, "%u", v_short); in exif_entry_format_value() 483 snprintf (val+len, maxlen-len, ", %u", v_short); in exif_entry_format_value() [all …]
|
/external/lzma/C/ |
D | LzFind.c | 386 (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/libexif/libexif/fuji/ |
D | mnote-fuji-entry.c | 31 #define CF(format,target,v,maxlen) \ argument 34 snprintf (v, maxlen, \ 43 #define CC(number,target,v,maxlen) \ argument 46 snprintf (v, maxlen, \ 191 char *val, unsigned int maxlen) in mnote_fuji_entry_get_value() argument 202 memset (val, 0, maxlen); in mnote_fuji_entry_get_value() 203 maxlen--; in mnote_fuji_entry_get_value() 207 CF (entry->format, EXIF_FORMAT_UNDEFINED, val, maxlen); in mnote_fuji_entry_get_value() 208 CC (entry->components, 4, val, maxlen); in mnote_fuji_entry_get_value() 209 memcpy (val, entry->data, MIN(maxlen, entry->size)); in mnote_fuji_entry_get_value() [all …]
|
/external/libexif/libexif/pentax/ |
D | mnote-pentax-entry.c | 35 #define CF(format,target,v,maxlen) \ argument 38 snprintf (v, maxlen, \ 47 #define CC(number,target,v,maxlen) \ argument 50 snprintf (v, maxlen, \ 57 #define CC2(number,t1,t2,v,maxlen) \ argument 60 snprintf (v, maxlen, \ 309 char *val, unsigned int maxlen) in mnote_pentax_entry_get_value() argument 317 memset (val, 0, maxlen); in mnote_pentax_entry_get_value() 318 maxlen--; in mnote_pentax_entry_get_value() 341 CF (entry->format, EXIF_FORMAT_SHORT, val, maxlen); in mnote_pentax_entry_get_value() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/ |
D | FormatUtil.cpp | 22 std::string llvm::pdb::truncateStringBack(StringRef S, uint32_t MaxLen) { in truncateStringBack() argument 23 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringBack() 26 assert(MaxLen >= 3); in truncateStringBack() 27 uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3); in truncateStringBack() 32 std::string llvm::pdb::truncateStringMiddle(StringRef S, uint32_t MaxLen) { in truncateStringMiddle() argument 33 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringMiddle() 36 assert(MaxLen >= 3); in truncateStringMiddle() 37 uint32_t FinalLen = std::min<size_t>(S.size(), MaxLen - 3); in truncateStringMiddle() 43 std::string llvm::pdb::truncateStringFront(StringRef S, uint32_t MaxLen) { in truncateStringFront() argument 44 if (MaxLen == 0 || S.size() <= MaxLen || S.size() <= 3) in truncateStringFront() [all …]
|
/external/libexif/libexif/canon/ |
D | mnote-canon-entry.c | 36 #define CF(format,target,v,maxlen) \ argument 39 snprintf (v, maxlen, \ 48 #define CC(number,target,v,maxlen) \ argument 51 snprintf (v, maxlen, \ 57 #define CC2(number,t1,t2,v,maxlen) \ argument 60 snprintf (v, maxlen, \ 443 unsigned int t, ExifShort vs, char *val, unsigned int maxlen) in canon_search_table_value() argument 456 strncpy (val, _(table[j].name), maxlen); in canon_search_table_value() 459 snprintf (val, maxlen, "0x%04x", vs); in canon_search_table_value() 465 unsigned int t, ExifShort vs, char *val, unsigned int maxlen) in canon_search_table_bitfield() argument [all …]
|
/external/u-boot/lib/ |
D | membuff.c | 21 static int membuff_putrawflex(struct membuff *mb, int maxlen, bool update, in membuff_putrawflex() argument 42 if (maxlen >= 0 && len > maxlen) in membuff_putrawflex() 43 len = maxlen; in membuff_putrawflex() 53 if ((maxlen < 0 || len < maxlen) && mb->tail != mb->start) { in membuff_putrawflex() 63 if (maxlen >= 0 && len > maxlen) in membuff_putrawflex() 64 len = maxlen; in membuff_putrawflex() 75 int membuff_putraw(struct membuff *mb, int maxlen, bool update, char **data) in membuff_putraw() argument 81 size = membuff_putrawflex(mb, maxlen, update, &datap, &offset); in membuff_putraw() 98 int membuff_getraw(struct membuff *mb, int maxlen, bool update, char **data) in membuff_getraw() argument 115 if (maxlen >= 0 && len > maxlen) in membuff_getraw() [all …]
|
/external/iproute2/lib/ |
D | libnetlink.c | 531 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/openssh/openbsd-compat/ |
D | bsd-snprintf.c | 170 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/ |
D | libnetlink.h | 109 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/lzma/CS/7zip/Common/ |
D | CommandLineParser.cs | 23 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/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/helper/ |
D | AbbreviatorTest.java | 106 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/ |
D | repacketizer.c | 103 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/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_libc.cc | 178 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/ |
D | test_deque.py | 54 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/u-boot/include/ |
D | membuff.h | 57 * function may not return @maxlen even if there is enough space in the 62 * @maxlen: the number of bytes we want to write 67 int membuff_putraw(struct membuff *mb, int maxlen, bool update, char **data); 79 * @maxlen: maximum number of bytes to get 85 int membuff_getraw(struct membuff *mb, int maxlen, bool update, char **data); 117 * Copies any available data (up to @maxlen bytes) to @buff and removes it 122 * @maxlen: maximum number of bytes to read 125 int membuff_get(struct membuff *mb, char *buff, int maxlen); 188 * Reads a line of text of up to 'maxlen' characters from a membuff and puts 194 * @maxlen: Maximum line length (excluding terminator) [all …]
|
/external/clang/test/Sema/ |
D | enable_if.c | 24 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/webrtc/common_audio/resampler/ |
D | resampler.cc | 405 int16_t* samplesOut, size_t maxLen, size_t &outLen) in Push() argument 412 int16_t* out_left = (int16_t*)malloc(maxLen / 2 * sizeof(int16_t)); in Push() 414 (int16_t*)malloc(maxLen / 2 * sizeof(int16_t)); in Push() 428 res |= slave_left_->Push(left, lengthIn, out_left, maxLen / 2, actualOutLen_left); in Push() 429 res |= slave_right_->Push(right, lengthIn, out_right, maxLen / 2, actualOutLen_right); in Push() 468 if (maxLen < (lengthIn * 2)) in Push() 483 if (maxLen < (lengthIn * 3)) in Push() 499 if (maxLen < (lengthIn * 4)) in Push() 519 if (maxLen < (lengthIn * 6)) in Push() 549 if (maxLen < (lengthIn * 12)) { in Push() [all …]
|
/external/tensorflow/tensorflow/python/keras/datasets/ |
D | imdb.py | 35 maxlen=None, argument 50 maxlen: sequences longer than this will be filtered out. 63 ValueError: in case `maxlen` is so low 108 if maxlen: 109 xs, labels = _remove_long_seq(maxlen, xs, labels) 111 raise ValueError('After filtering for sequences shorter than maxlen=' + 112 str(maxlen) + ', no sequence was kept. ' 113 'Increase maxlen.')
|
/external/syzkaller/prog/ |
D | mutation.go | 247 minLen, maxLen := uint64(0), maxBlobLen 249 minLen, maxLen = t.RangeBegin, t.RangeEnd 251 a.data = mutateData(r, data, minLen, maxLen) 255 minLen, maxLen := uint64(0), maxBlobLen 257 minLen, maxLen = t.TypeSize, t.TypeSize 259 a.data = mutateData(r, data, minLen, maxLen) 417 func mutateData(r *randGen, data []byte, minLen, maxLen uint64) []byte { 420 data, stop = f(r, data, minLen, maxLen) 427 var mutateDataFuncs = [...]func(r *randGen, data []byte, minLen, maxLen uint64) ([]byte, bool){ 430 func(r *randGen, data []byte, minLen, maxLen uint64) ([]byte, bool) { [all …]
|
/external/python/cpython3/Modules/ |
D | _collectionsmodule.c | 84 Py_ssize_t maxlen; /* maxlen is -1 for unbounded deques */ member 172 deque->maxlen = -1; in deque_new() 253 /* The deque's size limit is d.maxlen. The limit can be zero or positive. 254 * If there is no limit, then d.maxlen == -1. 262 * unsigned test that returns true whenever 0 <= maxlen < Py_SIZE(deque). 265 #define NEEDS_TRIM(deque, maxlen) ((size_t)(maxlen) < (size_t)(Py_SIZE(deque))) argument 268 deque_append_internal(dequeobject *deque, PyObject *item, Py_ssize_t maxlen) in deque_append_internal() argument 284 if (NEEDS_TRIM(deque, maxlen)) { in deque_append_internal() 297 if (deque_append_internal(deque, item, deque->maxlen) < 0) in deque_append() 305 deque_appendleft_internal(dequeobject *deque, PyObject *item, Py_ssize_t maxlen) in deque_appendleft_internal() argument [all …]
|
/external/iproute2/man/man3/ |
D | libnetlink.3 | 44 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/toybox/toys/pending/ |
D | fold.c | 34 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/vboot_reference/futility/ |
D | misc.c | 84 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()
|