HomeSort by relevance Sort by last modified time
    Searched refs:length (Results 326 - 350 of 19023) sorted by null

<<11121314151617181920>>

  /external/kernel-headers/original/linux/
relay.h 175 size_t length);
181 * @length: number of bytes to write
192 size_t length)
199 if (unlikely(buf->offset + length > chan->subbuf_size))
200 length = relay_switch_subbuf(buf, length);
201 memcpy(buf->data + buf->offset, data, length);
202 buf->offset += length;
210 * @length: number of bytes to write
220 size_t length)
    [all...]
  /external/tcpdump/
print-chdlc.c 56 register u_int length = h->len; local
63 return (chdlc_print(p,length));
67 chdlc_print(register const u_char *p, u_int length) {
72 printf("%s, ethertype %s (0x%04x), length %u: ",
76 length);
79 length -= CHDLC_HDRLEN;
84 ip_print(gndo, p, length);
88 ip6_print(p, length);
92 chdlc_slarp_print(p, length);
96 chdlc_cdp_print(p, length);
    [all...]
  /libcore/luni/src/main/java/java/io/
PipedReader.java 216 * if {@code offset < 0 || count < 0 || offset + count > buffer.length}.
231 Arrays.checkOffsetAndCount(buffer.length, offset, count);
263 copyLength = count > this.buffer.length - out ? this.buffer.length - out : count;
266 if (out == this.buffer.length) {
367 if (in == buffer.length) {
384 Arrays.checkOffsetAndCount(chars.length, offset, count);
416 int length = buffer.length - in; local
417 if (count < length) {
429 int length = out - in; local
    [all...]
SerializationHandleMap.java 52 for (int i = 0; i < oldKeys.length; ++i) {
75 int length = array.length; local
76 int index = getModuloHash(key, length);
77 int last = (index + length - 1) % length;
86 index = (index + 1) % length;
91 private int getModuloHash(Object key, int length) {
92 return (System.identityHashCode(key) & 0x7FFFFFFF) % length;
119 int newSize = keys.length * 2
140 int length = keys.length; local
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/security/asn1/
BerOutputStream.java 39 /** Current encoded length */
40 public int length; field in class:BerOutputStream
48 if (length > 127) { //long form
49 int eLen = length >> 8;
58 eLen = length;
65 encoded[offset++] = (byte) length;
70 System.arraycopy(content, 0, encoded, offset, length);
71 offset += length;
78 System.arraycopy(bStr.bytes, 0, encoded, offset + 1, length - 1);
79 offset += length;
    [all...]
  /dalvik/libdex/
SysUtil.cpp 37 * Create an anonymous shared memory segment large enough to hold "length"
41 static void* sysCreateAnonShmem(size_t length)
46 ptr = mmap(NULL, length, PROT_READ | PROT_WRITE,
49 ALOGW("mmap(%d, RW, SHARED|ANON) failed: %s", (int) length,
64 int sysCreatePrivateMap(size_t length, MemMapping* pMap)
68 memPtr = sysCreateAnonShmem(length);
73 pMap->length = pMap->baseLength = length;
78 * Determine the current offset and remaining length of the open file.
83 size_t length; local
117 size_t length; local
154 size_t length; local
    [all...]
  /frameworks/base/core/java/com/android/internal/database/
SortCursor.java 59 int length = mCursors.length; local
60 mSortColumns = new int[length];
61 for (int i = 0 ; i < length ; i++) {
74 for (int j = 0 ; j < length; j++) {
84 for (int i = mRowNumCache.length - 1; i >= 0; i--) {
87 mCurRowNumCache = new int[ROWCACHESIZE][length];
94 int length = mCursors.length; local
95 for (int i = 0 ; i < length ; i++)
132 int length = mCursors.length; local
245 int length = mCursors.length; local
258 int length = mCursors.length; local
267 int length = mCursors.length; local
276 int length = mCursors.length; local
286 int length = mCursors.length; local
297 int length = mCursors.length; local
    [all...]
  /libcore/crypto/src/main/java/org/conscrypt/
ServerKeyExchange.java 70 length = 4 + bytes1.length + bytes2.length;
72 length += 2 + hash.length;
79 length += 2 + bytes3.length;
93 byte[] noZero = new byte[bb.length - 1];
94 System.arraycopy(bb, 1, noZero, 0, noZero.length);
106 tmpLength[0] = (byte) ((tmp.length & 0xFF00) >>> 8)
    [all...]
  /packages/apps/Music/src/com/android/music/
SortCursor.java 59 int length = mCursors.length; local
60 mSortColumns = new int[length];
61 for (int i = 0 ; i < length ; i++) {
74 for (int j = 0 ; j < length; j++) {
84 for (int i = mRowNumCache.length - 1; i >= 0; i--) {
87 mCurRowNumCache = new int[ROWCACHESIZE][length];
94 int length = mCursors.length; local
95 for (int i = 0 ; i < length ; i++)
132 int length = mCursors.length; local
245 int length = mCursors.length; local
258 int length = mCursors.length; local
267 int length = mCursors.length; local
276 int length = mCursors.length; local
286 int length = mCursors.length; local
297 int length = mCursors.length; local
    [all...]
  /external/open-vcdiff/gtest/include/gtest/internal/
gtest-string.h 206 String(const char* buffer, size_t length) {
207 ConstructNonNull(buffer, length);
226 ConstructNonNull(str.c_str(), str.length());
229 operator ::std::string() const { return ::std::string(c_str(), length()); }
234 ConstructNonNull(str.c_str(), str.length());
237 operator ::string() const { return ::string(c_str(), length()); }
241 bool empty() const { return (c_str() != NULL) && (length() == 0); }
268 // Returns the length of the encapsulated string, or 0 if the
270 size_t length() const { return length_; } function in class:testing::internal::String
288 ConstructNonNull(rhs.c_str(), rhs.length());
    [all...]
  /external/protobuf/gtest/include/gtest/internal/
gtest-string.h 206 String(const char* buffer, size_t length) {
207 ConstructNonNull(buffer, length);
226 ConstructNonNull(str.c_str(), str.length());
229 operator ::std::string() const { return ::std::string(c_str(), length()); }
234 ConstructNonNull(str.c_str(), str.length());
237 operator ::string() const { return ::string(c_str(), length()); }
241 bool empty() const { return (c_str() != NULL) && (length() == 0); }
268 // Returns the length of the encapsulated string, or 0 if the
270 size_t length() const { return length_; } function in class:testing::internal::String
288 ConstructNonNull(rhs.c_str(), rhs.length());
    [all...]
  /frameworks/base/core/java/android/hardware/usb/
UsbDeviceConnection.java 122 * @param length the length of the data to send or receive
124 * @return length of data transferred (or zero) for success,
128 int index, byte[] buffer, int length, int timeout) {
129 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout);
147 * @param length the length of the data to send or receive
149 * @return length of data transferred (or zero) for success,
153 byte[] buffer, int offset, int length, int timeout) {
154 checkBounds(buffer, offset, length);
    [all...]
  /external/chromium_org/courgette/
disassembler.cc 29 Disassembler* DetectDisassembler(const void* buffer, size_t length) {
32 disassembler = new DisassemblerWin32X86(buffer, length);
38 disassembler = new DisassemblerElf32X86(buffer, length);
44 disassembler = new DisassemblerElf32ARM(buffer, length);
53 Status DetectExecutableType(const void* buffer, size_t length,
57 Disassembler* disassembler = DetectDisassembler(buffer, length);
61 *detected_length = disassembler->length();
72 Status ParseDetectedExecutable(const void* buffer, size_t length,
76 Disassembler* disassembler = DetectDisassembler(buffer, length);
99 Disassembler::Disassembler(const void* start, size_t length)
    [all...]
  /external/chromium_org/remoting/base/
typed_buffer_unittest.cc 24 EXPECT_EQ(buffer.length(), 0u);
32 EXPECT_EQ(buffer.length(), 0u);
40 EXPECT_EQ(buffer.length(), sizeof(int) * 10);
55 EXPECT_EQ(left.length(), 0u);
57 EXPECT_EQ(right.length(), sizeof(int));
63 // length.
65 EXPECT_EQ(left.length(), sizeof(int));
69 EXPECT_EQ(right.length(), 0u);
78 EXPECT_EQ(left.length(), sizeof(int));
80 EXPECT_EQ(right.length(), sizeof(int) * 2)
    [all...]
  /external/guava/guava/src/com/google/common/primitives/
SignedBytes.java 102 checkArgument(array.length > 0);
104 for (int i = 1; i < array.length; i++) {
121 checkArgument(array.length > 0);
123 for (int i = 1; i < array.length; i++) {
142 if (array.length == 0) {
147 StringBuilder builder = new StringBuilder(array.length * 5);
149 for (int i = 1; i < array.length; i++) {
180 int minLength = Math.min(left.length, right.length);
187 return left.length - right.length
    [all...]
  /external/icu4c/extra/scrptrun/
scrptrun.h 38 ScriptRun(const UChar chars[], int32_t length);
40 ScriptRun(const UChar chars[], int32_t start, int32_t length);
46 void reset(const UChar chars[], int32_t start, int32_t length);
105 inline ScriptRun::ScriptRun(const UChar chars[], int32_t length)
107 reset(chars, 0, length);
110 inline ScriptRun::ScriptRun(const UChar chars[], int32_t start, int32_t length)
112 reset(chars, start, length);
138 inline void ScriptRun::reset(int32_t start, int32_t length)
141 charLimit = start + length;
146 inline void ScriptRun::reset(const UChar chars[], int32_t start, int32_t length)
    [all...]
  /external/sfntly/cpp/src/sfntly/data/
memory_byte_array.cc 23 MemoryByteArray::MemoryByteArray(int32_t length)
24 : ByteArray(0, length), b_(NULL), allocated_(true) {
38 int32_t length) {
40 os->Write(b_, offset, length);
41 return length;
59 int32_t length) {
62 memcpy(b_ + index, b + offset, length);
63 return length;
74 int32_t length) {
77 memcpy(b + offset, b_ + index, length);
    [all...]
  /frameworks/base/media/java/android/media/
ResampleInputStream.java 48 // length of 2:1 fir
80 return read(b, 0, b.length);
84 public int read(byte[] b, int offset, int length) throws IOException {
87 // ensure that mBuf is big enough to cover requested 'length'
88 int nIn = ((length / 2) * mRateIn / mRateOut + mFirLength) * 2;
91 } else if (nIn > mBuf.length) {
101 length = len < length ? len : (length / 2) * 2;
104 // TODO: should mBuf.length below be nIn instead
    [all...]
  /external/chromium_org/third_party/WebKit/Source/wtf/text/
WTFString.cpp 47 String::String(const UChar* characters, unsigned length)
48 : m_impl(characters ? StringImpl::create(characters, length) : 0)
61 String::String(const LChar* characters, unsigned length)
62 : m_impl(characters ? StringImpl::create(characters, length) : 0)
66 String::String(const char* characters, unsigned length)
67 : m_impl(characters ? StringImpl::create(reinterpret_cast<const LChar*>(characters), length) : 0)
98 RELEASE_ASSERT(string.length() <= numeric_limits<unsigned>::max() - m_impl->length());
99 RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(m_impl->length() + string.length(), data)
292 unsigned length = this->length(); local
438 unsigned length = this->length(); local
713 unsigned length = this->length(); local
751 unsigned length = this->length(); local
783 unsigned length = this->length(); local
    [all...]
AtomicString.cpp 115 unsigned length; member in struct:WTF::HashTranslatorCharBuffer
122 return StringHasher::computeHashAndMaskTop8Bits(buf.s, buf.length);
127 return WTF::equal(str, buf.s, buf.length);
132 location = StringImpl::create8BitIfPossible(buf.s, buf.length).leakRef();
142 unsigned length; member in struct:WTF::HashAndCharacters
149 ASSERT(buffer.hash == StringHasher::computeHashAndMaskTop8Bits(buffer.characters, buffer.length));
155 return WTF::equal(string, buffer.characters, buffer.length);
160 location = StringImpl::create(buffer.characters, buffer.length).leakRef();
169 unsigned length; member in struct:WTF::HashAndUTF8Characters
181 if (buffer.utf16Length != string->length())
265 unsigned length = 0; local
279 unsigned length; member in struct:WTF::SubstringLocation
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/html/
MediaFragmentURIParser.cpp 40 static String collectDigits(const LChar* input, unsigned length, unsigned& position)
46 while (position < length && isASCIIDigit(input[position]))
51 static String collectFraction(const LChar* input, unsigned length, unsigned& position)
61 while (position < length && isASCIIDigit(input[position]))
106 unsigned end = fragmentString.length();
181 if (parseNPTFragment(fragment.second.characters8(), fragment.second.length(), start, end)) {
197 bool MediaFragmentURIParser::parseNPTFragment(const LChar* timeString, unsigned length, double& startTime, double& endTime)
200 if (length >= nptIdentiferLength && timeString[0] == 'n' && timeString[1] == 'p' && timeString[2] == 't' && timeString[3] == ':')
203 if (offset == length)
212 if (!parseNPTTime(timeString, length, offset, startTime)
    [all...]
  /external/icu4c/common/
cmemory.h 185 * Deletes the array it owns and allocates a new one, copying length T items.
190 * @param length number of T items to be copied from the old array to the new one;
195 inline T *allocateInsteadAndCopy(int32_t newCapacity=1, int32_t length=0);
222 inline T *LocalMemory<T>::allocateInsteadAndCopy(int32_t newCapacity, int32_t length) {
226 if(length>0) {
227 if(length>newCapacity) {
228 length=newCapacity;
230 uprv_memcpy(p, LocalPointerBase<T>::ptr, length*sizeof(T));
309 * Deletes the array (if owned) and allocates a new one, copying length T items.
315 * @param length number of T items to be copied from the old array to the new on
    [all...]
  /external/v8/src/
data-flow.h 88 BitVector(int length, Zone* zone)
89 : length_(length),
90 data_length_(SizeFor(length)),
92 ASSERT(length > 0);
97 : length_(other.length()),
103 static int SizeFor(int length) {
104 return 1 + ((length - 1) / 32);
113 ASSERT(other.length() <= length());
123 ASSERT(i >= 0 && i < length());
190 int length() const { return length_; } function in class:v8::internal::BitVector
    [all...]
  /external/chromium_org/v8/test/webkit/fast/js/kde/
prototype_length.js 25 shouldBe("Object.prototype.length","undefined");
26 shouldBe("Function.prototype.length","0");
27 shouldBe("Array.prototype.length","0");
28 shouldBe("String.prototype.length","0");
29 shouldBe("Boolean.prototype.length","undefined");
30 shouldBe("Number.prototype.length","undefined");
31 shouldBe("Date.prototype.length","undefined");
32 shouldBe("RegExp.prototype.length","undefined");
33 shouldBe("Error.prototype.length","undefined");
36 Array.prototype.length = 6
    [all...]
  /external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
SpdyReader.java 46 + "\u0000\u000Econtent-length\u0000\u0000\u0000\u0010content-location\u0000\u0000\u0000"
100 int length = (w2 & 0xffffff); local
112 readSynStream(handler, flags, length);
116 readSynReply(handler, flags, length);
120 readRstStream(handler, flags, length);
124 readSettings(handler, flags, length);
128 if (length != 0) throw ioException("TYPE_NOOP length: %d != 0", length);
133 readPing(handler, flags, length);
268 int length = nameValueBlockIn.readInt(); local
    [all...]

Completed in 4970 milliseconds

<<11121314151617181920>>