HomeSort by relevance Sort by last modified time
    Searched refs:mLength (Results 1 - 25 of 50) sorted by null

1 2

  /packages/apps/Email/src/com/android/email/
FixedLengthInputStream.java 29 private final int mLength;
34 this.mLength = length;
39 return mLength - mCount;
44 if (mCount < mLength) {
54 if (mCount < mLength) {
55 int d = mIn.read(b, offset, Math.min(mLength - mCount, length));
73 return mLength;
78 return String.format("FixedLengthInputStream(in=%s, length=%d)", mIn.toString(), mLength);
  /frameworks/base/obex/javax/obex/
ApplicationParameter.java 42 private int mLength;
113 mLength = 0;
117 if ((mLength + len + 2) > mMaxLength) {
118 byte[] array_tmp = new byte[mLength + 4 * len];
119 System.arraycopy(mArray, 0, array_tmp, 0, mLength);
121 mMaxLength = mLength + 4 * len;
123 mArray[mLength++] = tag;
124 mArray[mLength++] = len;
125 System.arraycopy(value, 0, mArray, mLength, len);
126 mLength += len
    [all...]
  /external/astl/src/
string.cpp 57 // mCapacity is either mLength or the number of bytes reserved using
60 // mLength is the number of char in the string, excluding the terminating '\0'.
65 // Ensure that mCapacity + 1 and mLength + 1 is accessible.
88 // Resize the buffer pointed by mData if n >= mLength.
91 // Must be > mLength and > 0.
95 if (n < mLength || n == mCapacity || n + 1 < n) {
139 mLength = 0;
155 mLength = n;
156 mData[mLength] = '\0';
169 mLength = n
    [all...]
  /development/simulator/app/
MessageStream.cpp 31 mLength = len;
49 mLength = nlen + vlen;
61 if (mLength < 2)
79 mLength = sizeof(int) * 2;
96 mLength = sizeof(int) * 4;
111 if (mLength != sizeof(int) * 2) {
112 LOG(LOG_WARN, "", "type is %d, len is %d\n", mType, mLength);
143 mLength = sizeof(pBundle->when) +
148 mData = new unsigned char[mLength];
168 assert(pCur - mData == mLength);
    [all...]
Shmem.cpp 45 : mHandle(kInvalidHandle), mAddr(MAP_FAILED), mLength(-1), mCreator(false),
57 munmap(mAddr, mLength);
119 mLength = size;
167 mLength = len;
197 if (mLength >= 0)
198 return mLength;
219 : mHandle(kInvalidHandle), mAddr(NULL), mLength(-1), mCreator(false),
293 mLength = size;
357 if (mLength >= 0)
358 return mLength;
    [all...]
Shmem.h 88 long mLength; // length of segment (cached)
MessageStream.h 86 int getLength(void) const { return mLength; }
118 mLength = -1;
124 int mLength;
  /frameworks/base/media/libstagefright/
FileSource.cpp 25 mLength(-1) {
31 mLength(length) {
54 if (mLength >= 0) {
55 if (offset >= mLength) {
58 int64_t numAvailable = mLength - offset;
78 if (mLength >= 0) {
79 *size = mLength;
  /external/astl/include/
vector 103 bool empty() const { return mLength == 0; }
104 size_type size() const { return mLength; }
122 reference back() { return mLength ? *(mBegin + mLength - 1) : front(); }
123 const_reference back() const { return mLength ? *(mBegin + mLength - 1) : front(); }
137 { return index < mLength ? *( mBegin + index) : sDummy; }
140 { return index < mLength ? *( mBegin + index) : sDummy; }
143 iterator end() { return iterator(mBegin + mLength); }
146 const_iterator end() const { return const_iterator(mBegin + mLength); }
    [all...]
string 113 size_type length() const { return mLength; }
114 size_type size() const { return mLength; }
290 iterator end() {return iterator(mData + mLength);}
291 const_iterator end() const {return const_iterator(mData + mLength);}
317 size_type mLength; // len of the string excl. null-terminator.
348 size_type new_len = mLength + dist;
349 if (new_len <= mLength) {
356 std::copy(first, last, mData + mLength);
357 mLength = new_len;
358 mData[mLength] = '\0'
    [all...]
list 197 bool empty() const { return mLength == 0; }
200 size_type size() const { return mLength; }
227 mLength = 0;
233 size_type mLength;
253 if (mLength + 1 > mLength) {
257 ++mLength;
286 --mLength;
  /frameworks/base/core/java/android/webkit/
ByteArrayBuilder.java 54 if (c.mLength == c.mArray.length) {
59 int amount = Math.min(length, c.mArray.length - c.mLength);
60 System.arraycopy(array, offset, c.mArray, c.mLength, amount);
61 c.mLength += amount;
87 total += c.mLength;
133 public int mLength;
137 mLength = 0;
144 mLength = 0;
  /sdk/ddms/libs/ddmlib/src/com/android/ddmlib/
JdwpPacket.java 61 private int mLength, mId, mFlags, mCmdSet, mCmd, mErrCode;
94 mLength = JDWP_HEADER_LEN + payloadLength;
100 mBuffer.putInt(0x00, mLength);
107 mBuffer.position(mLength);
138 if (mLength > 0)
139 buf.limit(mLength - JDWP_HEADER_LEN);
176 return (mLength == JDWP_HEADER_LEN);
192 return mLength;
207 assert mLength > 0;
211 mBuffer.limit(mLength);
    [all...]
HeapSegment.java 120 private int mLength;
205 return mLength;
209 this.mLength = length;
213 if (mLength != other.mLength) {
214 return mLength < other.mLength ? -1 : 1;
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
LatinIMEUtil.java 92 /* package */ int mLength = 0;
117 if (mLength < BUFSIZE) {
118 ++mLength;
122 if (mLength < 1) {
126 --mLength;
131 if (mLength < 1) {
139 if (mLength <= back
148 if (mLength <= back
157 for (int i = 0; i < mLength; ++i) {
168 mLength = 0
    [all...]
  /frameworks/base/core/java/android/content/res/
AssetFileDescriptor.java 46 private final long mLength;
64 mLength = length;
103 if (mLength >= 0) {
104 return mLength;
119 return mLength;
150 if (mLength > Integer.MAX_VALUE) {
151 throw new IOException("File length too large for a memory file: " + mLength);
153 return new AutoCloseMemoryFileInputStream(mFd, (int)mLength);
155 if (mLength < 0) {
170 if (mLength < 0)
    [all...]
  /frameworks/base/core/java/android/os/
MemoryFile.java 59 private int mLength; // total length of our ashmem region
71 mLength = length;
101 mLength = length;
128 native_munmap(mAddress, mLength);
164 return mLength;
231 || srcOffset < 0 || srcOffset > mLength
232 || count > mLength - srcOffset) {
255 || destOffset < 0 || destOffset > mLength
256 || count > mLength - destOffset) {
341 if (mOffset >= mLength) {
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
DashPathEffectTest.java 96 private int mLength;
114 mLength += 1;
115 if (mLength == mPattern[mPatternOffset]) {
116 mLength = 0;
  /frameworks/base/include/media/stagefright/
FileSource.h 46 int64_t mLength;
  /frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/
ComprehensionTlv.java 33 private int mLength;
52 mLength = length;
66 return mLength;
92 startIndex = ctlv.mValueIndex + ctlv.mLength;
  /development/simulator/wrapsim/
SimMgr.c 172 int mLength;
268 msg->mLength = header[0] | header[1] << 8;
269 msg->mLength -= 2; // we already read two of them in the header
271 if (msg->mLength > 0) {
275 msg->mData = (unsigned char*) malloc(msg->mLength);
277 wsLog("alloc %d failed\n", msg->mLength);
281 if (readAll(fd, msg->mData, msg->mLength) != 0) {
282 wsLog("failed reading message body (wanted %d)\n", msg->mLength);
304 len = msg->mLength + 2;
313 if (msg->mLength > 0)
    [all...]
  /libcore/luni/src/main/java/java/util/zip/
ZipFile.java 275 rafstrm.mLength = rafstrm.mOffset + entry.compressedSize;
397 long mLength;
402 mLength = raf.length();
407 return (mOffset < mLength ? 1 : 0);
424 if (len > mLength - mOffset) {
425 len = (int) (mLength - mOffset);
439 if (n > mLength - mOffset) {
440 n = mLength - mOffset;
  /frameworks/base/libs/utils/
Asset.cpp 339 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL)
386 mLength = length;
410 mLength = dataMap->getDataLength();
424 assert(mOffset >= 0 && mOffset <= mLength);
438 maxLen = mLength - mOffset;
491 newPosn = handleSeek(offset, whence, mOffset, mLength);
555 if (mLength < kReadVsMapThreshold) {
561 allocLen = mLength;
562 if (mLength == 0)
572 if (mLength > 0)
    [all...]
  /sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/util/
PsdFile.java 172 final int mLength = 0;
175 out.writeInt(mLength);
184 int mLength = 0;
202 mLength = mSignature.length;
203 mLength += 2;
204 mLength += 2;
205 mLength += 4;
206 mLength += 8;
207 mLength += 8;
211 out.writeInt(mLength);
    [all...]
  /frameworks/base/include/utils/
Asset.h 240 virtual off_t getLength(void) const { return mLength; }
241 virtual off_t getRemainingLength(void) const { return mLength-mOffset; }
247 off_t mLength; // length of the chunk

Completed in 1967 milliseconds

1 2