Home
last modified time | relevance | path

Searched refs:maxlength (Results 1 – 25 of 94) sorted by relevance

1234

/third_party/gettext/gettext-runtime/intl/
Dprintf.c231 size_t maxlength = length; in libintl_vsnprintf() local
237 if (maxlength > 0) in libintl_vsnprintf()
240 (length < maxlength ? length : maxlength - 1); in libintl_vsnprintf()
412 size_t maxlength = length; in libintl_vswprintf() local
418 if (maxlength > 0) in libintl_vswprintf()
421 (length < maxlength ? length : maxlength - 1); in libintl_vswprintf()
430 if (length >= maxlength) in libintl_vswprintf()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUCharacterName.java799 int add(int set[], int maxlength) in add() argument
841 if (length > maxlength) { in add()
844 return maxlength; in add()
1456 private int addAlgorithmName(int maxlength) in addAlgorithmName() argument
1460 result = m_algorithm_[i].add(m_nameSet_, maxlength); in addAlgorithmName()
1461 if (result > maxlength) { in addAlgorithmName()
1462 maxlength = result; in addAlgorithmName()
1465 return maxlength; in addAlgorithmName()
1474 private int addExtendedName(int maxlength) in addExtendedName() argument
1483 if (length > maxlength) { in addExtendedName()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DUCharacterName.java800 int add(int set[], int maxlength) in add() argument
842 if (length > maxlength) { in add()
845 return maxlength; in add()
1457 private int addAlgorithmName(int maxlength) in addAlgorithmName() argument
1461 result = m_algorithm_[i].add(m_nameSet_, maxlength); in addAlgorithmName()
1462 if (result > maxlength) { in addAlgorithmName()
1463 maxlength = result; in addAlgorithmName()
1466 return maxlength; in addAlgorithmName()
1475 private int addExtendedName(int maxlength) in addExtendedName() argument
1484 if (length > maxlength) { in addExtendedName()
[all …]
/third_party/pulseaudio/src/tests/
Dmemblockq-test.c122 size_t maxlength = pa_memblockq_get_maxlength(bq); in check_queue_invariants() local
133 ck_assert_int_eq(maxlength % base, 0); in check_queue_invariants()
134 ck_assert_int_ge(maxlength, base); in check_queue_invariants()
141 ck_assert_int_le(tlength, maxlength); in check_queue_invariants()
162 ck_assert_int_le(length, maxlength); in check_queue_invariants()
194 size_t maxlength = 100; in START_TEST() local
205 …bq = pa_memblockq_new("test memblockq", idx, maxlength, tlength, &ss, prebuf, minreq, maxrewind, &… in START_TEST()
211 ck_assert_int_eq(pa_memblockq_get_maxlength(bq), maxlength); in START_TEST()
347 size_t maxlength = 60; in START_TEST() local
358 …bq = pa_memblockq_new("test memblockq", idx, maxlength, tlength, &ss, prebuf, minreq, maxrewind, &… in START_TEST()
[all …]
Dlo-test-util.c214 buffer_attr.maxlength = -1; in context_state_callback()
230 buffer_attr.maxlength = -1; in context_state_callback()
Dextended-test.c49 .maxlength = SAMPLE_HZ*sizeof(float)*NSTREAMS, /* exactly space for the entire play time */
Dconnect-stress.c116 .maxlength = SAMPLE_HZ * sizeof(float) * NSTREAMS,
Dsync-playback.c55 .maxlength = SAMPLE_HZ*sizeof(float)*NSTREAMS, /* exactly space for the entire play time */
Dinterpol-test.c110 attr.maxlength = (uint32_t) -1; in context_state_callback()
/third_party/pulseaudio/src/pulsecore/
Dmemblockq.c51 size_t maxlength, tlength, base, prebuf, minreq, maxrewind; member
64 size_t maxlength, in pa_memblockq_new() argument
85 …(unsigned long) maxlength, (unsigned long) tlength, (unsigned long) bq->base, (unsigned long) preb… in pa_memblockq_new()
89 pa_memblockq_set_maxlength(bq, maxlength); in pa_memblockq_new()
96 …(unsigned long) bq->maxlength, (unsigned long) bq->tlength, (unsigned long) bq->base, (unsigned lo… in pa_memblockq_new()
241 if (bq->write_index + (int64_t) l - bq->read_index > (int64_t) bq->maxlength) in can_push()
810 return bq->maxlength; in pa_memblockq_get_maxlength()
847 void pa_memblockq_set_maxlength(pa_memblockq *bq, size_t maxlength) { in pa_memblockq_set_maxlength() argument
850 bq->maxlength = ((maxlength+bq->base-1)/bq->base)*bq->base; in pa_memblockq_set_maxlength()
852 if (bq->maxlength < bq->base) in pa_memblockq_set_maxlength()
[all …]
Dmemblockq.h69 size_t maxlength,
159 void pa_memblockq_set_maxlength(pa_memblockq *memblockq, size_t maxlength); /* might modify tlength…
Dprotocol-native.c404 … if (s->buffer_attr.maxlength == (uint32_t) -1 || s->buffer_attr.maxlength > MAX_MEMBLOCKQ_LENGTH) in fix_record_buffer_attr_pre()
405 s->buffer_attr.maxlength = MAX_MEMBLOCKQ_LENGTH; in fix_record_buffer_attr_pre()
406 if (s->buffer_attr.maxlength <= 0) in fix_record_buffer_attr_pre()
407 s->buffer_attr.maxlength = (uint32_t) frame_size; in fix_record_buffer_attr_pre()
495 if (s->buffer_attr.fragsize > s->buffer_attr.maxlength) in fix_record_buffer_attr_post()
496 s->buffer_attr.fragsize = s->buffer_attr.maxlength; in fix_record_buffer_attr_post()
592 s->buffer_attr.maxlength, in record_stream_new()
757 pa_tagstruct_putu32(t, s->buffer_attr.maxlength); in playback_stream_process_msg()
780 (long) s->buffer_attr_req.maxlength, in fix_playback_buffer_attr()
786 …(unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.maxlength, &s->sink_input->sample_spec) / PA_… in fix_playback_buffer_attr()
[all …]
/third_party/ltp/testcases/kernel/hotplug/memory_hotplug/
Dsegment.c676 size_t length, maxlength; in segment_touch() local
695 maxlength = segp->seg_length - offset; in segment_touch()
704 if (length == 0 || length > maxlength) in segment_touch()
705 length = maxlength; in segment_touch()
820 size_t length, maxlength; in segment_mbind() local
844 maxlength = segp->seg_length - offset; in segment_mbind()
853 if (length == 0 || length > maxlength) in segment_mbind()
854 length = maxlength; in segment_mbind()
882 size_t length, maxlength; in segment_location() local
907 maxlength = segp->seg_length - offset; in segment_location()
[all …]
/third_party/curl/include/curl/
Dmprintf.h36 CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength,
41 CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength,
/third_party/openssl/apps/
Dtsget.in20 my ($maxlength, $state) = @_;
25 $data_len = $maxlength if $data_len > $maxlength;
/third_party/ltp/testcases/kernel/fs/doio/
Diogen.c581 int minlength, maxlength, laststart, lastend; in form_iorequest() local
671 maxlength = fptr->f_length - offset; in form_iorequest()
672 if (maxlength > Maxtrans) in form_iorequest()
673 maxlength = Maxtrans; in form_iorequest()
675 length = random_range(minlength, maxlength, mult, &errp); in form_iorequest()
679 TagName, minlength, maxlength, mult); in form_iorequest()
686 maxlength = laststart; in form_iorequest()
688 if (maxlength > Maxtrans) in form_iorequest()
689 maxlength = Maxtrans; in form_iorequest()
691 if (minlength > maxlength) { in form_iorequest()
[all …]
/third_party/pulseaudio/src/pulse/
Dstream.c151 s->buffer_attr.maxlength = (uint32_t) -1; in pa_stream_new_with_proplist_internal()
502 uint32_t maxlength = 0, fragsize = 0, minreq = 0, tlength = 0, prebuf = 0; in pa_command_stream_moved() local
528 if (pa_tagstruct_getu32(t, &maxlength) < 0 || in pa_command_stream_moved()
535 if (pa_tagstruct_getu32(t, &maxlength) < 0 || in pa_command_stream_moved()
568 s->buffer_attr.maxlength = maxlength; in pa_command_stream_moved()
602 uint32_t maxlength = 0, fragsize = 0, minreq = 0, tlength = 0, prebuf = 0; in pa_command_stream_buffer_attr() local
623 if (pa_tagstruct_getu32(t, &maxlength) < 0 || in pa_command_stream_buffer_attr()
630 if (pa_tagstruct_getu32(t, &maxlength) < 0 || in pa_command_stream_buffer_attr()
656 s->buffer_attr.maxlength = maxlength; in pa_command_stream_buffer_attr()
1005 attr->maxlength = (uint32_t) -1; in patch_buffer_attr()
[all …]
/third_party/ltp/testcases/network/nfsv4/acl/
Drandom_gen.py152 def createOneNameRandomLength(self,maxlength): argument
154 l=random.randint(0,maxlength)
/third_party/curl/tests/data/
Dtest113582 CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength,
86 CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength,
/third_party/curl/lib/
Dmprintf.c1007 int curl_mvsnprintf(char *buffer, size_t maxlength, const char *format, in curl_mvsnprintf() argument
1015 info.max = maxlength; in curl_mvsnprintf()
1031 int curl_msnprintf(char *buffer, size_t maxlength, const char *format, ...) in curl_msnprintf() argument
1036 retcode = curl_mvsnprintf(buffer, maxlength, format, ap_save); in curl_msnprintf()
/third_party/pulseaudio/src/modules/
Dmodule-tunnel.c233 uint32_t maxlength; member
342 uint32_t channel, maxlength, tlength = 0, fragsize, prebuf, minreq; in command_stream_buffer_attr_changed() local
351 pa_tagstruct_getu32(t, &maxlength) < 0) { in command_stream_buffer_attr_changed()
1494 if (pa_tagstruct_getu32(t, &u->maxlength) < 0 || in create_stream_callback()
1500 if (pa_tagstruct_getu32(t, &u->maxlength) < 0 || in create_stream_callback()
1658 u->maxlength = 4*1024*1024; in setup_complete_callback()
1679 pa_tagstruct_putu32(reply, u->maxlength); in setup_complete_callback()
1698 pa_tagstruct_putu32(reply, u->maxlength); in setup_complete_callback()
2223 u->maxlength = (uint32_t) -1; in pa__init()
/third_party/python/Lib/multiprocessing/
Dconnection.py213 def recv_bytes(self, maxlength=None): argument
219 if maxlength is not None and maxlength < 0:
221 buf = self._recv_bytes(maxlength)
/third_party/skia/third_party/externals/libjpeg-turbo/
Djdmarker.c1318 long maxlength; in jpeg_save_markers() local
1324 maxlength = cinfo->mem->max_alloc_chunk - sizeof(struct jpeg_marker_struct); in jpeg_save_markers()
1325 if (((long)length_limit) > maxlength) in jpeg_save_markers()
1326 length_limit = (unsigned int)maxlength; in jpeg_save_markers()
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/
Djdmarker.c1321 long maxlength; in jpeg_save_markers() local
1327 maxlength = cinfo->mem->max_alloc_chunk - sizeof(struct jpeg_marker_struct); in jpeg_save_markers()
1328 if (((long)length_limit) > maxlength) in jpeg_save_markers()
1329 length_limit = (unsigned int)maxlength; in jpeg_save_markers()
/third_party/libjpeg-turbo/
Djdmarker.c1321 long maxlength; in jpeg_save_markers() local
1327 maxlength = cinfo->mem->max_alloc_chunk - sizeof(struct jpeg_marker_struct); in jpeg_save_markers()
1328 if (((long)length_limit) > maxlength) in jpeg_save_markers()
1329 length_limit = (unsigned int)maxlength; in jpeg_save_markers()

1234