/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
FakeInputStream.java | 28 public FakeInputStream(long length) { 29 mRemaining = length; 44 public int read(byte[] buffer, int offset, int length) { 45 Arrays.checkOffsetAndCount(buffer.length, offset, length); 47 if (length > mRemaining) { 48 length = (int) mRemaining; 50 mRemaining -= length; 52 if (length == 0) { 55 return length; [all...] |
/ndk/sources/cxx-stl/llvm-libc++/test/re/re.results/re.results.acc/ |
length.pass.cpp | 14 // difference_type length(size_type sub = 0) const; 25 assert(m.length() == m[0].length()); 26 assert(m.length(0) == m[0].length()); 27 assert(m.length(1) == m[1].length()); 28 assert(m.length(2) == m[2].length()); 29 assert(m.length(3) == m[3].length()) [all...] |
/external/webkit/Source/WebCore/bindings/cpp/ |
WebDOMHTMLOptionsCollectionCustom.cpp | 26 unsigned WebDOMHTMLOptionsCollection::length() const function in class:WebDOMHTMLOptionsCollection 31 return impl()->length(); 34 void WebDOMHTMLOptionsCollection::setLength(unsigned length) 40 impl()->setLength(length, ec);
|
/external/bison/lib/ |
basename.c | 31 size_t length; local 39 length = base_len (base); 40 if (ISSLASH (base[length])) 41 length++; 48 char *p = xmalloc (length + 3); 51 memcpy (p + 2, base, length); 52 p[length + 2] = '\0'; 57 return xstrndup (base, length);
|
dirname-lgpl.c | 26 /* Return the length of the prefix of FILE that will be used by 35 size_t length; local 48 for (length = last_component (file) - file; 49 prefix_length < length; length--) 50 if (! ISSLASH (file[length - 1])) 52 return length; 73 size_t length = dir_len (file); local 74 bool append_dot = (length == 0 76 && length == FILE_SYSTEM_PREFIX_LEN (file [all...] |
/external/emma/core/java12/com/vladium/util/ |
ByteArrayIStream.java | 31 this (buf, buf.length); 34 public ByteArrayIStream (final byte [] buf, final int length) 36 if ($assert.ENABLED) $assert.ASSERT ((length >= 0) && (length <= buf.length), 37 "invalid length: " + length); 40 m_max = length; 53 public final int read (final byte [] buf, final int offset, int length) 56 $assert.ASSERT ((offset >= 0) && (offset <= buf.length) & [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
ByteBuffer.java | 20 * Byte buffer container including length of valid data. 29 private int length; field in class:ByteBuffer 40 this.length = 0; 50 this.length = buffer.length; 56 * @param length the length of valid bytes in the array 58 public ByteBuffer(byte[] buffer, int length) 60 if (length > buffer.length) 128 public int length() method in class:ByteBuffer [all...] |
/ndk/sources/host-tools/sed-4.2.1/lib/ |
dirname.c | 26 /* Return the length of the prefix of FILE that will be used by 35 size_t length; local 48 for (length = last_component (file) - file; 49 prefix_length < length; length--) 50 if (! ISSLASH (file[length - 1])) 52 return length; 73 size_t length = dir_len (file); local 74 bool append_dot = (length == 0 76 && length == FILE_SYSTEM_PREFIX_LEN (file [all...] |
/external/webkit/Source/WebCore/css/ |
FontFamilyValue.cpp | 36 unsigned length = m_familyName.length(); local 37 while (length >= 3) { 39 switch (m_familyName[length - 1]) { 50 for (unsigned i = length - 2; i > 0; --i) { 56 length = first; 58 m_familyName.truncate(length); 61 void FontFamilyValue::appendSpaceSeparated(const UChar* characters, unsigned length) 64 m_familyName.append(characters, length);
|
/external/webrtc/src/common_audio/signal_processing/ |
copy_set_operations.c | 31 void WebRtcSpl_MemSetW16(WebRtc_Word16 *ptr, WebRtc_Word16 set_value, int length) 36 for (j = length; j > 0; j--) 42 void WebRtcSpl_MemSetW32(WebRtc_Word32 *ptr, WebRtc_Word32 set_value, int length) 47 for (j = length; j > 0; j--) 53 void WebRtcSpl_MemCpyReversedOrder(WebRtc_Word16* dest, WebRtc_Word16* source, int length) 59 for (j = 0; j < length; j++) 66 WebRtc_Word16 length, 71 WEBRTC_SPL_MEMCPY_W16(vector_out, &vector_in[length - samples], samples); 76 WebRtc_Word16 WebRtcSpl_ZerosArrayW16(WebRtc_Word16 *vector, WebRtc_Word16 length) 78 WebRtcSpl_MemSetW16(vector, 0, length); [all...] |
/libcore/dalvik/src/main/java/dalvik/system/ |
DalvikLogging.java | 38 int length = loggerName.length(); local 39 if (length <= 23) { 44 return length - (lastPeriod + 1) <= 23 46 : loggerName.substring(loggerName.length() - 23);
|
/ndk/sources/cxx-stl/llvm-libc++/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char/ |
length.pass.cpp | 14 // static size_t length(const char_type* s); 21 assert(std::char_traits<char>::length("") == 0); 22 assert(std::char_traits<char>::length("a") == 1); 23 assert(std::char_traits<char>::length("aa") == 2); 24 assert(std::char_traits<char>::length("aaa") == 3); 25 assert(std::char_traits<char>::length("aaaa") == 4);
|
/external/webkit/Source/JavaScriptCore/wtf/text/ |
CString.cpp | 42 CString::CString(const char* str, size_t length) 44 init(str, length); 47 void CString::init(const char* str, size_t length) 52 // We need to be sure we can add 1 to length without overflowing. 53 // Since the passed-in length is the length of an actual existing 56 ASSERT(length < numeric_limits<size_t>::max()); 58 m_buffer = CStringBuffer::create(length + 1); 59 memcpy(m_buffer->mutableData(), str, length); 60 m_buffer->mutableData()[length] = '\0' 90 size_t length = buffer->length(); local [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
ClientKeyExchange.java | 55 length = this.exchange_keys.length; 57 length += 2; 70 exchange_keys = new byte[bb.length-1]; 71 System.arraycopy(bb, 1, exchange_keys, 0, exchange_keys.length); 75 length = exchange_keys.length +2; 85 length = 0; 91 * @param length 96 public ClientKeyExchange(HandshakeIODataStream in, int length, boolean isTLS, boolean isRSA [all...] |
Finished.java | 40 length = data.length; 46 * @param length 49 public Finished(HandshakeIODataStream in, int length) 51 if (length == 12 || length == 36) { 52 data = in.read(length); 53 this.length = data.length;
|
CertificateVerify.java | 40 if (hash == null || hash.length == 0) { 45 length = hash.length + 2; 52 * @param length 55 public CertificateVerify(HandshakeIODataStream in, int length) 57 if (length == 0) { 61 if (in.readUint16() != length - 2) { 65 signedHash = in.read(length -2); 67 this.length = length; [all...] |
/libcore/luni/src/main/java/java/net/ |
DatagramPacket.java | 32 * Length of the data to be sent or size of data that was received via 35 private int length; field in class:DatagramPacket 38 * The last user-supplied length (as opposed to a length set by simply receiving a packet). 39 * This length (unlike 'length') is sticky, and survives until the user sets another length. 52 * {@code length} bytes. 56 * @param length 57 * the length of the data buffer [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/animation/ |
BoneAnimation.java | 41 public BoneAnimation(String name, float length) { 42 super(name, length);
|
SpatialAnimation.java | 8 public SpatialAnimation(String name, float length) {
9 super(name, length);
|
/external/webkit/Source/WebCore/platform/text/ |
ParserUtilities.h | 29 inline bool skipString(const UChar*& ptr, const UChar* end, const UChar* name, int length) 31 if (end - ptr < length) 33 if (memcmp(name, ptr, sizeof(UChar) * length)) 35 ptr += length; 41 int length = strlen(str); local 42 if (end - ptr < length) 44 for (int i = 0; i < length; ++i) { 48 ptr += length;
|
/external/webkit/Source/WebKit/chromium/src/ |
ChromiumOSRandomSource.cpp | 39 void cryptographicallyRandomValuesFromOS(unsigned char* buffer, size_t length) 41 WebKit::webKitClient()->cryptographicallyRandomValues(buffer, length);
|
/ndk/sources/cxx-stl/llvm-libc++/test/re/re.traits/ |
length.pass.cpp | 15 // static std::size_t length(const char_type* p); 22 assert(std::regex_traits<char>::length("") == 0); 23 assert(std::regex_traits<char>::length("1") == 1); 24 assert(std::regex_traits<char>::length("12") == 2); 25 assert(std::regex_traits<char>::length("123") == 3); 27 assert(std::regex_traits<wchar_t>::length(L"") == 0); 28 assert(std::regex_traits<wchar_t>::length(L"1") == 1); 29 assert(std::regex_traits<wchar_t>::length(L"12") == 2); 30 assert(std::regex_traits<wchar_t>::length(L"123") == 3);
|
/external/icu4c/common/ |
ustrfmt.c | 24 * @return the length of the result, not including any terminating 31 int32_t length = 0; local 38 buffer[length++]=(UChar)(digit<=9?(0x0030+digit):(0x0030+digit+7)); 40 } while(i && length<capacity); 42 while (length < minwidth){ 43 buffer[length++] = (UChar) 0x0030;/*zero padding */ 46 if(length<capacity){ 47 buffer[length] = (UChar) 0x0000; 51 for (j = 0; j < (length / 2); j++){ 52 temp = buffer[(length-1) - j] [all...] |
/external/skia/legacy/src/core/ |
SkData.cpp | 26 size_t SkData::copyRange(size_t offset, size_t length, void* buffer) const { 28 if (offset >= available || 0 == length) { 32 if (length > available) { 33 length = available; 35 SkASSERT(length > 0); 37 memcpy(buffer, this->bytes() + offset, length); 38 return length; 57 SkData* SkData::NewFromMalloc(const void* data, size_t length) { 58 return new SkData(data, length, sk_free_releaseproc, NULL); 61 SkData* SkData::NewWithCopy(const void* data, size_t length) { [all...] |
/external/clang/test/CodeGen/ |
2002-03-12-StructInitialize.c | 7 long length; member in struct:Connection_Type
|