Searched refs:length (Results 26 - 50 of 11214) sorted by relevance

1234567891011>>

/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/
H A Dlength.pass.cpp14 // static size_t length(const char_type* s);
25 return std::char_traits<wchar_t>::length(L"") == 0
26 && std::char_traits<wchar_t>::length(L"abcd") == 4;
32 assert(std::char_traits<wchar_t>::length(L"") == 0);
33 assert(std::char_traits<wchar_t>::length(L"a") == 1);
34 assert(std::char_traits<wchar_t>::length(L"aa") == 2);
35 assert(std::char_traits<wchar_t>::length(L"aaa") == 3);
36 assert(std::char_traits<wchar_t>::length(L"aaaa") == 4);
/external/puffin/src/
H A Dpuff_reader.cc25 size_t length = 0; local
30 if (puff_buf_in_[index_] & 0x80) { // Reading length/distance.
32 length = puff_buf_in_[index_] & 0x7F;
38 length = puff_buf_in_[index_] + 127;
40 length += 3;
41 TEST_AND_RETURN_FALSE(length <= 259);
45 // End of block. End of block is similar to length/distance but without
46 // distance value and length value set to 259.
47 if (length == 259) {
66 pd.length
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/
H A DOAEPEncoding.java66 hash.update(encodingParams, 0, encodingParams.length);
103 return baseBlockSize - 1 - 2 * defHash.length;
121 return baseBlockSize - 1 - 2 * defHash.length;
152 byte[] block = new byte[getInputBlockSize() + 1 + 2 * defHash.length];
157 System.arraycopy(in, inOff, block, block.length - inLen, inLen);
162 block[block.length - inLen - 1] = 0x01;
171 System.arraycopy(defHash, 0, block, defHash.length, defHash.length);
176 byte[] seed = new byte[defHash.length];
183 byte[] mask = maskGeneratorFunction1(seed, 0, seed.length, bloc
316 maskGeneratorFunction1( byte[] Z, int zOff, int zLen, int length) argument
[all...]
/external/tagsoup/src/org/ccil/cowan/tagsoup/
H A DScanHandler.java29 public void adup(char[] buff, int offset, int length) throws SAXException; argument
35 public void aname(char[] buff, int offset, int length) throws SAXException; argument
41 public void aval(char[] buff, int offset, int length) throws SAXException; argument
46 public void cdsect(char[] buff, int offset, int length) throws SAXException; argument
52 public void decl(char[] buff, int offset, int length) throws SAXException; argument
58 public void entity(char[] buff, int offset, int length) throws SAXException; argument
64 public void eof(char[] buff, int offset, int length) throws SAXException; argument
70 public void etag(char[] buff, int offset, int length) throws SAXException; argument
76 public void gi(char[] buff, int offset, int length) throws SAXException; argument
82 public void pcdata(char[] buff, int offset, int length) throw argument
88 pi(char[] buff, int offset, int length) argument
94 pitarget(char[] buff, int offset, int length) argument
100 stagc(char[] buff, int offset, int length) argument
106 stage(char[] buff, int offset, int length) argument
112 cmnt(char[] buff, int offset, int length) argument
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/util/
H A DBytesTrieBuilder.java34 public BytesAsCharSequence(byte[] sequence, int length) { argument
36 len=length;
39 public int length() { return len; } method in class:BytesTrieBuilder.BytesAsCharSequence
49 * Bytes 0..length-1 will be copied; the builder does not keep
52 * @param length The length of the byte sequence.
56 public BytesTrieBuilder add(byte[] sequence, int length, int value) { argument
57 addImpl(new BytesAsCharSequence(sequence, length), value);
77 return new BytesTrie(bytes, bytes.length-bytesLength);
100 return ByteBuffer.wrap(bytes, bytes.length
157 ensureCapacity(int length) argument
190 write(int offset, int length) argument
201 write(byte[] b, int length) argument
[all...]
H A DCharsTrieBuilder.java78 return CharBuffer.wrap(chars, chars.length-charsLength, charsLength);
135 private void ensureCapacity(int length) { argument
136 if(length>chars.length) {
137 int newCapacity=chars.length;
140 } while(newCapacity<=length);
142 System.arraycopy(chars, chars.length-charsLength,
143 newChars, newChars.length-charsLength, charsLength);
158 chars[chars.length-charsLength]=(char)unit;
168 protected int write(int offset, int length) { argument
179 write(char[] s, int length) argument
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DBytesTrieBuilder.java34 public BytesAsCharSequence(byte[] sequence, int length) { argument
36 len=length;
39 public int length() { return len; } method in class:BytesTrieBuilder.BytesAsCharSequence
49 * Bytes 0..length-1 will be copied; the builder does not keep
52 * @param length The length of the byte sequence.
57 public BytesTrieBuilder add(byte[] sequence, int length, int value) { argument
58 addImpl(new BytesAsCharSequence(sequence, length), value);
79 return new BytesTrie(bytes, bytes.length-bytesLength);
103 return ByteBuffer.wrap(bytes, bytes.length
161 ensureCapacity(int length) argument
194 write(int offset, int length) argument
205 write(byte[] b, int length) argument
[all...]
H A DCharsTrieBuilder.java81 return CharBuffer.wrap(chars, chars.length-charsLength, charsLength);
139 private void ensureCapacity(int length) { argument
140 if(length>chars.length) {
141 int newCapacity=chars.length;
144 } while(newCapacity<=length);
146 System.arraycopy(chars, chars.length-charsLength,
147 newChars, newChars.length-charsLength, charsLength);
162 chars[chars.length-charsLength]=(char)unit;
172 protected int write(int offset, int length) { argument
183 write(char[] s, int length) argument
[all...]
/external/proguard/src/proguard/gui/
H A DFilterBuilder.java58 return positive.length() <= negative.length() ?
80 for (int index = 0; index < checkBoxes.length; index++)
102 if (positive.length() > 0)
107 if (prefix.length() == 0 ||
108 prefix.charAt(prefix.length()-1) == separator)
120 if (negative.length() > 0)
125 if (prefix.length() == 0 ||
126 prefix.charAt(prefix.length()-1) == separator)
141 for (int index = 0; index < checkBoxes.length; inde
[all...]
/external/brotli/csharp/org/brotli/dec/
H A DUtils.cs20 /// , so it should be used for length not
25 /// <param name="length">number of bytes to change</param>
26 internal static void FillWithZeroes(byte[] dest, int offset, int length) argument
29 while (cursor < length)
31 int step = System.Math.Min(cursor + 1024, length) - cursor;
42 /// , so it should be used for length not
47 /// <param name="length">number of item to change</param>
48 internal static void FillWithZeroes(int[] dest, int offset, int length) argument
51 while (cursor < length)
53 int step = System.Math.Min(cursor + 1024, length)
[all...]
/external/guice/extensions/servlet/src/com/google/inject/servlet/
H A DServletUtils.java43 if (contextPath.length() < requestURI.length()) {
44 return requestURI.substring(contextPath.length());
45 } else if (requestURI != null && requestURI.trim().length() > 0 &&
46 contextPath.length() == requestURI.length()) {
/external/proguard/src/proguard/gui/splash/
H A DTypeWriterString.java57 int stringLength = string.length();
58 int length = (int)(stringLength * t + 0.5);
59 if (length != cachedLength)
61 cachedLength = length;
62 cachedString = string.substring(0, length);
63 if (t > 0.0 && length < stringLength)
/external/webrtc/webrtc/common_audio/
H A Dwindow_generator.cc40 void WindowGenerator::Hanning(int length, float* window) { argument
41 RTC_CHECK_GT(length, 1);
43 for (int i = 0; i < length; ++i) {
45 (length - 1)));
49 void WindowGenerator::KaiserBesselDerived(float alpha, size_t length, argument
51 RTC_CHECK_GT(length, 1U);
54 const size_t half = (length + 1) / 2;
58 complex<float> r = (4.0f * i) / length - 1.0f;
62 for (size_t i = length - 1; i >= half; --i) {
63 window[length
[all...]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
H A DUSerializedSet.java29 * @param srcStart pointer to start of serialized data (length value)
35 arrayOffset=bmpLength=length=0;
37 length=src[srcStart++];
39 if ((length&0x8000) != 0) {
41 length&=0x7fff;
42 if(src.length<(srcStart+1+length)) {
43 length=0;
49 if(src.length<(srcStart+length)) {
187 private int arrayOffset, bmpLength, length; field in class:USerializedSet
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DUSerializedSet.java27 * @param srcStart pointer to start of serialized data (length value)
33 arrayOffset=bmpLength=length=0;
35 length=src[srcStart++];
37 if ((length&0x8000) != 0) {
39 length&=0x7fff;
40 if(src.length<(srcStart+1+length)) {
41 length=0;
47 if(src.length<(srcStart+length)) {
185 private int arrayOffset, bmpLength, length; field in class:USerializedSet
[all...]
/external/icu/icu4c/source/i18n/
H A Dcollationweights.cpp44 getWeightTrail(uint32_t weight, int32_t length) { argument
45 return (uint32_t)(weight>>(8*(4-length)))&0xff;
49 setWeightTrail(uint32_t weight, int32_t length, uint32_t trail) { argument
50 length=8*(4-length);
51 return (uint32_t)((weight&(0xffffff00<<length))|(trail<<length));
84 truncateWeight(uint32_t weight, int32_t length) { argument
85 return (uint32_t)(weight&(0xffffffff<<(8*(4-length))));
89 incWeightTrail(uint32_t weight, int32_t length) { argument
94 decWeightTrail(uint32_t weight, int32_t length) argument
169 incWeightByOffset(uint32_t weight, int32_t length, int32_t offset) const argument
187 int32_t length=range.length+1; local
[all...]
/external/webrtc/webrtc/common_audio/signal_processing/
H A Dmin_max_operations.c37 int16_t WebRtcSpl_MaxAbsValueW16C(const int16_t* vector, size_t length) { argument
41 assert(length > 0);
43 for (i = 0; i < length; i++) {
60 int32_t WebRtcSpl_MaxAbsValueW32C(const int32_t* vector, size_t length) { argument
67 assert(length > 0);
69 for (i = 0; i < length; i++) {
82 int16_t WebRtcSpl_MaxValueW16C(const int16_t* vector, size_t length) { argument
86 assert(length > 0);
88 for (i = 0; i < length; i++) {
96 int32_t WebRtcSpl_MaxValueW32C(const int32_t* vector, size_t length) { argument
110 WebRtcSpl_MinValueW16C(const int16_t* vector, size_t length) argument
124 WebRtcSpl_MinValueW32C(const int32_t* vector, size_t length) argument
138 WebRtcSpl_MaxAbsIndexW16(const int16_t* vector, size_t length) argument
159 WebRtcSpl_MaxIndexW16(const int16_t* vector, size_t length) argument
176 WebRtcSpl_MaxIndexW32(const int32_t* vector, size_t length) argument
193 WebRtcSpl_MinIndexW16(const int16_t* vector, size_t length) argument
210 WebRtcSpl_MinIndexW32(const int32_t* vector, size_t length) argument
[all...]
/external/autotest/client/site_tests/video_WebRtcCamera/
H A Dblackframe.js11 function isBlackFrame(data, length) {
14 for (var i = 4; i < length; i += 4) {
/external/autotest/client/site_tests/video_WebRtcPeerConnectionWithCamera/
H A Dblackframe.js11 function isBlackFrame(data, length) {
14 for (var i = 4; i < length; i += 4) {
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
H A DX9IntegerConverter.java42 * @param qLength the length
51 if (qLength < bytes.length)
55 System.arraycopy(bytes, bytes.length - tmp.length, tmp, 0, tmp.length);
59 else if (qLength > bytes.length)
63 System.arraycopy(bytes, 0, tmp, tmp.length - bytes.length, bytes.length);
/external/gptfdisk/
H A Dcrc32.h19 uint32_t chksum_crc32 (unsigned char *block, unsigned int length);
/external/icu/icu4c/source/common/
H A Dures_cnv.cpp35 int32_t length; local
45 length=u_strlen(myPath);
46 if(length>=(int32_t)sizeof(pathBuffer)) {
49 } else if(uprv_isInvariantUString(myPath, length)) {
54 u_UCharsToChars(myPath, path, length+1); /* length+1 to include the NUL */
59 length=ucnv_fromUChars(cnv, path, (int32_t)sizeof(pathBuffer), myPath, length, status);
64 if(length>=(int32_t)sizeof(pathBuffer)) {
/external/libdrm/
H A Dlibdrm_macros.h49 static inline void *drm_mmap(void *addr, size_t length, int prot, int flags, argument
58 return mmap64(addr, length, prot, flags, fd, offset);
61 # define drm_munmap(addr, length) \
62 munmap(addr, length)
68 # define drm_mmap(addr, length, prot, flags, fd, offset) \
69 mmap(addr, length, prot, flags, fd, offset)
72 static inline int drm_munmap(void *addr, size_t length) argument
81 return munmap(addr, length);
/external/mesa3d/src/gallium/auxiliary/os/
H A Dos_mman.h61 static inline void *os_mmap(void *addr, size_t length, int prot, int flags, argument
70 return __mmap2(addr, length, prot, flags, fd, (size_t) (offset >> 12));
73 # define os_munmap(addr, length) \
74 munmap(addr, length)
78 # define os_mmap(addr, length, prot, flags, fd, offset) \
79 mmap(addr, length, prot, flags, fd, offset)
81 static inline int os_munmap(void *addr, size_t length) argument
90 return munmap(addr, length);
/external/tcpdump/
H A Dprint-beep.c24 /* Check for a string but not go beyond length
49 beep_print(netdissect_options *ndo, const u_char *bp, u_int length) argument
52 if (l_strnstart(ndo, "MSG", 4, (const char *)bp, length)) /* A REQuest */
54 else if (l_strnstart(ndo, "RPY ", 4, (const char *)bp, length))
56 else if (l_strnstart(ndo, "ERR ", 4, (const char *)bp, length))
58 else if (l_strnstart(ndo, "ANS ", 4, (const char *)bp, length))
60 else if (l_strnstart(ndo, "NUL ", 4, (const char *)bp, length))
62 else if (l_strnstart(ndo, "SEQ ", 4, (const char *)bp, length))
64 else if (l_strnstart(ndo, "END", 4, (const char *)bp, length))

Completed in 815 milliseconds

1234567891011>>