/external/icu4c/common/ |
unistr_props.cpp | 35 int32_t oldLength = this->length(); 36 int32_t i = oldLength, length; local 40 length = i; 49 if(length < oldLength) { 50 setLength(length); 58 if(i >= length) { 61 U16_NEXT(array, i, length, c);
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
LengthFunctions.cpp | 28 #include "platform/Length.h" 34 float floatValueForLength(const Length& length, float maximumValue) 36 switch (length.type()) { 38 return length.getFloatValue(); 40 return static_cast<float>(maximumValue * length.percent() / 100.0f); 45 return length.nonNanCalculatedValue(maximumValue);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/ |
length.pass.cpp | 14 // static size_t length(const char_type* s); 22 assert(std::char_traits<char16_t>::length(u"") == 0); 23 assert(std::char_traits<char16_t>::length(u"a") == 1); 24 assert(std::char_traits<char16_t>::length(u"aa") == 2); 25 assert(std::char_traits<char16_t>::length(u"aaa") == 3); 26 assert(std::char_traits<char16_t>::length(u"aaaa") == 4);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/ |
length.pass.cpp | 14 // static size_t length(const char_type* s); 22 assert(std::char_traits<char32_t>::length(U"") == 0); 23 assert(std::char_traits<char32_t>::length(U"a") == 1); 24 assert(std::char_traits<char32_t>::length(U"aa") == 2); 25 assert(std::char_traits<char32_t>::length(U"aaa") == 3); 26 assert(std::char_traits<char32_t>::length(U"aaaa") == 4);
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/ |
length.pass.cpp | 14 // static size_t length(const char_type* s); 21 assert(std::char_traits<wchar_t>::length(L"") == 0); 22 assert(std::char_traits<wchar_t>::length(L"a") == 1); 23 assert(std::char_traits<wchar_t>::length(L"aa") == 2); 24 assert(std::char_traits<wchar_t>::length(L"aaa") == 3); 25 assert(std::char_traits<wchar_t>::length(L"aaaa") == 4);
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
CSSLengthFunctions.cpp | 30 #include "platform/Length.h" 35 int minimumIntValueForLength(const Length& length, LayoutUnit maximumValue, RenderView* renderView, bool roundPercentages) 37 return static_cast<int>(minimumValueForLength(length, maximumValue, renderView, roundPercentages)); 40 int intValueForLength(const Length& length, LayoutUnit maximumValue, RenderView* renderView, bool roundPercentages) 42 return static_cast<int>(valueForLength(length, maximumValue, renderView, roundPercentages)); 45 LayoutUnit minimumValueForLength(const Length& length, LayoutUnit maximumValue, RenderView* renderView, bool roundPercentages) 47 switch (length.type()) [all...] |
/external/tagsoup/src/org/ccil/cowan/tagsoup/ |
ScanHandler.java | 29 public void adup(char[] buff, int offset, int length) throws SAXException; 35 public void aname(char[] buff, int offset, int length) throws SAXException; 41 public void aval(char[] buff, int offset, int length) throws SAXException; 46 public void cdsect(char[] buff, int offset, int length) throws SAXException; 52 public void decl(char[] buff, int offset, int length) throws SAXException; 58 public void entity(char[] buff, int offset, int length) throws SAXException; 64 public void eof(char[] buff, int offset, int length) throws SAXException; 70 public void etag(char[] buff, int offset, int length) throws SAXException; 76 public void gi(char[] buff, int offset, int length) throws SAXException; 82 public void pcdata(char[] buff, int offset, int length) throws SAXException [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/ |
OAEPEncoding.java | 64 hash.update(encodingParams, 0, encodingParams.length); 101 return baseBlockSize - 1 - 2 * defHash.length; 119 return baseBlockSize - 1 - 2 * defHash.length; 145 byte[] block = new byte[getInputBlockSize() + 1 + 2 * defHash.length]; 150 System.arraycopy(in, inOff, block, block.length - inLen, inLen); 155 block[block.length - inLen - 1] = 0x01; 164 System.arraycopy(defHash, 0, block, defHash.length, defHash.length); 169 byte[] seed = new byte[defHash.length]; 176 byte[] mask = maskGeneratorFunction1(seed, 0, seed.length, block.length - defHash.length) [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/ |
BinaryStream.h | 20 BinaryInputStream(const void *data, size_t length) 25 mLength = length; 42 size_t length = num * sizeof(T); local 44 if (mOffset + length > mLength) 50 memcpy(v, mData + mOffset, length); 51 mOffset += length; 62 size_t length; local 63 read(&length); 70 if (mOffset + length > mLength) 76 v->assign(mData + mOffset, length); 142 size_t length = v.length(); local 148 size_t length() const function in class:gl::BinaryOutputStream [all...] |
/external/chromium_org/third_party/WebKit/Source/wtf/ |
DecimalNumber.cpp | 33 unsigned length = 0; local 38 ++length; 39 length += 2; // for "0." 40 length += -m_exponent - 1; 41 length += m_precision; 42 return length; 52 ++length; 53 length += m_precision; 54 length += digitsBeforeDecimalPoint - m_precision; 55 return length; 72 unsigned length = 0; local [all...] |
Uint8ClampedArray.h | 38 static inline PassRefPtr<Uint8ClampedArray> create(unsigned length); 39 static inline PassRefPtr<Uint8ClampedArray> create(const unsigned char* array, unsigned length); 40 static inline PassRefPtr<Uint8ClampedArray> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length); 44 static inline PassRefPtr<Uint8ClampedArray> createUninitialized(unsigned length); 65 unsigned length); 70 PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(unsigned length) 72 return TypedArrayBase<unsigned char>::create<Uint8ClampedArray>(length); 75 PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(const unsigned char* array, unsigned length) 77 return TypedArrayBase<unsigned char>::create<Uint8ClampedArray>(array, length); 80 PassRefPtr<Uint8ClampedArray> Uint8ClampedArray::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) [all...] |
/external/proguard/src/proguard/gui/ |
FilterBuilder.java | 58 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; index++ [all...] |
/libcore/luni/src/main/java/libcore/internal/ |
StringPool.java | 28 private static boolean contentEquals(String s, char[] chars, int start, int length) { 29 if (s.length() != length) { 32 for (int i = 0; i < length; i++) { 41 * Returns a string equal to {@code new String(array, start, length)}. 43 public String get(char[] array, int start, int length) { 46 for (int i = start; i < start + length; i++) { 53 int index = hashCode & (pool.length - 1); 56 if (pooled != null && contentEquals(pooled, array, start, length)) { 60 String result = new String(array, start, length); [all...] |
/frameworks/base/telephony/java/android/telephony/ |
JapanesePhoneNumberFormatter.java | 162 int length = text.length(); local 163 if (length > 3 166 } else if (length < 1 || text.charAt(0) != '0') { 170 CharSequence saved = text.subSequence(0, length); 174 while (i < text.length()) { 182 length = text.length(); 187 while (i < length) { 190 text.replace(0, length, saved) [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
Exif.java | 30 int length = 0; local 33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { 51 // Get the length and check if it is reasonable. 52 length = pack(jpeg, offset, 2, false); 53 if (length < 2 || offset + length > jpeg.length) { 54 Log.e(TAG, "Invalid length"); 59 if (marker == 0xE1 && length >= 8 && 63 length -= 8 [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
buffer.h | 44 Buffer(const void* data, size_t length) { 45 Construct(data, length, length); 47 Buffer(const void* data, size_t length, size_t capacity) { 48 Construct(data, length, capacity); 51 Construct(buf.data(), buf.length(), buf.length()); 57 size_t length() const { return length_; } function in class:talk_base::Buffer 62 Construct(buf.data(), buf.length(), buf.length()); [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8ArrayBufferViewCustomScript.js | 26 return function(source, length, offset) { 28 for (var i = 0; i < length; i++) 31 for (var i = 0; i < length; i++)
|
/external/chromium_org/third_party/WebKit/Source/wtf/text/ |
AtomicStringCF.cpp | 41 CFIndex length = CFStringGetLength(string); 44 return add(ptr, length); 47 return add(reinterpret_cast<const UChar*>(ptr), length); 49 Vector<UniChar, 1024> ucharBuffer(length); 50 CFStringGetCharacters(string, CFRangeMake(0, length), ucharBuffer.data()); 51 return add(reinterpret_cast<const UChar*>(ucharBuffer.data()), length);
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
buffer.h | 44 Buffer(const void* data, size_t length) { 45 Construct(data, length, length); 47 Buffer(const void* data, size_t length, size_t capacity) { 48 Construct(data, length, capacity); 51 Construct(buf.data(), buf.length(), buf.length()); 57 size_t length() const { return length_; } function in class:talk_base::Buffer 62 Construct(buf.data(), buf.length(), buf.length()); [all...] |
/external/dropbear/libtomcrypt/ |
parsenames.pl | 9 $len = length($b); 12 $len = $len + length($obj); 16 $len = length($obj);
|
/external/proguard/src/proguard/gui/splash/ |
TypeWriterString.java | 57 int stringLength = string.length(); 58 int length = (int)(stringLength * t + 0.5); local 59 if (length != cachedLength) 61 cachedLength = length; 62 cachedString = string.substring(0, length); 63 if (t > 0.0 && length < stringLength)
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
LimitedLengthInputStreamTest.java | 42 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); 53 fail("Should throw IOException on negative length"); 74 fail("Should fail when offset + length is > Long.MAX_VALUE"); 80 private void checkReadBytesWithOffsetAndLength_WithString1(int offset, int length) 82 byte[] temp = new byte[TEST_STRING1.length]; 83 byte[] expected = new byte[length]; 84 byte[] actual = new byte[length]; 86 System.arraycopy(TEST_STRING1, offset, expected, 0, length); 88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 89 assertEquals(length, is.read(temp, 0, temp.length)) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
BigIntegers.java | 27 byte[] tmp = new byte[bytes.length - 1]; 29 System.arraycopy(bytes, 1, tmp, 0, tmp.length); 44 int length, 51 if (bytes.length - 1 > length) 53 throw new IllegalArgumentException("standard length exceeded for value"); 56 byte[] tmp = new byte[length]; 58 System.arraycopy(bytes, 1, tmp, tmp.length - (bytes.length - 1), bytes.length - 1) [all...] |
/frameworks/base/obex/javax/obex/ |
PrivateInputStream.java | 76 return mData.length - mIndex; 92 while (mData.length == mIndex) { 102 return read(b, 0, b.length); 106 public synchronized int read(byte[] b, int offset, int length) throws IOException { 111 if ((offset | length) < 0 || length > b.length - offset) { 116 int currentDataLength = mData.length - mIndex; 117 int remainReadLength = length; 131 currentDataLength = mData.length - mIndex 149 int length = (body.length - start) + (mData.length - mIndex); local [all...] |
/external/chromium_org/webkit/common/blob/ |
blob_data.cc | 21 void BlobData::AppendData(const char* data, size_t length) { 22 DCHECK(length > 0); 24 items_.back().SetToBytes(data, length); 28 uint64 offset, uint64 length, 30 DCHECK(length > 0); 32 items_.back().SetToFilePathRange(file_path, offset, length, 37 uint64 offset, uint64 length) { 38 DCHECK_GT(length, 0ul); 40 items_.back().SetToBlobRange(uuid, offset, length); 45 uint64 length, [all...] |